123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <%@page import="com.ccgj.platform.admin.USERAction"%>
- <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
- <%@taglib uri="/struts-tags" prefix="s"%>
- <%@page import="com.ccgj.platform.util.GlobalDefine"%>
- <%@page import="com.opensymphony.xwork2.ActionContext"%>
- <%@ page import="com.ccgj.database.beans.YHB"%>
- <%@ page import ="com.ccgj.database.factory.DatabaseFactory"%>
- <%@ page import ="com.ccgj.database.interfaces.WZBIF"%>
- <%@ page import ="com.ccgj.database.manager.WZBManager"%>
- <%@ page import="com.ccgj.database.beans.USER"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme() + "://"
- + request.getServerName() + ":" + request.getServerPort()
- + path + "/";
-
- %>
- <script>
- var arr=new Array();
- <%
- List<USER> list=DatabaseFactory.getWZBIF().getWZBService().getWzbManager().getAllUser();
- for(USER u:list){
- %>
- arr.push("<%=u.getUsername() %>");
- <%
- }
- %>
- </script>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title></title>
- <link href="../../ligerui/lib/ligerUI/skins/Aqua/css/ligerui-all.css"
- rel="stylesheet" type="text/css" />
- <link href="../../ligerui/lib/ligerUI/skins/Silvery/css/style.css"
- rel="stylesheet" type="text/css" />
- <script src="../../ligerui/lib/jquery/jquery-1.3.2.min.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/core/base.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerForm.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerDateEditor.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerComboBox.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerCheckBox.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerButton.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerDialog.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerRadio.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerSpinner.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerTextBox.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerTip.js"
- type="text/javascript"></script>
- <script
- src="../../ligerui/lib/jquery-validation/jquery.validate.min.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/jquery-validation/jquery.metadata.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/jquery-validation/messages_cn.js"
- type="text/javascript"></script>
- <script src="../../ligerui/ajaxfileupload.js" type="text/javascript"></script>
- <script type="text/javascript" charset="utf-8"
- src="../../ueditor/ueditor.config.js"></script>
- <script type="text/javascript" charset="utf-8"
- src="../../ueditor/ueditor.all.min.js"> </script>
- <!--建议手动加在语言,避免在ie下有时因为加载语言失败导致编辑器加载失败-->
- <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型,比如你在配置项目里配置的是英文,这里加载的中文,那最后就是中文-->
- <script type="text/javascript" charset="utf-8"
- src="../../ueditor/lang/zh-cn/zh-cn.js"></script>
-
- <script>
- $.validator.setDefaults({
- debug: true,
- errorPlacement: function (lable, element)
- {
- if (element.hasClass("l-textarea"))
- {
- element.ligerTip({ content: lable.html(), target: element[0] });
- }
- else if (element.hasClass("l-text-field"))
- {
- element.parent().ligerTip({ content: lable.html(), target: element[0] });
- }
- else
- {
- lable.appendTo(element.parents("td:first").next("td"));
- }
- },
- success: function (lable)
- {
- lable.ligerHideTip();
- lable.remove();
- },
- submitHandler: function(form) {
- var ff=true;
- for(var i=0;i<arr.length;i++){
- if(arr[i]==$("#username").val()){
- ff=false;
- }
- }
- if(!ff){
- $.ligerDialog.error('该账号已存在,请重新填写!');
- }else if($("#userpwd").val()!=$("#userpwd2").val()){
- $.ligerDialog.error('两次密码输入不一致,请重新填写!');
- }else{
- document.form.submit();
- }
- }
- });
- $().ready(function() {
- $("#form1").validate();
- });
- </script>
- <style type="text/css">
- body {
- font-size: 12px;
- }
- .l-table-edit {
-
- }
- .l-table-edit-td {
- padding-top: 4px;
- padding-bottom: 4px;
- padding-left: 10px;
- padding-right: 10px;
- }
- .l-button-submit,.l-button-test {
- width: 80px;
- float: left;
- margin-left: 10px;
- padding-bottom: 2px;
- }
- .l-verify-tip {
- left: 230px;
- top: 120px;
- }
- </style>
- <style type="text/css">
- * {
- font-size: 12px;
- }
- .div {
- margin: 0 auto;
- width: 100%;
- overflow: hidden;
- padding: 0px;
- }
- .line {
- position: relative;
- margin: 0 auto;
- text-align: left
- }
- .line span.span {
- float: left;
- padding-top: 2px;
- }
- .file {
- position: absolute;
- left: 0;
- width: 265px ! important;
- top: 0;
- height: 28px;
- filter: alpha(opacity = 0);
- opacity: 0;
- cursor: pointer
- }
- .file1 {
- float: left;
- margin-left: 0px;
- margin-right: 4px;
- z-index: 1;
- width: 70px;
- height: 28px;
- line-height: 28px;
- background: url(../image/liulan.gif) no-repeat 0 0;
- text-indent: -9999px;
- cursor: pointer
- }
- .file2 {
- float: left;
- z-index: 1;
- width: 70px;
- height: 28px;
- line-height: 28px;
- background: url(../image/sc.gif) no-repeat 0 0;
- text-indent: -9999px;
- cursor: pointer
- }
- .file3 {
- float: left;
- z-index: 1;
- width: 70px;
- height: 28px;
- line-height: 28px;
- background: url(../image/tpyl.gif) no-repeat 0 0;
- text-indent: -9999px;
- cursor: pointer
- }
- .inputstyle {
- border: 1px solid #BEBEBE;
- margin-left: -3px;
- margin-top: -1px;
- width: 196px ! important;
- float: left;
- height: 22px;
- line-height: 22px;
- background: #FFF;
- z-index: 99
- }
- #n {
- margin: 10px auto;
- width: 920px;
- border: 1px solid #CCC;
- font-size: 14px;
- line-height: 30px;
- }
- #n a {
- padding: 0 4px;
- color: #333
- }
- input{
- line-height:15px;
- height:15px;
- }
- .div1{
- height:455px;width:300px; overflow:hidden;border:1px solid #ccc; position:absolute;left:60%;margin-top:-10px;margin-left:-250px; z-index:1100; text-align:center;display:none;
- }
- div2{
- height:445px; overflow:hidden;border:1px solid #ccc; position:absolute; left:50%; margin-left:-250px; z-index:1000; }
- .tjtitle{padding:10px;background: #dee9fb;}
- .tjcont{padding:10px;background: #fff;}
- </style>
- </head>
- <body style="padding: 10px;">
- <form name="form" method="post" action="../user/user!saveUser" id="form1" >
- <table cellpadding="0" cellspacing="0" class="l-table-edit" border="1" bordercolor="#c7d4e2" style="margin: 20px auto;">
- <tr>
- <td align="center" class="l-table-edit-td tjtitle">
- 姓 名:
- </td>
- <td align="left" class="l-table-edit-td tjcont">
- <input name="userfullname" type="text" id="userfullname" ltype="text" minlength="2" maxlength="10" required
- value="" style="width: 330px" /><em style="color:red">*</em>
- </td>
- <td align="left"></td>
- <td align="center" class="l-table-edit-td tjtitle">
- 排 序:
- </td>
- <td align="left" class="l-table-edit-td">
- <input name="px" type="text" id="px" ltype="text" max="99" required digits="true"
- value="99"
- style="width: 330px" /><em style="color:red">*</em>
- </td>
- <td align="left"></td>
- </tr>
- <tr>
- <td align="center" class="l-table-edit-td tjtitle">
- 账 号:
- </td>
- <td align="left" class="l-table-edit-td">
- <input name="username" type="text" id="username" ltype="text"
- required minlength="2" maxlength="20"
- value="" style="width: 330px" /><em style="color:red">*</em>
- </td>
- <td align="left"></td>
- <td align="center" class="l-table-edit-td tjtitle">
- 密 码:
- </td>
- <td align="left" class="l-table-edit-td">
- <input name="userpwd" type="password" id="userpwd" ltype="text"
- required minlength="6" maxlength="20"
- style="width: 330px" /><em style="color:red">*</em>
- </td>
- <td align="left"></td>
- </tr>
- <tr>
- <td align="center" class="l-table-edit-td tjtitle">
- 确认密码:
- </td>
- <td align="left" class="l-table-edit-td">
- <input name="" type="password" id="userpwd2" ltype="text"
- value="" style="width: 330px" /><em style="color:red">*</em>
- </td>
- <td align="left"></td>
- <td align="center" class="l-table-edit-td tjtitle">
- 部 门:
- </td>
- <td align="left" class="l-table-edit-td">
- <input name="department" type="text" id="department" ltype="text"
- maxlength="200"
- style="width: 330px" />
- </td>
- <td align="left"></td>
-
- </tr>
- <tr>
- <td align="center" class="l-table-edit-td tjtitle">
- 岗 位:
- </td>
- <td align="left" class="l-table-edit-td" >
- <input name="userpost" type="text" id="userpost" ltype="text"
- maxlength="200"
- style="width: 330px" />
- </td>
- <td align="left"></td>
- <td align="center" class="l-table-edit-td tjtitle">
- </td>
- <td align="left" class="l-table-edit-td">
- </td>
- <td align="left"></td>
-
- </tr>
- <tr>
- <td align="right" class="l-table-edit-td" colspan="11" style="padding:10px 0 10px 40%;">
- <input type="submit" value="提交" id="btnSubmit"
- class="l-button l-button-submit" />
- <input type="button" value="返回" id="btnBack"
- onclick="javascript:window.location.href='../xxjb/userList.jsp';"
- class="l-button l-button-test" id="test" />
- </td>
- </tr>
- </table>
- <div style="display: none">
- </div>
- </form>
- </body>
- </html>
|