<%@ page language="C#" autoeventwireup="true" inherits="admin_lottery_lottery, kfenlei" %><%@ Register Src="../inc/adminTop.ascx" TagName="adminTop" TagPrefix="qth8" %><!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>
<title>框分类信息系统 后台管理</title>
<link href="../css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div align="center">
<div class="main" align="left">
<qth8:adminTop ID="AdminTop1" runat="server" />
<div class="d01">
<div class="tabTitle">抽奖活动管理<span class="tabTitleCom">共<%=iRecordCount%>条</span></div>
<form name="fSearch" id="fSearch" class="layui-form" action="lottery.aspx" method="get">
<table width="100%" border="0" class="layui-table" cellspacing="0" cellpadding="0">
<tr><td class="mhead1" colspan="7">筛选：<input type="radio" name="a" lay-filter="a" value="0" title="全部" /><input name="a" type="radio" lay-filter="a" value="1" title="等待开奖" /><input type="radio" lay-filter="a"  name="a" value="2" title="已结束" /> 搜索： <input type="text" size="10" class="inputText" name="k" style="width:100px;" value="<%=k%>" />　<input type="submit" class="layui-btn layui-btn-small" value="搜索" /></td></tr>
</table>
</form>
<script language="javascript" type="text/javascript">
layui.use(['form','laydate'], function(){
var form = layui.form();
form.render();
form.on('radio(a)', function(data){
$("#fSearch").submit();
});
});
function goPage()
{
	window.location.replace("lottery.aspx?k=<%=k %>&a=<%=a%>&u=<%=u%>&p="+document.getElementById("iPageIndex").value);
}
ckRadio("a","<%=a %>");
</script>
<table width="100%" border="0" class="layui-table" cellspacing="0" cellpadding="0">
<thead>
<tr>
<td width="100" class="mhead1">开始日期</td>
<td width="100" class="mhead1">结束日期</td>
<td width="100" class="mhead1">开奖日期</td>
<td width="100" class="mhead1">中奖人数</td>
<td width="100" class="mhead1">参加人数</td>
<td width="240" class="mhead1">状态</td>
<td width="160" class="mhead1"><a href="lotteryAdd.aspx" class="layui-btn layui-btn-small">添加抽奖</a></td>
</tr>
</thead>
<%=sList %>
<tr>
<td class="mhead1" colspan="7">页码 <%=iPageIndex.ToString() %>/<%=iPageCount.ToString() %> <span class="color3">|</span> <a href="lottery.aspx?p=1&k=<%=k%>&a=<%=a%>&u=<%=u%>">首页</a> <a href="lottery.aspx?p=<%=iTp.ToString()%>&k=<%=k%>&a=<%=a%>&u=<%=u%>">上一页</a> <a href="lottery.aspx?p=<%=iNp.ToString()%>&k=<%=k%>&a=<%=a%>&u=<%=u%>">下一页</a> <a href="lottery.aspx?p=<%=iPageCount.ToString()%>&k=<%=k%>&a=<%=a%>&u=<%=u%>">尾页</a> <span class="color3">|</span> <input type="text" size="5" id="iPageIndex" class="inputText" /> <input type="button" value="转到" class="bt1" onclick="goPage()" /></td>
		  </tr>
</table>
</div>
</div></div>
</body>
</html>
