<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Admin/MasterPage.master" Inherits="Kesion.NET.WebSite.Course.Admin.Course.KS_CsDJHold" CodeBehind="KS.CsDJHold.aspx.cs" %>

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

<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
  
	<script>
    
		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('');
			}
		}
		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 savestatus(i) {
			if (i == 0) { $("#showstatus").html("<span style='color:blue' onclick=\"savestatus(1)\">已审核</span>"); $("#status").val(1); };
			if (i == 1) { $("#showstatus").html("<span style='color:red' onclick=\"savestatus(0)\">未审核</span>"); $("#status").val(0); };
		}
    
    </script> 
    <asp:Panel ID="ListPanel" runat="server" Width="100%">

         <div id="manage_top" class="menu_top_fixed">
         <ul class="titleTab">
           <%if (KSSecurity.CheckMenuPower("Course/KS.CosConfig.aspx0", true))
                  { %>
          <li><a href="KS.CosConfig.aspx">系统设置</a></li>
             <%}
               if (KSSecurity.CheckMenuPower("Course/KS.CosConfig.aspx1",true)){ %>
          <div onmouseover="jQuery('#topcd').show();" onmouseout="jQuery('#topcd').hide();" class="liwrap">
                   <li><a href="KS.CosCategory.aspx?type=0">分类设置</a></li>
                   <div id="topcd" class="topcd" style="display:none">
                      <a href="KS.CosCategory.aspx?type=0">网授分类</a>
                      <a href="KS.CosCategory.aspx?type=1">面授分类</a>
                   </div>
           </div>
            <%}
                if (KSSecurity.CheckMenuPower("Course/KS.CosConfig.aspx2", true))
                { %>
          <li class="curr"><a href="KS.CosLiveConfig.aspx">直播道具</a></li>
             <%}
                 if (KSSecurity.CheckMenuPower("Course/KS.CosConfig.aspx3", true))
                 { %>
          <li><a href="KS.CosFaceType.aspx">面授班型</a></li>
              <%}
                  if (KSSecurity.CheckMenuPower("Course/KS.CosConfig.aspx4", true))
                  { %>
          <div onmouseover="jQuery('#topvideo').show();" onmouseout="jQuery('#topvideo').hide();" class="liwrap">
                   <li><a href="KS.CosAPIConfg.aspx">视频接口</a></li>
                   <div id="topvideo" class="topcd" style="display:none">
                      <a href="KS.CosAPIConfg.aspx">点播接口</a>
                      <a href="KS.CosLiveAPIConfig.aspx">直播接口</a>
                   </div>
              <%} %>
              <li><a href="KS.CosVideoAdvertiseManage.aspx">设置视频广告</a></li>
       </ul>
 </div>  
<div class="menu_top_fixed_height"></div> 

        <div class="content-area">       
            <div class="tabs_header">
                <ul class="tabs">
                    <li ><a href="KS.CosLiveConfig.aspx"><span>道具配置</span></a></li>
                    <li ><a href="KS.CsDJOrder.aspx"><span>购买记录</span></a></li>
                    <li class='active'><a href="KS.CsDJHold.aspx"><span>持有记录</span></a></li>
                </ul>
            </div>
            <div class="quickSearch">
                <asp:DropDownList ID="Condition" runat="server" style="margin-right:8px;">
                    <asp:ListItem Value="1">用户名</asp:ListItem>
                    <asp:ListItem Value="2">道具名称</asp:ListItem>
                    <%-- <asp:ListItem Value="3">道具名称</asp:ListItem>--%>
                </asp:DropDownList>
                <asp:TextBox onfocus="keyWordFocus();" onblur="keyWordBlur();" Style="color: #ccc" Text="请输入关键字！" CssClass="textbox" ID="KeyWord" runat="server" Width="180px"></asp:TextBox>
            
                <b class="link-color" onclick="SetDate()">日期范围？</b>
                <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="Button1" runat="server" Text=" 搜索 "  CssClass="button"  onclick="Button1_Click" />
            </div>
            <asp:Label ID="LabNav" Visible="false" runat="server"></asp:Label>
                <KS:ksgv id="List" runat="server" AutoGenerateColumns="False" EmptyDataText="暂时没有记录!" PagerType="CustomNumeric" Width="99%"  CssClass="CTable" GridLines="None" OnRowDataBound="List_RowDataBound" OnRowCommand="List_RowCommand" OnRowCreated="List_RowCreated">
                    <Columns>
                    <asp:TemplateField HeaderText="&lt;input type='checkbox' name='chkall' id='chkall' onClick='CheckAll(this.form);'/&gt;">
                            <itemstyle horizontalalign="Center" width="30px" />
                            <itemtemplate>
                            <input type="checkbox"  name="ids" id="ids" value="<%#Eval("ID") %>" />
                            </itemtemplate>
                        </asp:TemplateField>
            
                         <asp:TemplateField HeaderText="道具名称">
                                <ItemStyle Width="100px" HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <%#Eval("acname") %>
                                </ItemTemplate>
                            </asp:TemplateField>
                                <asp:TemplateField HeaderText="图片">
                           <itemstyle width="100" HorizontalAlign="Center" />
                            <itemtemplate>
                        <img style="width:50px;" src="<%#Eval("acimage") %>" />
                        
                            </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="用户名">
                           <itemstyle width="100" HorizontalAlign="Center" />
                            <itemtemplate>
                            <%#Eval("username") %>
                        
                            </itemtemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="持有数量">
                           <itemstyle width="60" HorizontalAlign="Center" />
                            <itemtemplate>
                            <%#Eval("holdnum") %>
                       
                            </itemtemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="用户类型">
                        <itemstyle  horizontalalign="Center" width="150px" />
                            <itemtemplate> 
                            <%# Eval("usertype").ToString()=="1"?"教师":"学员" %>
                            </itemtemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="添加日期">
                           <itemstyle width="100" HorizontalAlign="Center" />
                            <itemtemplate>
                            <%#Eval("adddate") %>
                      
                            </itemtemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="发送数量">
                           <itemstyle width="100" HorizontalAlign="Center" />
                            <itemtemplate>
                            <%#Eval("fasong") %>
                        
                            </itemtemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="接收数量">
                           <itemstyle width="100" HorizontalAlign="Center" />
                            <itemtemplate>
                            <%#Eval("jieshou") %>
                            </itemtemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="贡献值">
                           <itemstyle width="100" HorizontalAlign="Center" />
                            <itemtemplate>
                            <%#Eval("contribution") %>
                            </itemtemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="最后操作日期">
                        <itemstyle  horizontalalign="Center" width="100px" />
                            <itemtemplate> 
                            <%#  Eval("lasttime") %>
                            </itemtemplate>
                        </asp:TemplateField>
                    
            
                      <%--   <asp:TemplateField HeaderText="道具总数量">
                        <itemstyle  horizontalalign="Center" width="100px" />
                            <itemtemplate> 
                           <%#Eval("acnum") %>
                            </itemtemplate>
                        </asp:TemplateField>--%>
                        
                     <%--   <asp:TemplateField HeaderText="删除">
                            <itemstyle horizontalalign="Center" Width="100"/>
                         <itemtemplate>
                         <asp:LinkButton runat="server"  CssClass="delete" id="delet" commandargument=<%# Eval("ID") %> commandname="del">删除</asp:LinkButton>
                        </itemtemplate>
                        </asp:TemplateField>--%>
                       
                    </Columns>
                    <HeaderStyle CssClass="CTitle" />
                    <EmptyDataRowStyle CssClass="emptycss" />
                </KS:ksgv>
                <div class="listedit">
      	  &nbsp;&nbsp;&nbsp;&nbsp;
          <asp:LinkButton ID="LinkButton1" CssClass="button" runat="server" OnClientClick="return(GetIDS('del'));" OnClick="delclassbutton_Click"><b></b>删除</asp:LinkButton>
      </div>
                <KS:Page ID="Page1" runat="server" />  
        </div>          
    </asp:Panel>
</asp:Content>


