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

📄 cmpadd.jsp

📁 实现银行系统中某个部门的计算机设备管理、公共信息管理、权限用户管理、系统设置等,为系统的安全正常运行提供保障
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ page errorPage="SysErrorPage.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'CmpAdd.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<LINK rel="stylesheet" href="img/css/style.css" type="text/css">
	
	<SCRIPT type="text/javascript" src="img/js/date.js"></SCRIPT>
	<SCRIPT language=JavaScript1.2>
		function submit1(){
     		document.myform.code.value="3";
     		document.myform.type.value="1";
     		if(isNull(document.myform.usetime,"领用日期不能为空!") && isNull(document.myform.buytime,"购买日期不能为空!") ){
     			document.myform.submit();
     		}
     	}
     	function returnlist()
     	{
     		document.myform.code.value="4";
     		document.myform.submit();
     	}
		function IfShow(ShowMsg) { 
			if (ShowMsg == "" ) {   
				return false; 
			} else {   
				return true; } 
		}

		function isNull(obj,ShowMsg) { 
			var show = IfShow(ShowMsg);   
			if(obj.value == ""){
				if (show) alert(ShowMsg);   
				obj.focus();   
				obj.select();     
				return false; 
			} else {   
				return true; 
			} 
		}
	</script>
	
  </head>
  <jsp:include flush="true" page="Top.jsp"></jsp:include>
  <%
  	ArrayList mylist=(ArrayList)request.getAttribute("mylist");
  	Iterator it=mylist.iterator();
   %>
  <body>
    <CENTER><span class="FormTitle">人行长治中支&nbsp;科技部&nbsp;&nbsp;添加计算机设备&nbsp;&nbsp;</span> <BR>
<FORM action="ProcessCmpAdd" name="myform" method="POST">
    <input type="hidden" name="code"> 
    <input type="hidden" name="type">
	<table class="midTable1" width="70%" align="center" border="0" cellpadding="2"
					cellspacing="0">
		<tr>
			<td align="center" nowrap class="midTable1td1">所属部门</td>
			<td width="60%" nowrap class="midTable1td2">
			<select name="depid" >
			    <%
			    	while(it.hasNext()){
			    		String str[]=(String[])it.next();%>
			    			<option value="<%=str[1] %>"><%=str[0] %></option>
			    	
			    	<%}
			     %>
			</select>
			</td>
		</tr>
		<tr>
			<td align="middle" nowrap class="midTable1td1">计算机编号</td>
			<td width="60%" nowrap class="midTable1td2"><input type="hidden" name="Number" maxlength="20">自动编码&nbsp;单位两位/部门两位/设备编号4位</td>
		</tr>
		<tr>
			<td align="center" nowrap class="midTable1td1">计算机品牌型号</td>
			<td width="60%" nowrap class="midTable1td2"><input type="text" name="computertype" maxlength="20">&nbsp;例如:联想天骄100</td>
		</tr>
		<tr>
			<td align="center" nowrap class="midTable1td1">CPU型号</td>
			<td width="60%" nowrap class="midTable1td2"><input type="text" name="cpu" maxlength="20">&nbsp;例如:C1200</td>
		</tr>
		<tr>
			<td align="center" nowrap class="midTable1td1">内存</td>
			<td width="60%" nowrap class="midTable1td2"><input type="text" name="memory" maxlength="20">&nbsp;例如:512M</td>
		</tr>
		<tr>
			<td align="center" nowrap class="midTable1td1">硬盘大小</td>
			<td width="60%" nowrap class="midTable1td2"><input type="text" name="harddisk"  maxlength="20">&nbsp;例如:60GB</td>
		</tr>
	
		<tr>
			<td align="center" nowrap class="midTable1td1">操作系统</td>
			<td width="60%" nowrap class="midTable1td2"><input type="text" name="os" maxlength="20">&nbsp;例如:WindowsXP</td>
		</tr>
		<tr>
			<td align="center" nowrap class="midTable1td1">IP地址</td>
			<td width="60%" nowrap class="midTable1td2"><input type="text" name="ipaddress" maxlength="20">&nbsp;例如:192.168.0.21</td>
		</tr>
		<tr>
			<td align="center" nowrap class="midTable1td1">MAC地址</td>
			<td width="60%" nowrap class="midTable1td2"><input type="text" name="macaddress" maxlength="20">&nbsp;例如:255.255.255.0</td>
		</tr>
		<tr>
			<td align="center" nowrap class="midTable1td1">使用人</td>
			<td width="60%" nowrap class="midTable1td2"><input type="text" name="username" maxlength="20">&nbsp;例如:张三</td>
		</tr>
		<tr>
			<td align="center" nowrap class="midTable1td1">机房号</td>
			<td width="60%" nowrap class="midTable1td2"><input type="text" name="houseid" maxlength="20">&nbsp;例如:1204房</td>
		</tr>
		<tr>
			<td align="center" nowrap class="midTable1td1">责任人</td>
			<td width="60%" nowrap class="midTable1td2"><input type="text" name="dutypeople" maxlength="20">&nbsp;例如:张三</td>
		</tr>
		<tr>
			<td align="center" nowrap class="midTable1td1">用途</td>
			<td width="60%" nowrap class="midTable1td2"><input type="text" name="use" maxlength="50">&nbsp;例如:文字处理</td>
		</tr>
		<tr>
			<td align="center" nowrap class="midTable1td1">购买时间</td>
			<td width="60%" nowrap class="midTable1td2"><input type="text" name="buytime" maxlength="20" onFocus="setday(this)">&nbsp;</td>
		</tr>
		<tr>
			<td align="center" nowrap class="midTable1td1">领用时间</td>
			<td width="60%" nowrap class="midTable1td2"><input type="text" name="usetime" maxlength="20" onFocus="setday(this)">&nbsp;</td>
		</tr>
		<tr>
			<td align="center" nowrap class="midTable1td1">设备类型</td>
			<td width="60%" nowrap class="midTable1td2">
			<select name="whichuse">
			    <option value="计算机">计算机</option>
				<option value="打印机">打印机</option>
				<option value="交换机">交换机</option>
				<option value="路由器">路由器</option>
				<option value="电源">电源</option>
				<option value="其他">其他</option>
			</select>&nbsp;</td>
		</tr>
		<tr>
			<td  align="center" nowrap class="midTable1td1" colspan=2><INPUT class="button" type="button" value="添加" onclick="submit1()">
			<INPUT class="button" type="button" value="关闭" onclick="returnlist()"></td>
		</tr>
	</table>
	</FORM>
  </body>
  <jsp:include flush="true" page="Bottoml.jsp"></jsp:include>
</html>

⌨️ 快捷键说明

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