<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GuestLimits.aspx.cs" Inherits="Admin_GuestLimits" %>

<%@ Import Namespace="Spaces" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><%=Globals.Text["GuestLimits_Title"]%></title>
    <link href="Admin.css" rel="stylesheet" type="text/css">
 
    <script src="<%=Globals.ApplicationPath %>/Include/js/dialog.js" type="text/javascript"></script>

    <script src="<%=Globals.ApplicationPath %>/Include/js/base.js" type="text/javascript"></script>
</head>
<body>
    <form id="Form1" runat="server">
        <table class="black333333_red_noline" cellspacing="0" cellpadding="0" width="640"
            align="center" border="0">
            <tbody>
                <tr>
                    <td>&nbsp;
                        </td>
                </tr>
                <tr>
                    <td>
                        <table cellspacing="0" cellpadding="0" width="100%" border="0">
                            <tbody>
                                <tr>
                                    <td width="3" height="3">
                                        <img height="3" src="img/O_angle_up_left.gif" width="3" /></td>
                                    <td width="100%" bgcolor="#acd373">
                                    </td>
                                    <td width="3">
                                        <img height="3" src="img/O_angle_up_right.gif" width="3" /></td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td bgcolor="#acd373" height="30">
                        &nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffffff"><b><%=Globals.Text["GuestLimits_UControl"]%></b></font>
                    </td>
                </tr>
                <tr>
                    <td class="form_border">
                        <table cellspacing="0" cellpadding="0" width="100%" border="0">
                            <tbody>
                                <tr>
                                    <td width="20">&nbsp;
                                        </td>
                                    <td>&nbsp;
                                        </td>
                                    <td width="20">&nbsp;
                                        </td>
                                </tr>
                                <tr>
                                    <td>&nbsp;
                                        </td>
                                    <td>
                                        <table class="black333333_red_noline" cellspacing="0" cellpadding="0" width="100%"
                                            border="0">
                                            <tbody>
                                                <tr>
                                                    <td align="right">
                                                        <font color="#ff6600"><a href="editPost.aspx"><%=Globals.Text["GuestLimits_PublishArtical"]%></a></font>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <fieldset>
                                                            <legend>&nbsp;<%=Globals.Text["GuestLimits_UControl"]%>&nbsp;</legend>
                                                            <div align="right">
                                                                <%=Globals.Text["GuestLimits_UInterface"]%><br />
                                                               <%=Globals.Text["GuestLimits_UManageControl"]%><br />
                                                                <br />
                                                            </div>
                                                        </fieldset>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td height="5">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="height: 122px">
                                                        <table width="100%" border="0" cellspacing="2" cellpadding="3" class="black333333_red_noline">
                                                            <tr bgcolor="#EEF5E2">
                                                                <td colspan="2" align="center" bgcolor="#669900">
                                                                    <font color="#FFFFFF"><%=Globals.Text["GuestLimits_UControl"]%></font></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" colspan="2">
                                                                </td>
                                                            </tr>
                                                            <tr bgcolor="#EEF5E2">
                                                                <td align="left">
                                                                    <%=Globals.Text["GuestLimits_ShareFile"]%></td>
                                                                <td align="left">
                                                                    <asp:DropDownList ID="dropSelectShare" runat="server" onchange="showvisititem()">
                                                                        <asp:ListItem Value="0">共享关闭</asp:ListItem>
                                                                        <asp:ListItem Value="1" Selected="true">共享开放</asp:ListItem>
                                                                    </asp:DropDownList>

                                                                    <script>
                                                                                function showvisititem(){
                                                                               var  visititem=document.getElementById('visititem');
                                                                               var  visitpass=document.getElementById('visitpass');
if(document.getElementById('<%=dropSelectShare.ClientID %>').value =="0" ){ visititem.style.display = "none"; visitpass.style.display = "";} else{ visititem.style.display = "";visitpass.style.display = "none"; } };
                                                                              
                                                                    </script>

                                                                </td>
                                                            </tr>
                                                            <tr style="" id="visititem" name="visititem" bgcolor="#EEF5E2">
                                                                <td align="left">
                                                                    <%=Globals.Text["GuestLimits_VisitorLimit"]%>
                                                                </td>
                                                                <td align="left">
                                                                    <asp:DropDownList ID="dropLimits" runat="server">
                                                                        <asp:ListItem Value="L" Selected="true">只能浏览</asp:ListItem>
                                                                        <asp:ListItem Value="LR">允许下载</asp:ListItem>
                                                                        <asp:ListItem Value="LRC">下载|上传</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr style="display: none" id="visitpass" name="visitpass" bgcolor="#EEF5E2">
                                                                <td align="left">
                                                                    <%=Globals.Text["GuestLimits_GuessPassword"]%></td>
                                                                <td align="left">
                                                                    <asp:TextBox ID="txtFolderPassword" runat="server" Columns="12"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr bgcolor="#EEF5E2">
                                                                            <td align="left" valign="top">
                                                                                <%=Globals.Text["GuestLimits_UIntro"]%></td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="txtFolderDesc" runat="server" Columns="12" TextMode="MultiLine"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr bgcolor="#EEF5E2">
                                                                            <td align="left">
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:Button ID="btnSetLimits" runat="server" Text="完成 >>" OnClick="btnSetLimits_Click"  />
                                                                            </td>
                                                                        </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="height: 14px">
                                                        <!-- 功能列表 -->
                                                        <!-- /功能列表 -->
                                                        <!-- 分类列表 -->
                                                        <!-- /分类列表 -->
                                                    </td>
                                                </tr>
                                            </tbody>
                                        
                                        </table>
                                    </td>
                                    <td>&nbsp;
                                        </td>
                                </tr>
                                <tr>
                                    <td>&nbsp;
                                        </td>
                                    <td>
                                        <table class="black333333_red_noline" cellspacing="0" cellpadding="0" width="100%"
                                            border="0">
                                            <tbody>
                                                <tr>
                                                    <td width="11%">
                                                    </td>
                                                    <td width="89%">
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <table class="black333333_red_noline" cellspacing="0" cellpadding="0" width="100%"
                                            border="0">
                                            <tbody>
                                                <tr>
                                                    <td align="right" width="51%">&nbsp;
                                                        </td>
                                                    <td align="right" width="18%">
                                                    </td>
                                                    <td nowrap width="31%">&nbsp;
                                                        
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        &nbsp;</td>
                                    <td>&nbsp;
                                        </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center" bgcolor="#e3f0d0" height="30">
                        
                    </td>
                </tr>
            
            </tbody>
        </table>
    </form>
    <script>

function Init(){
if(document.all['<%=dropSelectShare.ClientID %>'].value =="1" )
{
visitpass.style.display = "none";
visititem.style.display = "block";

//document.all['<%=dropSelectShare.ClientID %>'].value="1";
} 
else
{ 

visitpass.style.display = "block";
visititem.style.display = "none";
//dcument.all['<%=dropSelectShare.ClientID %>'].value="0";
}
 }
     Init();                                                                         
    </script>
</body>
</html>
<asp:literal runat="server" ID="Message"></asp:literal>
