<?php
require_once ("../config.inc.php");
require_once ("../includes/adminlogincheck.inc.php");
require_once ("../includes/mysql.inc.php");
require_once ("../includes/Pager/Pager.php");

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

if (!$objDB) 
{
	$message	= "Unable to Locate Database Server.";
}//end if
else 
{
	$query="SELECT * FROM ".TABLEPREFIX."Help where active='1' and 	hid='".$_GET['id']."' ORDER BY hposition desc";
	$res=mysql_query($query) or die(mysql_error());
}//end else

include_once('title.inc.php');
?>
<?php include_once('tophtml.php');?>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" class="white"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="72%" valign="top">
			<table width="100%"  border="0" cellspacing="0" cellpadding="5">
          <tr>
            <td><table width="100%"  border="0" cellspacing="0" cellpadding="5">
              <tr>
                <td width="32%" class="headings1"><?php echo 'Help Listings - '.$_GET['name']; ?></td>
                </tr>
            </table>
			<div class="bordernew padding2">
				<table width="100%"  border="0" cellspacing="0" cellpadding="5">
            <tr>
              <td><table width="100%"  border="0" cellspacing="0" cellpadding="0" class="tblestyle_admin2">
				<?php if ($objDB) 
					  { 
                 			if (@mysql_num_rows($res) > 0) 
							{
				?>
                <tr align="left">
                  <td width="1%" align="center" class="maintext2">&nbsp;</td>
                  <td width="96%" class="maintext2"><?php echo nl2br(mysql_result($res,0,'hdescription'));?></td>
                </tr>
				<?php
							}//end if
							else
							{
								echo '<tr align="left"><td width="1%" align="center" class="maintext2">&nbsp;</td>
                  						<td width="96%" class="maintext2 warning">Sorry, no records !!</td></tr>';
							}//end else
				?>
			   <tr align="left">
                  <td align="center" class="maintext2">&nbsp;</td>
                  <td class="maintext2"><a href="help_list.php?page=<?php echo $_GET['page']?>" class="back-btn"><b>Back</b></a></td>
                  </tr>
			   <?php
						}//end first if
				?>
              </table>
                <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="right"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td>&nbsp;</td>
                      </tr>
                    </table>
                     </td>
                  </tr>
                </table></td>
            </tr>
          </table>
			</div>
			</td>
          </tr>
        </table>
          </td>
        </tr>
    </table>      
    </td>
  </tr>
</table>
<?php include_once('bottomhtml.php');?>