bumen.asp
上传用户:xhjd888
上传日期:2022-07-20
资源大小:203k
文件大小:12k
源码类别:

.net编程

开发平台:

Visual Basic

  1. <!--#include file="../login_check.asp"-->
  2. <!--#include file="../add/ocdb/ocdb.asp"-->
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  4. <HTML><HEAD><TITLE>IT固定资产登记管理系统</TITLE>
  5. <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
  6. href="bumen_files/main.css" type=text/css rel=stylesheet>
  7. <SCRIPT language=javascript src="bumen_files/selectcity.js"></SCRIPT>
  8. <SCRIPT language=JavaScript src="bumen_files/validate.js" 
  9. type=text/JavaScript></SCRIPT>
  10. <SCRIPT language=JavaScript src=""></SCRIPT>
  11. <SCRIPT language=javascript src="bumen_files/init.js"></SCRIPT>
  12. <STYLE type=text/css>TD {
  13. FONT-SIZE: 9pt; FONT-FAMILY: "宋体"
  14. }
  15. BODY {
  16. FONT-SIZE: 9pt; FONT-FAMILY: "宋体"
  17. }
  18. SELECT {
  19. FONT-SIZE: 9pt; FONT-FAMILY: "宋体"
  20. }
  21. A {
  22. FONT-SIZE: 9pt; COLOR: #336699; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
  23. }
  24. A:hover {
  25. FONT-SIZE: 9pt; COLOR: #ff0000; FONT-FAMILY: "宋体"; TEXT-DECORATION: underline
  26. }
  27. </STYLE>
  28. <SCRIPT language=javascript>
  29. <!--
  30. function Juge(myform)
  31. {
  32. if (myform.Supplier_name.value == "")
  33. {
  34. alert("名称不能为空!");
  35. myform.Supplier_name.focus();
  36. return (false);
  37. }
  38. }
  39. function SelectAll1() {
  40. for (var i=0;i<document.selform1.selBigClass1.length;i++) {
  41. var e=document.selform1.selBigClass1[i];
  42. e.checked=!e.checked;
  43. }
  44. }
  45. function SelectAll2() {
  46. for (var i=0;i<document.selform2.selBigClass2.length;i++) {
  47. var e=document.selform2.selBigClass2[i];
  48. e.checked=!e.checked;
  49. }
  50. }
  51. //-->
  52. </SCRIPT>
  53. <META content="MSHTML 6.00.6000.17023" name=GENERATOR></HEAD>
  54. <BODY leftMargin=0 topMargin=0 rightMargin=0><LINK href="bumen_files/style.css" 
  55. type=text/css rel=stylesheet>
  56. <STYLE type=text/css>BODY {
  57. MARGIN-BOTTOM: 0px; MARGIN-RIGHT: 0px
  58. }
  59. #sj {
  60. Z-INDEX: 1; LEFT: 646px; WIDTH: 55px; POSITION: absolute; TOP: -5px; HEIGHT: 20px
  61. }
  62. #sj1 {
  63. Z-INDEX: 2; LEFT: 620px; VISIBILITY: hidden; WIDTH: 150px; POSITION: absolute; TOP: 0px; HEIGHT: 20px; BACKGROUND-COLOR: #cccccc
  64. }
  65. #jichu {
  66. Z-INDEX: 3; WIDTH: 1px; POSITION: absolute; HEIGHT: 2px
  67. }
  68. #menu {
  69. Z-INDEX: 3; LEFT: 3px; WIDTH: 700px; POSITION: absolute; TOP: -20px; HEIGHT: 20px; BACKGROUND-COLOR: #cccccc
  70. }
  71. .STYLE2 {
  72. COLOR: #0066cc
  73. }
  74. #man1 {
  75. Z-INDEX: 4; LEFT: 260px; VISIBILITY: hidden; WIDTH: 198px; POSITION: absolute; TOP: 0px; HEIGHT: 20px; BACKGROUND-COLOR: #cccccc
  76. }
  77. </STYLE>
  78. <SCRIPT type=text/JavaScript>
  79. <!--
  80. function MM_findObj(n, d) { //v4.01
  81.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  82.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  83.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  84.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  85.   if(!x && d.getElementById) x=d.getElementById(n); return x;
  86. }
  87. function MM_showHideLayers() { //v6.0
  88.   var i,p,v,obj,args=MM_showHideLayers.arguments;
  89.   for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
  90.     if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
  91.     obj.visibility=v; }
  92. }
  93. //-->
  94. </SCRIPT>
  95. <TABLE width="100%">
  96.   <TBODY>
  97.   <TR>   
  98.     <TD align=middle width="40%"><FONT 
  99.       color=#ff0000>admin&nbsp;admin</FONT>&nbsp;您的权限为: 超级管理员&nbsp;登陆:62 次 </TD>
  100.     <TD align=middle width="40%">
  101.       <SCRIPT language=JavaScript src="bumen_files/date.js">
  102.               </SCRIPT>
  103.       <SCRIPT language=JavaScript src="bumen_files/time.js">
  104.               </SCRIPT>
  105.       <SCRIPT language=JavaScript src="bumen_files/init.js">
  106.               </SCRIPT>
  107.       <SPAN id=thename style="FONT-SIZE: 10pt; COLOR: navy" name="thename" 
  108.       align="center">dafdsfasd</SPAN>
  109.       <SCRIPT language=javascript>
  110.   showtime(); 
  111. </SCRIPT>
  112.        </TD>
  113.     <TD align=middle width="20%"><A 
  114.       href="http://edun.com.cn/user_edit.asp">修改个人资料</A> &nbsp;<A href="../logout.asp" target="_parent">注销登陆</A> </TD></TR>
  115.   <TR>
  116.     <TD align=middle colSpan=3>
  117.       <FIELDSET style="WIDTH: 96%">
  118.       <TABLE width="100%" align=center border=0>
  119.         <TBODY>
  120.         <TR>
  121.           <TD width="100%" colSpan=9 height=50>
  122.             <DIV id=jichu>
  123.             <DIV id=menu>
  124.             <TABLE id=tb_menu width="100%" border=0>
  125.               <TBODY>
  126.               <TR>
  127.                 <TD width="9%"><A href="http://edun.com.cn/it.asp">设备登记</A> 
  128. </TD>
  129.                 <TD width="9%"><A 
  130.                 href="http://edun.com.cn/list.asp">所有设备</A></TD>
  131.                 <TD width="9%"><A 
  132.                 href="http://edun.com.cn/bumen.asp">部门设定</A></TD>
  133.                 <TD width="9%"><A 
  134.                 href="http://edun.com.cn/sbbh.asp">设备编码</A></TD>
  135.                 <TD onMouseUp="MM_showHideLayers('man1','','hide')" 
  136.                 onmouseover="MM_showHideLayers('man1','','show')" 
  137.                   width="9%"><A href="http://edun.com.cn/bumen.asp#">责任人</A></TD>
  138.                 <TD width="9%"><A 
  139.                   href="http://edun.com.cn/sbmc.asp">设备类别</A><A 
  140.                   href="http://edun.com.cn/man.asp"></A></TD>
  141.                 <TD width="9%"><A href="http://edun.com.cn/unit.asp" 
  142.                   target=main>计量单位</A></TD>
  143.                 <TD width="9%"><A 
  144.                   href="http://edun.com.cn/xianshiqi.asp">显示器</A></TD>
  145.                 <TD width="9%"><A href="http://edun.com.cn/bjb.asp">笔记本</A></TD>
  146.                 <TD width="9%"><A 
  147.                   href="http://edun.com.cn/soft_kind.asp">程序种类</A></TD>
  148.                 <TD onMouseUp="MM_showHideLayers('sj1','','hide')" 
  149.                 onmouseover="MM_showHideLayers('sj1','','show')" width="9%"><A 
  150.                   href="http://edun.com.cn/bumen.asp#">所有事件</A> 
  151.             </TD></TR></TBODY></TABLE></DIV>
  152.             <DIV id=sj1>
  153.             <TABLE width="100%" border=0>
  154.               <TBODY>
  155.               <TR>
  156.                 <TD width="50%"><A 
  157.                 href="http://edun.com.cn/sj2.asp">按部门排序</A></TD>
  158.                 <TD width="45%"><A 
  159.                 href="http://edun.com.cn/sj.asp">按日期排序</A></TD></TR></TBODY></TABLE></DIV>
  160.             <DIV id=man1>
  161.             <TABLE width="100%" border=0>
  162.               <TBODY>
  163.               <TR>
  164.                 <TD><A href="http://edun.com.cn/man.asp">按ID排序</A> <A 
  165.                   href="http://edun.com.cn/man1.asp">按部门排序</A> <A 
  166.                   href="http://edun.com.cn/man2.asp">按姓名排序</A></TD></TR></TBODY></TABLE></DIV></DIV></TD></TR></TBODY></TABLE></FIELDSET> 
  167.     </TD></TR></TBODY></TABLE>
  168. <TABLE borderColor=#d6d3ce cellSpacing=0 width="98%" align=center border=1>
  169.   <TBODY>
  170.   <TR>
  171.     <TD vAlign=top align=middle>
  172.       <FIELDSET style="WIDTH: 98%"><LEGEND>添加部门列表</LEGEND>
  173.       <TABLE borderColor=#d4d0c8 cellSpacing=0 cellPadding=0 width="70%" 
  174.       border=0>
  175.         <TBODY>
  176.         <TR class=but>
  177.           <TD onMouseUp="this.className='but'" class=but 
  178.           onmousedown="this.className='tddown'" 
  179.           onmouseout="this.className='but'" align=middle width="10%" colSpan=3 
  180.           height=18>部门</TD></TR>
  181.         <TR>
  182.           <FORM name=bm2 onSubmit="return Juge(this)" action=bumen_add.asp 
  183.           method=post>
  184.           <TD align=middle width="30%" height=18>所属部门 <SELECT id=lanmu size=1 
  185.             name=lanmu>
  186. <option<%if request("submenu")="" then%> selected<%end if%> value="">请选择部门</option>
  187.   <%
  188. xiayou="├"
  189. you="└"
  190. xia="│"
  191. 'set rs1=conn.execute("select top 1 * from class order by cwar")
  192. 'maxjibie=rs1("cwar")
  193. sql2="select * from class order by csub,lmcd"
  194. set rs2=server.CreateObject("adodb.recordset")
  195. rs2.open sql2,conn,1,3
  196. while not rs2.eof
  197. if rs2("cwar")=0 then
  198. jibie=""
  199. else
  200. jibie=you
  201. for i=1 to rs2("cwar")-1
  202. jibie=xia&jibie
  203. next
  204. end if
  205. %>
  206. <option<%if rs2("cwar")=0 then%> style="color:#FF0000"<%end if%> value="<%=rs2("id")%>"<%if int(request("submenu"))=int(rs2("id")) then%> selected<%end if%>><%=jibie%><%=rs2("cname")%></option>
  207. <%
  208. rs2.movenext
  209. wend
  210. %></SELECT></TD>
  211.           <TD align=middle width="25%"><INPUT type=hidden value=add 
  212.             name=action> <INPUT size=10 name=cname id=cname> </TD>
  213.           <TD align=middle width="10%"><INPUT class=button type=submit value=添加></TD></FORM></TR></TBODY></TABLE></FIELDSET> 
  214.       <TABLE cellSpacing=1 cellPadding=0 width="100%" border=0>
  215.         <TBODY>
  216.         <TR>
  217.           <TD align=middle height=25>部 门 列 表</TD></TR></TBODY></TABLE>
  218.       <TABLE borderColor=#d4d0c8 cellSpacing=0 cellPadding=0 width="70%" 
  219.       align=center border=1>
  220.         <TBODY>
  221.         <TR>
  222.           <TD vAlign=top width="50%">
  223.             <FORM name=selform1 action=bumen.asp method=post>
  224.             <TABLE borderColor=#d4d0c8 cellSpacing=0 cellPadding=0 width="100%" 
  225.             border=0>
  226.               <TBODY>
  227.               <TR class=but>
  228.                 <TD onMouseUp="this.className='but'" class=but 
  229.                 onmousedown="this.className='tddown'" 
  230.                 onmouseout="this.className='but'" align=middle width="10%" 
  231.                 colSpan=2 height=18>所有部门</TD>
  232.                 <TD onMouseUp="this.className='but'" class=but 
  233.                 onmousedown="this.className='tddown'" 
  234.                 onmouseout="this.className='but'" align=middle width="5%" 
  235.                 height=18>操 作</TD></TR>
  236. <% 
  237. rs2.MoveFirst
  238. while not rs2.eof
  239. if rs2("cwar")=0 then
  240. jibie=""
  241. else
  242. jibie=you
  243. for i=1 to rs2("cwar")-1
  244. jibie=xia&jibie
  245. next
  246. end if
  247. %>
  248.               <TR>
  249.                 <TD onMouseUp="this.className='but'" class=but 
  250.                 onmousedown="this.className='tddown'" 
  251.                 onmouseout="this.className='but'" width="60%" colSpan=2 
  252.                 height=18><A 
  253.                   href="http://edun.com.cn/bumen.asp?id=3&amp;pid=1&amp;action=edit"><%=jibie%><%=rs2("cname")%></A></TD>
  254.                 <TD onMouseUp="this.className='but'" class=but 
  255.                 onmousedown="this.className='tddown'" 
  256.                 onmouseout="this.className='but'" align=middle 
  257.                   height=18><INPUT id=selBigClass1 type=checkbox value=3 
  258.                   name=selBigClass1></TD></TR>
  259. <%
  260. rs2.movenext
  261. wend
  262. rs2.close
  263. set rs2=nothing %>
  264.               <TR>
  265.                 <TD align=right colSpan=2 height=22><INPUT id=checkbox1 
  266.                   onclick=javascript:SelectAll1() type=checkbox value=checkbox 
  267.                   name=checkbox1> 选择/反选 <INPUT onClick="{if(confirm('此操作将删除该信息!nn确定要执行此项操作吗?')){this.document.selform1.submit();return true;}return false;}" type=submit value=删除 name=action2> 
  268.                   <INPUT type=hidden value=del1 
  269.             name=action></TD></TR></TBODY></TABLE></FORM></TD></TR></TBODY></TABLE></TD></TR>
  270.   <TR>
  271.     <TD align=middle colSpan=3 
  272. height=50></TD></TR></TBODY></TABLE></FORM></TR></TABLE>
  273. <TABLE cellSpacing=0 cellPadding=4 width="100%" border=0>
  274.   <TBODY></TBODY></TABLE></TBODY></TABLE>
  275. <P>
  276. <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  277.   <TBODY>
  278.   <TR vAlign=center>
  279.     <TD align=middle width="100%">
  280.       <STYLE type=text/css>TD {
  281. FONT-SIZE: 9pt; FONT-FAMILY: "宋体"
  282. }
  283. BODY {
  284. FONT-SIZE: 9pt; FONT-FAMILY: "宋体"
  285. }
  286. SELECT {
  287. FONT-SIZE: 9pt; FONT-FAMILY: "宋体"
  288. }
  289. A {
  290. FONT-SIZE: 9pt; COLOR: #336699; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
  291. }
  292. A:hover {
  293. FONT-SIZE: 9pt; COLOR: #ff0000; FONT-FAMILY: "宋体"; TEXT-DECORATION: underline
  294. }
  295. </STYLE>
  296.       <HR width="90%" SIZE=1>
  297.       <P style="LINE-HEIGHT: 100%" align=center><FONT 
  298.       color=#666666>声明:本系统版权为<B>爱登堡电梯</B>所有,您只有使用权!无权发布、出售!<BR>技术支持QQ 273504456 
  299.       EMAIL:PXL@Edun.com.cn<BR>最佳浏览1024*768,IE5.0以上 
  300. </FONT></P></TD></TR></TBODY></TABLE></P></BODY></HTML>