📄 inputhelpinf.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"-->
<!--#include file="asp/keepformat.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">
<link rel="stylesheet" href="css/css.css">
<script language="javascript1.2" src="js/openwin.js"></script>
<title>企业办公自动化IE37-OA系统</title>
</head>
<body bgcolor="#ffffff" topmargin="5" leftmargin="5">
<center>
<table align="center">
<tr>
<td><b>输入帮助信息</b></td>
</tr>
</table>
</center>
<%
%>
<%
if request("submit")="输入" then
set conn=opendb("oabusy","conn","accessdsn")
sql = "Insert Into helpinf (helpsort,helptitle,helpcontent) Values( "
sql = sql & SqlStr(request("helpsort")) & ", "
sql = sql & SqlStr(request("helptitle")) & ", "
sql = sql & SqlStr(request("helpcontent")) & ")"
conn.Execute sql
%>
<center><br><font color=red>成功输入帮助信息!</font>
<%
end if
%>
<script Language="JavaScript">
function form_check(){
var l1=document.form1.helptitle.value.length;
if(l1<1){window.alert("标题必须填写");document.form1.helptitle.focus();return (false);}
var l2=document.form1.helpcontent.value.length;
if(l2<1){window.alert("内容必须填写");document.form1.helpcontent.focus();return (false);}
}
</script>
<center>
<br>
<form method="post" action="inputhelpinf.asp" name="form1" onsubmit="return form_check();">
<table border="1" cellspacing="0" cellpadding="5" bordercolorlight="#808080" bordercolordark="#D4D0C8" width="80%">
<tr>
<td width="259" align="right">帮助标题:</td><td width="471"><input type="text" name="helptitle" size=50><font color=red>*</font></td>
</tr>
<tr>
<td width="259" align="right">帮助类别:</td><td width="471">
<select name="helpsort" size=1>
<%
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
%>
<option value="<%=rs("helpsort")%>"><%=keepformat(rs("helpsort"))%></option>
<%
rs.movenext
wend
%>
</select><font color=red>*</font> (如果要增加或修改帮助类别,请<a href="edithelpsort.asp">由此进入</a>)
</td>
</tr>
<tr>
<td width="259" align="right">帮助内容:</td><td width="471"><textarea rows="9" name="helpcontent" cols="49"></textarea><font color=red>*</font></td>
</tr>
</table>
<font color=red>*</font>项必须填写 <input type="submit" name="submit" value="输入">
</form>
</center>
<%
%>
<table align="center">
<tr>
<td height=19>
<table border="0" cellpadding="0" cellspacing="0" width="610" height="19">
<tr>
<td width="100%" height=20><p align="center"><font color="#808080">IE37 © <a href="http://www.ie37.com" target="_blank">IE37.com</a></font></td>
</tr>
</table>
</td>
</tr>
<%
%>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -