<%@ Page language="c#" Inherits="WebApplication2.Admin.WebList" CodeFile="WebList.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>WebList</title>
		
		<LINK href="adminstyle.css" type="text/css" rel="stylesheet">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="98%" border="0" class="table_1">
				<TBODY>
					<TR>
						<TD align="center" class="td2" style="HEIGHT: 25px; color: white; background-color: #66cc00;"><FONT face="宋体">网站列表</FONT></TD>
					</TR>
					<TR class="td1">
						<TD><FONT face="宋体">网站类型：
								<asp:dropdownlist id="DropDownList1" runat="server">
									<asp:ListItem Value="is not null">--请选择--</asp:ListItem>
									<asp:ListItem Value="='1'">娱乐休闲</asp:ListItem>
									<asp:ListItem Value="='2'">地方门户</asp:ListItem>
									<asp:ListItem Value="='3'">下载资源</asp:ListItem>
									<asp:ListItem Value="='4'">行业资讯</asp:ListItem>
									<asp:ListItem Value="='5'">影视宽带</asp:ListItem>
									<asp:ListItem Value="='6'">论坛博客</asp:ListItem>
									<asp:ListItem Value="='7'">网址导航</asp:ListItem>
									<asp:ListItem Value="='8'">聊天交友</asp:ListItem>
									<asp:ListItem Value="='9'">壁纸图片</asp:ListItem>
									<asp:ListItem Value="='10'">教育培训</asp:ListItem>
									<asp:ListItem Value="='11'">医疗保健</asp:ListItem>
									<asp:ListItem Value="='12'">衣食住行</asp:ListItem>
									<asp:ListItem Value="='13'">军事国防</asp:ListItem>
									<asp:ListItem Value="='14'">其他站点</asp:ListItem>
								</asp:dropdownlist>&nbsp;账号状态：
								<asp:dropdownlist id="DropDownList2" runat="server">
									<asp:ListItem Value="is not null">--请选择--</asp:ListItem>
									<asp:ListItem Value="='1'">正常 </asp:ListItem>
									<asp:ListItem Value="='2'">禁止</asp:ListItem>
									<asp:ListItem Value="='3'">等待审核</asp:ListItem>
									<asp:ListItem Value="='4'">未通过审核</asp:ListItem>
								</asp:dropdownlist>&nbsp;用户账号：
								<asp:textbox id="TextBox1" runat="server" Width="96px"></asp:textbox><asp:button id="Button1" runat="server" Text="查询" onclick="Button1_Click"></asp:button></FONT></TD>
					</TR>
				</TBODY>
			</TABLE>
		<asp:datagrid id="DataGrid1" runat="server" Width="98%" AutoGenerateColumns="False" DataKeyField="id" onselectedindexchanged="DataGrid1_SelectedIndexChanged">
									<ItemStyle HorizontalAlign="Center" BorderStyle="None" BackColor="#FAFFF7" BorderWidth="1px"
										Height="25px"></ItemStyle>
									<AlternatingItemStyle BackColor="#FAFFF7"></AlternatingItemStyle>
									<HeaderStyle Font-Bold="True" HorizontalAlign="Center" BorderWidth="0px" BackColor="#66CC00"
										Height="30px"></HeaderStyle>
									<FooterStyle HorizontalAlign="Center" BackColor="#999999"></FooterStyle>
									<Columns>
										<asp:BoundColumn DataField="id" HeaderText="ID"></asp:BoundColumn>
										<asp:TemplateColumn HeaderText="账号">
											<ItemTemplate>
												<a href='UserWebDetail.aspx?name=<%#DataBinder.Eval(Container.DataItem,"UserName")%>'>
													<%#DataBinder.Eval(Container.DataItem,"UserName")%>
												</a>
											</ItemTemplate>
										</asp:TemplateColumn>
										<asp:TemplateColumn HeaderText="状态">
											<ItemTemplate>
												<a href='ModifWebList.aspx?id=<%#DataBinder.Eval(Container.DataItem,"id")%>'>
													<%#Convert.ToInt32(DataBinder.Eval(Container.DataItem,"Appearance").ToString())==1? "正常":
							Convert.ToInt32(DataBinder.Eval(Container.DataItem,"Appearance").ToString())==2? "禁止":
							Convert.ToInt32(DataBinder.Eval(Container.DataItem,"Appearance").ToString())==3? "等待审核":"未通过审核"%>
											</ItemTemplate>
										</asp:TemplateColumn>
										<asp:BoundColumn HeaderText="名称" DataField="WebsiteName"></asp:BoundColumn>
										<asp:TemplateColumn HeaderText="类型">
											<ItemTemplate>
												<%# WebType(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"WebsiteType").ToString()))%>
											</ItemTemplate>
										</asp:TemplateColumn>
										<asp:BoundColumn HeaderText="IP" DataField="ThedayvisitIp"></asp:BoundColumn>
										<asp:BoundColumn HeaderText="PV" DataField="ThedayvisitPv"></asp:BoundColumn>
										<asp:TemplateColumn HeaderText="星级">
											<ItemTemplate>
												<font color="#0066ff">
													<%# Stars(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"Star").ToString()))%>
												</font>
											</ItemTemplate>
										</asp:TemplateColumn>
										<asp:BoundColumn HeaderText="Alexa" DataField="Alexa"></asp:BoundColumn>
										<asp:BoundColumn HeaderText="添加时间" DataField="RegData"></asp:BoundColumn>
										<asp:BoundColumn HeaderText="IP" DataField="RegIp"></asp:BoundColumn>
										<asp:TemplateColumn HeaderText="编辑">
											<ItemTemplate>
												<asp:ImageButton ID="ImageButton1" CommandName="edit" Runat="server" ImageUrl="img/edit.gif"></asp:ImageButton>
											</ItemTemplate>
										</asp:TemplateColumn>
										<asp:TemplateColumn HeaderText="删除">
											<ItemTemplate>
												<asp:ImageButton ID="ImageButton2" CommandName="delete" Runat="server" ImageUrl="img/del.gif"></asp:ImageButton>
											</ItemTemplate>
										</asp:TemplateColumn>
									</Columns>
								</asp:datagrid>
            <asp:label id="Label3" runat="server" ForeColor="Red">没有你要的记录！！</asp:label><br />
							<asp:linkbutton id="LinkButton1" runat="server" CommandArgument="frist" onclick="gopage">首页</asp:linkbutton>&nbsp;
            | &nbsp;<asp:linkbutton id="LinkButton2" runat="server" CommandArgument="pre" onclick="gopage">上一页</asp:linkbutton>&nbsp;
            |&nbsp; &nbsp;<asp:linkbutton id="LinkButton3" runat="server" CommandArgument="next" onclick="gopage">下一页</asp:linkbutton>&nbsp;
            | &nbsp;<asp:linkbutton id="LinkButton4" runat="server" CommandArgument="end" onclick="gopage">尾页</asp:linkbutton>&nbsp;
            |
            <asp:label id="Label1" runat="server">0</asp:label>/
											<asp:label id="Label2" runat="server">0</asp:label>共
		</form>
	</body>
</HTML>
