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.

122 lines
4.1 KiB

5 months ago
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
<head>
<title><3E><>ֵ<EFBFBD><D6B5>Ϣ</title>
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<script type="text/javascript" src="js/popup.js"></script>
</head>
<%
String id="";
%>
<script language="javascript">
function gow()
{
document.location.href="chongzhixinxi_add.jsp?id=<%=id%>&yonghuming="+document.form1.yonghuming.value;
}
function hsgxia2shxurxu(nstr,nwbk)
{
if (eval("form1."+nwbk).value.indexOf(nstr)>=0)
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value.replace(nstr+"<22><>", "");
}
else
{
eval("form1."+nwbk).value=eval("form1."+nwbk).value+nstr+"<22><>";
}
}
</script>
<%
HashMap ext = new HashMap();
if(request.getParameter("f")!=null){
String sql="update yonghuzhuce set yue=yue+"+request.getParameter("chongzhijine")+" where yonghuming='"+request.getParameter("yonghuming")+"'";
new CommDAO().commOper(sql);
new CommDAO().insert(request,response,"chongzhixinxi",ext,true,false,"");
}
%>
<body >
<form action="chongzhixinxi_add.jsp?f=f&id=<%=id%>" method="post" name="form1" onsubmit="return checkform();">
<20><><EFBFBD>ӳ<EFBFBD>ֵ<EFBFBD><D6B5>Ϣ:
<br><br>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#cccccc" >
<tr><td><3E>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD></td><td><%=Info.getselectsl("yonghuming","yonghuzhuce","yonghuming")%>&nbsp;*<label id='clabelyonghuming' /></td></tr>
<tr><td width="200"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td><td><input name='xingming' type='text' id='xingming' class="form-control" >&nbsp;*<label id='clabelxingming' /></td></tr>
<tr><td width="200"><3E><><EFBFBD>ڣ<EFBFBD></td><td><input name='riqi' type='text' id='riqi' value='' onblur='' class="form-control" /></td></tr>
<tr><td width="200"><3E><>ֵ<EFBFBD><D6B5><EFBFBD></td><td><input name='chongzhijine' type='text' id='chongzhijine' value='' onblur='checkform()' class="form-control" />&nbsp;<label id='clabelchongzhijine' /><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td></tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="<22>ύ" class="btn btn-info btn-small" />
<input type="reset" name="Submit2" value="<22><><EFBFBD><EFBFBD>" class="btn btn-info btn-small" /></td>
</tr>
</table>
</form>
</body>
</html>
<%
if(request.getParameter("yonghuming")==null || request.getParameter("yonghuming").equals("")){}else{
HashMap mmm = new CommDAO().getmaps("yonghuming",request.getParameter("yonghuming"),"yonghuzhuce");
%>
<script language="javascript">
document.form1.yonghuming.value="<%=mmm.get("yonghuming")%>";
document.form1.xingming.value="<%=mmm.get("xingming")%>";
//suilafuzhi
</script>
<%
}
%>
<script language=javascript src='js/ajax.js'></script>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.HashMap"%>
<script language=javascript >
function checkform(){
var yonghumingobj = document.getElementById("yonghuming"); if(yonghumingobj.value==""){document.getElementById("clabelyonghuming").innerHTML="&nbsp;&nbsp;<font color=red><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD></font>";return false;}else{document.getElementById("clabelyonghuming").innerHTML=" "; }
var xingmingobj = document.getElementById("xingming"); if(xingmingobj.value==""){document.getElementById("clabelxingming").innerHTML="&nbsp;&nbsp;<font color=red><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></font>";return false;}else{document.getElementById("clabelxingming").innerHTML=" "; }
var chongzhijineobj = document.getElementById("chongzhijine"); if(chongzhijineobj.value!=""){ if(/^[0-9]+.?[0-9]*$/.test(chongzhijineobj.value)){document.getElementById("clabelchongzhijine").innerHTML=""; }else{document.getElementById("clabelchongzhijine").innerHTML="&nbsp;&nbsp;<font color=red><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></font>"; return false;}}
return true;
}
popheight=450;
</script>
<script src="images/hsgcommon/jq.js"></script>
<script src="images/hsgcommon/common.js"></script>
<script src="images/hsgcommon/bootbox.js"></script>