You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhky/web/zhyw/wxs/addIndenture.jsp

185 lines
5.8 KiB

<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<html>
<head>
<title>维修单位管理</title>
<link href="../../css/font.css" rel="stylesheet" type="text/css">
<script src="../../js/date.js"></script>
<script src="../../js/check.js"></script>
<script>
function check(operate) {
form1.operate.value = operate;
if(form1.operate.value="addIndenture"){
if (form1.indentureId.value == "") {
alert("请输入维修单位编号!");
form1.indentureId.focus();
return false;
}
if (form1.indentureName.value == "") {
alert("请输入维修单位名称!");
form1.indentureName.focus();
return false;
}
if (form1.indentureAddress.value == "") {
alert("请输入维修单位地址!");
form1.indentureAddress.focus();
return false;
}
if(form1.indenturePhone.value=="")
{
alert("请输入维修单位座机号码");
form1.indenturePhone.focus();
return false;
}
if(form1.indentureMobile.value=="")
{
alert("请输入维修单位手机号码");
form1.indentureMobile.focus();
return false;
}
}
form1.button1.disabled=true;
//form1.button2.disabled=true;
form1.submit();
}
function checklength(el,size){
if(el.value.length > size){
alert("字数超过限制");
}
el.value = el.value.substring(0,size);
}
</script>
<style type="text/css">
.aselect
{
width:155px;
}
</style>
<style type="text/css">
.td1{
width: 30%;
}
table#csstable{
border-top:#D8E9FE 1px solid;
border-left:#D8E9FE 1px solid;
}
table#csstable td{
border-bottom:#D8E9FE 1px solid;
border-right:#D8E9FE 1px solid;
}
table#csstable #bottomcss td{
border-bottom:#D8E9FE 0px solid;
}
</style>
</head>
<body onload="setValue();">
<form name="form1" method="post" action="/servlet/IndentureManage">
<input type="hidden" name="operate" value=""/>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="box">
<tr>
<td valign="top"><table width="100%" height="23" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25%" background="/images/tab_search_01.jpg"><table width="100%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="6%" align="right"><img src="/images/little_red.jpg" width="12" height="12"></td>
<td width="94%" class="font12b">&nbsp;<b>维修单位管理</b></td>
</tr>
</table></td>
<td width="82%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
<tr bgcolor="#FFFFFF">
<td class="cell1" style="line-height: 35px;" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')">维修单位编号</td>
<td class="cell2">
<input type="text" name="indentureId" onblur="checkNumber()" maxlength="10" onKeyUp="value=value.replace(/[^\d|]/g,'')"/>
</td>
<td class="cell1">维修单位名称</td>
<td class="cell2">
<input type="text" name="indentureName" maxlength="20" onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"/>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1" style="line-height: 35px;">维修单位地址</td>
<td class="cell2">
<input type="text" name="indentureAddress" maxlength="20"/>
</td>
<td class="cell1">维修单位座机</td>
<td class="cell2">
<input type="text" name="indenturePhone" class="PhoneNoFormat" maxlength="7" onKeyUp="value=value.replace(/[^\d|]/g,'')"/>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1" style="line-height: 35px;">维修单位手机</td>
<td class="cell2">
<input type="text" name="indentureMobile" class="MobileNoFormat" maxlength="11" onKeyUp="value=value.replace(/[^\d|]/g,'')"/>
</td>
<td class="cell1">联系人姓名</td>
<td class="cell2">
<input type="text" name="indentureLinkman" maxlength="6" onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"/>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1" style="line-height: 35px;">联系人座机</td>
<td class="cell2">
<input type="text" name="linkmanPhone" class="PhoneNoFormat" maxlength="7" onKeyUp="value=value.replace(/[^\d|]/g,'')">
</td>
<td class="cell1">联系人手机</td>
<td class="cell2">
<input type="text" name="linkmanMobile" class="MobileNoFormat" maxlength="11" onKeyUp="value=value.replace(/[^\d|]/g,'')"/>
</td>
</tr>
<tr bgcolor="#FFFFFF" class="tr2">
<td class="cell1" style="line-height: 55px;">
备注:
</td>
<td class="cell2" colspan="3">
<textarea onblur="checklength(this,200)" maxlength="300" name="remark" id="remark" rows="5" cols="70"></textarea><font color="red">(注:限200字符内)</font>
</td>
</tr>
</table>
<table width="100%" align="center">
<tr align="center">
<td>
<input border="0" type="image" src="../../images1/tj.png" alt="提交" onclick="check('addIndenture');"/>&nbsp;
<a href="javascript:history.go(-1)"><img src="../../images1/fh.png" alt="返回" border="0" /></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<%@include file="/foot.jsp"%>
</body>
</html>
<script>
function selectArea(frameworkid) {
var url = "/servlet/SelectPara?select=area&frameworkid=" + frameworkid;
var callback = changeArea;
executeXhr(callback, url);
}
function changeArea() {
if (req.readyState == 4) {
if (req.status == 200) {
document.getElementById("areaDiv").innerHTML = "<select class='aselect' name='areaid'>" + req.responseText + "</select> <font color='#FF0000'>*</font>";
} else {
alert("There was a problem retrieving the XML data:" + req.statusText);
}
}
}
</script>
<script src="/js/ajaxUtils.js"></script>