<%@ Page language="c#" Codebehind="aggregation_rotatepic.aspx.cs" AutoEventWireup="false" Inherits="Discuz.ForumPage.Admin.aggregation_rotatepic" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
	<head>
		<title>聚合轮换图片管理</title>
		<link href="../styles/datagrid.css" type="text/css" rel="stylesheet">
	    <script language="javascript" src="../js/common.js"></script>
	    <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet">        
        <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet">
        <script type="text/javascript" src="../js/modalpopup.js"></script>
	</head>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
		<div class="Navbutton" style="width:98%;"> 
			<table cellspacing="1" cellpadding="4" align="center" class="table1">
					<tr>
						<td class="category"><input title="选中/取消选中 本页所有Case" onclick="CheckAll(this.form)" type="checkbox" name="chkall" id="chkall">全选/取消全选 
							&nbsp;
							<cc1:Button id="DelRec" runat="server" Text=" 删 除 "   ButtonImgUrl="../images/del.gif"></cc1:Button>
						</td>
					</tr>
			</table>
		</div>
		
		<cc1:datagrid id="DataGrid1" runat="server" OnCancelCommand="DataGrid_Cancel" OnEditCommand="DataGrid_Edit"
				OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" OnUpdateCommand="DataGrid_Update"
				>
				<Columns>
					<asp:TemplateColumn HeaderText="选择">
						<ItemTemplate>
							<INPUT id="rowid" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.rowid").ToString() %>" name="rowid">
						</ItemTemplate>
					</asp:TemplateColumn>
					 <asp:TemplateColumn  HeaderText="序号[递增]" >
					        <ItemTemplate>
                                <%# DataBinder.Eval(Container.DataItem,"rotatepicid")%>
                            </ItemTemplate>

							<EditItemTemplate>
							    <asp:TextBox id="rotatepicid" runat="server"></asp:TextBox>
						    </EditItemTemplate>
					</asp:TemplateColumn>
					
					<asp:BoundColumn DataField="img"  HeaderText="图片路径"></asp:BoundColumn>
					<asp:BoundColumn DataField="url" HeaderText="点击链接"></asp:BoundColumn>
					<asp:BoundColumn DataField="titlecontent"  HeaderText="说明文字"></asp:BoundColumn>
					<asp:TemplateColumn HeaderText="图片"><HeaderStyle Width="10%" />
						<ItemTemplate>
							<img src ="<%# DataBinder.Eval(Container, "DataItem.img").ToString() %>" height="25" width="25"  border="0px" />
						</ItemTemplate>
					</asp:TemplateColumn>
				
				</Columns>
			</cc1:datagrid>
		<div class="ManagerForm">
			<fieldset>
		    <legend style="background:url(../images/icons/icon4.jpg) no-repeat 6px 50%;">添加聚合轮换图片</legend>
			<table cellspacing="0" cellPadding="4" class="tabledatagrid" width="100%">
			    <tr>
					<td class="td1" width="15%">图片路径:</td>
					<td class="td1" width="35%">
					    <cc1:TextBox runat="server" ID="rotaimg" />
					</td>	
					<td class="td2" width="15%">点击链接:</td>
					<td class="td2" width="35%">
					    <cc1:TextBox runat="server" ID="url" /></td>
				</tr>
				<tr>
					<td class="td1">说明文字:</td>
					<td class="td1">
					    <cc1:TextBox runat="server" ID="titlecontent" />
					</td>
					<td class="td1" ></td>
					<td class="td1">&nbsp;</td>
				</tr>				
			</table>
			<cc1:Hint id="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
			<div class="Navbutton">
			    <cc1:Button id="addrota" runat="server" Text=" 增 加 " ButtonImgUrl="../images/add.gif"></cc1:Button> 
			</div>
			</fieldset>
		</div>
			</form>
			<%=footer%>
	</body>
</html>
