<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Site_UserManage_Control" %>

<!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>
    <title><%=com == "add" ? "添加管理员" : "编辑管理员"%></title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script src="Script/Eoyoo.FormControl.js" type="text/javascript"></script>
    <script type="text/javascript" src="Script/Site_UserManage_Control.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="FormControl" action="<%=getFormUrl %>?com=<%=com%>&userid=<%=userid %>" method="post" enctype="multipart/form-data">

<!-- 隐藏域 -->
<input id="userName_hide" name="userName_hide" type="hidden" value="<%=_userName %>" />
<!-- end 隐藏域 -->

<div class="wrapper-div">
	<!-- 添加管理员 -->
    	<div class="title1">
        	<div class="right">
            	<span class="title-ico f_right titico3 X"> Ctrl + S 快捷保存</span>
            	<span class="title-ico titico2 F B"><%=com == "add" ? "添加管理员" : "编辑管理员"%></span>
            </div>
        </div>
        
        <!-- 表单 -->
        <div class="tbox_form">

            <p>
            <label class="name">帐户名:</label> <input tabindex="1" id="userName_txt" value="<%=_userName %>" class="input200 isNull isName4_12 isChinaEnNum" name="userName_txt" type="text" />
            <span class="point ico-remind V">登录帐户名(中文,字母,数字,下划线组成的字符)</span>
            </p>

            <p>
            <label class="name">密码:</label> <input tabindex="1" id="userPassword_txt" value="<%=_userPassword %>" class="input200 isNull isName4_12" name="userPassword_txt" type="password" />
            <span class="point ico-remind V">登录密码</span>
            </p>
            
            <p>
            <label class="name">所属身份:</label>
            <select id="userClass_select" name="userClass_select" tabindex="1" class="select isNull">
                <option value="0"> - - 选择身份 - - </option>
                <%for (int i = 1; i < _userClassDat.Rows.Count; i++) %>
                <%{ %>
                <option <%=_userClassId==_userClassDat.Rows[i]["id"].ToString()?"selected=selected":"" %> value="<%=_userClassDat.Rows[i]["id"].ToString() %>"><%=_userClassDat.Rows[i]["name"].ToString()%></option>
                <%} %>
            </select>
            <span class="point ico-remind V">请选择所属身份(继承对应身份的权限)</span>
            </p>

            <hr />
            <p>
            <label class="name">&nbsp;</label>
            <input type="submit" class="bule-btn W" value="确定保存" />
            <span></span>
            </p>
        </div>
        <!-- end 表单 -->
    <!-- end 添加管理员 -->
</div>
    </form>
</body>
</html>
