<%@Page Language="C#" Inherits="IWMS.Admin.SpageMan" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<!--#include file="inc/tiny_mce.inc" -->
	<script type="text/javascript" src="inc/spage.js"></script>
</asp:Content>
<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<form id="myForm" runat="server">
	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<span class="tt">管理单独页面</span>&nbsp;
		<a href="###" onclick="spage.disp()">添加单独页面</a>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<ASP:DataGrid id="MyDataGrid" runat="server"
				Width="100%"
				align="center"
				ShowHeader="true"
				ShowFooter="false"
				AllowPaging="true"
				AutoGenerateColumns="false"
				DataKeyField="id"
				OnItemDataBound="MyDataGrid_ItemDataBound"
				OnPageIndexChanged="MyDataGrid_Page"
				CssClass="grid"
				BorderColor="#cccccc"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				PageSize="10"
				CellPadding="6"
				CellSpacing="0" >
			
			<Columns>
				<asp:TemplateColumn>
					<ItemTemplate>
						<a href="###" onclick="spage.disp(<%#Eval("id")%>)">修改</a>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center"/>
					<HeaderStyle Width="40"/>
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="页面标题"
					DataField="title"
					>
					<ItemStyle HorizontalAlign="center"/>
					<HeaderStyle Width="150"/>
				</asp:BoundColumn>
				<asp:TemplateColumn
					HeaderText="页面地址">
					<ItemTemplate>
						<a href="<%#GetUrl((int)Eval("id"))%>" target="_blank"><%#Request.Url.ToString().Substring(0,Request.Url.ToString().LastIndexOf("/")+1) + GetUrl((int)Eval("id"))%></a>
					</ItemTemplate>
				</asp:TemplateColumn>
				<asp:TemplateColumn>
					<ItemTemplate>
						<a href="###" onclick="spage.del(this,<%#Eval("id")%>)">删除</a>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center"/>
					<HeaderStyle Width="40"/>
				</asp:TemplateColumn>
			</Columns>
		</ASP:DataGrid>
		
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	
	<table width="400" align="center"><tr><td align="right">
	<asp:Label id="PageList" runat="server"/>
	</td></tr>
	</table>
	
	</form>

</asp:Content>