require("config.inc");
include("chksession.php");
include("fclr.inc");
$MSecID=$_REQUEST['MSecID'];
$qry=mysql_query("select * from tbl_mainsection where MSecID='".$MSecID."' and lngid='".$LngID."'") or die("Invalid MSecID ".mysql_error());
if($qry){
$rows=mysql_num_rows($qry);
if($rows>0){
$data=mysql_fetch_row($qry);
$MSecName=$data[2];
}
}
mysql_free_result($qry);
?>
require("scripts.php");?>
include("topbar-inc.php") ?>
Manage Sections
This is the second level for your product catgegories. Enter name for the categories in the text box and press submit to add a category at second level for products. To add further third level click on the manage categories button ( button will be hide if the product exist after second level ) and in order to add product after second level click on items button ( button will be hide if the third level exist after second level ). To set ranking for the categories enter number in the text box and press enter it will rearrange the categories. In Action panel there are two icons the left one for edit and the right one for deletion.
$qry=mysql_query("select * from tbl_section where MSecID='".$MSecID."' and lngid='".$LngID."' order by rank") or die("Invalid Query ".mysql_error());
if($qry){
$rows = mysql_num_rows($qry);
if($rows>0){
?>
$qrypChk=mysql_query("select * from tbl_items where MSecID='".$MSecID."' and SecID='".$data[2]."' and MainID='0' and SubID='0'") or die("Invalid Query ".mysql_error());
if(mysql_num_rows($qrypChk)>0){
?>
}else{
?>
Manage
Categories
}
?>
$cRow=0;
$qryChk=mysql_query("select * from tbl_main where MSecID='".$MSecID."' and SecID='".$data[2]."'") or die("Invalid Query ".mysql_error());
if($qryChk){
$cRow=mysql_num_rows($qryChk);
if($cRow>0){
?>
}else{
?>
Items
}
}
?>