📄 shezhi.asp
字号:
<!--#include file="data.asp"-->
<!--#include file="check.asp"-->
<%if session("Urule")<>"a" then
respons.write "您没有足够的权限:P"
respons.end
end if
%>
<%
Set myrs= Server.CreateObject("ADODB.Recordset")
strSql="select * from bumen"
myrs.open strSql,Conn,1,1
%>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="oa.css">
<title>设置用户权限</title>
</head>
<body>
<script Language="javaScript">
function validate()
{
if (document.myform.name.value=="")
{
alert("姓名不能为空");
document.myform.name.focus();
return false ;
}
if (document.myform.username.value=="")
{
alert("登录帐号不能为空");
document.myform.username.focus();
return false ;
}
if (document.myform.company.value=="")
{
alert("部门名称不能为空");
document.myform.company.focus();
return false ;
}
if (document.myform.tel.value=="")
{
alert("电话号码不能为空");
document.myform.tel.focus();
return false ;
}
if (document.myform.email.value=="")
{
alert("电子邮件不能为空");
document.myform.email.focus();
return false ;
}
if (document.myform.password.value=="")
{
alert("密码不能为空");
document.myform.password.focus();
return false ;
}
</script> <link rel="stylesheet" href="eintrdemo.css"> </head> <%
dim sql
dim rs
sql="select * from user where id="&request("id")
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form method="post" action="saveshezhi.asp?id=<%=request("id")%>" name="myform" onsubmit="return validate()">
<table width="100%" border="0" cellspacing="1" cellpadding="2"> <tr > <td class="heading">
<div align="center"> <center> <table width="81%" border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" bordercolorlight="#000000" style="font-size:9pt">
<tr> <td width="2%" align="right"></td><td align="left" height="25"> <p align="center"><font color="#FFFFFF"><b>设置权限</b></font></p></td><td width="3%"></td></tr> </table></center></div></td></tr>
</table><div align="center"> <table width="80%" border="1" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolor="#FFFFFF" bordercolorlight="#000000" style="font-size:9pt">
<tr> <td width="17%" valign="top"> <p align="right">你的姓名:</p></td><td width="83%">
<input type="hidden" name="name" class="form" value="<%=rs("name")%>" >
<input type="text" name="name2" class="form" value="<%=rs("name")%>" size="24" disabled>
</td></tr>
<tr> <td width="17%" valign="top" height="6"> <p align="right">登录帐号:</p></td><td width="83%" height="6">
<input type="text" name="username2" class="form" value="<%=rs("username")%>" size="24" disabled>
</td></tr> <tr> <td width="25%" valign="top" height="16"> <p align="right">查看进行项目</p></td><td width="75%" height="16">
是<INPUT TYPE="radio" NAME="seej" value="true"<%if rs("seej")=true then response.write " checked" end if%>> 否<INPUT TYPE="radio" name="seej" value="0" <%if rs("seej")=0 then response.write " checked" end if%>>
</td></tr> <tr> <td width="25%" valign="top" height="16"> <p align="right">查看过期项目</p></td><td width="75%" height="16">
是<INPUT TYPE="radio" NAME="seeg" value="true"<%if rs("seeg")=true then response.write " checked" end if%>> 否<INPUT TYPE="radio" name="seeg" value="0" <%if rs("seeg")=0 then response.write " checked" end if%>>
</td></tr> <tr> <td width="25%" valign="top" height="16"> <p align="right">查看完成项目</p></td><td width="75%" height="16">
是<INPUT TYPE="radio" NAME="seew" value="true"<%if rs("seew")=true then response.write " checked" end if%>> 否<INPUT TYPE="radio" name="seew" value="0" <%if rs("seew")=0 then response.write " checked" end if%>>
</td></tr> <tr> <td width="25%" valign="top" height="16"> <p align="right">查看特指项目</p></td><td width="75%" height="16">
是<INPUT TYPE="radio" NAME="te" value="true"<%if rs("te")=true then response.write " checked" end if%>> 否<INPUT TYPE="radio" name="te" value="0" <%if rs("te")=0 then response.write " checked" end if%>>
</td></tr>
<tr>
<td width="25%" valign="top">
<p align="right">查看删除项目</td>
<td width="75%">
是<INPUT TYPE="radio" NAME="sees" value="true"<%if rs("sees")=true then response.write " checked" end if%>> 否<INPUT TYPE="radio" name="sees" value="0" <%if rs("sees")=0 then response.write " checked" end if%>>
</td></tr>
</table>
</div><div align="center"><input type=image src="images/modify_off.gif">
<a href="javaScript:window.close()"><img border="0" src="images/close_1.gif"></a>
</div></form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -