<%@ Page Language="C#" AutoEventWireup="true"  %>

<%@ Register Assembly="com.xykj.business" Namespace="com.xykj.business" TagPrefix="xykj" %>
<%@ Import Namespace="System.Collections.Generic" %>

<script runat="server">
    IList<com.xykj.model.xcp_error> datas;
   // IList<com.xykj.model.xcp_error> datass;
protected void Page_Load(object sender, EventArgs e)
{
      string wher = " where 1=1 ";
      com.xykj.database.General g = new com.xykj.database.General();
      int count = 0 ;
      if (leixing.Value != "0")
      {
          wher += " and Etype='" + leixing.Value + "'";
      }
      if (XY.ToInt(Context.Request.Params["tuiguangyuans"])>0)
      {
          wher += " and spID='" + Context.Request.Params["tuiguangyuans"] + "'";
      }
      datas = g.GetDatas<com.xykj.model.xcp_error>("xcp_error",20,PageE1.CurPage, wher, out count);

     // datass = g.GetDatas<com.xykj.model.xcp_error>("select spID from xcp_error group by spID"); 
      PageE1.PageSize = 20;
      PageE1.RecordCount = count;
    
}
</script>
<!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>信游科技页游平台管理系统V3</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="Content-Script-Type" content="text/javascript"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link rel="shortcut icon" href="/misc/favicon.ico" type="image/x-icon" />
<script src="/misc/shijian.js" type="text/javascript"></script>
<script type="text/javascript" src="/api/script.ashx?script.jq.js"></script>
<script type="text/javascript" src="/api/script.ashx?script.core.js"></script>
<link href="/misc/css/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/misc/css/global.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    var view = getparaFY("view")
    if (typeof view != "undefined") {
        if (window == top) top.location.href = "default.aspx?view=" + view;
    } else {
        if (window == top) top.location.href = "default.aspx";
    }

</script>
</head>
<body>
<div class="main ui-widget">
<p class="ui-page-title">错误日志</p>
<div class="work">
<form runat="server">
<span style=" font-size:15px; font-weight:bold; margin-bottom:200px;">推广员</span>
<input  type="text" name="tuiguangyuans"/>
<!--<asp:DropDownList ID="tuiguangyuan" runat="server"/>

<select name="tuiguangyuans">
<option value="0">全部</option>
<%foreach (var item in datas)
  {%>
<option value="<%=item.spID%>"><%=item.spID%></option>     
<%}%>
</select>

-->


<span style=" font-size:15px; font-weight:bold;">类型</span>

<div style=" margin-top:-25px; margin-left:240px;">
<select name="leixing" id="leixing" runat="server">
<option value="0">全部</option>
	<option value="注册">注册</option>
	<option value="充值">充值</option>
</select>
</div>
<asp:Button ID="Button1" runat="server" Text="查  询" style=" margin-top:-25px; margin-left:390px;"/>
<table class="table" style=" margin-left:-8px; margin-top:20px;">
<thead>
<tr><th>推广员ID</th><th>消息</th><th style=" width:500px">参数</th><th>类型</th><th>时间</th></tr>
</thead>
<tbody>
<%foreach (var item in datas){%>
<tr><td><%=item.spID%></td><td><%=item.msg%></td><td style=" width:500px"><%=item.parms%></td><td><%=item.Etype%></td><td><%=item.dtime%></td></tr>      
<%}%>


</tbody>
</table>
 
<xykj:pageE ID="PageE1" class="pagediv2" runat="server" />

</form>
</div>
</div>
</body>
</html>