<%@ page language="C#" autoeventwireup="true" inherits="admin_info_InfoList, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="D.Common" %>
<%@ Import Namespace="D.BLL" %>
<!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 runat="server">
	<title></title>
	<link id="CssName" rel="stylesheet" type="text/css" runat="server" />
	<script src="../../js/Common.js" type="text/javascript"></script>
	<script src="../../js/<%=B_Lang.getLang() %>/SelectCheckBox.js" type="text/javascript"></script>
	<script type="text/javascript">
		function Local(v) {
			if (v != "0") {
				window.location.href = v;
			}
		}
		function setBitField(tableName, keyfieldName, Id, fieldName) {
			D.BLL.B_InfoModel.setBitField(tableName, keyfieldName, Id, fieldName, callbackBit);
		}
		function callbackBit(res) {
			if (res != null) {
				DianCMS_$("bitfield_" + res.value.split("|")[0] + "").innerHTML = res.value.split("|")[1];
			}
		}
	</script>
</head>
<body>
	<form id="form1" runat="server">
		<table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
			<tr>
				<td>
					<table width="100%">
						<tr>
							<td>
								<asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
								您现在的位置：<a href="../info.aspx">后台管理</a> >>
								<asp:Literal ID="LitModelName" runat="server"></asp:Literal>
								>> 信息列表
							</td>
							<td align="right">
								<asp:DropDownList ID="DropOrder" runat="server" AutoPostBack="True"
									OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
									<asp:ListItem Value="Id desc">按ID降序</asp:ListItem>
									<asp:ListItem Value="Id asc">按ID升序</asp:ListItem>
								</asp:DropDownList>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<table class="dh3" cellpadding="0" cellspacing="0" border="0" align="center" id="SelectSearch" runat="server">
			<tr>
				<td>
					<table>
						<tr>
							<asp:Repeater ID="RepSelect" runat="server"
								OnItemDataBound="RepSelect_ItemDataBound">
								<ItemTemplate>
									<td><%#Eval("Alias") %>：</td>
									<td>
										<asp:DropDownList ID="dropSelect" runat="server" onchange="Local(this.value)">
										</asp:DropDownList>
									</td>
								</ItemTemplate>
							</asp:Repeater>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<asp:ScriptManager ID="ScriptManager1" runat="server">
		</asp:ScriptManager>
		<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<ContentTemplate>
				<table align="center" cellpadding="2" cellspacing="1" width="99%" class="border">
					<asp:Repeater ID="RepModelList" runat="server" OnItemCommand="RepModelList_ItemCommand"
						OnItemDataBound="RepModelList_ItemDataBound">
						<HeaderTemplate>
							<tr class="title">
								<td width="30" class="t1">选择
								</td>
								<td align="center">编号
								</td>
								<asp:Literal ID="lit_head" runat="server"></asp:Literal>
								<td width="120">操作
								</td>
							</tr>
						</HeaderTemplate>
						<ItemTemplate>
							<tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
								<td class="t1">
									<asp:CheckBox ID="CheckBox1" runat="server" />
								</td>
								<td align="center">
									<asp:Label ID="InfoId" runat="server" Text='<%# Eval("Id") %>'></asp:Label>
								</td>
								<asp:Literal ID="lit_item" runat="server"></asp:Literal>
								<td>
									<%#GetEdit(Eval("Id", "{0}"), Eval("InsertWeb", "{0}"))%>
                                ┊ <a href="../browse/Info.aspx?ModelId=<%=Request.QueryString["ModelId"] %>&Id=<%# Eval("Id") %>"
									target="_blank">浏览</a> ┊
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" CommandArgument='<%#Eval("Id") %>'
									OnClientClick="return confirm('您确定要移除该条信息吗?')">移除</asp:LinkButton>
								</td>
							</tr>
						</ItemTemplate>
					</asp:Repeater>
				</table>
				<table cellpadding="0" cellspacing="1" class="dh2" align="center" width="99%">
					<tr>
						<td>
							<webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页"
								LastPageText="尾页" NextPageText="下一页" PageSize="20" HorizontalAlign="Right" PrevPageText="上一页"
								showinputbox="Never" UrlPageIndexName="p" UrlPaging="True" ShowCustomInfoSection="Left"
								Width="99%" LayoutType="Table" NumericButtonCount="5">
							</webdiyer:AspNetPager>
						</td>
					</tr>
				</table>
				<table cellpadding="0" cellspacing="1" class="dh2" align="center">
					<tr>
						<td height="30"><span class="seaSpan">搜索选项：
                        <asp:DropDownList ID="DropFieldName" runat="server">
							<asp:ListItem Value="Id">ID</asp:ListItem>
						</asp:DropDownList></span>
							<asp:TextBox ID="txtKeywords" runat="server" CssClass="in1 float" Columns="40"></asp:TextBox>
							<asp:Button ID="Button3" runat="server" Text=" 搜索 " CssClass="btn seaBtn" OnClick="Button3_Click" />
						</td>
					</tr>
				</table>
				<table cellpadding="2" cellspacing="1" class="dh2" align="center">
					<tr>
						<td width="80">
							<input id="checkDel" onclick="CheckDelBox(this)" type="checkbox"><span id="ShowA">选择全部</span></td>
						<td>
							<asp:Button ID="ButAuditing" runat="server" Text="审核选中记录" CssClass="btn"
								OnClick="Button6_Click" />
							<asp:Button ID="Button1" runat="server" Text="生成选中记录" ToolTip="该生成操作时按模型生成" CssClass="btn" OnClick="Button1_Click"></asp:Button>
							<asp:Button ID="Button2" runat="server" Text="删除选中记录" CssClass="btn" OnClick="Button2_Click" />
							<asp:Button ID="Button10" runat="server" Text="复制选中记录" CssClass="btn" OnClick="Button10_Click" />
							<asp:Button ID="Button6" runat="server" Text="批量转移数据" CssClass="btn" OnClick="Button6_Click1" />
							<asp:Button ID="Button7" runat="server" Text="批量替换数据" CssClass="btn" OnClick="Button7_Click" />
							<asp:Button ID="Button8" runat="server" Text="索引选择记录" CssClass="btn" OnClick="Button8_Click" />
							<asp:Button ID="Button9" runat="server" Text="删除索引" CssClass="btn" OnClick="Button9_Click" />
							<asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="把本页数据导出Excel" CssClass="btn" />
							<asp:Button ID="Button5" runat="server" OnClick="Button5_Click" Text="导出所有数据" CssClass="btn" ToolTip="满足条件的所有数据" />
						</td>
					</tr>
				</table>
			</ContentTemplate>
		</asp:UpdatePanel>
	</form>
</body>
</html>
