clubMasterPass.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:4k
- <%@ page language="java" contentType="text/html;charset=UTF-8" %>
- <%
- String gvcmName = "";
- String gvcmPass = "";
- String gvcmgTxt = "";
- Cookie[] cookies = request.getCookies();
- String ckCmgTxt="";
- String ckCmName="";
- String ckCmPass="";
- if (cookies!=null){
- for (int i = 0; i < cookies.length; i++)
- {
- Cookie c = cookies[i];
- String name = c.getName().trim();
- String value = c.getValue().trim();
- if(name.equals("gvcmgTxt")){
- ckCmgTxt = value;
- }
- if(name.equals("gvcmName")){
- ckCmName = java.net.URLDecoder.decode(value,"UTF-8");
- }
- if(name.equals("gvcmPass")){
- ckCmPass = value;
- }
-
- }
- }
- if(session.getAttribute("gvcmName")!=null){
- gvcmName = String.valueOf(session.getAttribute("gvcmName"));
- gvcmPass = String.valueOf(session.getAttribute("gvcmPass"));
- gvcmgTxt = String.valueOf(session.getAttribute("gvcmgTxt"));
- }else{
- gvcmName = ckCmName;
- gvcmPass = ckCmPass;
- gvcmgTxt = ckCmgTxt;
- }
- if(gvcmName.equals("")||gvcmPass.equals("")){
- //response.setHeader("Refresh", "0; URL=clubMasterLogin.jsp");
- response.sendRedirect("clubMasterLogin.jsp");
- out.print(prtCenter("您尚未登陆或登录超时,请重新的登录!","./clubMasterLogin.jsp",1));
- out.close();
- if(true){return;}
- }else{
- }
- //out.print(String.valueOf(session.getAttribute("gvcmName")));
- %>
- <%!
- public String textArea2(String formName, int cols, int rows, String txt){
- StringBuffer sb = new StringBuffer();
- sb.append("<textarea name=""+ formName +"" id=""+ formName +"" cols=""+ cols +"" rows=""+ rows +"" >");
- sb.append(txt);
- sb.append("</textarea><script language="javascript">gv_textarea2(""+ formName +"","+ cols +","+ rows +");</script>");
- return sb.toString();
- }
- public String pageJump1(int totalPage, int iPage, String url){
- int iPage1=0, iPage2=0;
- StringBuffer sb = new StringBuffer();
- sb.append(" <a title="返回首页" href="" + url + "iPage=1">");
- sb.append("<<</a> ");
- sb.append("<a title="返回上一页" href="" + url + "iPage=" + (iPage-1) + "">");
- sb.append("<</a> ");
- if(iPage>=10){
- iPage2=iPage+8;
- iPage1=iPage-1;
- if(iPage2>totalPage){
- iPage2=totalPage;
- iPage1=totalPage-9;
- }
- }else{
- if(totalPage>10){
- iPage2=10;
- }else{
- iPage2=totalPage;
- }
- iPage1=1;
- }
- for(int i=iPage1;i<=iPage2;i++){
- sb.append("<a href="" + url + "iPage=" + i + "">");
- if(i==iPage){
- sb.append("<span style=color:#bb0000><strong>"+ i +"</strong></span></a> | ");
- }else{
- sb.append("<strong>" + i + "</strong></a> | ");
- }
- }
- sb.append(" <a title="跳到下一页" href="" + url + "iPage=" + (iPage+1) + "">");
- sb.append("></a>");
- sb.append(" <a title="跳到尾页" href="" + url + "iPage=" + totalPage + "">");
- sb.append(">></a>");
- return sb.toString();
- }
-
- //==============================
- public String prtCenter2(String txt, String urls, int i){
- String temp;
- temp = "<SCRIPT type=text/javascript>function doTrans(filterCode){imgObj.filters[0].apply();oImg.style.filter = filterCode;imgObj.filters[0].play();}</SCRIPT>";
- temp = temp + "<br><br><center> ";
- switch(i){
- case 1:
- temp = temp + "<a href="+ urls +">";
- break;
- case 2:
- temp = temp + "<a href=javascript:history.back()>";
- break;
- }
- temp = temp + "<span style="font-size:14px; font-family:Verdana, Arial, 宋体; line-height: 19px;" >";
- temp = temp + txt + "</span>";
- if(i > 0){
- temp = temp + "</a>";
- }
- temp = temp + "<br>"+
- "<span id="imgObj" onmouseleave='doTrans("gray")' style="FILTER: progid:DXImageTransform.Microsoft.Fade(Overlap=1.00); WIDTH: 100% ""+
- " onmouseenter='doTrans("")'>"+
- "<a href=http://www.gamvan.com target=_blank><img id="oImg" style="FILTER: gray" alt="技术支持" src="../GVimgs/gamvan.gif" border=0></a>"+
- "</span></center><br><br>";
- return temp;
- }
- %>