"; $accfoldername = substr($tempname, 0, strpos($tempname, '/') ); if ($accfoldername=="shop001") $accfoldername=""; require_once($filepath.$backend."config".$accfoldername.".inc.php"); require_once($filepath.$backend."common.inc.php"); include("config.php"); if ( !empty($_SESSION["acccheck"]) && !empty($_SESSION["acclogin"]) ) { $sql= "SELECT * FROM `backend_user` WHERE skey = '".$_SESSION["acccheck"]."' AND login = '".$_SESSION["acclogin"]."'"; $rs = $db->query($sql); if (mysql_num_rows($rs) == 0) { header("Location: ../error.php"); exit; } } else { header("Location: ../error.php"); exit; } include("../../../include/fckeditor/fckeditor.php"); $page_field = ""; $num_of_files = 4; $attachment_text=array( "-----", ' Photo Large
(Cover:160H*140W)', ' Photo Small Left
(100H*87W)', ' Photo Small Middle
(100H*87W)', ' Photo Small Right
(100H*87W)' ); $col_name=array( "-----", 'Photo Large', 'Photo Small Left', 'Photo Small Middle', 'Photo Small Right' ); //initial if (empty($id)) { $id = ""; $temp_id = md5(uniqid(time())); } if (empty($page)) { $page = "1"; } //Load data if ($id != "") { $sql = "SELECT * FROM `".$page_tbname."` WHERE `id` = '$id'"; $row = $db->getrow($sql); foreach($row as $_key=>$_item){ ${$_key} = $_item; } if ($display == 1) { $displayd = 'checked'; $displayh = ''; } else { $displayd = ''; $displayh = 'checked'; } if ($displayhot == 1) { $displayhotd = 'checked'; $displayhoth = ''; } else { $displayhotd = ''; $displayhoth = 'checked'; } if ($displayhot1 == 1) { $displayhotd1 = 'checked'; $displayhoth1 = ''; } else { $displayhotd1 = ''; $displayhoth1 = 'checked'; } if ($displayhot2 == 1) { $displayhotd2 = 'checked'; $displayhoth2 = ''; } else { $displayhotd2 = ''; $displayhoth2 = 'checked'; } } else { $displayh = ''; $displayd = 'checked'; $displayhoth = 'checked'; $displayhotd = ''; $displayhoth1 = 'checked'; $displayhotd2 = ''; $displayhoth2 = 'checked'; $displayhotd2 = ''; } $category_list = ""; $sql = "SELECT id, en_name, sc_name FROM `levelone` WHERE 1 "; $rs = $db->query($sql); while($row = $db->fetch_array($rs)) { $category_list .= ' '; } mysql_free_result($result); } $files_content = ""; //upload file for ($i=1;$i<=$num_of_files;$i++) { if ($id != "") { $sql = "SELECT * FROM `attachment` WHERE `table_name` = '".$page_tbname."' AND `table_id` = '".$id."' AND `col_name` = '".$col_name[$i]."'"; $rs = $db->query($sql); if (mysql_num_rows($rs) > 0) { $rowfile = $db->fetch_array($rs); ${"file".$i} = 'File name: '.$rowfile["real_name"].' Delete
Preview: 
'; } } $files_content .= ' '.$attachment_text[$i].' '; if ($id != "") { $files_content .= ${"file".$i}; } $files_content .= ' '; } ?> <?=$contact_name?> - Back-end
> > Modify"; else echo "Add";?>
';?>

Common
 Product > Show [ Sorting:  * Order in Ascending.]      > Hidden
 Page (Index) > Show [ Sorting:  * Order in Ascending.]      > Hidden
 Page (Featured) > Show [ Sorting:  * Order in Ascending.]      > Hidden
 Page (Latest) > Show [ Sorting:  * Order in Ascending.]      > Hidden

Products
 Product Category  Product Sub-Category
#Please "Select Category then Sub-Category"
 Qty(Size XS)  Color : (Size XS)
use (,) to split. e.g. yellow,red
 Qty(Size S)  Color : (Size S)
use (,) to split. e.g. yellow,red
 Qty(Size M)  Color : (Size M)
use (,) to split. e.g. yellow,red
 Qty(Size L)  Color : (Size L)
use (,) to split. e.g. yellow,red
 Qty(Size XL)  Color : (Size XL)
use (,) to split. e.g. yellow,red
 Product Code
 Product Name (English)
 Product Description (English)
 Product Name (chinese)
 Product Description (chinese)
 Product Unit Price (USD)
 SEO
 Photo ALT