Best Resolution:
1440px*640px',
' Banner(2)
Best Resolution:
1440px*640px',
' Banner(3)
Best Resolution:
1440px*640px',
' Banner(4)
Best Resolution:
1440px*640px',
' Banner(5)
Best Resolution:
1440px*640px',
' Banner(6)
Best Resolution:
1440px*640px',
' Banner(7)
Best Resolution:
1440px*640px',
' Banner(8)
Best Resolution:
1440px*640px',
' Banner(9)
Best Resolution:
1440px*640px',
' Banner(10)
Best Resolution:
1440px*640px',
' Banner(11)
Best Resolution:
1440px*640px',
' Banner(12)
Best Resolution:
1440px*640px',
' Banner(13)
Best Resolution:
1440px*640px',
' Banner(14)
Best Resolution:
1440px*640px',
' Banner(15)
Best Resolution:
1440px*640px',
' Banner(16)
Best Resolution:
1440px*640px',
' Banner(17)
Best Resolution:
1440px*640px',
' Banner(18)
Best Resolution:
1440px*640px',
' Banner(19)
Best Resolution:
1440px*640px',
' Banner(20)
Best Resolution:
1440px*640px',
);
$col_name=array(
"-----",
"photo1",
"photo2",
"photo3",
"photo4",
"photo5",
"photo6",
"photo7",
"photo8",
"photo9",
"photo10",
"photo11",
"photo12",
"photo13",
"photo14",
"photo15",
"photo16",
"photo17",
"photo18",
"photo19",
"photo20",
);
//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