<%@ Page language="c#" Codebehind="CacheViewer.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.Admin.CacheViewer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
		<!--#include file="inc/head.inc"-->
		<title>CacheViewer</title>
	</HEAD>
	<body>
		<div class="container">
		<div class="sub_container">
		<div class="sub_container_title"><a href="../default.aspx" target="_blank">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" />缓存管理</div>
		<div class="sub_container_content">
		<form id="Form1" method="post" runat="server">
			<div class="frame">
			    <div class="frame_title">数据缓存管理</div>
			    <div class="frame_content">
			        <table class="tableBorder" cellSpacing="0" width="98%" cellPadding="0" align="center" border="0">
				        <tr>
				            <td><asp:LinkButton id="lbRemoveAll" runat="server">全部清除</asp:LinkButton>&nbsp;&nbsp;<asp:HyperLink id="hlRefresh" Text="刷新缓存" Runat="server"></asp:HyperLink></td>
				            <td align="right">数据缓存数量：<asp:Literal id="litCount" runat="server"></asp:Literal></td>
				        </tr>
				        <tr>
					        <td height="23" class="forumRowHighlight" colspan="2">
						        <asp:DataGrid id="dgCachedItems" runat="server" AutoGenerateColumns="False" Width="100%" HorizontalAlign="Center"
							        HeaderStyle-CssClass="summary-title">
							        <HeaderStyle Font-Bold="True"></HeaderStyle>
							        <Columns>
								        <asp:TemplateColumn HeaderText="序号">
									        <ItemTemplate>
										        <asp:Literal id="Counter" runat="server" />
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="名称(Key)">
									        <ItemTemplate>
										        <asp:Literal id="CacheItemName" runat="server" text='<%# ((CachedItem)(Container.DataItem)).CacheKey %>' />
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="数据类型">
									        <ItemTemplate>
										        <asp:Literal id="CacheItemDataType" runat="server" text='<%# ((CachedItem)(Container.DataItem)).CacheType %>' />
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="删除">
									        <ItemTemplate>
										        <asp:LinkButton ID="RemoveButton" Text="删除" CommandName="RemoveFromCache" runat="server" />
									        </ItemTemplate>
								        </asp:TemplateColumn>
							        </Columns>
						        </asp:DataGrid>
					        </td>
				        </tr>
			        </table>
			    </div>
			</div>
			<div class="frame">
			    <div class="frame_title">页面缓存管理</div>
			    <div class="frame_content">
			        <table class="tableBorder" cellSpacing="0" cellPadding="0" width="98%" align="center" border="0">
				        <tr>
					        <td height="23" class="forumRowHighlight" colspan="2">
						        <table cellspacing="0" align="center" rules="all" border="1" style="WIDTH:100%;BORDER-COLLAPSE:collapse">
							        <tr class="summary-title" style="FONT-WEIGHT:bold">
								        <td>序号</td>
								        <td>页面名称</td>
								        <td>页面描述</td>
								        <td>操作</td>
							        </tr>
							        <tr>
								        <td>
									        1
								        </td>
								        <td>
									        Default.aspx
								        </td>
								        <td>
									        商城首页
								        </td>
								        <td>
									        <asp:LinkButton id="lbtUpdate" runat="server">更新</asp:LinkButton>
								        </td>
							        </tr>
							        <tr>
								        <td>
									        2
								        </td>
								        <td>
									        List.aspx
								        </td>
								        <td>
									        商品列表页面
								        </td>
								        <td>
									        <asp:LinkButton id="lbtUpdateList" runat="server">更新</asp:LinkButton>
								        </td>
							        </tr>
							        <tr>
								        <td>
									        3
								        </td>
								        <td>
									        News.aspx(NewsIndex.aspx)
								        </td>
								        <td>
									        新闻系统首页
								        </td>
								        <td>
									        <asp:LinkButton id="lbtUpdateNews" runat="server">更新</asp:LinkButton>
								        </td>
							        </tr>
							        <tr>
								        <td height="18">
									        4&nbsp;
								        </td>
								        <td height="18">
									        Price.aspx
								        </td>
								        <td height="18">
									        报价中心页面
								        </td>
								        <td height="18">
									        <asp:LinkButton id="lbtUpdatePrice" runat="server">更新</asp:LinkButton>
								        </td>
							        </tr>
							        <tr>
								        <td>
									        5&nbsp;
								        </td>
								        <td>
									        Search.aspx
								        </td>
								        <td>
									        搜索中心页面
								        </td>
								        <td>
									        <asp:LinkButton id="lbtUpdateSearch" runat="server">更新</asp:LinkButton>
								        </td>
							        </tr>
						        </table>
					        </td>
				        </tr>
			        </table>
			    </div>
			</div>
		</form>
		</div>
		</div>
		</div>
	</body>
</HTML>
