📄 empmain_dq.asp
字号:
<!--#include file="Connections/EmpMain.asp" -->
<!--#include file="EmpMain_CheckRight.asp"-->
<%selname="地区"
Set SCode = Server.CreateObject("ADODB.Recordset")
SCode.ActiveConnection = MM_EmpMain_STRING
SCode.Source = "SELECT * FROM class_name where selectName = '"& selName &"'"
SCode.CursorLocation = 2
SCode.LockType = 1
SCode.Open()
dim diqustr,astr
diqustr=SCode("OptionContent")
if diqustr="" then
response.write("无法读取数取")
response.End()
else
astr=split(diqustr,",")
end if
if request("id")="" then
else
set uP=server.createobject("adodb.recordset")
UP.Activeconnection=MM_EmpMain_string
UP.source="select * from user where ID="&request("ID")&" and ispass=true"
UP.cursortype=0
UP.cursorlocation=2
uP.locktype=1
Up.open()
dim userdq
if up.eof then
userdq=""
else
userdq=up("地区")
end if
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link rel="stylesheet" href="CSS/SellWellWeb.css" type="text/css">
</head>
<SCRIPT language=Javascript>
<!-- hide
function fsected(obj) {
if (window.dialogArguments.document.form1.shenf.value==""){
window.dialogArguments.document.form1.shenf.value=obj.value;
}else{
var str=","
window.dialogArguments.document.form1.shenf.value+=str+obj.value;
}
}
function dook(){
window.close();
}
function doreset(){
window.dialogArguments.document.form1.shenf.value=""
}
function insertsmilie(smilieface){
document.form1.shenf.value=smilieface;
window.close()
}
// -->
</SCRIPT>
<body bgcolor="#EAF4FF" class="body"> <form name=chinwxt>
<table border="1" width="100%" cellspacing="1" bordercolordark="#999999" bordercolor="#666666">
<tr> <% k=0
for i=0 to ubound(astr)
if request("id")="" then
strch=""
else
if instr(userdq,astr(i))>0 then
strch="checked"
else
strch=""
end if
end if
k=k+1%>
<td ><font size="2">
<p align="left">
<input type="checkbox" name="namecheck" <%=strch%> value="<%=astr(i)%>" onclick="fsected(this)" >
<%=astr(i)%></font></td>
<%
if k mod 5= 0 then%>
</tr>
<tr>
<% end if
next
%>
</tr>
</table>
<center><button name="ok" onClick="dook()">确定</button> <button name="reset" onClick="doreset()">重配</button></center>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -