118 lines
5.2 KiB
Plaintext
118 lines
5.2 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserAccount_Form.aspx.cs" Inherits="UserAccount_Form" %>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head runat="server">
|
|
<title></title>
|
|
<script type="text/javascript"></script>
|
|
<link href="../Css/index.css" rel="stylesheet" type="text/css" />
|
|
<link href="../Css/edit.css" rel="stylesheet" type="text/css" />
|
|
<script src="../Js/Calendar3.js" type="text/javascript"></script>
|
|
<script src="../Jquery-ui/js/jquery-1.10.2.js" type="text/javascript"></script>
|
|
<script src="../Jquery-ui/js/jquery-ui-1.10.4.custom.js" type="text/javascript"></script>
|
|
<link href="../Jquery-ui/css/pepper-grinder/jquery-ui-1.10.4.custom.css" rel="stylesheet" type="text/css" />
|
|
<script src="../Js/commonality.js" type="text/javascript"></script>
|
|
<link rel="stylesheet" href="../Css/gh-buttons.css" type="text/css"/>
|
|
<link rel="stylesheet" href="../Css/prettify.css"/>
|
|
<script src="../Js/prettify.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
if ($("#id").val != "") {
|
|
//$("#yhming")
|
|
}
|
|
})
|
|
</script>
|
|
<script type="text/javascript">
|
|
var beforval = "";
|
|
$(document).ready(function () {
|
|
beforval = $("#yhming").val();
|
|
})
|
|
//调用添加方法
|
|
function setbcbd() {
|
|
$("#<%=severbc.ClientID%>").click();
|
|
}
|
|
//判断填写格式给出提示
|
|
function pd() {
|
|
if ($("#yhming").val().replace(/(^\s*)|(\s*$)/g, "") == "") {
|
|
$("#z_error").text("用户名不能为空!");
|
|
return false;
|
|
} else {
|
|
$("#z_error").text("");
|
|
}
|
|
if ($("#yhming").val() != beforval) {
|
|
var fanhuicount = UserAccount_Form.serchmingcheng($("#yhming").val()).value;
|
|
if (fanhuicount > 0) {
|
|
$("#z_error").html("此角色名称已存在");
|
|
return false;
|
|
} else {
|
|
$("#z_error").html("");
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form id="form" runat="server">
|
|
<div class="rtbjdiv" >
|
|
<div class="add-top" >
|
|
<div class="add-top-dh" id="div_listdaohang"><h4>用户账号表单页   </h4> <a href="UserAccount.aspx" id="bt_fhlb" runat="server" style=" width:65px" class="button icon pin">回到列表</a></div>
|
|
<div class="add-top-cz" >
|
|
<a href="#button" id="bt_tj" onclick="setbcbd()" class="button icon log">保存</a>
|
|
<a href="#button" id="chongzhi" onclick="form.reset();" style=" width:60px; " class=" button icon reload">重置表单</a>
|
|
<a href="#button" id="fanhui" onclick="history.back();" style=" width:60px; " class="button icon arrowleft">返回上级</a>
|
|
<asp:label id="z_error" CssClass="error" runat="server"></asp:label>
|
|
</div>
|
|
</div>
|
|
<div class="alert-tip">
|
|
<b>温馨提示:</b>
|
|
<p>• 信息表单中加*号红色标题框为必填项,为了可以顺利保存信息,请您注意填写红色栏目中的信息</p>
|
|
<p>• 用户名称不可重复添加,设置初始密码后请用户到个人中心中维护</p>
|
|
</div>
|
|
<table class="bule"> <tr class="tdlietou"><td><h4>用户账号信息</h4></td></tr></table>
|
|
<table class="tablewk">
|
|
<tr><td style=" height:20px" colspan="9"></td></tr>
|
|
<tr>
|
|
<td class="wktblm"><span><font>*用户名</font></span></td><td><asp:TextBox id="yhming" runat="server" CssClass="tbinput"></asp:TextBox></td>
|
|
<td class="wktblm"><span><font>*角色</font></span></td><td><asp:dropdownlist id="juese" runat="server" CssClass="tbinput_xl"></asp:dropdownlist></td>
|
|
<td class="wktblm"><span><font>*状态</font></span></td>
|
|
<td>
|
|
<asp:dropdownlist id="zhuangtai" runat="server" CssClass="tbinput_xl">
|
|
<asp:ListItem Value="1">启用</asp:ListItem>
|
|
<asp:ListItem Value="0">禁用</asp:ListItem>
|
|
</asp:dropdownlist>
|
|
</td>
|
|
<td width="50" rowspan="2"></td>
|
|
<td rowspan="2" width="100"><asp:Image ID="txtp" Width="100" Height="100" runat="server" /></td>
|
|
<td class="tdjj5">  </td>
|
|
</tr>
|
|
<tr> <td class="wktblm" > <font>用户密码</font></td>
|
|
<td>
|
|
<asp:TextBox ID="mima" runat="server" TextMode="Password" CssClass="tbinput" ></asp:TextBox>
|
|
</td>
|
|
<td class="wktblm"><font>确认密码</font></td>
|
|
<td>
|
|
<asp:TextBox ID="qmima" runat="server" TextMode="Password" CssClass="tbinput" ></asp:TextBox>
|
|
</td>
|
|
<td class="wktblm"><font>用户图标</font></td>
|
|
<td>
|
|
<asp:FileUpload runat="server" CssClass="tbinput_ll" ID="textFoo" />
|
|
</td> <td class="tdjj5">  </td>
|
|
</tr>
|
|
<tr><td style=" height:20px" colspan="9"></td></tr>
|
|
|
|
</table>
|
|
</div>
|
|
<span style=" display:none"> <asp:button id="severbc" runat="server" CssClass="button bluez small" Text="保存" OnClientClick="return pd()" onclick="bt_tj_Click" ></asp:button> </span>
|
|
|
|
<asp:HiddenField ID="id" runat="server" Value="" />
|
|
<asp:HiddenField ID="zt" runat="server" Value="" />
|
|
<asp:HiddenField ID="js" runat="server" Value="" />
|
|
</form>
|
|
</body>
|
|
</html>
|