<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
|
<%Session.CodePage=65001%>
|
<%
|
'Response.Cookies("OA")("adminID")=""
|
'Response.end
|
searchTXT=Request("searchTXT")
|
ReportType=SafeRequest(Request("ReportType"))
|
RType=SafeRequest(Request("RType"))
|
ListType=SafeRequest(Request("ListType"))
|
state=request("state")
|
If state<>"" Then
|
stateSP=split(state,"|")
|
for i = 0 to UBOUND(stateSP)
|
If InStr(stateSP(i),"searchTXT=")=1 Then
|
searchTXT=Replace(stateSP(i),"searchTXT=","")
|
ElseIf InStr(stateSP(i),"ReportType=")=1 Then
|
ReportType=Replace(stateSP(i),"ReportType=","")
|
ElseIf InStr(stateSP(i),"RType=")=1 Then
|
RType=Replace(stateSP(i),"RType=","")
|
ElseIf InStr(stateSP(i),"ListType=")=1 Then
|
ListType=Replace(stateSP(i),"ListType=","")
|
End If
|
Next
|
End If
|
If ReportType="" Then ReportType="2"
|
If RType="" Then RType="1"
|
If searchTXT="1" Then searchTXT=date()-weekday(date())+7
|
'if OrdState="" then Response.Redirect "/"
|
state=ReportType%>
|
<!--#include virtual="/weixin/OAuth2.gds"-->
|
<!--#include virtual="/inc/function.gds"-->
|
<%
|
Set rs = Server.CreateObject("ADODB.Recordset")
|
'session("adminID")=85
|
'个人信息
|
sql="select * from OA_User where OA_User_ID="&session("adminID")
|
rs.open sql,objConn,1,1
|
If not rs.Eof then
|
OA_weixinUserID = rs("OA_weixinUserID")
|
OA_Name = rs("OA_Name")
|
OA_weixinAvatar = rs("OA_weixinAvatar")
|
OA_DepartmentID = rs("OA_DepartmentID")
|
session("admin_Power")=rs("OA_Power")
|
admin_Power=session("admin_Power")
|
End If
|
rs.close()
|
If isDepartment("0702")=0 Then Response.Redirect "/m_logout.html"
|
If OA_weixinAvatar="" Then OA_weixinAvatar="/resources/images/icon_avatar_default.png"
|
%>
|
<!doctype html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<title>设置</title>
|
|
<!-- Bootstrap -->
|
<link href="/css/bootstrap.css" rel="stylesheet">
|
<link href="/css/layout.css" rel="stylesheet">
|
<script type="text/javascript" src="/js/jquery-1.7.1.min.js"></script>
|
<style>
|
.switch {
|
right: .625em;
|
top: 50%;
|
margin-top: -1.078125em;
|
background: url(/resources/images/check-sprites-5.png) no-repeat;
|
position: absolute;
|
background-position: 0 -60px;
|
background-size: 100px 100px;
|
width: 55px;
|
height: 35px;
|
}
|
.switched {
|
background: url(/resources/images/check-sprites-5.png) no-repeat;
|
background-size: 3.5em;
|
background-position: 0 -21px;
|
background-size: 100px 100px;
|
width: 55px;
|
height: 32px;
|
}
|
</style>
|
</head>
|
|
<body>
|
|
|
<div class="container">
|
<h1 class="text-center h2">推送设置</h1>
|
</div>
|
|
|
<div class="container-fluid title">
|
<div class="row" style="margin-right: -10px;margin-left: -30px;">
|
<div class="col-xs-12">日间订单推送(8时~22时)<div id="useJdbeanIcon1" class="switch<%If isDepartment("070202")=1 then%> switched<%End If%>" style="position:absolute;right:3px;"> </div></div>
|
</div>
|
</div>
|
<div class="container-fluid title">
|
<div class="row" style="margin-right: -10px;margin-left: -30px;">
|
<div class="col-xs-12">夜间订单推送(22时~次日8时)<div id="useJdbeanIcon2" class="switch<%If isDepartment("070203")=1 then%> switched<%End If%>" style="position:absolute;right:3px;"> </div></div>
|
</div>
|
</div>
|
<div class="container-fluid title">
|
<div class="row" style="margin-right: -10px;margin-left: -30px;">
|
<div class="col-xs-12"><%If NewAdmin="1" then%>权限重载完成!!<%else%><a href="?NewAdmin=1">刷新账号权限</a><%End If%></div>
|
</div>
|
</div>
|
<div id="SetupSave"></div>
|
<script>
|
/* 按钮开关 */
|
$(function(){
|
<%If isDepartment("070202")=1 then%>
|
var onOff = true;
|
<%else%>
|
var onOff = false;
|
<%End If%>
|
$("#useJdbeanIcon1").click(function(){
|
if(onOff){
|
$(this).removeClass("switched");
|
onOff = false;
|
$("#SetupSave").load("admin_save.gds?admin_save=40&PowerID=070202&Pis=0")
|
}else{
|
$(this).addClass("switched");
|
onOff = true;
|
$("#SetupSave").load("admin_save.gds?admin_save=40&PowerID=070202&Pis=1")
|
}
|
|
|
});
|
});
|
$(function(){
|
<%If isDepartment("070203")=1 then%>
|
var onOff = true;
|
<%else%>
|
var onOff = false;
|
<%End If%>
|
$("#useJdbeanIcon2").click(function(){
|
if(onOff){
|
$(this).removeClass("switched");
|
onOff = false;
|
$("#SetupSave").load("admin_save.gds?admin_save=40&PowerID=070203&Pis=0")
|
}else{
|
$(this).addClass("switched");
|
onOff = true;
|
$("#SetupSave").load("admin_save.gds?admin_save=40&PowerID=070203&Pis=1")
|
}
|
|
|
});
|
});
|
</script>
|
<!--#include virtual="/m_Report_footer.gds"-->
|
|
|
</body>
|
</html>
|