<%@ Page Language="C#" AutoEventWireup="true" CodeFile="config.aspx.cs" Inherits="wormadmin_config" EnableEventValidation="false" validateRequest="false"%>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<!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 rel="stylesheet" href="css/content.css" type="text/css" />
<style type="text/css">
		BODY { FONT-SIZE: 12px; COLOR: #000000 }
		TABLE { FONT-SIZE: 12px; COLOR: #000000 }
		TD { FONT-SIZE: 12px; COLOR: #000000 }
		FORM { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px }
		TD TD { PADDING-LEFT: 12px }
		A { COLOR: #000090 }
		A:hover { COLOR: #ff3333 }
		.InputTxt { BORDER-RIGHT: #333333 1px solid; BORDER-TOP: #333333 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #333333 1px solid; WIDTH: 120px; BORDER-BOTTOM: #333333 1px solid; HEIGHT: 18px }
		.Button { BORDER-RIGHT: #333333 1px solid; BORDER-TOP: #333333 1px solid; FONT-SIZE: 12px; BACKGROUND: #ffffff; BORDER-LEFT: #333333 1px solid; WIDTH: 32px; BORDER-BOTTOM: #333333 1px solid; HEIGHT: 16px }
		.TrHead { FONT-WEIGHT: 600; FONT-SIZE: 12px; BACKGROUND: #507cd1; COLOR: #ffffff; HEIGHT: 28px; TEXT-ALIGN: left }
		</style>
</head>
<script language="javascript" type="text/javascript">
    function expandcollapse(obj,row)
    {
        var div = document.getElementById(obj);
        var img = document.getElementById('op');
        
        if (div.style.display == "none")
        {
            div.style.display = "block";
            if (row == 'alt')
            {
                img.src = "images/minus.gif";
            }
            else
            {
                img.src = "images/minus.gif";
            }
            img.alt = "关闭";
        }
        else
        {
            div.style.display = "none";
            if (row == 'alt')
            {
                img.src = "images/plus.gif";
            }
            else
            {
                img.src = "images/plus.gif";
            }
            img.alt = "展开";
        }
    } 
    function showoff()
    {
        var pl = document.getElementById('showpl');
        var showdiv=document.getElementsByTagName('div');
        
        for(var i=1; i<showdiv.length; i++)   
        {
          if(showdiv[i].id==pl.value)
          {
          showdiv[i].style.display="block";
          }
        }
    }
    </script>
<body>
    
    <form id="form1" runat="server">
    <div>
    <table border="1" style="width: 750px; border-collapse: collapse;"  width="100%" align="center" >
      <tr>
        <td class="TrHead" colspan="2" style="HEIGHT: 23px; vertical-align: middle; background-color: #3B89C1; text-align: left; font-weight: normal;">&nbsp;<span style="font-family: Wingdings 2">R</span>  <strong>留言本基本设置</strong></td>
      </tr>
      <tr>
        <td height="26" style="width: 123px">留言本名称:</td>
        <td style="width: 524px">
            <asp:TextBox ID="book_name" runat="server" Width="202px"></asp:TextBox></td>
      </tr>
      <tr>
        <td height="26" style="width: 123px">公告栏:</td>
        <td style="width: 524px">
            <a href="javascript:expandcollapse('op_show', 'one');">
            <img id='op' alt='打开编辑公告栏' border="0" src="images/plus.gif" width="9" />打开编辑
            </a>
            <br />
              <table width="100%" border="0" cellspacing="0" cellpadding="0" style="display:none;" id="op_show">
                <tr>
                  <td>
                  <fckeditorv2:fckeditor id="FCKeditor1" runat="server" basepath="fckeditor/" height="400px" Width="600px">&nbsp;</fckeditorv2:fckeditor> 
                  </td>
                </tr>
              </table>
        </td>
      </tr>
      <tr>
        <td height="26" style="width: 123px">关键字:</td>
        <td style="width: 524px">
            <asp:TextBox ID="book_key" runat="server" Width="353px"></asp:TextBox><br />
            <span style="color: #cc0000">关键字之间请用逗号隔开,如"日记,留言本,心情,笔记本"</span></td>
      </tr>
      <tr>
        <td height="26" style="width: 123px">维护设置:</td>
        <td style="width: 524px">
            <asp:RadioButtonList ID="book_open" runat="server" RepeatColumns="2" RepeatDirection="Horizontal"
                TextAlign="Left">
                <asp:ListItem Value="1">是</asp:ListItem>
                <asp:ListItem Selected="True" Value="0">否</asp:ListItem>
            </asp:RadioButtonList></td>
      </tr>
      <tr>
        <td style="width: 123px; height: 41px;">错误指向页面:</td>
        <td style="height: 41px; width: 524px;">
            <asp:TextBox ID="book_error" runat="server" Width="306px"></asp:TextBox><br />
            <span style="color: #cc0000">请输入错误指向的网址</span></td>
      </tr>
      <tr>
        <td height="26" style="width: 123px">禁止访问的ip</td>
        <td style="width: 524px">
            <asp:TextBox ID="book_ip" runat="server" Width="354px"></asp:TextBox><br />
            <span style="color: #cc0000">IP之间请用逗号隔开,如"127.0.0.1 , 27.45.34.44 , 121.167.34.66"</span></td>
      </tr>
    </table>
    <table  border="0" align="center" style="width: 750px;">
      <tr>
        <td style="width: 227px">&nbsp;<br />
            <br />
            <br />
        </td>
        <td style="width: 251px"><asp:Button ID="send" runat="server" OnClick="send_Click" skinid="blue" Text="提  交" /></td>
        <td width="354"><asp:Button ID="reset" runat="server" OnClick="reset_Click" skinid="blue" Text="重  置" /></td>
      </tr>
    </table>
    </div>
    </form>
</body>
</html>
