<%@ Page Title="" Language="VB" MasterPageFile="~/App_MasterPage/mpManager.master" AutoEventWireup="false" CodeFile="SiteManager.aspx.vb" Inherits="Manager_SiteManager" %>
<%@ Register assembly="ControlPageing" namespace="ControlPageing" tagprefix="cc1" %>
<%@ Register assembly="iCalendar" namespace="iCalendar" tagprefix="cc2" %>
<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/jscript">
    function GroupSec(GroupID) {
        $.dialog({
            lock: true,
            title: '组权限设置',
            content: 'url:/Manager/GroupJurisdiction.aspx?GroupID=' + GroupID,
            width: 600,
            height: 400,
            max: false,
            min: false
        });
    }
       
</script>
</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="tb1" cellspacing="0" cellpadding="0" class="line_table">
	    	<tr>
                    <td align="right" width="20%">网站名称：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtWebName" 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="txtWebURL" 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="txtSiteKey" 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%">
                        <cc2:ICalendar ID="icEndTime" runat="server" />
                        <font color="red">*</font>
                    </td>
                    <td width="50%">
                    </td>
                </tr>
                <tr>
                    <td align="right" width="20%">上传类型：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtUpType" 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:CheckBox ID="cbSiteState" runat="server" Checked="True" Text="是" />
                    </td>
                    <td width="50%">&nbsp;</td>
                </tr>	    	<tr>
                    <td align="right" width="20%">日志保存天数：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtLogTime" runat="server"  Width="30%" ></asp:TextBox><font color="red">*</font>
                    </td>
                    <td width="50%"></td>
                </tr>
                <tr>
                    <td align="right" width="20%">管理组名称：</td>
                    <td width="30%">
                        <asp:TextBox ID="txtGroupName" 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="txtManagerName" 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="txtManagerPWD" runat="server" Width="96%" TextMode="Password"></asp:TextBox>
                    </td>
                    <td width="50%"><font color="red">*</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">
        	    &nbsp; &nbsp;&nbsp;
        	<a href="SiteManager.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="30%" align="center" class="left_bt2">网站名称</td>
			    <td width="15%" align="center" class="left_bt2">结束时间</td>
			    <td width="10%" align="center" class="left_bt2">状态</td>
			    <td width="15%" 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="30%" align="center"><a href="http://<%#Eval("WebURL") %>" target="_blank"><%#Eval("WebName")%></a></td>
			<td width="15%" align="center"><%#CDate(Eval("EndTime")).ToString("yyyy年MM月dd日")%></td>
			<td width="10%" align="center"><%#If(Eval("SiteState"), "<font color='green'>运行中</font>", "<font color='red'>关闭</font>")%></td>
			<td width="15%" align="center"><%#CDate(Eval("CreatTime")).ToString("yyyy年MM月dd日")%></td>
			<td width="25%" align="center">
			    <a href="javascript:GroupSec('<%#Eval("ManagerGroup") %>');"><img src="/App_Themes/ManagerTheme/Images/UserPower.gif" style=" border:0px" />&nbsp;权限</a>&nbsp;&nbsp;&nbsp;
			    <a href="SiteManager.aspx?Action=Edit&ID=<%#Eval("ID") %>"><img src="/App_Themes/ManagerTheme/Images/Edit.gif" style=" border:0px" />&nbsp;编辑</a>&nbsp;&nbsp;&nbsp;
			    <a href="SiteManager.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>
