<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SubAccount.aspx.cs" Inherits="MTCUN.Mobile.Student.SubAccount" %>

<%@ Register src="../User_Col/col_StuHeader.ascx" tagname="col_StuHeader" tagprefix="uc1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>子帐号管理</title>
    <link id="mobileCss" runat="server" href="../themes/mobile.css" rel="stylesheet"
        type="text/css" />
    <link runat="server" href="Themes/css.css" rel="stylesheet"
        type="text/css" />

    <script type="text/javascript">
        function OpenSearch() {
            if (setContent.style.display == 'none') {
                setContent.style.display = 'block';
                setControl.innerHTML = '▲增加帐号';
                __mt__setSearchCookie(1);
            }
            else {
                setContent.style.display = 'none';
                setControl.innerHTML = '▼增加帐号';
                __mt__setSearchCookie(0);
            }
        }

        function defaultSearchState() {
            var num = __mt__getSearchCookie();
            if (num == 1) {
                setContent.style.display = 'block';
                setControl.innerHTML = '▲增加帐号';
            }
            else {
                setContent.style.display = 'none';
                setControl.innerHTML = '▼增加帐号';
            }
        }
    </script>
</head>
<body onload="defaultSearchState();">
    <form id="form1" runat="server">
        <uc1:col_StuHeader ID="col_StuHeader1" runat="server" />
        <div id="web_page_contents">
            <div class="search biao_zhun_suo_jin">

                <div class="setandsearch">
                    <ul class="searchtool">
                        <li>
                            <div id="setControl" onclick="OpenSearch()">
                                ▼增加帐号
                            </div>
                        </li>
                    </ul>

                    <div id="setContent" style="display: none">

                        <table class="table_simple_kuan" cellspacing="2" cellpadding="2">
                            <tr>
                                <td style="width: 50px">帐号：</td>
                                <td>
                                    <asp:TextBox ID="tbxUserName" runat="server" AutoCompleteType="Disabled"
                                        Font-Size="Larger" Height="29px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>密码：</td>
                                <td>
                                    <asp:TextBox ID="tbxPassword" runat="server" Height="29px" AutoCompleteType="Disabled"
                                        Font-Size="Larger" TextMode="Password"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                        <label class="lab_button_kuan">
                            <asp:Button ID="btnPost" runat="server" CssClass="blue_button" OnClick="btnPost_Click"
                                Text="绑定" />
                        </label>
                    </div>
                    
                </div>

                <asp:Repeater ID="repBlock" runat="server" OnItemCommand="repBlock_ItemCommand"
                    OnItemDataBound="repBlock_ItemDataBound">
                    <ItemTemplate>
                        <div class="kuai" style="margin: 3px; margin-bottom: 10px;">
                            <div class="inforow">
                                <div class="logo" style='<%# string.Format("background-image:url(\"{0}\")",ShowUserFace("stu_"+Eval("SubSex").ToString()+".gif")) %>'>
                                </div>
                                <div class="name">
                                    <%#Eval("SubStudentName")%>

                                    <div class="lab_button">
                                        <asp:LinkButton runat="server" ID="lbnSelect" CommandArgument='<%# Eval("SubStudentID")%>'
                                            CommandName="Select" Text="登录"></asp:LinkButton>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>

            </div>
        </div>
    </form>
</body>
</html>
