Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
macro_ctl_sign_win.jsp
Package: JSP-OA.rar [view]
Upload User: jhtang88
Upload Date: 2014-01-27
Package Size: 28528k
Code Size: 2k
Category:
Jsp/Servlet
Development Platform:
Java
- <%@ page contentType="text/html; charset=utf-8"%>
- <%@ page import="java.util.*"%>
- <%@ page import="cn.js.fan.util.*"%>
- <%@ page import="cn.js.fan.db.*"%>
- <%@ page import="com.redmoon.oa.person.*"%>
- <%@ page import="com.redmoon.oa.flow.*"%>
- <%@ page import="com.redmoon.oa.dept.*"%>
- <html>
- <head>
- <title>签名</title>
- <link href="../common.css" rel="stylesheet" type="text/css">
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <style type="text/css">
- <!--
- .style4 {
- color: #FFFFFF;
- font-weight: bold;
- }
- -->
- </style>
- </head>
- <body bgcolor="#FFFFFF" text="#000000" style="background-image:url()">
- <jsp:useBean id="docmanager" scope="page" class="cn.js.fan.module.cms.DocumentMgr"/>
- <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
- <%
- String priv="read";
- if (!privilege.isUserPrivValid(request,priv))
- {
- out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
- return;
- }
- // 窗口不能做成模式对话框,因为form及location.href都会弹出新窗口
- String op = ParamUtil.get(request, "op");
- if (op.equals("sign")) {
- String pwd = ParamUtil.get(request, "pwd");
- UserDb ud = new UserDb();
- ud = ud.getUserDb(privilege.getUser(request));
- if (ud.getPwdRaw().equals(pwd)) {
- %>
- <script>
- window.opener.setIntpuObjValue("<%=ud.getRealName() + " " + cn.js.fan.util.DateUtil.format(new java.util.Date(), "yyyy年MM月dd日")%>");
- window.close();
- </script>
- <%
- return;
- }
- else {
- out.print(StrUtil.Alert("密码错误!"));
- }
- }
- %>
- <table width="100%" cellPadding="0" cellSpacing="0">
- <tbody>
- <tr>
- <td height="28" class="right-title"> 请输入密码</td>
- </tr>
- <form name="form1" action="?op=sign" method="post">
- <tr>
- <td height="40" align="center" bgcolor="#FFFFFF" class="head">
- <input name="pwd" type="password">
-
- <input type="submit" value="签名"></td></tr>
- </form>
- </table>
- </body>
- </html>