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/smsj/QuestionStat.jsp

155 lines
4.6 KiB

<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page language="java" contentType="text/html;charset=gbk"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
String productcode = Common.convertNull(request.getParameter("productcode"));
String productstate = request.getParameter("productstate");
String producttype = Common.convertNull(request.getParameter("producttype"));
String operate = (String)request.getParameter("operate");
%>
<html>
<head>
<title>ÉÌÆ·¹ÜÀí</title>
<link rel="stylesheet" type="text/css" href="../css/font.css">
<script src="/js/check.js"></script>
<link rel="stylesheet" type="text/css" href="../js/2k3Grid.css">
<link rel="stylesheet" type="text/css" href="../js/2k3Menu.css">
<link rel="stylesheet" type="text/css" href="../js/2k3Dialog.css">
<style type="text/css">
select
{
width:155px;
}
</style>
<script>
function textToUpperCase(){
if(event.keyCode>=65 && event.keyCode<=99 || event.type=="change"){
event.srcElement.value = event.srcElement.value.toUpperCase();
}
}
function setValue() {
<%
if (!Common.isNull(productstate)) {
out.println("form1.productstate.value='" + productstate + "';");
}
if (!Common.isNull(operate)) {
out.println("form1.operate.value='" + operate + "';");
}
%>
}
function check(operate,productcode) {
form1.operate.value=operate;
if (operate == "addProduct") {
form1.action = "/gys/ProductEdit.jsp";
}
if (operate == "queryproductbyId") {
form1.action = "/servlet/ProductManage?operate=queryproductbyId&productcode=" + productcode;
}
if (operate == "updatestateById") {
form1.action = "/servlet/ProductManage?operate=updatestateById&productcode=" + productcode;
}
if (operate == "cancelProduct") {
var productcode = form1.productcode;
var count = 0;
if (productcode) {
if (productcode.length) {
for (var i=0; i<productcode.length; i++) {
if (productcode[i].checked==true) {
count++;
}
}
} else {
if (productcode.checked==true) {
count++;
}
}
} else {
alert("ûÓв鵽ÉÌÆ·£¡");
return false;
}
if (count==0) {
alert("ÇëÑ¡ÔñҪעÏúµÄÉÌÆ·£¡");
return false;
}
if (!confirm("È·¶¨Òª×¢ÏúÒѾ­Ñ¡ÔñµÄÉÌÆ·Âð£¿")) {
return false;
}
}
form1.button1.disabled=true;
//form1.button2.disabled=true;
//if (form1.button3) form1.button3.disabled=true;
form1.submit();
}
function selectChange(i)
{
form1.action = "/gys/ProductManage.jsp";
form1.submit();
}
</script>
</head>
<body onload="setValue();">
<table width="99%" 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="80%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="3%"><img src="../images/little_red.jpg" width="12" height="12"></td>
<td width="97%" class="font12b">&nbsp;¿¼ÊÔͳ¼Æ¹ÜÀí</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>
<form name="form1" method="post" action="/servlet/ProductManage">
<input type="hidden" name="operate" value=""/>
<table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
<tr bgcolor="#FFFFFF">
<td class="cell1">°´·ÖÊý²éѯ
<select class='aselect' name="productstate" id="productstate">
<option>---ÇëÑ¡Ôñ---</option>
<option>100</option>
<option>100 ~ 99</option>
<option>99 ~ 75</option>
<option>75 ~ 60</option>
<option>60·ÖÒÔÏÂ</option>
</select> <font color="#ff0000">*</font>
</td>
<td class="cell1">°´Í¨¹ýÂÊ
<select class='aselect' name="productstate" id="productstate">
<option>---ÇëÑ¡Ôñ---</option>
<option>100%</option>
<option>100% ~ 99%</option>
<option>90% ~ 75%</option>
<option>75% ~ 60%</option>
<option>60·ÖÒÔÏÂ</option>
</select>
</td>
<td class="cell1">°´µ¥Î»
<select class='aselect' name="producttype" id="producttype">
<%=Para.getProductState(getPara,"PRODUCTTYPE")%>
</select>
</td>
<td>
<input border="0" type="image" src="../../images1/cx.png" alt="²éѯ" onclick="check('null');"/>
</td>
</tr>
</table>
<br/><br/><br/><br/>
<div align="center"><img src="../images/client_level_chart.jpg" /></div>
<br>
</td>
</tr>
</table>
<br>
<%@include file="/foot.jsp"%>
</form>
</body>
</html>