123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddUser.aspx.cs" Inherits="LYFZ.WeixinServers.WeiXinAPP.AddUser" %>
- <!--#include file="html/head.html" -->
- <!--#include file="html/leftMenu.html" -->
-
- <div class="content">
-
- <div class="header">
-
- <h1 class="page-title">用户管理</h1>
- </div>
-
- <ul class="breadcrumb">
- <!--#include file="html/indexBread.html" -->
- <li><a href="UserList.aspx">管理员列表</a> <span class="divider">/</span></li>
- <li class="active">编缉</li>
- </ul>
- <div class="container-fluid">
- <div class="row-fluid">
- <div style="width:100%; min-height:600px;">
- <div class="btn-toolbar">
- <button class="btn btn-primary" onclick="userSubmit()"><i class="icon-save"></i> 保存</button>
- <a id="delBtn" href="#myModal" data-toggle="modal" onclick="setModalValue($('#myTabContent').attr('rel'))" style="display:none;" class="btn">删除</a>
- <div class="btn-group">
- </div>
- </div>
- <div class="well">
- <ul class="nav nav-tabs">
- <li class="active"><a href="#home" data-toggle="tab">基本信息</a></li>
- <li id="pwdTab" style="display:none;"><a href="#profile" data-toggle="tab">密码</a></li>
- </ul>
- <div id="myTabContent" class="tab-content">
- <div class="tab-pane active in" id="home">
- <form id="tab" method="post" action="AddUser.aspx?s=edit&id=<%=this.eid %>">
- <label>用户名</label>
- <input name="usreName" id="usreName" type="text" value="<%=this.usreName %>" class="input-xlarge">
- <label>帐号</label>
- <input name="account" id="account" type="text" value="<%=this.account %>" class="input-xlarge">
- <label>联系电话</label>
- <input name="phone" id="phone" type="text" value="<%=this.phone %>" class="input-xlarge">
- <label>Email</label>
- <input name="email" id="email" type="text" value="<%=this.email %>" class="input-xlarge">
- <label>性别</label>
- <select name="sex" id="sex" class="input-xlarge">
- <option value="男">男</option>
- <option value="女">女</option>
- </select>
- <label>权限</label>
- <select name="Competence" id="Competence" class="input-xlarge">
- <option value="99">超级管理员</option>
- <option value="0">普通用户</option>
- <option value="1">点赞科技管理员</option>
- <option value="2">点赞科技分销商</option>
- </select>
- <label style="color: #a94442;">初始密码为:ly1234</label>
- </form>
- </div>
- <div class="tab-pane fade" id="profile">
- <form id="tab2" method="post" action="AddUser.aspx?s=spwd&id=<%=this.eid %>">
- <label>设置密码</label>
- <input type="password" id="pwd" name="pwd" class="input-xlarge">
- <div>
- <button class="btn btn-primary">更新</button>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- <!--#include file="html/DeleteDialog.html" -->
- <!--#include file="html/footer.html" -->
-
- </div>
- </div>
- </div>
- <script type="text/javascript">
- var account='<%=this.account %>';
- var usex = "<%=this.sex %>";
- var Competence = "<%=this.Competence%>";
- $(document).ready(function () {
- var editID = GetQueryString("eid");
- if (editID)
- {
- $("#delBtn").show();
- $("#pwdTab").show();
- $('#myTabContent').attr('rel',editID);
- }
- if (usex)
- {
- $("#sex").val(usex);
- }
- if (account == "admin") {
- $("#account").attr("readonly", "readonly");
- }
- $("#Competence").val(Competence);
- });
- function userSubmit()
- {
- var usreName = $("#usreName").val();
- var account = $("#account").val();
- if (usreName && account)
- {
- $('#tab').submit();
- } else {
- alert("请正确填写用户名和帐号");
- }
-
- }
- function myModalDefine(objModal)
- {
- var relValue = objModal.attr("rel");
- if (relValue) {
- // alert(relValue);
- document.location = "userList.aspx?del=" + relValue;
- }
-
- }
- </script>
- <!--#include file="html/bottom.html" -->
|