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: news_class_data.php
<?php //phpinfo(); //exit; $member_id = Session::get('member_id',SESSION_BACKEND); switch ($_GET['func']): case "update": $news_class_id = $_GET['id']; $strSQL = "select * from news_class where id = '$news_class_id'"; $arr_data = $db->Execute($strSQL); if($db->Affected_Rows()<1){ FuncSite::msg_box_error('查無資料!'); Func::go_to(-1); exit; } if($_POST['flag'] == 'true'){ foreach ($_POST as $kk => $vv) { $$kk = (trim($vv)); } $lang1 = $_POST['lang']; $lang_fin = implode(',', $lang1); $data = array( 'title_tw'=>$title_tw, 'title_en'=>$title_en, 'title_jp'=>$title_jp, 'sort'=>$sort, 'status'=>$status, 'update_date'=>date('Y-m-d H:i:s'), 'lang'=>$lang_fin ); $a = $db->update('news_class',$data,"id = '$news_class_id'"); if(!$a){ FuncSite::msg_box('更新成功!'); }else{ FuncSite::msg_box_error('更新失敗!'); } Func::go_to($func_page . '.php'); exit; } $data = array(); array_push($data, array( 'title' => '啟用設定', 'type' => 'radio', 'name' => 'status', 'value' => $arr_data[0]['status'], 'options'=>$arr_ison ) ); array_push($data, array( 'title' => '語言啟用設定', 'type' => 'checkbox', 'name' => 'lang', 'value' => $arr_data[0]['lang'], 'help' => '中文預設開啟。', 'options'=>$arr_lang ) ); array_push($data, array( 'title' => '排序', 'type' => 'text', 'name' => 'sort', 'value' =>$arr_data[0]['sort'] ) ); array_push($data, array( 'title' => '中文', 'type' => 'more_title' ) ); array_push($data, array( 'title' => '類別', 'type' => 'text', 'name' => 'title_tw', 'value' => $arr_data[0]['title_tw'], 'length' => 30, 'max_length' => 50, "required" => true ) ); array_push($data, array( 'title' => '英文', 'type' => 'more_title' ) ); array_push($data, array( 'title' => '類別', 'type' => 'text', 'name' => 'title_en', 'value' => $arr_data[0]['title_en'], 'length' => 30, 'max_length' => 50 ) ); array_push($data, array( 'title' => '日文', 'type' => 'more_title' ) ); array_push($data, array( 'title' => '類別', 'type' => 'text', 'name' => 'title_jp', 'value' => $arr_data[0]['title_jp'], 'length' => 30, 'max_length' => 50 ) ); $arr_form1 = array( "func" => 'update', "form_title" => '類別設定', "form_name" => 'form1', "elements" => $data ); $arr_date = array( "create_date" => $arr_data[0]['create_date'], "update_date" => $arr_data[0]['update_date'] ); break; case "delete": $news_class_id = $_GET['id']; $strSQL = "select * from news_class where id = '$news_class_id'"; $db->Execute($strSQL); if($db->Affected_Rows()<1){ FuncSite::msg_box_error('查無資料!'); Func::go_to(-1); exit; } $db->delete('news_class',"id='$news_class_id'"); Func::go_to($func_page . '.php'); exit; break; case "insert": if($_POST['flag'] == 'true'){ foreach ($_POST as $kk => $vv) { $$kk = (trim($vv)); } $create_date = time(); $update_date = time(); $lang1 = $_POST['lang']; $lang_fin = implode(',', $lang1); $data = array( 'title_tw'=>$title_tw, 'title_en'=>$title_en, 'title_jp'=>$title_jp, 'sort'=>$sort, 'status'=>$status, 'lang'=>$lang_fin, 'create_date'=>date('Y-m-d H:i:s'), 'update_date'=>date('Y-m-d H:i:s'), ); $a = $db->insert('news_class',$data); if($a){ FuncSite::msg_box('新增成功!'); }else{ FuncSite::msg_box_error('新增失敗!'); } Func::go_to($func_page . '.php'); exit; } $data = array(); array_push($data, array( 'title' => '啟用設定', 'type' => 'radio', 'name' => 'status', 'value' => '1', 'options'=>$arr_ison ) ); array_push($data, array( 'title' => '語言啟用設定', 'type' => 'checkbox', 'name' => 'lang', 'help' => '中文預設開啟。', 'options'=>$arr_lang ) ); array_push($data, array( 'title' => '排序', 'type' => 'text', 'name' => 'sort', ) ); array_push($data, array( 'title' => '中文', 'type' => 'more_title' ) ); array_push($data, array( 'title' => '類別', 'type' => 'text', 'name' => 'title_tw', 'length' => 30, 'max_length' => 50, "required" => true ) ); array_push($data, array( 'title' => '英文', 'type' => 'more_title' ) ); array_push($data, array( 'title' => '類別', 'type' => 'text', 'name' => 'title_en', 'length' => 30, 'max_length' => 50 ) ); array_push($data, array( 'title' => '日文', 'type' => 'more_title' ) ); array_push($data, array( 'title' => '類別', 'type' => 'text', 'name' => 'title_jp', 'length' => 30, 'max_length' => 50 ) ); $arr_form1 = array( "func" => 'insert', "form_name" => 'form1', "form_title" => '類別設定', "elements" => $data ); break; default: $arr_data = array(); $andSQL = ''; $status = $_GET['status']; $keyword = $_GET['keyword']; if($status!='' and $status<>3){ $andSQL = "and status=".$status; }elseif($keyword!=''){ $andSQL .= "and title like '%".$keyword."%'"; } $strSQL = "select * from news_class where 1 $andSQL order by sort asc"; // echo $strSQL; // exit; $rs = $db->Execute($strSQL); $rows = $db->Affected_Rows(); $curr_page = $_GET['curr_page']; $last_page = ceil($rows / __DATA_PER_PAGE); if ($curr_page > $last_page) $curr_page = $last_page; if ($curr_page < 1) $curr_page = 1; if ($last_page == 0) $curr_page = 0; $arr_data = $db->PageExecute($strSQL, __DATA_PER_PAGE, $curr_page); endswitch; ?>
Upload File
Create Folder