<%@ Page Language="C#" AutoEventWireup="true" CodeFile="onlineorder.aspx.cs" Inherits="webXabara_study_onlineorder" %>
<!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 id="Head1" runat="server">
    <title>管理预约信息</title>
    <link href="../InClude/StyleSheet.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            margin: 8px 8px 0px 0px;
        }
    </style>
    <script src="/js/jquery.min.js" type="text/javascript"></script>
    
    <script src="/js/all.js" type="text/javascript"></script>
    <script type="text/javascript">
        function CheckAll(e, itemname) {
            var aa = document.getElementsByName(itemname);
            if (aa == undefined) return;
            for (var i = 0; i < aa.length; i++) aa[i].checked = e.checked;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="divWidth">
        <div class="titleBg">
            管理预约信息</div>
        <div class="height5px">
        </div>
        <div runat="server" id="listNews">            
            <asp:Repeater ID="sList" runat="server">
                <HeaderTemplate>
                <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tableLine">
                <tr><td colspan="10" style="background-color:#b3e2ef;"></td></tr>
                </HeaderTemplate>
                <ItemTemplate>
                        <tr>
                            <td style="text-align: center;">
                                <input name="batDel" type="checkbox" value='<%# Eval("id").ToString().Trim()%>' />
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                姓名
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                身份
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                电子邮箱
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                移动电话
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                固定电话
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                授课地址
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                提交时间
                            </td> 
                            <td class="tdTitle" style="text-align: center;">
                                预约<%# Eval("ts").ToString().Trim().Equals("t") ? "家长" : "教员"%>
                            </td>                           
                            <td class="tdTitle" style="text-align: center;">
                                处理情况
                            </td>                                                       
                        </tr>
                        <tr>
                            <td style="text-align:center;" colspan="2">
                                <%# Eval("yourName").ToString().Trim()%>
                            </td>
                            <td style="text-align:center;">
                                <%# Eval("ts").ToString().Trim().Equals("t")?"教员":"家长"%>
                            </td>
                            <td style="text-align:center;">
                                <%# Eval("yourEmail").ToString().Trim()%>
                            </td>
                            <td style="text-align:center;">
                                <%# Eval("yourMobile").ToString().Trim()%>
                            </td>
                            <td style="text-align:center;">
                                <%# Eval("yourTel").ToString().Trim()%>
                            </td>
                            <td>
                                <%# Eval("youAddress").ToString().Trim()%>
                            </td>                            
                            <td style="text-align:center;">
                                <%# Convert.ToDateTime(Eval("PostDate").ToString().Trim()).ToString("yy-MM-dd HH:mm")%>
                            </td>
                            <td style="text-align:center;">
                                <ul>
                                <li><%# Eval("userName").ToString().Trim() %></li>
                                <li><%# viewHttp(Eval("relatingID").ToString().Trim(),Eval("ts").ToString().Trim()) %></li>
                                <li><%# Eval("userMobile").ToString().Trim() + " " + Eval("userTel").ToString().Trim() + "<br />" + Eval("userEmail").ToString().Trim() + getQQHtm(Eval("userQQ").ToString().Trim())%></li>
                                </ul>
                            </td>
                            <td style="text-align:center;">
                                <%# adminStr(Eval("flagID").ToString().Trim(), Eval("adminID").ToString().Trim(), Eval("adminDate").ToString().Trim())%>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdTitle" style="text-align: center;">区域</td>
                            <td colspan="3" style="text-align:left;"><%# pca(Eval("pID").ToString().Trim(),Eval("cID").ToString().Trim(),Eval("aID").ToString().Trim()) %></td>
                            <td class="tdTitle" style="text-align: center;">科目</td>
                            <td colspan="2" style="text-align:left;"><%# ids(Eval("teachIDs").ToString().Trim())%></td>
                            <td class="tdTitle" style="text-align: center;">
                                留言
                            </td>
                            <td colspan="2" style="text-align:left;"><%# Eval("guestBook").ToString().Trim()%></td>
                        </tr>                        
                        <tr><td colspan="10" style="background-color:#b3e2ef;"></td></tr>
                </ItemTemplate>
                <FooterTemplate></table></FooterTemplate>
            </asp:Repeater>
        </div>
        <div class="height5px"></div>
        <div class="tableAdminLine" style="padding: 5px;" id="checkDiv" runat="server">
            <div style="text-align: center; height: 36px; line-height: 36px; background-color: White;">
                全选<input name="chkall" value="1" type="checkbox" onclick="CheckAll(this,'batDel')" />
                <asp:Button ID="batDelete" runat="server" Text="删除无效信息" CssClass="inputBottom" OnClientClick="return confirm('确定删除吗？');" OnClick="batDelete_Click" CausesValidation="False" /> 
                <asp:Button ID="batOK" runat="server" Text="确认已联系" CssClass="inputBottom" OnClientClick="return confirm('确定吗？');"
                    OnClick="batOK_Click" CausesValidation="False" /></div>
        </div>
        <div id="errDiv" runat="server">
            <div style="height: 150px;">
            </div>
            <div style="text-align:center;">
                <asp:Label ID="errInfo" runat="server" ForeColor="#FF3300"></asp:Label></div>
            <div style="height: 150px;">
            </div>
        </div>
        <div class="height5px">
        </div>
        <div>
            <asp:Literal ID="lblCurrentPage" runat="server"></asp:Literal>
        </div>
    </div>
    </form>
</body>
</html>