<%@ Page CodeBehind="admin_jb.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Typhoto.admin_jb" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>举报查看</title>
		<link href="img/main.css" rel="stylesheet" type="text/css">
			<style type="text/css">
.style1 { FONT-WEIGHT: bold; COLOR: #ffffff }
.style11 { COLOR: #ffffff }
		</style>
			<script language="JAVASCRIPT">
function checkAll()
{
	var objID=document.getElementsByTagName("input");
	for (var i=0 ;i<objID.length;i++)
	{
		if (objID[i].type=="checkbox")
		{
			if(objID[i].checked)
			{
				objID[i].checked=false;
				document.all.CheckBox2.checked=false;
				AddRemoveValues(objID[i]); 
				
			}
			else
			{
				objID[i].checked=true;
				document.all.CheckBox2.checked=true;
				AddRemoveValues(objID[i]);
			}
		}
	}
}
function AddRemoveValues(oChk) { 
if(oChk.checked)
Form1.HdnSelectedValues.value += "," + oChk.value; 
else
Form1.HdnSelectedValues.value = Form1.HdnSelectedValues.value.replace("," + oChk.value,""); 
}
			</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" id="brb"
				height="27">
				<tr>
					<td class="td_title">举报查看
					</td>
				</tr>
			</table>
			<div align="center">
				<asp:datagrid id="DataGrid" runat="server" CssClass="GridBody" GridLines="None" AutoGenerateColumns="False"
					Width="100%" PageSize="20" AllowSorting="True">
					<AlternatingItemStyle BackColor="#EEEEEE"></AlternatingItemStyle>
					<HeaderStyle ForeColor="Black" BackColor="#E3F4FD"></HeaderStyle>
					<Columns>
						<asp:TemplateColumn HeaderText="选择">
							<HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center"></ItemStyle>
							<HeaderTemplate>
								<INPUT type="checkbox" id="CheckBox2" onClick="checkAll()">
							</HeaderTemplate>
							<ItemTemplate>
								<INPUT id=chkSelect onclick=AddRemoveValues(this) type=checkbox value='<%#DataBinder.Eval(Container.DataItem,"id")%>' name=chkSelect runat="server">
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:BoundColumn Visible="False" DataField="id"></asp:BoundColumn>
						<asp:BoundColumn DataField="mail" SortExpression="mail" HeaderText="举报者mail地址">
							<HeaderStyle HorizontalAlign="Center" Width="15%"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center"></ItemStyle>
						</asp:BoundColumn>
						<asp:BoundColumn DataField="url" SortExpression="url" HeaderText="举报地址">
							<HeaderStyle HorizontalAlign="Center" Width="15%"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center"></ItemStyle>
						</asp:BoundColumn>
						<asp:BoundColumn DataField="type" SortExpression="type" HeaderText="举报类型">
							<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center"></ItemStyle>
						</asp:BoundColumn>
						<asp:BoundColumn DataField="memo" HeaderText="详细说明">
							<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
						</asp:BoundColumn>
						<asp:BoundColumn DataField="jbtime" SortExpression="jbtime" HeaderText="举报时间">
							<HeaderStyle HorizontalAlign="Center" Width="15%"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center"></ItemStyle>
						</asp:BoundColumn>
						<asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
							<HeaderStyle HorizontalAlign="Center" Width="7%"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center"></ItemStyle>
						</asp:ButtonColumn>
					</Columns>
					<PagerStyle PageButtonCount="20" Mode="NumericPages"></PagerStyle>
				</asp:datagrid>
				<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
					<tr>
						<td height="25"><webdiyer:AspNetPager id="Pager" runat="server" PageSize="20" AlwaysShow="True" ShowCustomInfoSection="Left"
								NumericButtonCount="15" HorizontalAlign="Right" ShowBoxThreshold="21" FirstPageText="<font face=webdings>9</font>"
								PrevPageText="<font face=webdings>3</font>" NextPageText="<font face=webdings>4</font>" LastPageText="<font face=webdings>:</font>"
								Height="20px" CssClass="page" onpagechanged="Pager_PageChanged"></webdiyer:AspNetPager></td>
					</tr>
					<tr>
						<th height="25">
							操作区</th>
					</tr>
					<tr>
						<td align="center"><asp:Button ID="btnlock" runat="server" class="formbutton" Width="50px" Text="删除" onclick="btnlock_Click"></asp:Button>&nbsp;&nbsp;&nbsp;&nbsp;
							<asp:Button ID="Button1" runat="server" class="formbutton" Width="50px" Text="清空" onclick="Button1_Click"></asp:Button>
							<input id="HdnSelectedValues" type="hidden" name="HdnSelectedValues" runat="server"></td>
					</tr>
				</table>
			</div>
		</form>
	</body>
</HTML>
