📄 callcount.jsp
字号:
var xmlHttp = new XMLHttpClient("<%= request.getContextPath()%>/XmlHttpService");
xmlHttp.append("BOARDCODE",boardCode);
var str = xmlHttp.submitAsString("BBSClientService","getChildBoardList");
//alert(str);
var affairType = document.getElementById("SUBTYPE");
if ( str.substr(0,6) == new String("str-->") ) {
var xmlDoc = new ActiveXObject("Msxml.DOMDocument");
xmlDoc.loadXML(str.substr(6));
if (xmlDoc.parseError.errorCode != 0) {
var myErr = xmlDoc.parseError;
throw myErr;
} else {
while ( affairType.options.length > 1 ) {
affairType.options.remove(1);
}
var root = xmlDoc.documentElement;
var oList = root.childNodes;
for ( var i=0; i<oList.length; i++ ) {
var valueNode = oList.item(i).selectSingleNode("name");
var textNode = oList.item(i).selectSingleNode("value");
//alert(valueNode.text);
//alert(textNode.text);
if ( valueNode != null && textNode != null ) {
var oOption = document.createElement("OPTION");
oOption.text=textNode.text;
oOption.value=valueNode.text;
if ( selCode != null && selCode == valueNode.text ) {
oOption.selected = true;
}
affairType.add(oOption);
}
}
}
}
else {
alert("设置失败。");
}
}
catch(ex) {
alert(ex.description);
return false;
}
return true;
}
function fn_CityChange() {
var src = event.srcElement;
if ( src.selectedIndex > 0 )
return fn_loadAffairType();
else {
var affairType = document.getElementById("AFFAIRTYPE");
while ( affairType.options.length > 1 ) {
affairType.options.remove(1);
}
// 清除子类的内容。
var childType = document.getElementById("SUBTYPE");
while ( childType.options.length > 1 ) {
childType.options.remove(1);
}
}
}
function fn_AffairTypeChange() {
var src = event.srcElement;
if ( src.selectedIndex > 0 )
return fn_loadChildType();
else {
// 清除子类的内容。
var childType = document.getElementById("SUBTYPE");
while ( childType.options.length > 1 ) {
childType.options.remove(1);
}
}
}
function fn_onsubmit(){
document.all.CITY.disabled = false;
}
</script>
</head>
<body style="margin: 0px;" onLoad="fn_onload();show();">
<div onresize="cltScript_Toolbar();" style="width: 100%">
<div id="divTop" style="overflow: hidden">
<table id="ibtnPanel" style="font-size: 9pt; border-bottom: #efefef 1px outset" cellspacing="0"
cellpadding="0" width="100%" border="0">
<tr bgcolor="#efefef" height="33">
<td valign="middle" align="center" width="91"
onclick="javascript:fn_onsubmit();form1.submit();"
id="ibtnExport"
style="behavior:url(../../common/button.htc)"
DefaultClass="btnDefault"
OverClass="btnOver"
DownClass="btnDown"
title="按不同的条件进行统计">统计</td>
<td> </td>
</tr>
</table>
<jsp:include page="../../common/inc_top.jsp" >
<jsp:param name="purvCode" value="<%=sPurvICode%>"/>
</jsp:include>
<form id="form1" name="form1" method="post" action="callcount.jsp" onSubmit="fn_onsubmit();">
<table width="1004">
<tr class="Caption_Td" width="359">
<td width="202" class="Caption_Td">地市:
<select id="CITY" name="CITY" onChange="fn_CityChange();" style="width: 65px;" <%= isDisabled?"disabled":""%>><option value="0590">福建省</option><%= sCITY_S_T%></select></td>
<td width="196" class="Caption_Td">业务类别:
<select id="AFFAIRTYPE" name="AFFAIRTYPE" <%if(auth.getCityCode().equals("0592")){out.print("onchange=\"showtype();\"");}%> <%if(auth.getCityCode().equals("0595")){out.print("onchange=\"fn_AffairTypeChange();\"");}%> style="width: 100px;"><option value="-1">--全部--</option></select></td>
<td width="170" class="Caption_Td">子类:
<select id="SUBTYPE" name="SUBTYPE" style="width: 100px;"><option value="-1">--全部--</option></select></td>
<td width="400" class="Caption_Td"><label for="SEARCH" title="标题或内容的模糊查询">标题/内容:</label><input type="text" title="标题或内容的模糊查询" id="SEARCH" name="SEARCH" size="20" value="<%= sText==null?"":sText%>"/><td width="12" class="Caption_Td"></td>
</tr>
<tr class="Caption_Td" width="359">
<td class="Caption_Td">
客户权限<select name="popedom">
<option value="">-全部-</option>
<option value="0" <%if(popedom.equals("0")) out.print("selected");%>>游客</option>
<option value="U" <%if(popedom.equals("U")) out.print("selected");%>>注册帐号</option>
<option value="P" <%if(popedom.equals("P")) out.print("selected");%>>产品登录客户</option>
<option value="E" <%if(popedom.equals("E")) out.print("selected");%>>内部员工</option>
<option value="B" <%if(popedom.equals("B")) out.print("selected");%>>大客户</option>
<option value="UP" <%if(popedom.equals("UP")) out.print("selected");%>>关联的产品登录客户</option>
</select></td>
<td class="Caption_Td" colspan="3">
时间
<select name="time_style" onChange="change()">
<option value=" " >-请选择-</option>
<option value="1" <%if(time_style.equals("1")) out.print("selected");%>>年</option>
<option value="2" <%if(time_style.equals("2")) out.print("selected");%>>季度</option>
<option value="3" <%if(time_style.equals("3")) out.print("selected");%>>月</option>
<option value="4" <%if(time_style.equals("4")) out.print("selected");%>>旬</option>
<!--<option value="5" <%if(time_style.equals("5")) out.print("selected");%>>日</option>-->
<option value="6" <%if(time_style.equals("6")) out.print("selected");%>>日</option>
</select>
</td>
</tr>
</table>
<div id="succ_one" style="display:none">
<table width="1007">
<tr>
<td class="Caption_Td">
<select name="year1">
<option value="">-请选择-</option>
<%
java.util.Date date = new java.util.Date();
java.util.Calendar calender = new java.util.GregorianCalendar();
calender.setTime(date);
int mmcalender=calender.get(Calendar.MONTH)+1;
for(int t=0;t<10;t++){
int yy=calender.get(Calendar.YEAR)-t;
%>
<option value="<%=yy%>"><%=yy%></option>
<%}%>
</select>年
</td>
</tr>
</table>
</div>
<div id="succ_two" style="display:none">
<table width="1004">
<tr>
<td class="Caption_Td" width="98">
<select name="year2" >
<option value="">-请选择-</option>
<%
java.util.Date _date = new java.util.Date();
java.util.Calendar _calender = new java.util.GregorianCalendar();
calender.setTime(_date);
int _mmcalender=_calender.get(Calendar.MONTH)+1;
for(int t=0;t<10;t++){
int yy=calender.get(Calendar.YEAR)-t;
%>
<option value="<%=yy%>" ><%=yy%></option>
<%}%>
</select>年
</td>
<td class="Caption_Td">第
<select name="quarter">
<option value="">-请选择-</option>
<option value="1">一</option>
<option value="2">二</option>
<option value="3">三</option>
<option value="4">四</option>
</select>季度
</td>
</tr>
</table>
</div>
<div id="succ_three" style="display:none">
<table width="1005">
<tr>
<td class="Caption_Td" width="98">
<select name="year3" >
<option value="">-请选择-</option>
<%
java.util.Date date3 = new java.util.Date();
java.util.Calendar calender3 = new java.util.GregorianCalendar();
calender.setTime(date3);
int mmcalender3=calender3.get(Calendar.MONTH)+1;
for(int t=0;t<10;t++){
int yy=calender3.get(Calendar.YEAR)-t;
%>
<option value="<%=yy%>" ><%=yy%></option>
<%}%>
</select>年
</td>
<td class="Caption_Td">
<select name="month1">
<option value="">-请选择-</option>
<%
calender3.setTime(date3);
for(int t=1;t<13;t++){
int mmend=t;%>
<option value="<%=mmend%>"><%=mmend%></option>
<%
}
%>
</select>月
</td>
</tr>
</table>
</div>
<div id="succ_four" style="display:none">
<table width="1004">
<tr>
<td class="Caption_Td" width="99">
<select name="year4" >
<option value="">-请选择-</option>
<%
java.util.Date date4 = new java.util.Date();
java.util.Calendar calender4 = new java.util.GregorianCalendar();
calender.setTime(date4);
int mmcalender4=calender4.get(Calendar.MONTH)+1;
for(int t=0;t<10;t++){
int yy=calender4.get(Calendar.YEAR)-t;
%>
<option value="<%=yy%>" ><%=yy%></option>
<%}%>
</select>年
</td>
<td class="Caption_Td" width="109">
<select name="month2">
<option value="">-请选择-</option>
<%
calender3.setTime(date3);
for(int t=1;t<13;t++){
int mmend=t;%>
<option value="<%=mmend%>"><%=mmend%></option>
<%
}
%>
</select>月
</td>
<td class="Caption_Td">
<select name="xun">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -