<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="True" Inherits="Admin_Course_KS_CosSignRecord" Codebehind="KS.CosSignRecord.aspx.cs" %>

<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.BLL" %>
<%@ Import Namespace="Kesion.Course" %>
<%@ Import Namespace="Kesion.APPCode" %>


<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" runat="Server">
    <script>
        function keyWordFocus() {
            if (jQuery("#<%=this.KeyWord.ClientID %>").val() == '请输入关键字！') {
                 jQuery("#<%=this.KeyWord.ClientID %>").val('');
             }
         }
         function keyWordBlur() {
             if (jQuery("#<%=this.KeyWord.ClientID %>").val() == '') {
                jQuery("#<%=this.KeyWord.ClientID %>").val('请输入关键字！');
            }
        }
        function SetDate() {
            var today = new Date();
            if ($("#showdate").is(":hidden")) {
                $("#showdate").show();
                $('#<%=TxtBeginDate.ClientID%>').val(today.getFullYear() + '-' + (today.getMonth() + 1) + '-01');
                $('#<%=TxtEndDate.ClientID%>').val(today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate());
            }
            else {
                $("#showdate").hide();
                $('#<%=TxtBeginDate.ClientID%>').val('');
        $('#<%=TxtEndDate.ClientID%>').val('');
            }
        }

    </script>
    <asp:Panel ID="listPanel" runat="server" Width="100%">
        <div id="manage_top" class="toptitle menu_top_fixed">
            <%= DataFactory.GetOnlyValue("select name from KS_CourseFace where courseid="+KSCMS.S("cid")) %>
        </div>
        <div class="menu_top_fixed_height"></div>
        <div class="content-area" style="height:250px">
               <asp:Panel ID="Panel1" runat="server" style="width:200px;height:800px">

                          <img id="qrimg" alt="二维码签到" src="/plus/chart.ashx?text=<%=MyCache.GetCacheConfig(5) %>/plus/course/LearnScore.aspx?action=qrcode%26courseid=<%=KSCMS.S("cid") %>" /><br />
                          <span class="tips"><strong>友情提示：</strong><br />请在面授课程规定开课时间扫码签到！</span>
                   
                    </asp:Panel>

              <asp:Panel ID="Panel2" runat="server" CssClass="right" style="width: 842px; margin-top: -240px;">
                    <div class="quickSearch">
                        快速搜索： 
                <asp:DropDownList ID="Condition" runat="server">
                    <asp:ListItem Value="1">姓名</asp:ListItem>
                </asp:DropDownList>
                        <asp:TextBox onfocus="keyWordFocus();" onblur="keyWordBlur();" Style="color: #ccc" Text="请输入关键字！" CssClass="textbox" ID="KeyWord" runat="server" Width="180px"></asp:TextBox>
                 <span onclick="SetDate()" class="link-color" style="cursor: pointer">日期范围？</span>
                    <span id="showdate" <%if (this.TxtBeginDate.Text == "")
                                      { %>
                        style="display: none" <%} %>>
                        <asp:TextBox ID="TxtBeginDate" placeholder="格式：YYYY-MM-DD" Width="150px" runat="server" onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});" CssClass="textbox Wdate"></asp:TextBox>至
                   <asp:TextBox ID="TxtEndDate" placeholder="格式：YYYY-MM-DD" Width="150px" runat="server" onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});" CssClass="textbox Wdate"></asp:TextBox>
                    </span>
                        <asp:Button ID="Button2" runat="server" CssClass="button" Text="开始搜索" OnClick="Button2_Click" />
                    </div>
                    <div class="clearfix"></div>
                    <div class="blank20"></div>
                    <asp:Repeater ID="RptList" runat="server">
                        <HeaderTemplate>
                            <table width="99%" class="CTable" border="0" cellpadding="1" cellspacing="1">
                                <tr class="CTitle">
                                    <td align="center"><b>学员姓名</b></td>
                                    <td align="center"><b>课程签到开始时间——结束时间</b></td>
                                    <td align="center"><b>是否签到</b></td>
                                    <td align="center"><b>签到时间</b></td>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr onmouseover="this.className='CtrMouseOver'" onmouseout="this.className='CtrMouseOut'">
                                <td class="Ctd" style="text-align: center"><%# Eval("username")%></td>
                                <td class="Ctd" style="text-align: center"><%# Utils.StrToDateTime(Eval("begintime")).ToString("yyyy/MM/dd hh:mm:ss") %>——<%# Utils.StrToDateTime(Eval("endtime")).ToString("yyyy/MM/dd hh:mm:ss") %></td>
                                <td class="Ctd" style="text-align: center"><%# Eval("IsSignIn").ToString()=="1"?"已签到":"未签到" %></td>
                                <td class="Ctd" style="text-align: center"><%# Eval("signdate").ToString() %></td>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                    <tr>
                        <div class="empty" style="display: <%# bool.Parse((RptList.Items.Count==0).ToString())?"":"none"%>">查无数据</div>
                    </tr>
                        </FooterTemplate>
                    </asp:Repeater>
                    <KS:Page ID="Page1" runat="server" />
      </asp:Panel>
                </div>
     
         
    </asp:Panel>
</asp:Content>

