<%@ Page Title="" Language="VB" MasterPageFile="~/App_MasterPage/mpManager.master" AutoEventWireup="false" CodeFile="SQLManager.aspx.vb" Inherits="Manager_Tags_SQLManager" %>
<%@ Register assembly="ControlPageing" namespace="ControlPageing" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="chpPageTitle" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="chpHead" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="chpScript" Runat="Server">
<script type="text/javascript" src="/App_Themes/ManagerTheme/Js/jquery.min.js"></script> 
<script type="text/javascript" src="/App_Themes/ManagerTheme/js/lhgdialog.min.js"></script>
<script language="javascript" type="text/javascript">
    function OpenClass() {
        $.dialog({
            lock: false,
            title: '查询分组',
            content: 'url:/Manager/Tags/SQLClass.aspx',
            min: false,
            max: false,
            width: 700,
            height: 450
        });
    }
    function confirmWindow(url) {
        $.dialog.confirm('<div style="width:240px;line-height:25px;">单击确定将删除此查询，删除后将无法恢复！<br />你确定要删除这个查询吗？</div>', function() {
            window.location = url;
        });
    }
</script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="chpTitle" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="chpContent" Runat="Server">
   <div style="text-align: right;" class="edittd">
            <a href="#" onclick="javascript:OpenClass();"><img src="/App_Themes/ManagerTheme/Images/QuickMenu.gif" alt="查询分组" /> 查询分组</a>&nbsp;&nbsp;
       <asp:DropDownList ID="dplSQLGroup" runat="server" AutoPostBack="True">
       </asp:DropDownList>
        	<asp:CheckBox ID="cbSelectAll" runat="server" AutoPostBack="True" Text="全部" />&nbsp;
        	<asp:LinkButton ID="lnkBtnDel" runat="server"><img src="/App_Themes/ManagerTheme/Images/Delete.gif" style=" border:0px"/>&nbsp;删除选中</asp:LinkButton>&nbsp;&nbsp;
        	<a href="/Manager/Tags/SQLBuild.aspx"><img src="/App_Themes/ManagerTheme/Images/add.gif" style=" border:0px" />&nbsp;添加</a>&nbsp;&nbsp;&nbsp;&nbsp;
    	    </div>       
            <asp:Repeater ID="rptList" runat="server">
                <HeaderTemplate>
                    <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0" class="line_table">
			<tr>
			    <td width="5%" align="center" class="left_bt2">选择</td>		    
			    <td width="25%" align="left" class="left_bt2">查询名称</td>
			    <td width="15%" align="left" class="left_bt2">查询类型</td>
			    <td width="15%" align="left" class="left_bt2">缓存类型</td>
			    <td width="30%" align="left" class="left_bt2">缓存依赖</td>
			    <td align="center" width="10%" class="left_bt2">操作</td>
			</tr>
	        </HeaderTemplate>
                <ItemTemplate>
                    <tr class="menuout"   onMouseOver="this.className='menuin'" onMouseOut="this.className='menuout'">
			<td width="5%" align="center"><asp:CheckBox ID="CheckOn" runat="server" ToolTip='<%#Eval("ID")%>' /></td>
			<td width="25%" align="left"><%#Eval("SQLName")%></td>
			<td width="15%" align="left"><%#intTypeToStrType(Eval("SQLType"))%></td>
			<td width="15%" align="left"><%#intCacheTostrCache(Eval("CacheLifeType"))%></td>
			<td width="30%" align="left"><%#Eval("DependOf")%></td>
			<td width="10%" align="left"><a href="/Manager/Tags/SQLBuild.aspx?Action=Edit&ID=<%#Eval("ID") %>">
				<img src="/App_Themes/ManagerTheme/Images/Edit.gif" style=" border:0px" />&nbsp;编辑</a>&nbsp;&nbsp;&nbsp;
				<span style="cursor:pointer" onclick="confirmWindow('/Manager/Tags/SQLManager.aspx?Action=Del&ID=<%#Eval("ID") %>');"><img src="/App_Themes/ManagerTheme/Images/Delete.gif" style=" border:0px" />&nbsp;删除</span></td>
			        </tr>
                </ItemTemplate>
                <FooterTemplate></table></FooterTemplate>
            </asp:Repeater>
            <div style="text-align:center"> <cc1:iPaging ID="ListPaging" runat="server" /></div>   
</asp:Content>
