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

📄 edithelpsort.asp

📁 红金羚v1.5办公自动化软件是基于大型数据库系统开发的应用系统
💻 ASP
字号:
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/bgsub.asp"-->
<!--#include file="asp/opendb.asp"-->
<!--#include file="asp/checked.asp"-->
<!--#include file="asp/getpopedom.asp"-->
<%
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
if oabusyusername="" then 
	response.write("<script language=""javascript"">")
	response.write("window.top.location.href='default.asp';")
	response.write("</script>")
	response.end
end if
errstr=getpopedom("allow_manage_help",oabusyusername)
if errstr<>"" then
	response.redirect "asp/disperrorinfo.asp?errorinfo="&errstr
	response.end
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>红孩儿Office办公系统</title>
</head>
<body bgcolor="#ffffff" topmargin="5" leftmargin="5">
<% call bghead() %>
<center>
<table>
<tr>
<td><b>帮助信息分类</b></td>
</tr>
</table>
</center>
<%
call bgmid()
%>



<%
helpsort=request("helpsort")
id=request("id")
oldhelpsort=request("oldhelpsort")
'----------------------------
if request("submit")="增加" and helpsort<>"" then
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select * from helpsort where helpsort=" & sqlstr(helpsort)
rs.open sql,conn,1
if not rs.eof and not rs.bof then
%>
<center>
<br><font color=red>你增加的类别已经有了</font>
</center>
<%
else
set conn=opendb("oabusy","conn","accessdsn")
sql = "Insert Into helpsort (helpsort) Values( "
sql = sql & SqlStr(helpsort) & ")"
conn.Execute sql
end if
end if
'-------------------------------
if request("submit")="删除" then
set conn=opendb("oabusy","conn","accessdsn")
sql = "delete from helpsort where id=" & id
conn.Execute sql
sql = "delete from helpinf where helpsort=" & sqlstr(oldhelpsort)
conn.Execute sql
end if
'-------------------------------
if request("submit")="更改" then
set conn=opendb("oabusy","conn","accessdsn")
sql = "update helpsort set helpsort=" & sqlstr(helpsort) & " where id=" & id
conn.Execute sql
sql = "update helpinf set helpsort=" & sqlstr(helpsort) & " where helpsort=" & sqlstr(oldhelpsort)
conn.Execute sql
end if
'-------------------------------
%>

<br>
<center>
<table border="1"  cellspacing="0" cellpadding="0">
<tr>
<td align=center width=30><b>删除</b></td><td align=center width=100><b>帮助信息类别</b></td><td align=center width=30><b>更改</b></td>
</tr>
<%
'显示帮助类别
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select * from helpsort"
rs.open sql,conn,1
while not rs.eof and not rs.bof
%>
<tr>
<form method="post" action="edithelpsort.asp">
<td align=center width=30><input type="submit" name="submit" value="删除" onclick="return window.confirm('这样会删除这类别的所有帮助信息,你确定要删除吗?')"></td><td align=center width=100><input type="text" name="helpsort" size=20 value="<%=rs("helpsort")%>"></td><td align=center width=30><input type="submit" name="submit" value="更改"><input type="hidden" name="id" value=<%=rs("id")%>><input type="hidden" name="oldhelpsort" value="<%=rs("helpsort")%>"></td>
</form>
</tr>
<%
rs.movenext
wend
%>
</table>
<hr color=blue size=1 width=200>
<form method="post" action="edithelpsort.asp">
<input type="text" name="helpsort" size=20><input type="submit" name="submit" value="增加">
</form>
</center>
<%
%>
         </td>
            
          <td background="<%=imgpath%>images/j5.gif" width=19 height=280></td>
          </tr>
        </table>
    </tr>
    <tr>
      <td height=19>
        <table border="0" cellpadding="0" cellspacing="0" width="610" height="19">
          <tr>
            
          <td width=18 height=20><img border="0" src="<%=imgpath%>images/j6.gif" width="18" height="19"></td>
            
          <td background="<%=imgpath%>images/j7.gif" width=100% height=20></td>
            
          <td width="19" height="20"><img border="0" src="<%=imgpath%>images/j8.gif"></td>
          </tr>
		  <tr>
          <td width="100%" height=20 colspan="3"><center>-----<a href="http://office.11k.net/" target=_blank><font color="red">Red office v1.5</font></a>-----</center></td>
		  </tr>
        </table>
      </td>
    </tr>
  </table>
<%
%>
</body>
</html>










⌨️ 快捷键说明

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