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

📄 callcount.jsp

📁 电信的网厅的整站代码
💻 JSP
📖 第 1 页 / 共 3 页
字号:
                                                <option value="">-请选择-</option>
                                                <option value="1">上</option>
                                                <option value="2">中</option>
                                                <option value="3">下</option>
                                                </select>旬
     </td>
     </tr>
     </table>
     </div>
 
  <div id="succ_six"  style="display:none">
  <table width="1006">
  <tr>
  <td class="Caption_Td">
         开始时间<input type="text" name="StartTIME" id="StartTIME" size="16" /><span style="cursor:hand" onClick="return showCalendar('StartTIME', '%Y-%m-%d %H:%M', '24', true);">
         <img border="0" src="../calendar/date_botton.gif" width="20" height="14"></span>
  </td>
  <td class="Caption_Td" width="768">
        结束时间<input type="text" name="EndTIME" id="EndTIME" size="16" /><span style="cursor:hand" onClick="return showCalendar('EndTIME', '%Y-%m-%d %H:%M', '24', true);">
        <img border="0" src="../calendar/date_botton.gif" width="20" height="14"></span>
  </td>
  </tr>
  </table>
  </div>
</form>				
		
			</div>
			<div id="divMain" style="overflow: auto">
				<input id="txtSearchText" type="hidden" name="txtSearchText">
				<table style="font-size: 9pt; border-bottom: #efefef 1px outset" cellspacing="0"
					cellpadding="0" width="100%" border="0" class="OuterTable">
					 <tr class="OuterHead"> 
    <td class="title_td" align="left" width="5%"> 业务介绍访问量列表  你统计的方式为:
    <%if(!year.equals("")){out.print(year);out.print("年");}
    if(!quarter.equals("")){out.println("第");out.print(quarter);out.print("季度");}
    if(!month.equals("")){out.println("第");out.print(month);out.print("月");}
    if(!xun.equals("")){
    if(xun.equals("1")){out.print("上旬");}
    if(xun.equals("2")){out.print("中旬");}
    if(xun.equals("3")){out.print("下旬");}
    }
    if(!rq.equals("")){out.print(rq.substring(0,4));out.print("年");out.print(rq.substring(5,7));out.print("月");out.print(rq.substring(8,10));out.print("日");}
    if(!start.equals("")){out.print(start);out.print("--");}
    if(!end.equals("")){out.print(end);}
   %></td>
    </tr>
    </table>
                    <table style="font-size: 9pt; border-bottom: #efefef 1px outset" cellspacing="0"
					 cellpadding="0" width="100%" border="0" class="OuterTable">
					 <tr class="OuterHead">
						<TD class="title_td" align="center" width="3%" nowrap><b>地市</b></TD>
						<TD class="title_td" align="center" width="16%"><b>模块</b></TD>
						<TD class="title_td" align="center" width="5%"><b>访问权限级别</b></TD>
						<TD class="title_td" align="center" width="3%"><b>访问量</b></TD>
						<TD class="title_td" align="center" width="5%"><b>子类/父类</b></TD>
					</tr>
				</table>
				<table id="BBSList" border="0" width="100%" cellspacing="0" 
					   cellpadding="1" 
					   style="behavior:url(../../common/table.htc)" 
					   keyName="key" 
					   class="InnerTable"
					   SelectedClass="SelectedRow" 
					   DefaultClass="DefaltRow" 
					   multiple="true" 
					   class="InnerTable"
					   >
					   <caption></caption><%
        int recordCount = 0;
	    if ( request.getParameter("CITY") != null ) {
		DataTable dt = ClientService.getCallCount(cityCode, sAffairTypeCode, sSubTypeCode, sText,year,quarter,month,xun,rq,start,end,popedom);
		for(int i=0; i<dt.getRows().getCount(); i++ ){recordCount+=(int)Integer.parseInt(dt.getRow(i).getString("cnt"));}
        for ( int i=0; i<dt.getRows().getCount(); i++ ){
            DataRow dr = dt.getRow(i); 
            java.text.DecimalFormat f1 = new java.text.DecimalFormat("0.00");
            String ledger_statu = f1.format((float)Integer.parseInt(dr.getString("cnt"))/recordCount*100);
            %>
                    <tr class="InnerMain" key="<%= dr.getString("CONTENT_ID")%>">
                        <td class="body_td" width="3%"><%= dr.getString("CITYNAME")%></td>
                        <td class="body_td" width="16%"><%=ClientService.getBoardFullName(dr.getLong("board_id"))%><%= dr.getString("title")%></td>
                        <td class="body_td" width="5%"><%=dr.getString("USERTYPE")%></td>
                        <td class="body_td" width="3%"><%= dr.getString("cnt")%></td>
                        <td class="body_td" width="5%"><%= ledger_statu+"%"%></td>
                    </tr><%
        }
	} 
	else { %>
					   <tr><td class="InnerHead">没有任何访问量信息</td></tr><%
	} %>
	
<%if(sAffairTypeCode!=null&&!"".equals(sAffairTypeCode)&&request.getParameter("CITY") != null){%>	
<tr class="InnerMain" >
<td class="body_td" width="3%">合计</td>
<td class="body_td" width="5%" colspan="4"><%=recordCount%></td>
</tr>	
<%}%>	
     			</table>
      			<table cellpadding="0" cellspacing="0" border="0" width="100%" class="OuterTable">
      				<tr class="OuterFoot">
						<td align="right" class="foot_td" nowrap width="100%"><button class="button" onClick="BBSList.showAllPage(); pageSets.style.display='none'; this.disabled=true; return false;" style="width: 80px;">全部显示</button>&nbsp;&nbsp;<span id="pageSets">分页:&nbsp;<label id="pageSet"></label></span></td>
      				</tr>
      			</table>
      			<div id="succ_five"  style="display:none">
       <table cellpadding="0" cellspacing="0" border="0" width="100%" class="OuterTable">
      <tr class="OuterFoot">
      <td align="left" class="foot_td" nowrap width="19%">请选择日期:</td>
      <td align="left" class="foot_td" nowrap width="29%">
      <div id=popCal style="BORDER-RIGHT: 2px ridge; BORDER-TOP: 2px ridge; Z-INDEX: 100; VISIBILITY: hidden; BORDER-LEFT: 2px ridge;  BORDER-BOTTOM: 2px ridge; POSITION: absolute"> 
      <iframe name=popFrame src="PopCalendar.htm" frameborder=0 width=380 scrolling=no height=188></iframe>
       </div>
       <input name="rq" type="text" id="rq" readonly="true"> 
       <input onClick="popFrame.fPopCalendar(rq,rq,popCal);return false" type=button value=日期 name=sbtnw class="BUTTN-FIX1"> 
      </td>
      </tr>
       </table>
        </div>
      			
      			
			</div>
		</div>
	</body>
</html>
<SCRIPT LANGUAGE="JavaScript" >
function change(){
if(document.all("time_style").value=="1"){
 document.all("succ_one").style.display ="";
 document.all("succ_two").style.display ="none";
 document.all("succ_three").style.display ="none";
 document.all("succ_six").style.display ="none";
 document.all("succ_four").style.display ="none";
 document.all("succ_five").style.display ="none"; 
}


else if(document.all("time_style").value=="2"){
 document.all("succ_two").style.display ="";
 document.all("succ_one").style.display ="none";
 document.all("succ_three").style.display ="none";
 document.all("succ_six").style.display ="none";
 document.all("succ_four").style.display ="none";
 document.all("succ_five").style.display ="none"; 
  
}

else if(document.all("time_style").value=="3"){
 document.all("succ_three").style.display ="";
 document.all("succ_one").style.display ="none";
 document.all("succ_two").style.display ="none";
 document.all("succ_six").style.display ="none";
 document.all("succ_four").style.display ="none";
 document.all("succ_five").style.display ="none"; 
}

else if(document.all("time_style").value=="4"){
 document.all("succ_four").style.display ="";
 document.all("succ_one").style.display ="none";
 document.all("succ_two").style.display ="none";
 document.all("succ_six").style.display ="none";
 document.all("succ_three").style.display ="none";
 document.all("succ_five").style.display ="none"; 
}

else if(document.all("time_style").value=="5"){
 document.all("succ_five").style.display ="";
 document.all("succ_four").style.display ="none";
 document.all("succ_one").style.display ="none";
 document.all("succ_two").style.display ="none";
 document.all("succ_six").style.display ="none";
 document.all("succ_three").style.display ="none";
}


else if(document.all("time_style").value=="6"){
 document.all("succ_six").style.display ="";
 document.all("succ_one").style.display ="none";
 document.all("succ_two").style.display ="none";
 document.all("succ_three").style.display ="none";
 document.all("succ_four").style.display ="none";
 document.all("succ_five").style.display ="none";


}
else{


 document.all("succ_one").style.display ="none";
 document.all("succ_two").style.display ="none";
 document.all("succ_three").style.display ="none";
 document.all("succ_four").style.display ="none";
 document.all("succ_six").style.display ="none";
 document.all("succ_five").style.display ="none"; 




}

}


function show()
   {
 if("1"=="<%=time_style%>"){
 document.all("succ_one").style.display ="";
 document.all("succ_two").style.display ="none";
 document.all("succ_three").style.display ="none";
 document.all("succ_six").style.display ="none";
 document.all("succ_four").style.display ="none";
}
else if("2"=="<%=time_style%>"){
 document.all("succ_two").style.display ="";
 document.all("succ_one").style.display ="none";
 document.all("succ_three").style.display ="none";
 document.all("succ_six").style.display ="none";
 document.all("succ_four").style.display ="none";
}

else if("3"=="<%=time_style%>"){
 document.all("succ_three").style.display ="";
 document.all("succ_one").style.display ="none";
 document.all("succ_two").style.display ="none";
 document.all("succ_six").style.display ="none";
 document.all("succ_four").style.display ="none";
}

else if("4"=="<%=time_style%>"){
 document.all("succ_four").style.display ="";
 document.all("succ_one").style.display ="none";
 document.all("succ_two").style.display ="none";
 document.all("succ_six").style.display ="none";
 document.all("succ_three").style.display ="none";
}

else if("5"=="<%=time_style%>"){
 document.all("succ_five").style.display =""; 
 document.all("succ_four").style.display ="none";
 document.all("succ_one").style.display ="none";
 document.all("succ_two").style.display ="none";
 document.all("succ_six").style.display ="none";
 document.all("succ_three").style.display ="none";
}
else if("6"=="<%=time_style%>"){
 document.all("succ_six").style.display ="";
 document.all("succ_one").style.display ="none";
 document.all("succ_two").style.display ="none";
 document.all("succ_three").style.display ="none";
 document.all("succ_four").style.display ="none";
}
else{
 document.all("succ_one").style.display ="none";
 document.all("succ_two").style.display ="none";
 document.all("succ_three").style.display ="none";
 document.all("succ_four").style.display ="none";
 document.all("succ_six").style.display ="none";
}

}

function showtype(){
var type= document.getElementById("AFFAIRTYPE").value;


alert(type);

}
</SCRIPT>

⌨️ 快捷键说明

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