<%@ Page Title="" Language="VB" MasterPageFile="~/App_MasterPage/mpManager.master" AutoEventWireup="false" CodeFile="SQLUrl.aspx.vb" Inherits="Manager_SQLUrl" %>
<%@ 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">
<style type="text/css">
    .ZZ{ margin:0px 5px 0px 5px; cursor:pointer;}
</style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="chpScript" Runat="Server">
<script type="text/javascript" src="/App_Themes/ManagerTheme/Js/jquery.min.js"></script> 
<script language="javascript" type="text/javascript">
    function InsertZZ(txtID,ZZindex) {
        var ZZdata = new Array;
        ZZdata[0] = "(\\d{0,8})";
        ZZdata[1] = "(.*)";
        ZZdata[2] = "/Page-(\\d{0,8})/";
        var txtValue = $('#' + txtID).attr('value');
        $('#' + txtID).attr('value', txtValue + ZZdata[ZZindex]);
    }
    function ShowCookies() {
        if ($('#RequestType').val() == '0') {
            $('#Cookies').css('display', 'none');
        } else {
            $('#Cookies').css('display', 'block');
        }
    }
   
</script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="chpTitle" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="chpContent" Runat="Server">
    <asp:HiddenField ID="hfSQLID" runat="server" />
  <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View_Edit" runat="server">
    	    <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0" class="line_table">
	    	<tr>
                    <td align="right" width="20%">虚拟地址：</td>
                    <td width="40%"><asp:TextBox ID="txtLookFor" runat="server"  Width="96%" ></asp:TextBox></td>
                    <td width="40%"><font color="red">*&nbsp;不要输入后缀名&nbsp;&nbsp; </font>插入正则：<a class="ZZ" href="javascript:InsertZZ('<%=txtLookFor.ClientID %>',0);">数字</a><a class="ZZ" href="javascript:InsertZZ('<%=txtLookFor.ClientID %>',1);">字符</a><a class="ZZ" href="javascript:InsertZZ('<%=txtLookFor.ClientID %>',2);">分页</a></td>
                </tr>	    	<tr>
                    <td align="right" width="20%">真实地址：</td>
                    <td width="40%"><asp:TextBox ID="txtSendTo" runat="server"  Width="96%" ></asp:TextBox></td>
                    <td width="40%"><font color="red">*&nbsp;&nbsp;&nbsp; </font>“页面名称”代替真实文件名。不需输入路径</td>
                </tr>	    	                                                                                             	            
	    </table>  
	    <div style="text-align:center"><asp:ImageButton ID="imgSave" runat="server" 
                                ImageUrl="~/App_Themes/ManagerTheme/Images/tj.jpg" style="height: 22px" ToolTip="添加" /></div>      
        </asp:View>
        <asp:View ID="View_List" runat="server">
    	    <div style="text-align: right;" class="edittd">
        	<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="SQLUrl.aspx?Action=Add&SQLID=<%=Request("SQLID") %>"><img src="/App_Themes/ManagerTheme/Images/add.gif" style=" border:0px" />&nbsp;添加</a>
    	    </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="35%" align="center" class="left_bt2">虚拟地址</td>
			    <td width="35%" align="center" class="left_bt2">真实地址</td>
			    <td align="center" width="25%" 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="35%" align="center"><%#Eval("LookFor")%></td>
			<td width="35%" align="center"><%#Eval("SendTo")%></td>
			<td width="25%" align="center"><a href="SQLUrl.aspx?Action=Edit&ID=<%#Eval("ID") %>&SQLID=<%#Eval("SQLID") %>"><img src="/App_Themes/ManagerTheme/Images/Edit.gif" style=" border:0px" />&nbsp;编辑</a>&nbsp;&nbsp;&nbsp;
				<a href="SQLUrl.aspx?Action=Del&ID=<%#Eval("ID") %>&SQLID=<%#Eval("SQLID") %>"><img src="/App_Themes/ManagerTheme/Images/Delete.gif" style=" border:0px" />&nbsp;删除</a></td>
			        </tr>
                </ItemTemplate>
                <FooterTemplate></table></FooterTemplate>
            </asp:Repeater>
            <div style="text-align:center"> <cc1:iPaging ID="ListPaging" runat="server" 
                    PageSize="10" /></div>        
        </asp:View>        
    </asp:MultiView>
</asp:Content>

