<%@ Page Title="" Language="VB" MasterPageFile="~/App_MasterPage/mpManager.master" AutoEventWireup="false" CodeFile="Plug.aspx.vb" Inherits="Manager_Plug" %>
<%@ 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">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="chpTitle" Runat="Server">插件管理</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="chpContent" 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="30%">
                        <asp:TextBox ID="txtPlugName" runat="server"  Width="96%" ></asp:TextBox>
                    </td>
                    <td width="50%"><font color="red">*</font></td>
                </tr>
	    	<tr>
                    <td align="right" width="20%">分类：</td>
                    <td width="30%">
                        <asp:DropDownList ID="dplClass" runat="server" Width="30%">
                        </asp:DropDownList>
                    </td>
                    <td width="50%"><font color="red">*</font></td>
                </tr>	    	<tr>
                    <td align="right" width="20%">插件类型：</td>
                    <td width="30%">
                        <asp:DropDownList ID="dplPageFlag" runat="server">
                            <asp:ListItem Value="0">用户控件</asp:ListItem>
                            <asp:ListItem Value="1">后台管理页面</asp:ListItem>
                            <asp:ListItem Value="2">控件设置页面</asp:ListItem>
                            <asp:ListItem Value="3">其他文件(dll,js)</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td width="50%"><font color="red">*</font></td>
                </tr>	
                <tr>
                    <td align="right" width="20%">设置页名：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtPageSetFile" runat="server"  Width="96%" ></asp:TextBox>
                    </td>
                    <td width="50%"><font color="red"></font></td>
                </tr>    	
                <tr>
                    <td align="right" width="20%">排序：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtOrderID" runat="server"  Width="30%" ></asp:TextBox>
                    </td>
                    <td width="50%"><font color="red"></font></td>
                </tr>	    	<tr>
                    <td align="right" width="20%">显示菜单：</td>
                    <td width="30%">
                        <asp:CheckBox ID="cbShowMenu" runat="server" Text="是" />
                    </td>
                    <td width="50%"><font color="red"></font></td>
                </tr>	    	<tr>
                    <td align="right" width="20%">新建窗口：</td>
                    <td width="30%">
                        <asp:CheckBox ID="cbNewTarget" runat="server" Text="是" />
                    </td>
                    <td width="50%"><font color="red"></font></td>
                </tr>	    		    		    	<tr>
                    <td align="right" width="20%">作者：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtAuthor" runat="server"  Width="30%" ></asp:TextBox>
                    </td>
                    <td width="50%"><font color="red"></font></td>
                </tr>	    	
                <tr>
                    <td align="right" width="20%">
                        插件路径：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtBaseURL" runat="server" Width="96%"></asp:TextBox>
                    </td>
                    <td width="50%">
                        默认值为：/Manager</td>
                </tr>
                <tr>
                    <td align="right" width="20%">映射地址：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtSendTo" runat="server"  Width="96%" ></asp:TextBox>
                    </td>
                    <td width="50%"><font color="red"></font></td>
                </tr>	    		    	<tr>
                    <td align="right" width="20%">虚拟地址：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtLookFor" runat="server"  Width="96%" ></asp:TextBox>
                    </td>
                    <td width="50%"><font color="red"></font></td>
                </tr>	    	<tr>
                    <td align="right" width="20%">插件图片：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtPlugPic" runat="server"  Width="96%" ></asp:TextBox>
                    </td>
                    <td width="50%"><font color="red"></font></td>
                </tr>	
                <tr>
                    <td align="right" width="20%" style="vertical-align:top; line-height:25px;">说明：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtPlugMemo" runat="server" Width="96%" Height="92px" 
                            TextMode="MultiLine"></asp:TextBox>
                    </td>
                    <td width="50%"><font color="red">*</font></td>
                </tr>    	                                                                                             	            
	        <tr>
                    <td align="right" width="20%" height="40px">&nbsp;</td>
                    <td id="SmsaLen" height="60px" style="height: 20px" width="30%"></td>
                </tr>
                <tr>
                    <td align="right" colspan="2" width="50%">
                        <p align="center">
                　          <asp:ImageButton ID="imgSave" runat="server" 
                                ImageUrl="~/App_Themes/ManagerTheme/Images/tj.jpg" style="height: 22px" ToolTip="添加" />
                        </p>
                    </td>
                    <td width="50%"></td>
                </tr>
	    </table>        
        </asp:View>
        <asp:View ID="View_List" runat="server">
    	    <div style="text-align: right;" class="edittd">
    	    <asp:DropDownList ID="dplSelClass" runat="server" AutoPostBack="True"></asp:DropDownList>&nbsp;&nbsp;&nbsp;
        	<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="Plug.aspx?Action=Add"><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="20%" align="center" class="left_bt2">排序</td>
			    <td width="25%" align="center" class="left_bt2">插件名称</td>
			    <td width="10%" align="center" class="left_bt2">作者</td>
                <td width="20%" align="center" class="left_bt2">添加时间</td>
			    <td align="center" width="20%" 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="20%" align="center"><%#Eval("OrderID")%></td>
			<td width="25%" align="center"><%#Eval("PlugName")%></td>
			<td width="10%" align="center"><%#Eval("Author")%></td>
			<td width="20%" align="center"><%#Eval("AddTime")%></td>
			<td width="20%" align="center"><a href="Plug.aspx?Action=Edit&ID=<%#Eval("ID") %>">
				<img src="/App_Themes/ManagerTheme/Images/Edit.gif" style=" border:0px" />&nbsp;编辑</a>&nbsp;&nbsp;&nbsp;<a href="Plug.aspx?Action=Del&ID=<%#Eval("ID") %>">
				<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" /></div>        
        </asp:View>        
    </asp:MultiView>
</asp:Content>