updatepassword.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:1k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*,com.gforce.currency.database.*" %>
- <% Session m_session = new Session(session); %>
- <%
- Vector vt = UserManager.getAllRecord();
- for(int i=0;i<vt.size();i++)
- {
- int iErrCode=SQLManager.ExcuteSQL("Update UserInfo set Password='" +StringNew.getEncodePassword(((Vector)vt.get(i)).get(2).toString()) +"' where ID=" + ((Vector)vt.get(i)).get(0).toString());
- if(iErrCode>0)
- out.println("用户:" + ((Vector)vt.get(i)).get(1).toString() + "密码加密成功!<br>");
- else
- out.println("<br>用户:" + ((Vector)vt.get(i)).get(1).toString() + "密码" + ((Vector)vt.get(i)).get(2).toString() + "加密失败!" + iErrCode + "<br>");
- }
- %>