Files
g.hnyhua.cn/Mtxfw.shop/_Admin/admin_admin_add.aspx
2026-02-07 15:48:27 +08:00

151 lines
4.8 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_admin_add.aspx.cs" Inherits="Mtxfw.shop._admin.admin_admin_add" %>
<!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>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/Burgundy.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.5.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#Text_Name").blur(function () {
if ($(this).val() != '') {
$.post("../Ajax.ashx", { action: "IsExists", Keys: $("#Text_Name").val() }, function (CallBack) {
if (CallBack == 'true') {
$("#Msg").html("<font color='red'>用户名已存在</font>");
$("#Text_Name").val('');
} else {
$("#Msg").html("<font color='green'>OK</font>");
}
});
}
});
})
function Rolechang() {
var Role = $("#Drop_Role").val();
if(Role == "5"){
$("#tr_Sheng").show(100);
}else{
$("#tr_Sheng").hide();
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:Panel ID="Panel_Add" runat="server">
<div class="main">
<div class="bt1">用户管理 - 添加/修改用户</div>
<div class="bt2">
<div class="clear"></div>
</div>
<div class="bt3">
<table width="100%" class="addtable">
<tr>
<th style=" width:120px;">&nbsp;登陆名称:</th>
<td>
<asp:TextBox ID="Text_Name" runat="server" Width="200"></asp:TextBox>
<span id="Msg"></span>
</td>
</tr>
<tr>
<th>&nbsp;用户昵称:</th>
<td>
<asp:TextBox ID="Text_User" runat="server" Width="200"></asp:TextBox>
</td>
</tr>
<tr>
<th>&nbsp;角色:</th>
<td>
<asp:DropDownList ID="Drop_Role" runat="server" DataTextField="jsname" DataValueField="id">
</asp:DropDownList><a href="admin_admin_js.aspx">角色权限管理</a>
</td>
</tr>
<tr id="tr_Sheng" style=" display:none;">
<th>&nbsp;省份选择:</th>
<td>
<asp:DropDownList ID="Dro_Sheng" runat="server">
<asp:ListItem Text="所有省份" Value=""></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<th>&nbsp;用户密码:</th>
<td>
<asp:TextBox ID="Text_Password" TextMode="Password" runat="server" Width="200"></asp:TextBox><%=strtitle %> <asp:HiddenField ID="HiddenPassword" runat="server"></asp:HiddenField>
</td>
</tr>
<tr>
<th>&nbsp;确认密码:</th>
<td>
<asp:TextBox ID="Text_Password2" TextMode="Password" runat="server" Width="200"></asp:TextBox>
</td>
</tr>
<tr> <th></th>
<td>&nbsp;
<asp:Button ID="Btn_Insert" runat="server" CssClass="savebtn" Text="添加" />
<input id="btn_back" type="button" value="返回" class="returnbtn" onclick="history.go(-1)" />
</td>
</tr>
</table>
</div>
</div>
<script type="text/javascript">
var Role = $("#Drop_Role").val();
if (Role == "5") {
$("#tr_Sheng").show();
} else {
$("#tr_Sheng").hide();
}
</script>
</asp:Panel>
<asp:Panel ID="Panel_Password" runat="server">
<div class="main">
<div class="bt1">用户管理 - 修改密码</div>
<div class="bt2">
<div class="clear"></div>
</div>
<div class="bt3">
<table width="100%" class="addtable">
<tr>
<th style=" width:120px;">&nbsp;登陆名称:</th>
<td>
<asp:Label ID="Lab_Name" ForeColor="Red" runat="server"></asp:Label>
</td>
</tr>
<tr>
<th>&nbsp;新的密码:</th>
<td>
<asp:TextBox ID="Password_New" TextMode="Password" runat="server" Width="200"></asp:TextBox>
</td>
</tr>
<tr>
<th>&nbsp;确认密码:</th>
<td>
<asp:TextBox ID="Password_Again" TextMode="Password" runat="server" Width="200"></asp:TextBox>
</td>
</tr>
<tr> <th></th>
<td>&nbsp;
<asp:Button ID="Btn_Update" runat="server" CssClass="savebtn" Text="修改" />
<input id="Button1" type="button" value="返回" class="returnbtn" onclick="history.go(-1)" />
</td>
</tr>
</table>
</div>
</div>
</asp:Panel>
</form>
</body>
</html>