<%@ page language="C#" autoeventwireup="true" inherits="Admin_sys_webset, Fm.Web" %>

<!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 runat="server">
    <title>无标题页</title>
    <link href="../images/css/inbox.css" rel="stylesheet" type="text/css" />
    <script>
    function Ok()
    {
        var webname=document.getElementById("webname").value;
        var weburl=document.getElementById("weburl").value;
        var html=document.getElementById("html").value;
        
        if(webname=="")
        {
            alert("网站名称不能为空!");
            return false;
        }
        else if(weburl=="")
        {
            alert("网站地址不能为空!");
            return false;
        }
        else if(weburl.substring(weburl.length-1)!="/")
        {
            alert("请在网站地址后面加上 / !");
            return false;
        }
        else if(html=="")
        {
            alert("系统指定目录不能为空!");
            return false;
        }
        else if(html.substring(html.length-1)!="/")
        {
            alert("请在目录结尾加上 / !");
            return false;
        }
        else
        {
            return true;
        }
        
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div align=center>
        <table style="width: 98%" class=Ibx_gTable_Con>
            <tr>
                <td align="center" colspan="2">
                    网站基本设置</td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    网站名称：</td>
                <td align="left">
                    <asp:TextBox ID="webname" runat="server" Width="260px"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    网站地址：</td>
                <td align="left">
                    <asp:TextBox ID="weburl" runat="server" Width="260px"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    首页标题：</td>
                <td align="left">
                    <asp:TextBox ID="indexname" runat="server" Width="260px"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    上传目录：</td>
                <td align="left">
                    <asp:TextBox ID="uppath" Enabled=false runat="server" Width="260px"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    系统指定目录:</td>
                <td align="left">
                    <asp:TextBox ID="html" runat="server" Width="260px"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    网站关键字：</td>
                <td align="left">
                    <asp:TextBox ID="web_keyword" runat="server" TextMode="MultiLine" Width="310px" Rows="3"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    网站描述：</td>
                <td align="left">
                    <asp:TextBox ID="web_intro" runat="server" TextMode="MultiLine" Width="310px" Rows="3"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    版权信息：</td>
                <td align="left">
                    <asp:TextBox ID="banquan" runat="server" Rows="3" TextMode="MultiLine" Width="310px"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    备案号：</td>
                <td align="left">
                    <asp:TextBox ID="beian" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    是否启用会员中心:</td>
                <td align="left">
                    <asp:RadioButtonList ID="member" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="true">启用</asp:ListItem>
                        <asp:ListItem Value="false">不启用</asp:ListItem>
                    </asp:RadioButtonList></td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    是否启用匿名投稿:</td>
                <td align="left">
                    <asp:RadioButtonList ID="tougao" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="true">启用</asp:ListItem>
                        <asp:ListItem Value="false">不启用</asp:ListItem>
                    </asp:RadioButtonList></td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <asp:ImageButton ID="btn_save" runat="server" ImageUrl="~/Admin/skin/images/button_save.gif" OnClientClick="return Ok()" OnClick="btn_save_Click" /></td>
            </tr>
        </table>
       
    
    </div>
    </form>
</body>
</html>
