require("config.inc");
include("chksession.php");
include("fclr.inc");
$MSecID=$_REQUEST['MSecID'];
$SecID=$_REQUEST['SecID'];
$MainID=$_REQUEST['MainID'];
$SubID=$_REQUEST['SubID'];
if($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];
}
}else{
$MSecID=0;
}
mysql_free_result($qry);
}
if($SecID<>''){
$qry=mysql_query("select * from tbl_section where SecID='".$SecID."' and SecID='".$SecID."' and lngid='".$LngID."'") or die("Invalid SecID ".mysql_error());
if($qry){
$rows=mysql_num_rows($qry);
if($rows>0){
$data=mysql_fetch_row($qry);
$SecName=$data[3];
}
}else{
$SecID=0;
}
mysql_free_result($qry);
}
if($MainID<>''){
$qry=mysql_query("select * from tbl_main where MainID='".$MainID."' and SecID='".$SecID."' and MSecID='".$MSecID."' and lngid='".$LngID."'") or die("Invalid MainID ".mysql_error());
if($qry){
$rows=mysql_num_rows($qry);
if($rows>0){
$data=mysql_fetch_row($qry);
$MainName=$data[4];
}
}else{
$MainID=0;
}
mysql_free_result($qry);
}
if($SubID<>'' || $SubID>0){
$qry=mysql_query("select * from tbl_sub where SubID='".$SubID."' and MainID='".$MainID."' and SecID='".$SecID."' and 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);
$SubName=$data[5];
}
}else{
$SubID=0;
$SubName="";
}
mysql_free_result($qry);
}else{
$SubName="";
}
?>
include("topbar-inc.php") ?>
Manage Products
This is the product section for your products. To add a new product click on the Add New Product. To set the product as a new product write y in the textbox below the New option and press enter it will set the product as new and to unset the productas new write n in the textbox below and press enter it will unset the product from the new products. To set ranking for the product enter number in the text box and press enter it will rearrange the products. In Action panel there are three icons the left one for edit , the center one for deletion and the right one for moving the product.
$qry=mysql_query("select * from tbl_items where MSecID='".$MSecID."' and SecID='".$SecID."' and MainID='".$MainID."' and SubID='".$SubID."' and lngid='".$LngID."' order by rank") or die("Invalid Query ".mysql_error());
if($qry){
$rows = mysql_num_rows($qry);
if($rows>0){
?>