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

📄 operationlist.jsp

📁 电信的网厅的整站代码
💻 JSP
📖 第 1 页 / 共 3 页
字号:
							  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=\"OperationList.jsp?PageNo="+i+"&city="+citystr+"&area="+area+"&year="+year+"&sllx="+sllx+"&slzt="+slzt+"&ywlx="+ywlx+"&time_style="+time_style+"&quarter="+quarter+"&month="+month+"&xun="+xun+"&week="+week+"&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=\"OperationList.jsp?PageNo="+"1"+"&city="+citystr+"&area="+area+"&year="+year+"&sllx="+sllx+"&slzt="+slzt+"&ywlx="+ywlx+"&time_style="+time_style+"&quarter="+quarter+"&month="+month+"&xun="+xun+"&week="+week+"&starttime="+start+"&endtime="+end+"\" title=\"首页\"><font face=webdings>9</font></a> <a  href=\"OperationList.jsp?PageNo="+tempNum*10+"&city="+citystr+"&area="+area+"&year="+year+"&sllx="+sllx+"&slzt="+slzt+"&ywlx="+ywlx+"&time_style="+time_style+"&quarter="+quarter+"&month="+month+"&xun="+xun+"&week="+week+"&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=\"OperationList.jsp?PageNo="+tempShowPage+"&city="+citystr+"&area="+area+"&year="+year+"&sllx="+sllx+"&slzt="+slzt+"&ywlx="+ywlx+"&time_style="+time_style+"&quarter="+quarter+"&month="+month+"&xun="+xun+"&week="+week+"&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=\"OperationList.jsp?PageNo="+String.valueOf(n)+"&city="+citystr+"&area="+area+"&year="+year+"&sllx="+sllx+"&slzt="+slzt+"&ywlx="+ywlx+"&time_style="+time_style+"&quarter="+quarter+"&month="+month+"&xun="+xun+"&week="+week+"&starttime="+start+"&endtime="+end+"\" title=\"后十页\"><font face=webdings>8</font></a> <a  href=\"OperationList.jsp?PageNo="+PageCount+"&city="+citystr+"&area"+area+"&year="+year+"&sllx="+sllx+"&slzt="+slzt+"&ywlx="+ywlx+"&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=\"OperationList.jsp?PageNo="+tempShowPage+"&city="+citystr+"&area="+area+"&year="+year+"&sllx="+sllx+"&slzt="+slzt+"&ywlx="+ywlx+"&time_style="+time_style+"&quarter="+quarter+"&month="+month+"&xun="+xun+"&week="+week+"&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>
   <!--<td align="right" class="foot_td" nowrap colspan="3">
               分页:
                 <label id="pageSet">
                 <%
	int iPageCount = (int)Integer.parseInt(countstr);
	int iCurrentPage = (int)Integer.parseInt(pageNo);

	for ( int i=1; i<=iPageCount; i++ ) {
		if ( iCurrentPage == i ) {
			out.print("<a href='#' style='color: white; font-weight: bold; font-size: 10pt;' onclick='switchPage(this, " + i + ");'>");
			out.print("<b>");
			out.print(i);
			out.print("</b>");
		}
		else {
			out.print("<a href='#' style='color: white;' onclick='switchPage(this,"+i+");'>");
			out.print(i);
		}
		
		out.print("</a>&nbsp;");
	} %></label>
      </td>-->
               </tr>
  </table>

</body>
</html>
<Script language="javascript">
function ex()
{   
    var sURL = "export_operation_count_execl.jsp?PageNo=<%=pageNo%>&ywlx=<%=ywlx%>&sllx=<%=sllx%>&area=<%=area%>&slzt=<%=slzt%>&City=<%=citystr%>&year=<%=year%>&quarter=<%=quarter%>&month=<%=month%>&xun=<%=xun%>week=<%=week%>&rq=<%=rq%>&start=<%=start%>&end=<%=end%>";
   // alert(sURL);
    window.open(sURL,'windowRef','width=800,height=600,top=20,left=60,screenX=10,screenY=20,status=yes',scrollbar='yes');
}
//function changexun(no)
//{
//if(no==1)
//{
 //document.all.sllx.disabled=false;
// document.all.ywlx.disabled=false;
 //document.all.slzt.disabled=false;
 //form1.ywlx.disabled=false;
//}
//else 
//{ document.all.sllx.disabled=true;
  //document.all.ywlx.disabled=true;
  //document.all.slzt.disabled=false;
  //form1.ywlx.disabled=true;
//}
//}

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_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";
 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 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";
 document.all("succ_five").style.display ="none";
 document.all("succ_serven").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";
 document.all("succ_five").style.display ="none";
 document.all("succ_serven").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";
 document.all("succ_five").style.display ="none";
 document.all("succ_serven").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";
 document.all("succ_five").style.display ="none";
 document.all("succ_serven").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";
 document.all("succ_serven").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";
 document.all("succ_five").style.display ="none";
 document.all("succ_serven").style.display ="none";


}

else if("7"=="<%=time_style%>"){
 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_six").style.display ="none";
 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";

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

		//function changePageNo(no) {
		    //var itemvalue=document.getElementById("xxfs").value;
			//var sURL="OperationList.jsp?PageNo=" + no+"&time_style=<%=time_style%>&ywlx=<%=ywlx%>&sllx=<%=sllx%>&City=<%=citystr%>&area=<%=area%>&year=<%=year%>&quarter=<%=quarter%>&month=<%=month%>&xun=<%=xun%>&start=<%=start%>&end=<%=end%>";
			//alert(sURL);
		   // window.open(sURL,"_self");
		//}
</script>


⌨️ 快捷键说明

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