<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="yc_card_List.aspx.cs" Inherits="YCHR.Web.admin.company.yc_card_List" %>

<!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 rel="stylesheet" type="text/css" href="../images/style.css" />
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="../js/function.js"></script>
    <script type="text/javascript">
        $(function () {
            $(".msgtable tr:nth-child(odd)").addClass("tr_bg"); //隔行变色
            $(".msgtable tr").hover(
			    function () {
			        $(this).addClass("tr_hover_col");
			    },
			    function () {
			        $(this).removeClass("tr_hover_col");
			    }
		    );
        });
    </script>
 
    <style>
        #preview
        {
            position: absolute;
            border: 1px solid #ccc;
            background: #333;
            padding: 5px;
            display: none;
            color: #fff;
        }
    </style>
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="add"></span><b>您当前的位置：首页 &gt; 企业会员 &gt; 招聘企业列表</b></div>
    <div class="spClear">
    </div>
    <table width="100%" cellspacing="1" cellpadding="2" border="0" align="center" class="border">
        <tbody>
            <tr class="tdbg">
                <td width="78" height="30">
                    <strong>管理选项：</strong>
                </td>
                 <td height="25" class="pl20"><b>管理选项：<a href="YC_card_List.aspx">卡列表管理</a>|<a href="YC_vip_card.aspx">生成新卡</a>|  [<a href="javascript:location.reload()">刷新页面</a>]</b></td>
            </tr>
           
            <tr class="tdbg">
                <td width="78" height="30">
                    <strong>时间筛选：</strong>
                </td>
                <td class="dh">
                    <a href="?day=&amp;&amp;state=<%=RequestS("state") %>"
                        class="<%=RequestS("day")==""?"dhcss":"" %>">不限</a> <a href="?day=1&amp;state=<%=RequestS("state") %>"
                            class="<%=RequestS("day")=="1"?"dhcss":"" %>">一天内</a> <a href="?day=3&amp;state=<%=RequestS("state") %>"
                                class="<%=RequestS("day")=="3"?"dhcss":"" %>">三天内</a> <a href="?day=7&amp;state=<%=RequestS("state") %>"
                                    class="<%=RequestS("day")=="7"?"dhcss":"" %>">一周内</a> <a href="?day=30&amp;state=<%=RequestS("state") %>"
                                        class="<%=RequestS("day")=="30"?"dhcss":"" %>">一月内</a> <a href="?day=180&amp;state=<%=RequestS("state") %>"
                                            class="<%=RequestS("day")=="180"?"dhcss":"" %>">半年内</a>
                </td>
            </tr>
            <tr class="tdbg">
                <td height="30">
                    <strong>搜索：</strong>
                </td>
                <td>
                    <br />
                    <asp:DropDownList ID="ddlProperty" runat="server" AutoPostBack="True" CssClass="select">
                        <asp:ListItem Value="1">卡号 </asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;
                    <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword"></asp:TextBox>
                    &nbsp;
                    <asp:Button ID="btnSelect" runat="server" Text="查询" CssClass="submit" OnClick="btnSelect_Click" />
                    &nbsp;&nbsp;&nbsp;<br />
                    <br />
                </td>
            </tr>
        </tbody>
    </table>
    <div class="clear box">
        <div class="left">
            本次筛选记录数：<b class="ft_red ft_16"><%=recordCount %></b></div>
        <asp:Literal ID="litpagestr0" runat="server"></asp:Literal>
    </div>
    <div class="clear">
    </div>
     <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable" id="ListView">
    <tr>
      
      <th width="10%" align="center">编号</th> 
      <th width="60%" align="center"> 充值卡号 </th> 
      <th width="15%" align="center"> 生成日期</th>
      <th width="15%" align="center"> 充值卡状态 </th>
 
     
    </tr>
    <asp:Repeater ID="repList" runat="server" >
      <ItemTemplate>
        <tr>
          
             <td align="center"><%#Eval("id") %>
            </td>
            <td align="center"><%#Eval("cardnum") %></td>
            <td align="center"><%#Eval("createdate") %></td>
          
        
            <td align="center"><%#Eval("state").ToString() == "1" ? "<font color='red'>已使用</font>" : "未使用"%></td> 
          
        </tr>

      </ItemTemplate>
    </asp:Repeater>
  </table>
    <div class="clear box">
        <div class="left">
            
           
           </div>
        <!--page-->
        <asp:Literal ID="litpagestr" runat="server"></asp:Literal>
    </div>
    <div class="clear">
    </div>
    </form>
</body>
</html>
