⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usercontrolreply.asp

📁 云师大商学院目前正在使用的oa
💻 ASP
字号:
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/bgsub.asp"-->
<!--#include file="asp/opendb.asp"-->
<!--#include file="asp/checked.asp"-->
<%
'-----------------------------------------
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
if oabusyusername="" then response.redirect "default.asp"
'--------------------------------------
if request("submit")="应用" then
allow_see_reply=request("allow_see_reply")
if allow_see_reply="" then allow_see_reply="no"


set conn=opendb("oabusy","conn","accessdsn")
sql="update userinf set "
sql=sql & "allow_see_reply=" & sqlstr(allow_see_reply) & " where id=" & request("id")
conn.Execute sql

end if
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" href="css/css.css">
<script language="javascript1.2" src="js/openwin.js"></script>
<title>云南师范大学商学院办公自动化系统</title>
</head>
<body bgcolor="#eeeeee" topmargin="5" leftmargin="5">
<% call bghead() %>
<center>
</center>
<%
call bgmid()
%>
<center>
  <table border="1"  cellspacing="0" cellpadding="0" width="95%">
    <tr bgcolor="#aaaaaa">
      <td height=25 align=center><b>姓名</b></td>
      <td align=center><b>部门</b></td>
      <td align=center><b>职位</b></td>
      <td align=center><b>可回复投诉意见</b></td>
      <td>&nbsp;</td>
    </tr>
    <%
'显示用户表
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select * from userinf where userdept=" & sqlstr(request.cookies("oabusyuserdept"))
rs.open sql,conn,1
while not rs.eof and not rs.bof
%>
    <form method="post" action="usercontrolreply.asp">
      <tr> 
        <td align=center><%=rs("name")%></td>
        <td align=center><%=rs("userdept")%></td>
        <td align=center><%=rs("userlevel")%></td>
        <td align=center><input type="checkbox" name="allow_see_reply" value="yes"<%=checked(rs("allow_see_reply"),"yes")%>></td>
        <td align=center><input type="submit" name="submit" value="应用"></td>
      </tr>
      <input type="hidden" name="id" value=<%=rs("id")%>>
      <input type="hidden" name="userdept" value=<%=userdept%>>
    </form>
    <%
rs.movenext
wend
%>
  </table>
</center>
<br>
<%
call bgback()
%>

</body>
</html>










⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -