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

📄 register_index_trans.jsp

📁 电信的网厅的整站代码
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>


<%@ page import="com.doone.data.DacClient"%>
<%@ page import="com.doone.data.DataTable"%>
<%@ page import="com.doone.fj1w.fjmgr.sysmgr.ForgetCihper"%>
<%@ page import="com.doone.fj1w.fj1w.account.AccountImpl"%>
<%@ page import="com.doone.fj1w.fj1w.account.interfaceset.Account"%>

<%

    request.setCharacterEncoding("GBK");
    
    ForgetCihper cihper = new ForgetCihper();
    cihper.addObserver(cihper);
    
    String accountid = request.getParameter("accountid");
    if(accountid != null && !accountid.equals("")){
      
       String right   = cihper.setCihper(accountid);
       //用户下线
       cihper.onLineUserLogoff(accountid);
       if(!right.equals("0") && !right.equals("")){
          session.removeAttribute("seachresult");
          %>alert("帐号<%=accountid%>重置后的密码已经发送至:<%=right%>中。");<%
       }
       else{
          %>alert("帐号<%=accountid%>的密码重置失败,原因可能是电子邮件发送不成功,请重新操作。");<%
       }
        return ;	
    }

    /**解锁单个账号*/
    String overDue = request.getParameter("lockAcc");
    if(overDue != null && !overDue.equals("")){
      try{
         if(cihper.unLockDueAccount(overDue)){
             %>
             alert("帐号<%=overDue%>解锁成功,激活邮件已发送成功。页面不动请刷新。");
             <%
         }else{
             %>alert("帐号<%=overDue%>解锁失败!");<%
         }
      }catch(Exception ex){
          %>alert("<%=ex.getMessage()%>");<%
      }
       return ;
    }
    
    /**激活一个帐号*/
    String activeId = request.getParameter("ACTIVEID");
    if(activeId != null && !activeId.equals("")){
      try{
    	  DacClient client = new DacClient();
    	  AccountImpl impl = new AccountImpl(client);
    	  impl.setAccountId(activeId);
    	  Account[] accounts = impl.queryAccount();
    	  impl = null;
    	  impl = new AccountImpl(client,accounts[0].getUserId());
    	  impl.setState("E");
    	  impl.setUserState("A");
    	  impl.save();
          %>alert("<%=activeId%>"帐号激活成功.);<%
      }catch(Exception ex){
          %>alert("<%=ex.getMessage()%>");<%
      }
       return ;
    }
%>

⌨️ 快捷键说明

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