<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin.Course.KS_CosAllStatistics" Codebehind="KS.CosAllStatistics.aspx.cs" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" runat="server">
<div id="manage_top" class="menu_top_fixed">
    <ul class="titleTab">
      <li ><a href="KS.CosStats.aspx">课程订单统计</a></li>
      <li class="curr"><a href="KS.CosAllStatistics.aspx">课程数据统计</a></li>
      <li><a href="KS.CosClassCount.aspx">分类数据统计</a></li>     
      <li><a href="KS.CosBuyCGCount.aspx">买家采购统计</a></li>
   </ul>
</div>  
<div class="menu_top_fixed_height"></div>
 <div class="content-area">
     <div class="tabs_header clearfix">
        <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" CssClass="fr button mr20">导出Excel</asp:LinkButton>
        <ul class="tabs">
           	<li class='active'><a href="KS.CosAllStatistics.aspx"><span>课程总销售统计表</span></a> </li>
            <li ><a href="KS.CosFavoriteCount.aspx">浏览/点赞/收藏</a></li>
        </ul>
      </div> 
      <asp:Panel ID="Panel1" runat="server" Width="100%">
           <!--<div class="myTitle">
                 
           </div>-->
         <div class="quickSearch clearfix">
              <asp:DropDownList ID="DrpClassID" runat="server"  style="margin-right:8px;" OnSelectedIndexChanged="DrpClassID_SelectedIndexChanged" AutoPostBack="true">
                 <asp:ListItem Value="0">--按分类查看--</asp:ListItem>
              </asp:DropDownList>
              <asp:DropDownList ID="DrpCosType" runat="server" style="margin-right:8px;" OnSelectedIndexChanged="DrpCosType_SelectedIndexChanged"  AutoPostBack="true">
                <asp:ListItem Value="1">点播</asp:ListItem>
                <asp:ListItem Value="2">直播</asp:ListItem>
                <asp:ListItem Value="3">面授</asp:ListItem> 
                <asp:ListItem Value="4">套餐</asp:ListItem> 
              </asp:DropDownList>
              <asp:DropDownList ID="Condition" runat="server" style="margin-right:8px;">
                <asp:ListItem Value="1">课程名称</asp:ListItem>
                <asp:ListItem Value="2">课程ID</asp:ListItem>
              </asp:DropDownList>
              <asp:TextBox  Style="color: #ccc"  CssClass="textbox" ID="KeyWord" runat="server" Width="180px"></asp:TextBox>
              <asp:Button ID="Button4" runat="server" CssClass="button" Text="开始搜索" OnClick="Button2_Click" />
             <div class="TabTitle fr longHeadOperat2">
                <span <%=KSCMS.S("flag")==""||KSCMS.S("flag")=="0"?" class='active'":string.Empty %>><a href="?flag=0">所有销售</a></span>
               <span <%=KSCMS.S("flag")=="5"?" class='active'":string.Empty %>><a href="?flag=5">今日</a></span>
               <span <%=KSCMS.S("flag")=="1"?" class='active'":string.Empty %>><a href="?flag=1">昨日</a></span>
                <span <%=KSCMS.S("flag")=="2"?" class='active'":string.Empty %>><a href="?flag=2">最近7日</a></span>
                <span <%=KSCMS.S("flag")=="3"?" class='active'":string.Empty %>><a href="?flag=3">最近30日</a></span>
                <span <%=KSCMS.S("flag")=="4"?" class='active'":string.Empty %>><a href="?flag=4">按时间段</a></span>
                <%if (KSCMS.S("flag") == "4")
				  { %>
					<asp:TextBox CssClass="textbox Wdate ml15" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" Width="160" ID="TxtBeginDate" runat="server"></asp:TextBox>至 
					<asp:TextBox CssClass="textbox Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" Width="160" ID="TxtEndDate" runat="server" style="margin-right:8px;"></asp:TextBox>
					<asp:Button ID="BtnSearch" runat="server" Text="查询" CssClass="button" OnClick="BtnSearch_Click" />
		
				 <%} %>
             </div>
         </div>         
         <asp:Repeater ID="Repeater1" runat="server">
                <HeaderTemplate>
                    <table width="99%" border="0" cellpadding="2" cellspacing="1" class="CTable">
                        <tr align="center" class="CTitle">
                            <td width="50" align="center"><b>序号</b></td>
                            <td  align="center"><b>课程名称</b></td>
                            <td width="15%" align="center"><b>总成单量</b></td>
                            <td width="15%" align="center"><b>总金额(元)</b></td>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="tdbg">
                        <td align="center">
                            <%#Container.ItemIndex+1%>
                        </td>
                        <td align="left">
                        <%#Eval("name") %>
                        </td>
                        <td align="center">
                       <%#Eval("totalnum") %>
                        </td>
                        <td align="center">
                          <%#Kesion.APPCode.Public.ReturnShopPrice(Utils.StrToDecimal(Eval("totalmoney"))) %>
                        </td> 
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <tr class="tdbg" style="display: <%# bool.Parse((Repeater1.Items.Count==0).ToString())?"":"none"%>">
                        <td class="Ctd" style="text-align: center" colspan="12">
                            <div class="empty">没有课程销售统计的数据</div>
                        </td>
                    </tr>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <KS:Page ID="Page1" runat="server" />
     </asp:Panel>
  </div>
</asp:Content>
