<html><head>
   <title>Registration</title>
   <meta name="generator"  content="HelpMaker">
   <meta name="keywords"  content="Topic 1">
   <link href="userhelp_styles.css" rel="stylesheet" type="text/css">
   </head>
<body >
<?php

include "../../includes/config.php";
include "../../includes/session.php";
include "../../includes/functions.php";
 include_once(BASE_URL.'/language/'.LANGUAGE.'/lang_seller.php');
    $sql  = " SELECT hc.hcid
                    FROM ".$tableprefix."helpcategory hc
                   WHERE hc.htype='seller_registrar' AND active ='0'
                ORDER BY hc.hcposition";

    $result=mysql_query($sql) or die(mysql_error());
   // $menu_items = mysql_result($result);
   $count = mysql_num_rows($result);
    $i =0;
     for($i =0; $i< $count; $i++){
         $menu_items[$i]['prev'] = ($i!=0)? mysql_result($result,$i-1):'';
         
         $menu_items[$i]['cur'] = mysql_result($result,$i);    

         $menu_items[$i]['next'] = ($i < $count-1)? mysql_result($result,$i+1):'';
    }


 $help="SELECT * FROM ".$tableprefix."help where active='0' and hcid='".$_GET['id']."' ORDER BY hposition desc";


    $rsTotal = mysql_query($help) or die(mysql_error());
    $found = mysql_num_rows($rsTotal);

    if(mysql_num_rows($rsTotal)>0)
    {
        $helpObj = mysql_fetch_object($rsTotal);

        


 ?>
<div class="headingsection_style">
<div class="header_style"><?php echo nl2br(stripslashes($helpObj->htitle));?></div>

<div class="toplinks">
    <?php for($i=0; $i<$count; $i++){
        
       if($menu_items[$i]['cur'] == $helpObj->hcid){ 

          if($menu_items[$i]['prev'] !=''){ ?>
            <a href="topic.php?id=<?php echo $menu_items[$i]['prev'];?>"><?php echo TEXT_PREV;?></a>
          <?php }
          if($i !=0){
          ?>

            <a href="topic.php?id=<?php echo $menu_items[0]['cur'];?>"><?php echo TEXT_TOP;?></a>
        <?php }
            if($menu_items[$i]['next'] !=''){ ?>
            <a href="topic.php?id=<?php echo $menu_items[$i]['next'];?>"><?php echo TEXT_NEXT;?></a>
    
        <?php }

        break;
    } } ?>


</div>

<!--<a href="emailtoadministrator.html">Previous</a>&nbsp;<a href="topic1.html">Top</a>&nbsp;<a href="giftcoupon.html">Next</a>-->

<div class="clear"></div>
</div>

    <p> <?php echo nl2br(stripslashes($helpObj->hdescription));?></p>

<?php }?>

</body></html>
