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

📄 visitlist.jsp

📁 电信的网厅的整站代码
💻 JSP
📖 第 1 页 / 共 3 页
字号:
     </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="10%"><b>模块类别</b></td>
                  <td class="title_td" align="center" width="5%" ><b>客户权限级别</b></td>
                  <td class="title_td" align="center" width="5%" ><b>访问量</b></td>
  		      </tr>
  		      </table>
  		      
  		        <table id="prodfunList" border=0 width=100% cellspacing=0 cellpadding=1
					style="behavior:url(../../common/table.htc)"
					DefaultClass="DefaltRow" 
					SelectedClass="SelectedRow" 
					keyName="key" 
					multiple="true" 
				    class="InnerTable"
				    >
  		      <%if(dt.getRows().getCount()>0){ 
  		        for(int i=0;i<dt.getRows().getCount();i++){%>
                  <tr class="InnerMain" style="color: black" key="">
                  <td class="body_td" align="left"  width="10%" nowrap><%
                  out.print(dt.getRow(i).getString("ppnamet"));
                  out.print("-->");
                  out.print(dt.getRow(i).getString("pnamet"));
                  out.print("-->");
                  out.print(dt.getRow(i).getString("namet"));
                  %></td>
                  <td class="body_td" align="left"  width="5%" nowrap><%if(dt.getRow(i).getString("logintype").equals("0")){out.print("游客");}else if(dt.getRow(i).getString("logintype").equals("1")){out.print("注册帐号");} else if (dt.getRow(i).getString("logintype").equals("2")){out.print("产品登陆");}%></td>
                  
                  <td class="body_td" align="left"  width="5%" nowrap><%=dt.getRow(i).getString("cnt")%></td>
              </tr>
              <%}}else{%>
              <tr class="InnerMain" style="color: black" key="">
              <td class="body_td" align="left"  width="5%"  colspan="3" nowrap>对不起,没有符合该条件的记录!</td>
              <tr>
              <%}%>
              
              
<%if((!transactpp.equals("")||!transactp.equals("")||!transact.equals("")||!popedom.equals("")||!time_style.equals(""))&&pageNo.equals(countstr)){%>
<tr class="InnerMain" style="color: black" key="">
<td class="body_td" align="left"  width="5%"  colspan="" nowrap>合计</td>   
<td class="body_td" align="left"  width="5%"  colspan="2" nowrap>
<%
int count=0;
dt=sy_ca.getCount(citycode,popedom,transactpp,transactp,transact,year,quarter,month,xun,week,rq,start,end,pageNo,"1");
for(int i=0;i<dt.getRows().getCount();i++){
count+=(int)Integer.parseInt(dt.getRow(i).getString("cnt"));
}
out.print(count);
%>
</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="30%"><%             
                
							  int PageCount = Integer.parseInt(countstr);
							  int ShowPage = Integer.parseInt(pageNo);
							  //当记录数小于10*10的时候
								if(PageCount<=10){
								    out.print("分页:<font face=webdings>9</font>");
							 
								   for(int i=1;i<=PageCount;i++){
								       out.print("<a  href=\"VisitList.jsp?PageNo="+i+"&city="+citycode+"&year="+year+"&transactpp="+transactpp+"&transactp="+transactp+"&transact="+transact+"&popedom="+popedom+"&time_style="+time_style+"&quarter="+quarter+"&month="+month+"&xun="+xun+"&rq="+rq+"&starttime="+start+"&endtime="+end+"\">&nbsp;"+i+"</a>");
					
								   }
								    out.print(" <Font face=webdings>:</font>");
							
								}else{
							 
									//当记录数大于10*10
									int tempNum = (ShowPage-1)/10;
									if(tempNum==0){
									   tempNum=0;
									   //处于第一个10页的时候
									    out.print("分页:<font face=webdings>9</font>");
								
									}else{
											//处于中间页面位置
									  out.print("  分页:<a    href=\"VisitList.jsp?PageNo="+"1"+"&city="+citycode+"&year="+year+"&transactpp="+transactpp+"&transactp="+transactp+"&transact="+transact+"&popedom="+popedom+"&time_style="+time_style+"&quarter="+quarter+"&month="+month+"&xun="+xun+"&starttime="+start+"&endtime="+end+"\" title=\"首页\"><font face=webdings>9</font></a> <a  href=\"VisitList.jsp?PageNo="+tempNum*10+"&city="+citycode+"&year="+year+"&transactpp="+transactpp+"&transactp="+transactp+"&transact="+transact+"&popedom="+popedom+"&time_style="+time_style+"&quarter="+quarter+"&month="+month+"&xun="+xun+"&starttime="+start+"&endtime="+end+"\" title=\"前十页\"><font face=webdings>7</font></a>");
							
									}
											//判断是否是最后一页

									if(PageCount/10!=tempNum){
												//当不是最后一页的时候
										for(int i=1;i<=10;i++){
										     int tempShowPage = tempNum*10+i;
										     out.print("<a  href=\"VisitList.jsp?PageNo="+tempShowPage+"&city="+citycode+"&year="+year+"&transactpp="+transactpp+"&transactp="+transactp+"&transact="+transact+"&popedom="+popedom+"&time_style="+time_style+"&quarter="+quarter+"&month="+month+"&xun="+xun+"&starttime="+start+"&endtime="+end+"\">&nbsp;");
								 if(ShowPage==tempShowPage){
								        out.print(" <font color=\"#FF0000\">"+tempShowPage+"</font>");    
								 }else{
								      out.print(tempShowPage);
							     }
							       out.print("</a>");
							     }
								    int n=tempNum*10+10+1;
							        out.print("<a href=\"VisitList.jsp?PageNo="+String.valueOf(n)+"&city="+citycode+"&year="+year+"&transactpp="+transactpp+"&transactp="+transactp+"&transact="+transact+"&popedom="+popedom+"&time_style="+time_style+"&quarter="+quarter+"&month="+month+"&xun="+xun+"&starttime="+start+"&endtime="+end+"\" title=\"后十页\"><font face=webdings>8</font></a> <a  href=\"VisitList.jsp?PageNo="+PageCount+"&city="+citycode+"&year="+year+"&transactpp="+transactpp+"&transactp="+transactp+"&transact="+transact+"&popedom="+popedom+"&time_style="+time_style+"&quarter="+quarter+"&month="+month+"&xun="+xun+"&starttime="+start+"&endtime="+end+"\" title=\"尾页\"><Font face=webdings>:</font></a>");
							  
								}else{
									//取最后剩余的页数
									for(int i=1;i<=PageCount%10;i++){
								        int tempShowPage = tempNum*10+i;
							             out.print(" <a  href=\"VisitList.jsp?PageNo="+tempShowPage+"&city="+citycode+"&year="+year+"&transactpp="+transactpp+"&transactp="+transactp+"&transact="+transact+"&popedom="+popedom+"&time_style="+time_style+"&quarter="+quarter+"&month="+month+"&xun="+xun+"&starttime="+start+"&endtime="+end+"\">&nbsp;");
										 if(ShowPage==tempShowPage){
											   out.print("  <font color=\"#FF0000\">"+tempShowPage+"</font>");
										  }else{
											 out.print(tempShowPage);
										 }
										 out.print("</a>");
							        }
							         out.print("<Font face=webdings>:</font>");
							  
							       }
								}
							   %></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";
 document.all("succ_serven").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";
 document.all("succ_serven").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"; 
 document.all("succ_serven").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";
 document.all("succ_serven").style.display ="none"; 
}

else if(document.all("time_style").value=="5"){
 document.all("succ_five").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_four").style.display ="none";
 document.all("succ_serven").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"; 
 document.all("succ_serven").style.display ="none";
}
else if(document.all("time_style").value=="7"){
 document.all("succ_serven").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"; 
 document.all("succ_six").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";
 document.all("succ_serven").style.display ="none"; 

}

}

 function switchPage(that, idx){
			if ( that.tagName == "A" ) {
				changePageNo(idx);
			}
		}

		function changePageNo(no) {
		    var sURL="VisitList.jsp?PageNo=" + no+"&year=<%=year%>&transactpp=<%=transactpp%>&transact=<%=transactpp%>&transact=<%=transact%>&popedom=<%=popedom%>&time_style=<%=time_style%>&quarter=<%=quarter%>&month=<%=month%>&xun=<%=xun%>&starttime=<%=start%>&endtime=<%=end%>";
		    window.open(sURL,"_self");
		}
		
		function ex()
  {   
    var sURL="VisitList_execl.jsp?PageNo=<%=pageNo%>&citycode=<%=citycode%>&transact=<%=transact%>&transactpp=<%=transactpp%>&transactp=<%=transactp%>&popedom=<%=popedom%>&year=<%=year%>&time_style=<%=time_style%>&quarter=<%=quarter%>&month=<%=month%>&xun=<%=xun%>&week=<%=week%>&rq=<%=rq%>&starttime=<%=start%>&endtime=<%=end%>";
    //alert(sURL);
    window.open(sURL,'windowRef','width=800,height=600,top=20,left=60,screenX=10,screenY=20,status=yes',scrollbar='yes');
    
}
     function showtransact(){
        var citycode=form1.city.value;
        var pptreeid=form1.transactpp.value;
        var ptreeid=form1.transactp.value;
        scrtra.src ="get_traname.jsp?citycode="+citycode+"&pptreeid="+pptreeid+"&ptreeid="+ptreeid;
   }
    function onloadshowtransact(){
        scrtra.src ="get_traname.jsp?citycode=<%=citycode%>&transact=<%=transact%>&pptreeid=<%=transactpp%>&ptreeid=<%=transactp%>";
   }
</SCRIPT>


⌨️ 快捷键说明

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