<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts Multicart                     |
// +----------------------------------------------------------------------+
// | Authors: Santhosh Thomas Alexander<santhosh.thomas@armiasystems.com>        		              |
// +----------------------------------------------------------------------+
// | Copyrights Armia Systems, Inc and iScripts.com � 2005                |
// | All rights reserved                                                  |
// +----------------------------------------------------------------------+
// | 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.                                                       |
// +----------------------------------------------------------------------+
?>
<?php
include "includes/config.php";
include "includes/session.php";
include "includes/functions.php";


/*display the active template*/

$active_template = displayTemplate();


include "includes/htmltop.php";

$help="SELECT * FROM ".$tableprefix."help where active='1' and hid='".mysql_real_escape_string($_GET['id'])."' ORDER BY hposition desc";

$result = mysql_query($help) or die(mysql_error());
$descObj = mysql_fetch_object($result);
/* Top File Name */

include_once ("includes/".$active_template[0]);

?>
<!--mainbody area start -->
<div class="featuredproduct_list main_body">
<div class="container">
	<div class="row">
		<div class="col-sm-12 col-lg-12 col-md-12">
			<div class="reg_wrapper">
				<div class="reg_wrapper_header">
					<h2><?php echo HELP_ABOUT_TEXT;?> <?php echo strtoupper(str_replace('{SITE_NAME}', SITE_NAME, $descObj->htitle));?></h2>
				</div>
			</div>
		</div>
		<div class="col-sm-12 col-lg-12 col-md-12">
			<div class="text_information" align="center"><?php echo $message?></div>
				<div class="helpcontent">
				<?php 
					 
					if(mysql_num_rows($result)>0)
					{
					$desc = str_replace('../', './', $descObj->hdescription)
					?>
						<?php echo stripslashes(str_replace('{SITE_NAME}', SITE_NAME, $desc));?>
					<?php
					}//end if
					else
					{
						echo TOPIC_NOT_FOUND_MSG;
					}//end else
				?>
				</div>
				<a class="button" href="help.php"><?php echo BACK_TO_HELP_BUTTON;?></a>
		</div>
	</div>
	

<!--center content area end-->	
<!--mainbody area end -->
</div>
<?php
include "includes/".$active_template[2];	
/* Bottom File Name */
?>