<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/SiteMenu.Master" AutoEventWireup="true" CodeBehind="Setting.aspx.cs" Inherits="Crm25175.Setting" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="../assets/css/jquery-ui-1.10.3.full.min.css" />
    <script type="text/javascript">
        function DoubleAddClick() {
            document.getElementById("ContentPlaceHolder1_BT_Add").click();
        }
        function DoubleSetAnswerClick() {
            document.getElementById("ContentPlaceHolder1_BT_SetAnswer").click();
        }

        //后台调用,区分提示信息底色
        //Danger,Info
        function ChangeMsgClass(MsgType) {
            if (MsgType == "Danger") {
                DivMsg.className = 'alert alert-danger';
            }
            else {
                DivMsg.className = 'alert alert-info';
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
		</script>
		<ul class="breadcrumb">
			<li>
				<i class="<%=PageIcon %>"></i>
                修改账号
			</li>
		</ul>
	</div>

    <div class="page-content">
        <div class="row col-xs-12">
            <div id="DivMsg" class="alert alert-info">
                <i class="icon-hand-right"></i>
                <asp:Label ID="LabMsg" runat="server" Text=" "></asp:Label>
			    <button class="close" data-dismiss="alert">
                <i class="icon-remove"></i>
                </button>
            </div>
        </div>

        <div class="page-header">
            <div class="col-xs-12">
            </div>
        </div>

            <div class="row clearfix  form-actions">
                <div class="form-group col-md-offset-2 col-xs-8 hidden" >
					<label class="col-sm-3 control-label no-padding-right">ID</label>
                    <div class="space-2"></div>
	                <asp:TextBox runat="server" id="TxtID"  CssClass="col-xs-6" ReadOnly="true"/>
                </div>
                <div class="space-4"></div>
	            <div class="form-group col-md-offset-2 col-xs-8" >
					<label class="col-sm-3 control-label no-padding-right">账号</label>
                    <div class="space-2"></div>
	                <asp:TextBox runat="server" id="TxtUserID"  CssClass="col-xs-6" ReadOnly="true"/>
                </div>
                <div class="space-4"></div>
                <div class="form-group col-md-offset-2 col-xs-8">
                    <label class="col-sm-3 control-label no-padding-right">最后修改</label>
                    <div class="space-2"></div>
                    <asp:TextBox ID="TxtEditDate" runat="server" CssClass="col-xs-6" ReadOnly="true"/>
                </div>
                <div class="space-4"></div>
                <div class="form-group col-md-offset-2 col-xs-8">
                    <label class="col-sm-3 control-label no-padding-right">最后登陆</label>
                    <div class="space-2"></div>
                    <asp:TextBox ID="TxtLoginDate" runat="server" CssClass="col-xs-6" ReadOnly="true"/>
                </div>
                <div class="space-4"></div>
                <div class="form-group col-md-offset-2 col-xs-8">
                    <label class="col-sm-3 control-label no-padding-right">姓名</label>
                    <div class="space-2"></div>
                    <asp:TextBox ID="TxtUserName" runat="server" CssClass="col-xs-6"></asp:TextBox>
                </div>
                <div class="space-4"></div>
                <div class="form-group col-md-offset-2 col-xs-8">
                    <label class="col-sm-3 control-label no-padding-right">密码</label>
                    <div class="space-2"></div>
                    <asp:TextBox ID="TxtPassWord" runat="server" CssClass="col-xs-6" 
                        TextMode="Password"></asp:TextBox>
                </div>
                <div class="space-4"></div>
                <div class="form-group col-md-offset-2 col-xs-8">
                    <label class="col-sm-3 control-label no-padding-right">状态</label>
                    <div class="space-2"></div>
                    <asp:DropDownList ID="DDLState" runat="server" CssClass="col-xs-2" Enabled="false" >
                        <asp:ListItem Value="Y"></asp:ListItem>
                        <asp:ListItem Value="N"></asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="space-4"></div>
                <div class="form-group col-md-offset-2 col-xs-8">
                    <label class="col-sm-3 control-label no-padding-right">头像</label>
                    <div class="space-2"></div>
                    <div class="col-xs-3">
                        <asp:Literal ID="FaceImg_Edit" runat="server"></asp:Literal>
                    </div>
                    <div class="col-xs-3">
                        <input id="FacePhoto_Edit" type="file" runat="server"/>
                    </div>
                </div>
                <div class="space-6"></div>
				<div class="form-group col-xs-12 center">
                    <asp:Button ID="BT_Add" runat="server" Text="确认" 
                            CssClass="btn btn-info icon-ok bigger-110 hidden " OnClick="BT_Add_Click" />
                    <button class="btn btn-info" type="button" onclick="DoubleAddClick()">
						<i class="icon-ok bigger-110"></i>
						确认
					</button>
                    <Button id="Reset1" type="reset" value="取消"  class="btn" ><i class="icon-undo bigger-110"></i>
					    Reset
                    </Button>
                </div>
            </div>
        <div class="page-header">
            <div class="col-xs-12">
            </div>
        </div>

        <div class="row clearfix  form-actions">
                <div class="form-group col-md-offset-2 col-xs-8" >
					<label class="col-sm-3 control-label no-padding-right">重设密码问题</label>
                    <div class="space-2"></div>
                    <asp:DropDownList ID="DDLQuestion" runat="server" >
                        <asp:ListItem Value="">--选择一个问题--</asp:ListItem>
                        <asp:ListItem Value="我最喜欢的数字">我最喜欢的数字</asp:ListItem>
                        <asp:ListItem Value="我最喜欢的电影">我最喜欢的电影</asp:ListItem>
                        <asp:ListItem Value="我最喜欢的颜色">我最喜欢的颜色</asp:ListItem>
                        <asp:ListItem Value="我最难忘怀的人">我最难忘怀的人</asp:ListItem>
                        <asp:ListItem Value="忘记自己也不会忘记">忘记自己也不会忘记</asp:ListItem>                        
                        <asp:ListItem Value="25175-忘不掉的密码">25175-忘不掉的密码</asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="space-4"></div>
	            <div class="form-group col-md-offset-2 col-xs-8" >
					<label class="col-sm-3 control-label no-padding-right">输入旧答案</label>
                    <div class="space-2"></div>
	                <asp:TextBox runat="server" id="TxtAnswerOld"  CssClass="col-xs-6" />
                </div>
                <div class="space-4"></div>
	            <div class="form-group col-md-offset-2 col-xs-8" >
					<label class="col-sm-3 control-label no-padding-right">重设密码答案</label>
                    <div class="space-2"></div>
	                <asp:TextBox runat="server" id="TxtAnswer"  CssClass="col-xs-6" />
                </div>
                <div class="space-6"></div>
				<div class="form-group col-xs-12 center">
                    <asp:Button ID="BT_SetAnswer" runat="server" Text="重设密码设置" 
                            CssClass="btn btn-info icon-ok bigger-110 hidden " OnClick="BT_SetAnswer_Click" />
                    <button class="btn btn-info" type="button" onclick="DoubleSetAnswerClick()">
						<i class="icon-ok bigger-110"></i>
						重设密码设置
					</button>
                </div>
        </div>
</div>
    
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_Footer" runat="server">

    <script type="text/javascript" src="../assets/js/jquery-2.0.3.min.js"></script>

	<script type="text/javascript">
		window.jQuery || document.write("<script src='../assets/js/jquery-2.0.3.min.js'>" + "<" + "/script>");
	</script>

	<script type="text/javascript">
		if ("ontouchend" in document) document.write("<script src='../assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
	</script>
	<script type="text/javascript" src="../assets/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../assets/js/typeahead-bs2.min.js"></script>

	<!-- page specific plugin scripts -->

	<!-- ace scripts -->

	<script type="text/javascript" src="../assets/js/ace-elements.min.js"></script>
	<script type="text/javascript" src="../assets/js/ace.min.js"></script>
    <script type="text/javascript">

        jQuery(function ($) {
            $('#ContentPlaceHolder1_FacePhoto_Edit').ace_file_input({
                style: 'well',
                btn_choose: '选择图片',
                btn_change: null,
                no_icon: 'icon-cloud-upload',
                droppable: true,
                thumbnail: 'small',
                preview_error: function (filename, error_code) {
                }
            }).on('change', function () {
            });
        });
    </script>
</asp:Content>
