chore: 添加多个图片和资源文件

添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
This commit is contained in:
2025-06-15 13:04:37 +08:00
parent 1e61dc3970
commit 7e47ce238b
13220 changed files with 1377028 additions and 0 deletions
+131
View File
@@ -0,0 +1,131 @@
<?php
if(THIS_IN!="edt_c")
exit("错误的访问!");
$uid=check_cookie();
$db=_mysql_connect();
$msg_login_user=get_db_msg("select * from ".$table_pre."client where id='".$uid."'");
$_title_="用户管理";
$_nav_="<a href=\"".$_SERVER[PHP_SELF]."?_m=user/main\">首页</a>";
switch($_a){
case "set_password" :
$content0[]=array("用户名",$msg_login_user["username"]);
$content0[]=array("新密码","<input type=\"password\" name=\"password\" style='width:100px'> *");
$content0[]=array("新密码确认","<input type=\"password\" name=\"password_confirm\" style='width:100px'> *");
//js_code
$js_code="";
//
$content="<script>
function ok(){
obj=document.form1;
if(obj.password.value==''){
alert('请输入密码!');
obj.password.focus();
return false;
}
if(obj.password.value!=obj.password_confirm.value){
alert('2次输入的密码不一致!');
obj.password.focus();
return false;
}
return true;
}
</script><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\"><form name=\"form1\" action=\"".$_SERVER[PHP_SELF]."\" onsubmit=\"return ok()\"><input type=\"hidden\" name=\"_m\" value=\"user/info\"><input type=\"hidden\" name=\"_a\" value=\"save_password\">";
for($i=0;$i<count($content0);$i++){
$content.="<tr><td width=\"120\" align=\"right\" style=\"font-weight:bold;\">".$content0[$i][0]."</td><td align=\"left\">&nbsp;".$content0[$i][1]."</td></tr>";
}
$content.="<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" value=\"保存修改\"></td></tr></table>";
$_button_="<input type=\"button\" value=\" 返 回 \" onclick=\"location.href='".$_SERVER[PHP_SELF]."?_m=user/info'\">";
$_title1_="密码设置";
break;
case "save_password" :
if($password!=$password_confirm)
alert_and_back("2次输入的密码不一致!");
$query="update ".$table_pre."user set password='".md5($password)."' where id='".$uid."'";
$db->query($query);
$lid=$id?$id:$db->insert_id();
set_log("用户密码设置",$msg_login_user["username"]."|".$uid);
echo "<script>
alert('密码设置成功,下次登录请使用新密码!');
location.href=\"".$_SERVER[PHP_SELF]."?_m=user/info\";
</script>";
break;
case "modify";
$d_gender=$msg_login_user["gender"];
$d_zjlx=$msg_login_user["zjlx"];
//
$content0[]=array("用户名","<input type=\"text\" name=\"username\" value=\"".$msg_login_user["username"]."\" style='width:100px' maxlength=\"50\" disabled> *");
$content0[]=array("密码提示问题","<input type=\"text\" name=\"password_question\" style='width:300px' value=\"".$msg_login_user["password_question"]."\"> *");
$content0[]=array("密码提示答案","<input type=\"text\" name=\"password_answer\" style='width:150px' value=\"".$msg_login_user["password_answer"]."\"> *");
$content0[]=array("真实姓名","<input type=\"text\" name=\"name\" style='width:80px' value=\"".$msg_login_user["name"]."\"> <select name=\"gender\">".get_main_op($arr_gender,$d_gender)."</select>");
$content0[]=array("固定电话","<input type=\"text\" name=\"phone\" style='width:200px' value=\"".$msg_login_user["phone"]."\">");
$content0[]=array("手机号码","<input type=\"text\" name=\"cellphone\" style='width:200px' value=\"".$msg_login_user["cellphone"]."\">");
$content0[]=array("电子邮箱","<input type=\"text\" name=\"email\" style='width:200px' value=\"".$msg_login_user["email"]."\">");
$content0[]=array("证件号码","<select name=\"zjlx\"><option value=''>--</option>".get_main_op($arr_zjlx,$d_zjlx)."</select> <input type=\"text\" name=\"zjhm\" style='width:200px' value=\"".$msg_login_user["zjhm"]."\">");
$content0[]=array("出生日期","<input type=\"text\" name=\"birthday\" style='width:70px' value=\"".deel_date_null($msg_login_user["birthday"])."\" onclick=\"WdatePicker()\" readonly>");
$content0[]=array("居住城市","<input type=\"text\" name=\"city\" style='width:80px' value=\"".$msg_login_user["city"]."\">");
$content0[]=array("邮寄地址","<input type=\"text\" name=\"addr\" style='width:300px' value=\"".$msg_login_user["addr"]."\">");
$content0[]=array("邮编","<input type=\"text\" name=\"postcode\" style='width:80px' value=\"".$msg_login_user["postcode"]."\">");
$content0[]=array("备注信息","<textarea name=\"remark\" style='width:200px' rows=\"3\">".$msg_login_user["remark"]."</textarea>");
$content0[]=array("注册日期",date("Y-m-d",$msg_login_user["add_date"]));
//
$content="<script>
function ok(){
if(obj.password_question.value==''){
alert('请输入密码提示问题!');
obj.password_question.focus();
return false;
}
if(obj.password_answer.value==''){
alert('请输入密码提示答案!');
obj.password_answer.focus();
return false;
}
return true;
}
</script><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\"><form name=\"form1\" action=\"".$_SERVER[PHP_SELF]."\" onsubmit=\"return ok()\"><input type=\"hidden\" name=\"_m\" value=\"user/info\"><input type=\"hidden\" name=\"_a\" value=\"save_modify\">";
for($i=0;$i<count($content0);$i++){
$content.="<tr><td width=\"120\" align=\"right\" style=\"font-weight:bold;\">".$content0[$i][0]."</td><td align=\"left\">&nbsp;".$content0[$i][1]."</td></tr>";
}
$content.="<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" value=\"保存修改\"></td></tr></table>";
$_button_="<input type=\"button\" value=\" 返 回 \" onclick=\"location.href='".$_SERVER[PHP_SELF]."?_m=user/info'\">";
$_title1_="修改个人资料";
break;
case "save_modify" :
$query="update ".$table_pre."user set name='".$name."',password_question='".$password_question."',password_answer='".$password_answer."',gender='".$gender."',phone='".$phone."',cellphone='".$cellphone."',email='".$email."',zjlx='".$zjlx."',zjhm='".$zjhm."',city='".$city."',addr='".$addr."',postcode='".$postcode."',birthday='".$birthday."',remark='".$remark."' where id='".$uid."'";
$db->query($query);
set_log("学员资料修改",$msg_login_user["username"]."|".$uid);
echo "<script>
alert('信息保存成功!');
location.href=\"".$_SERVER[PHP_SELF]."?_m=user/info\";
</script>";
break;
default:
$_title1_="个人资料";
$content0[]=array("用户名",$msg_login_user["username"]);
$content0[]=array("密码提示问题",$msg_login_user["password_question"]);
$content0[]=array("密码提示答案",$msg_login_user["password_answer"]);
$content0[]=array("真实姓名",$msg_login_user["name"]);
$content0[]=array("性别",get_main_value($arr_gender,$msg_login_user["gender"]));
$content0[]=array("固定电话",$msg_login_user["phone"]);
$content0[]=array("手机号码",$msg_login_user["cellphone"]);
$content0[]=array("电子邮箱",$msg_login_user["email"]);
$content0[]=array("证件类别",get_main_value($arr_zjlx,$msg_login_user["zjlx"]));
$content0[]=array("证件号码",$msg_login_user["zjhm"]);
$content0[]=array("出生日期",deel_date_null($msg_login_user["birthday"]));
$content0[]=array("居住城市",$msg_login_user["city"]);
$content0[]=array("邮寄地址",$msg_login_user["addr"]);
$content0[]=array("邮编",$msg_login_user["postcode"]);
$content0[]=array("备注信息",dhtmlchars($msg_login_user["remark"]));
$content0[]=array("注册日期",date("Y-m-d",$msg_login_user["add_date"]));
$content="<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\">";
for($i=0;$i<count($content0);$i++){
$content.="<tr><td width=\"120\" align=\"right\" style=\"font-weight:bold;\">".$content0[$i][0]."</td><td align=\"left\">&nbsp;".$content0[$i][1]."</td></tr>";
}
$content.="</table>";
$_button_="<input type=\"button\" value=\"资料修改\" onclick=\"location.href='".$_SERVER[PHP_SELF]."?_m=user/info&_a=modify'\"> <input type=\"button\" value=\"密码设置\" onclick=\"location.href='".$_SERVER[PHP_SELF]."?_m=user/info&_a=set_password'\">";
break;
}
$_title_=$_title1_."-首页";
$_right="hidden";
include template("user");
?>
+49
View File
@@ -0,0 +1,49 @@
<?php
if(THIS_IN!="edt_c")
exit("错误的访问!");
$time_forever=time()+365*24*3600;
switch($_a){
case "login":
//检查
if($username && $password){
$db=_mysql_connect();
$m=get_db_msg("select * from ".$table_pre."client where username='".$username."' and password='".$password."' limit 0,1");
if($m["id"]>0){
if($m["available"]=="n"){
$msg_error="对不起,该用户已经被禁用!";
include template("login");
}else if($m["face"] !="4" && $m["face"] !="3" && $m["face"] !="2"){
$msg_error="对不起,请输入正确的代理号或店铺号!";
include template("login");
}else{
//记住用户名
if($remember_username=="y")
setcookie("remember_username_pc",$username,$time_forever,"/");
//设置cookie
$t=($auto_login=="y")?$time_forever:0;
setcookie(THIS_COOKIE,$m["id"],$t,"/");
//记录日志
$uid=$m["id"];
set_log("登录系统");
//更新用户最新登录
$db->query("update ".$table_pre."client set lastactivity='".time()."' where id='".$uid."'");
//记录在线状态
$login_uid=$m["id"];
//update_session("登录系统","用户首页");
//进入登录页面
url_redirect("?_m=user/main");
}
}else{
$msg_error="用户名或密码错误!";
set_log("登录失败","尝试:".$username."/".$password);
include template("login");
}
}else{
alert_and_back("请输入用户名和密码!");
}
break;
default:
include template("login");
break;
}
?>
+9
View File
@@ -0,0 +1,9 @@
<?php
if(THIS_IN!="edt_c")
exit("错误的访问!");
$db=_mysql_connect();
$uid=check_cookie();
set_log("退出系统");
setcookie(THIS_COOKIE,0,0,"/");
include template("login");
?>
+12
View File
@@ -0,0 +1,12 @@
<?php
if(THIS_IN!="edt_c")
exit("错误的访问!");
$login_uid=check_cookie();
$db=_mysql_connect();
$msg_login_user=get_db_msg("select * from ".$table_pre."client where id='".$login_uid."'");
$_title_="首页";
$_nav_="<a href=\"?_m=user/main\">首页</a> > 欢迎登录";
$column[0][0]="欢迎登陆";
$column[0][1]="<div style=\"padding:10px;\">&nbsp;&nbsp;&nbsp;&nbsp;欢迎登陆E订通后台管理系统,请选择左边的菜单进行操作。<br><p style=\"line-height:400px;\">&nbsp;</p></div>";
include template("index_manage");
?>