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

<!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="../Images/Admin.css" type="text/css" />
    <script type="text/javascript" src="../Images/Admin.js"></script>
    <script type="text/javascript">
        function LOAD()
        {
            if(document.getElementById("TieZhiLeiXing_0").checked)
                document.getElementById("TR_FuJian").style.display="none";
            else
                document.getElementById("TR_FuJian").style.display="block";
        }
        function SheZhiWenJian(ShuLiang)
        {
            var WJDM="";
            for(var i=0;i<ShuLiang;i++)
                WJDM+="<input type=\"file\" name=\"f"+(i+1)+"\" /><br/>";
            document.getElementById("SuoYouWenJian").innerHTML=WJDM;
        }
    </script>
</head>
<body onload="LOAD()">
    <form id="form1" runat="server" onkeydown="if(event.ctrlKey&&event.keyCode==13){this.submit();}" enctype="multipart/form-data">
    <div>
        位置：<a href="TieZhi.aspx">贴子管理</a> &gt; 增加贴子
        <div style="height:5px"></div>
        <table class="tab1" border="0" cellpadding="0" cellspacing="0">
        
        <tr>
            <td>
            <table class="tab2" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td class="tab2_bt">
                增加贴子
                </td>
            </tr>
            <tr>
                <td>
                <table class="tab3" border="0" cellpadding="0" cellspacing="1">
                <tr>
                    <td style="width:200px">
                        &nbsp; &nbsp; 标题</td>
                    <td>
                        <asp:TextBox ID="BiaoTi" runat="server" Width="300px" MaxLength="50"></asp:TextBox></td>
                </tr>
                    <tr>
                        <td style="width: 200px">
                            &nbsp; &nbsp; 状态</td>
                        <td>
                            <asp:CheckBox ID="ShiFouZhiDing" runat="server" Text="置顶贴子" />
                            <asp:CheckBox ID="JingHuaTieZhi" runat="server" Text="精华贴子" />
                            <asp:CheckBox ID="SuoDingTieZhi" runat="server" Text="锁定贴子" />
                            <asp:CheckBox ID="ShanChuTieZhi" runat="server" Text="删除贴子" /></td>
                    </tr>
                    <tr>
                        <td style="width: 200px">
                            &nbsp; &nbsp; 作者ID</td>
                        <td>
                            <asp:TextBox ID="ZuoZheID" runat="server">0</asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 200px">
                            &nbsp; &nbsp; 所属版块</td>
                        <td>
                            <asp:ListBox ID="SuoShuBanKuai" runat="server" Height="80px" Width="300px"></asp:ListBox></td>
                    </tr>
                    <tr>
                        <td style="width: 200px">
                            &nbsp; &nbsp; 贴子类型</td>
                        <td>
                            <asp:RadioButton ID="TieZhiLeiXing_0" runat="server" Checked="True" GroupName="TieZhiLeiXing" Text="文本贴子" onclick="LOAD()" />
                            <asp:RadioButton ID="TieZhiLeiXing_1" runat="server" GroupName="TieZhiLeiXing" Text="文件贴子" onclick="LOAD()" /></td>
                    </tr>
                    <tr>
                        <td style="width: 200px">
                            &nbsp; &nbsp; 贴子内容</td>
                        <td>
                            <asp:TextBox ID="TieZhiNeiRong" runat="server" Height="150px" TextMode="MultiLine" Width="400px"></asp:TextBox></td>
                    </tr>
                    <tr id="TR_FuJian">
                        <td style="width: 200px">
                            &nbsp; &nbsp; 附件内容</td>
                        <td>
                            <table style="width:100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="width:100px">
                                    &nbsp; 数量：</td>
                                <td>
                                    <asp:TextBox ID="ShuLiang" runat="server">3</asp:TextBox>
                                    <input type="button" value="设置" onclick="SheZhiWenJian(parseInt(ShuLiang.value))" />
                                    </td>
                            </tr>
                            <tr>
                                <td style="width:100px">
                                    &nbsp; 文件：</td>
                                <td id="SuoYouWenJian">
                                    <input type="file" name="f1" /><br />
                                    <input type="file" name="f1" /><br />
                                    <input type="file" name="f1" /><br />
                                </td>
                            </tr>
                            </table>
                        
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 200px">
                            &nbsp; &nbsp; 贴子模板</td>
                        <td>
                            贴子内容:<asp:DropDownList ID="MoBan_TieZhiNeiRong" runat="server">
                            </asp:DropDownList>
                            3G贴子内容:<asp:DropDownList ID="MoBan_3GTieZhiNeiRong" runat="server">
                            </asp:DropDownList><br />
                            回贴列表:<asp:DropDownList ID="MoBan_HuiTieLieBiao" runat="server">
                            </asp:DropDownList>
                            3G回贴列表:<asp:DropDownList ID="MoBan_3GHuiTieLieBiao" runat="server">
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td style="width: 200px">
                            &nbsp; &nbsp; 投票选项</td>
                        <td>
                            <asp:TextBox ID="TouPiaoXuanXiang" runat="server" Width="300px" MaxLength="500"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 200px">
                        </td>
                        <td>
                            <asp:Button ID="Button1" runat="server" Text="增加贴子" />
                            <input type="reset" value="重新填写" />
                            </td>
                    </tr>
                </table>
                </td>
            </tr>
            </table>
            </td>
        </tr>
        </table>
    </div>
    </form>
</body>
</html>
