<?php 
/*
##################################################################
#                       PHP 4&5 MySQL 4&5                        #
##################################################################
#           Copyright (c) 2004-2008 Armia Systems Inc            #
##################################################################
#               This file is part of Cybermatch site             #
##################################################################
#    Developed By: simi (simi@armia.com)                         #

##################################################################
#               Developed On:   03-04-2008                       #
##################################################################
#               Modified By:                                     #
##################################################################
#               Modified On:                                     #
##################################################################
# This script may not be distributed, sold, given away for free  #
# to third party, or used as a part of any internet services 	 #
# such as webdesign etc.                                         #
##################################################################
*/

require_once ("config.inc.php");
require_once ("includes/mysql.inc.php");
require_once ("includes/Pager/Pager.php");
require_once ("classes/misc.class.php");
require_once ("classes/userside.class.php");

$message	= "";
$pages		= "";
$count		= 0;
$page		= isset($_REQUEST['page'])	?	trim($_REQUEST['page'])	:	"1";
$data		= array();

if (!$objDB) 
{
	$message	= "Unable to Locate Database Server.";
}//end if
else 
{
    $objM		= new misc($objDB);
    $help=mysql_query("SELECT * FROM ".TABLEPREFIX."Help where active='1' and hid='".$_GET['id']."' 
                                                    ORDER BY hposition desc") or die(mysql_error());
    $data=mysql_num_rows($help);
}//end else
include_once ("title.inc.php");
include_once ("tophtml.inc.php");
?>

<div class="row">
	<div class="eight columns">
		<div class="search-rslts">
			<div class="row"><div class="inenr-hd"><h2>Help About - <?php echo $_GET['name'];?></h2></div></div>
			<div class="row">
				<div class="newdesignforinput maintext1">
					<?php 
					      if (!empty($data)) 
						  {
								if(mysql_num_rows($help)>0)
								{ 
					?>					
					<div class="full_row">
						<div class="twelve columns maintext1"><?php echo nl2br(mysql_result($help,0,'hdescription'));?></div>
					</div>
					<div class="full_row">
						<div class="row"><a href="help.php" class="back-btn">Back To Help</a></div>
					</div>
					<?php 
							   }//end if
							   else
							   {
									echo '<tr><td colspan="2" class="maintext1 warning">Sorry, no records.</td></tr>';
							   }//end else
						  }//end if
					?>
				</div>
				
				<?php if ($pages <> "") 
				{
				?>
				<div class="full_row textbox pagenation"><?php echo $pages?></div>
			 <?php } ?>
			 
			</div>
		</div>
	</div>
	<div class="four columns search_result_R"><?php include_once ("left.inc.php");?></div>
</div>

<?php include_once('bottomhtml.inc.php');?>
