X7ROOT File Manager
Current Path:
/var/www/vhosts/hwtw.com.tw/httpdocs/backend
var
/
www
/
vhosts
/
hwtw.com.tw
/
httpdocs
/
backend
/
π
..
π
.DS_Store
(14 KB)
π
.htaccess
(1.33 KB)
π
529.php
(2.07 KB)
π
HanszxzV.html
(1.72 KB)
π
acl.php
(501 B)
π
acl_s.php
(3.8 KB)
π
acl_u.php
(1.84 KB)
π
acl_xml.php
(3.92 KB)
π
admin.php
(5 B)
π
admin_data.php
(6.48 KB)
π
admin_i.php
(3.21 KB)
π
admin_s.php
(15.22 KB)
π
admin_u.php
(4.11 KB)
π
alertifyjs
π
assets
π
auth_check.php
(6.2 KB)
π
batchdelete.php
(236 B)
π
bootstrap
π
changesort.php
(238 B)
π
changestatus.php
(255 B)
π
ckeditor
π
config
π
css
π
datetimepicker
π
favicon.ico
(596 B)
π
func
π
getclass.php
(376 B)
π
images
π
index.php
(3 B)
π
index_class.php
(5 B)
π
index_class_data.php
(3 B)
π
index_class_s.php
(7.09 KB)
π
index_img.php
(3 B)
π
index_img_data.php
(7.05 KB)
π
index_img_i.php
(3.2 KB)
π
index_img_s.php
(13.7 KB)
π
index_img_u.php
(3.74 KB)
π
js
π
kcfinder
π
list_category.php
(1.89 KB)
π
login.php
(5.66 KB)
π
logout.php
(104 B)
π
menu.php
(2.44 KB)
π
news.php
(1.04 KB)
π
news_class.php
(1.27 KB)
π
news_class_data.php
(7.65 KB)
π
news_class_i.php
(3.21 KB)
π
news_class_s.php
(15.99 KB)
π
news_class_u.php
(3.75 KB)
π
news_data.php
(18.27 KB)
π
news_i.php
(3.21 KB)
π
news_s.php
(16.24 KB)
π
news_u.php
(3.74 KB)
π
peli.php
(3.22 KB)
π
product.php
(1.46 KB)
π
product_class.php
(1.27 KB)
π
product_class2.php
(1.07 KB)
π
product_class2_data.php
(8.04 KB)
π
product_class2_i.php
(3.21 KB)
π
product_class2_s.php
(17.6 KB)
π
product_class2_u.php
(3.75 KB)
π
product_class_data.php
(9.07 KB)
π
product_class_i.php
(4.01 KB)
π
product_class_s.php
(9.69 KB)
π
product_class_u.php
(3.75 KB)
π
product_data.php
(8.13 KB)
π
product_i.php
(3.17 KB)
π
product_s.php
(15.11 KB)
π
product_u.php
(3.72 KB)
π
public_include.php
(372 B)
π
serv.jpg.php
(11.91 KB)
π
sortable.php
(1.56 KB)
π
start.php
(383 B)
π
start_data.php
(202 B)
π
start_s.php
(14 KB)
π
support.php
(1.29 KB)
π
support_data.php
(3.88 KB)
π
support_s.php
(8.17 KB)
π
support_u.php
(3.7 KB)
π
template.php
(11.03 KB)
π
toastr
π
top.php
(1.62 KB)
π
web_setting.php
(1018 B)
π
web_setting_data.php
(3.53 KB)
π
web_setting_u.php
(3.75 KB)
Editing: sortable.php
<?php require_once('public_include.php'); foreach ($_POST as $kk => $vv){ $$kk = (trim($vv)); } $arr_list = explode(',',$data); //ζΎεΊι£εδΈζεΊζε°η foreach ($arr_list as $kk => $vv) { $tmp = explode('_',$vv); $id = $tmp[1]; $arr_id .= $id.','; } $arr_id = substr($arr_id,0,-1); $strSQL = "SELECT * FROM `$table` WHERE id in(".$arr_id.") ORDER BY sort ASC LIMIT 1"; $smallone = $db->Execute($strSQL); // $count = count($arr_list);//ιζΈη¨ $arr_id = ''; $count = 1; //ζ΄ζ°ε°ζΌζ€ι 第δΈηη $strSQL = "SELECT * FROM `$table` WHERE id = '".$smallone[0]['id']."'"; $now = $db->Execute($strSQL); $strSQL = "SELECT * FROM `$table` WHERE sort <= '".$now[0]['sort']."' AND id !='".$smallone[0]['id']."' ORDER BY sort ASC"; $other = $db->Execute($strSQL); if(count($other)>0){ foreach ($other as $value) { $arr_id .= $value['id'].','; $strSQL = "UPDATE `$table` SET `sort` = '$count' WHERE `id` = '".$value['id']."'"; $db->Execute($strSQL); $count++; } } foreach ($arr_list as $kk => $vv) { $tmp = explode('_',$vv); $id = $tmp[1]; $arr_id .= $id.','; $strSQL = "UPDATE `$table` SET `sort` = '$count' WHERE `id` = $id"; $db->Execute($strSQL); $count++; } $arr_id = substr($arr_id,0,-1); //ζ΄ζ°ε Άδ»δΈε¨ι ι’ε §εεζεΊ $strSQL = "SELECT * FROM `$table` WHERE id NOT IN($arr_id) ORDER BY sort ASC"; $rs = $db->Execute($strSQL); foreach ($rs as $value) { $id = $value['id']; $strSQL = "UPDATE `$table` SET `sort` = '$count' WHERE `id` = $id"; $db->Execute($strSQL); $count++; }
Upload File
Create Folder