<?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 (C) 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";

if(isset( $_SESSION["sess_artistid"]) and $_SESSION["sess_artistid"]!= ""){
	$artistid = $_SESSION["sess_artistid"];
}else{
	header("Location:login.php");
	exit;
}
if(checkArtistExpired($artistid)){
    header("Location:seller_plan_upgrade.php?sellerid=".$artistid);
    exit;
}

if(isset($_POST['gotoPage']))
{

	header("Location:".$_SERVER['PHP_SELF']."?page=".$_POST['gotoPage']);
	
		
}
include "../includes/htmltop.php";
?>
		<body>
		<center>
		<div align="left" id="layout">
				<!--header area start -->
<?php
	include_once("../includes/topheader_seller.php")
?>
				<!--header area end -->
				<div align="left" class="main_body">
				<!--main body start -->
<?php
		include_once("../includes/artisttopmenu.php")
?>		
					<div align="left" class="content_area">
					<div align="left" class="page_title">Seller Help</div>
					<div align="center" class="text_information grey_tr"><?php echo $message?></div>
                    <br>
		<table width="80%"  border="0" cellpadding="0" cellspacing="0" class="manage_table">
			 <?php 
				$help="SELECT * FROM ".$tableprefix."help where active='1' and 	hid='".$_GET['id']."' ORDER BY hposition desc";

				
				$rsTotal = mysql_query($help) or die(mysql_error());
				$found = mysql_num_rows($rsTotal);
				
				$k=0;
				
				$result = mysql_query($help) or die(mysql_error());
				
				if(mysql_num_rows($result)>0)
				{
				$helpObj = mysql_fetch_object($result);
				?>
             	<tr align="left" class="form_header">
                  <td><?php echo nl2br(stripslashes($helpObj->htitle));?></td>
                </tr>
                <tr align="left">
                    <td><?php echo nl2br(stripslashes(str_replace('{SITE_NAME}', SITE_NAME, $helpObj->hdescription)));?></td>
                  </tr>
              <?php
										}//end if
							else {
										echo '<tr><td height="51"  align="center" colspan="3" class="main_txt" bgcolor="#FFFFFF"><p>&nbsp;</p><p>&nbsp;</p>
													<strong>Sorry, no records !!<p>&nbsp;</p><p>&nbsp;</p></strong></td></tr>';
							}//end else?>
                <tr>
				<td width="7%" align="left" bgcolor="#FFFFFF"><a href="help_list.php?rghMenu=<?php echo $_GET['rghMenu'];?>&page=<?php echo $_GET['page']?>&pagegroup=<?php echo $_GET['pagegroup']?>"><?php echo BTN_BACK;?></a></td>
                  </tr>
             
              </table>
			  </div>
					<div align="left" class="clear_float"><img src="<?php echo $imagefolder;?>/clear.gif" alt="" width="1" height="1" /></div>
				<!--main body end -->
				</div>
<?php
	include "../includes/footer.php";
?>