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

📄 add_zhidu.asp

📁 网络办公系统源码
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../config.asp"-->
<!--#include file="../checklogin.asp"-->
<%
	if  ChkAdmin("oa_addzhidu")=False then
  		call message("您没有添加制度的权限","back")
   		call endexit()
	end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="../img/css1.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>
</head>

<body>
<%
 if act="" then
%>
<table width="99%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#F2F2F2" class="tabel1">
  
  <tr align="center">
    <td height="25" colspan="2" bgcolor="#CC0000"><span class="style1">发布制度</span></td>
    </tr>
  <tr bgcolor="#F9F9F9">
    <td width="13%" height="25" align="center">时 间</td>
    <td width="87%" height="25" align="left"><input name="addtime" type="text" class="tabel1" id="addtime" value="<%=date()%>" readonly="true"></td>
  </tr>

  <tr bgcolor="#F9F9F9">
    <td height="25" align="center">所属部门</td>
    <td height="25" align="left">
	<select name="departid" id="departid">
      <option value="0">所有部门</option>
	  <%
	  	sql="select * from oa_depart where companyid="&session("companyid")
		set rs=conn.execute(sql)
		do while not rs.eof
	  %>
      <option value="<%=rs("id")%>"><%=rs("departname")%></option>
	  <%
	  rs.movenext
	  loop
	  rs.close
	  set rs=nothing
	  %>
    </select>	</td>
  </tr>
  <tr bgcolor="#F9F9F9">
    <td height="25" align="center"> 标 题</td>
    <td height="25" align="left"><input name="title" type="text" class="tabel1" id="title" size="70">
      *</td>
    </tr>
  
  <tr bgcolor="#F9F9F9">
    <td height="25" align="center"> 内 容</td>
    <td height="25" align="left"><textarea name="content" cols="90" rows="20" class="tabel1" id="content">免费版不支持此功能,请购买正式版。
网址:http://www.hokilly.com
演示:http://www.hokilly.com/demo/hokilly_oa90/
咨询QQ:15916190
电话:13915064582</textarea></td>
    </tr>
  <tr bgcolor="#F9F9F9">
    <td height="25" colspan="2" align="center"><input name="Submit2" type="submit" class="bon" value="提交">
 
  <input name="Submit3" type="reset" class="bon" value="重置">
  <span class="style1"><font style="font-size:15px ">  
  <input name="Submit" type="button" class="bon" value="返回上页" onClick="window.history.go(-1)">
  </font></span></td>
  </tr></form>
</table>
<%
elseif act="edits" then
	if  ChkAdmin("oa_managezhidu")=False then
  		call message("您没有修改制度的权限","back")
   		call endexit()
	end if

	if did=0 then
		sqle="select * from oa_zhidu where id="&id
	else
		sqle="select a.*,b.departname,b.id from oa_zhidu as a inner join oa_depart as b on a.departid=b.id where a.id="&id
 	end if
		set rs=conn.execute(sqle)
		if not rs.eof then
			addtime1=trim(rs("addtime"))
			title1=trim(rs("title"))
			content1=trim(rs("content"))
			content1=fHTMLEncode(content1)
			departid=rs("departid")
			if did=0 then
			departname="所有部门"
			else
			departname=rs("departname")
			end if
		end if
rs.close
set rs=nothing
%>
<table width="99%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#F2F2F2" class="tabel1">
  <form name="form1" method="post" action="add_zhidu.asp?act=edit">
  <tr align="center">
    <td height="25" colspan="2" bgcolor="#CC0000"><span class="style1">修改制度</span></td>
    </tr>
  <tr bgcolor="#F9F9F9">
    <td width="13%" height="25" align="center">时 间</td>
    <td width="87%" height="25" align="left"><input name="addtime" type="text" class="tabel1" id="addtime" value="<%=addtime1%>"></td>
  </tr>

  <tr bgcolor="#F9F9F9">
    <td height="25" align="center">部 门</td>
    <td height="25" align="left"><select name="departid" id="departid">
	<option value="<%=departid%>" selected><%=departname%></option>
      <option value="0">所有部门</option>
      <%
	  	sql="select * from oa_depart where companyid="&session("companyid")
		set rs=conn.execute(sql)
		do while not rs.eof
	  %>
      <option value="<%=rs("id")%>"><%=rs("departname")%></option>
      <%
	  rs.movenext
	  loop
	  rs.close
	  set rs=nothing
	  %>
    </select></td>
  </tr>
  <tr bgcolor="#F9F9F9">
    <td height="25" align="center"> 标 题</td>
    <td height="25" align="left"><input name="title" type="text" class="tabel1" id="title" size="70" value="<%=title1%>">
      *</td>
    </tr>
  
  <tr bgcolor="#F9F9F9">
    <td height="25" align="center"> 内 容</td>
    <td height="25" align="left"><textarea name="content" cols="90" rows="20" class="tabel1" id="content"><%=content1%></textarea></td>
    </tr>
  <tr bgcolor="#F9F9F9">
    <td height="25" colspan="2" align="center"><input name="Submit2" type="submit" class="bon" value="提交">
 
  <input name="Submit3" type="reset" class="bon" value="重置">
  <span class="style1"><font style="font-size:15px ">  
  <input name="Submit" type="button" class="bon" value="返回上页" onClick="window.history.go(-1)">
  <input name="ids" type="hidden" id="ids" value="<%=id%>">
</font></span></td>
  </tr></form>
</table>
<%

end if
	set conn=nothing

%>
</body>
</html>

⌨️ 快捷键说明

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