"; $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 = 1; $attachment_text=array( "-----", ' Photo
', ' Photo Small Top
(W*H: 160*120)', ' Photo Small Middle
(W*H: 160*120)', ' Photo Small Bottom
(W*H: 160*120)' ); $col_name=array( "-----", 'Photo ', 'Photo Small Top', 'Photo Small Middle', 'Photo Small Bottom' ); //initial if (empty($id)) { $id = ""; $temp_id = md5(uniqid(time())); } if (empty($page)) { $page = "1"; } //Load data if ($id != "" || 1 ) { $sql = "SELECT * FROM eshopdata WHERE id= '".$id."' "; // 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 ($en_status == 1) { $displayend = 'checked'; $displayenh = ''; } else { $displayend = ''; $displayenh = 'checked'; } if ($sc_status == 1) { $displayscd = 'checked'; $displaysch = ''; } else { $displayscd = ''; $displaysch = 'checked'; } if ($tc_status == 1) { $displaytcd = 'checked'; $displaytch = ''; } else { $displaytcd = ''; $displaytch = 'checked'; } } else { $displayh = ''; $displayd = 'checked'; $displayenh = 'checked'; $displayenh = ''; $displaysch = 'checked'; $displaysch = ''; $displaytch = 'checked'; $displaytch = ''; } $category_list = ""; $sql = "SELECT * FROM eshopdata WHERE display='1' GROUP BY `framepage` order by sorting, framepage, id "; $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";?>
';?>

Website Design */ ?>
 html1 (Start)
 html2 (Start)
 Title
(English)
> Hidden
> Show
 Hyperlink (English)
 Title
(Chinese ZH)
> Hidden
> Show
 Hyperlink (Chinese ZH)
 Title
(Chinese SC)
> Hidden
> Show
 Hyperlink (Chinese SC)
 CSS Style ("")
 html1 (End)
 html2 (End)
 Image (alt)