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

<!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/ColorDialog.js"></script>
    <script type="text/javascript">
        function SheZhiLaiYuan(LaiYuan)
        {
            document.getElementById("WenZhangLaiYuan").value=LaiYuan;
        }
        function SheZhiZuoZhe(ZuoZhe)
        {
            document.getElementById("ZuoZhe").value=ZuoZhe;
        }
     function setText (text) {
       sfbj=true;
       var textEl=document.getElementById("WenZhangZhengWen");
       if (textEl.createTextRange && textEl.caretPos) {
         var caretPos = textEl.caretPos;
         caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == 
 
' ' ? text + ' ' : text;
       }
        else
         textEl.value  += text;
     }
        function SheZhiTuPian(SuoYouTuPian)
        {
            if(SuoYouTuPian=="")
                return;
            
            var tps=SuoYouTuPian.split(',');
            var TXT="";
            for(var i=0;i<tps.length;i++)
                TXT+="[img]"+tps[i]+"[/img]\r\n";
            var SYZY=document.getElementById("SuoYouZiYuan").value;
            SYZY+=SYZY==""?"":",";
            SYZY+=SuoYouTuPian;
            document.getElementById("SuoYouZiYuan").value=SYZY;
            setText(TXT);
        }
        function SZZY(SuoYouWenJianMing)
        {
            if(SuoYouWenJianMing=="")
                return;
                
            var wjs=SuoYouWenJianMing.split('|');
            var wj1s=wjs[0].split(',');
            var wj2s=wjs[1].split(',');
            
            var SYZY_=document.getElementById("SuoYouZiYuan").value;
            SYZY_+=SYZY_==""?"":",";
            SYZY_+=wjs[0];
            document.getElementById("SuoYouZiYuan").value=SYZY_;
            
            var TXT="";
            
            for(var i=0;i<wj1s.length;i++)
                TXT+="[url="+wj1s[i]+"]下载("+wj2s[i]+")[/url]\r\n";
            setText(TXT);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" onkeydown="if(event.ctrlKey&&event.keyCode==13){this.submit();}" enctype="multipart/form-data">
    <div>
    <div style="height:18px">
    位置：<a href="WenZhangLanMu.aspx">文章栏目</a> &gt; <%=分类代码 %> 增加文章
    </div>
    <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; 文章标题<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                            ControlToValidate="BiaoTi" ErrorMessage="RequiredFieldValidator" SetFocusOnError="True">文章标题不能为空</asp:RequiredFieldValidator></td>
                                    <td>
                                        <asp:TextBox ID="BiaoTi" runat="server" Width="250px" MaxLength="50"></asp:TextBox>
                                        <asp:CheckBox ID="JianChaChongFuBiaoTi" runat="server" Text="检查重复标题" />&nbsp;
                                        颜色<asp:TextBox ID="BiaoTiYangShi_YanSe" runat="server" onfocus="colordialog()" Width="50px" MaxLength="7"></asp:TextBox>
                                        <asp:CheckBox ID="BiaoTiYangShi_ChuTi" runat="server" Text="粗体" />
                                        <asp:CheckBox ID="BiaoTiYangShi_XieTi" runat="server" Text="斜体" />
                                        <asp:CheckBox ID="BiaoTiYangShi_ShanChuXian" runat="server" Text="删除线" /></td>
                                </tr>
                                <tr>
                                    <td style="width: 200px">
                                        &nbsp; &nbsp; 内容状态</td>
                                    <td>
                                        外部链接<asp:TextBox ID="WaiBuLianJie" runat="server" Width="201px"></asp:TextBox>
                                        时间<asp:TextBox ID="FaBuShiJian" runat="server" Width="99px"></asp:TextBox>
                                        <asp:CheckBox ID="ShiFouTuiJian" runat="server" Text="是否推荐" /></td>
                                </tr>
                                <tr>
                                    <td style="width: 200px">
                                        &nbsp; &nbsp; 来源作者</td>
                                    <td>
                                        文章来源<asp:TextBox ID="WenZhangLaiYuan" runat="server" Width="155px"></asp:TextBox><input
                                            id="Button1" type="button" value="选择" onclick="window.open('WenZhangLaiYuan_XuanZhe.aspx','_blank','toolbar=no,scrollbars=yes,width=600,height=600')" />
                                        作者<asp:TextBox ID="ZuoZhe" runat="server" Width="100px"></asp:TextBox>
                                        <input id="Button2" type="button" value="选择" onclick="window.open('WenZhangZuoZhe_XuanZhe.aspx','_blank','toolbar=no,scrollbars=yes,width=600,height=600')" /></td>
                                </tr>
                                <tr>
                                    <td style="width: 200px">
                                        &nbsp; &nbsp; 文章简介</td>
                                    <td>
                                        <asp:TextBox ID="WenZhangJianJie" runat="server" Height="130px" TextMode="MultiLine" Width="400px"></asp:TextBox>
                                        <asp:CheckBox ID="ZiDongHuoQu" runat="server" Text="自动获取" Checked="True" /></td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        &nbsp; &nbsp; 文章正文(<font color="#ff0000">*</font>) &nbsp; &nbsp; <a href="#" onclick="window.open('WenZhang_ShangChuanTuPian.aspx','_blank','toolbar=no,scrollbars=yes,width=600,height=600');return false;">上传图片</a>&nbsp;&nbsp;
                                        <a href="#" onclick="window.open('WenZhang_ShangChuanZiYuan.aspx','_blank','toolbar=no,scrollbars=yes,width=600,height=600');return false;">上传资源</a>
                                        <span class="text_pt">上传的资源会随着文章的删除而删除。注意：如果上传了文件而没有增加文章，请将Temp文件夹的临时文件删除。</span>
                                    </td>
                                </tr>
                                <tr>
                                     <td colspan="2">
                                        <asp:TextBox ID="WenZhangZhengWen" onkeydown="if(event.keyCode==9){setText('\t');return false;}" runat="server" Height="270px" TextMode="MultiLine" Width="100%"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width:200px">
                                        &nbsp; &nbsp; 内容评论</td>
                                    <td>
                                        <asp:CheckBox ID="ShiFouGuanBiPingLun" runat="server" Text="关闭评论" />
                                        <asp:CheckBox ID="ShiFouUBB" runat="server" Text="UBB内容" Checked="True" />
                                        <asp:CheckBox ID="BaoCunTuPian" runat="server" Text="保存网络图片" Checked="True" />
                                        <asp:CheckBox ID="ShiFouShouDongFenYe" runat="server" Text="手动分页" />
                                        <span class="text_pt">注意：如果为手动分页，则在正文中输入“{$page$}”来分页。</span></td>
                                </tr>
                                <tr>
                                    <td style="width: 200px">
                                        &nbsp; &nbsp; 文章模板</td>
                                    <td>
                                        内容模板<asp:DropDownList ID="NeiRongMoBan" runat="server">
                                        </asp:DropDownList><input type="button" value="管理" onclick="location.href='../MoBan/NeiRongMoBan.aspx?type=<%=Server.UrlEncode("查看内容") %>'" />
                                        
                                        3G内容模板<asp:DropDownList ID="NeiRongMoBan_3G" runat="server">
                                        </asp:DropDownList><input type="button" value="管理" onclick="location.href='../MoBan/NeiRongMoBan.aspx?type=<%=Server.UrlEncode("查看内容") %>'" /><br />
                                        
                                        评论模板<asp:DropDownList ID="PingLunMoBan" runat="server">
                                        </asp:DropDownList><input type="button" value="管理" onclick="location.href='../MoBan/NeiRongMoBan.aspx?type=<%=Server.UrlEncode("评论列表") %>'" />
                                        3G评论模板<asp:DropDownList ID="PingLunMoBan_3G" runat="server">
                                        </asp:DropDownList><input type="button" value="管理" onclick="location.href='../MoBan/NeiRongMoBan.aspx?type=<%=Server.UrlEncode("评论列表") %>'" /></td>
                                </tr>
                                <tr>
                                    <td style="width: 200px">
                                        &nbsp; &nbsp; 访问权限</td>
                                    <td>
                                        <asp:CheckBox ID="QuanXian_JinXiaoHuiYuan" runat="server" Text="仅限会员阅读" />
                                        &nbsp; 阅读需要等级<asp:TextBox ID="QuanXian_XuYaoDenJi" runat="server" Width="40px">0</asp:TextBox>级
                                        &nbsp;&nbsp; 阅读扣除积分<asp:TextBox ID="QuanXian_KouChuJiFen" runat="server" Width="40px">0</asp:TextBox>点</td>
                                </tr>
                                <tr>
                                    <td style="width: 200px">
                                        &nbsp; &nbsp;
                                        <asp:CheckBox ID="KuaiSuZengJia" runat="server" Text="快速增加" /></td>
                                    <td>
                                        <asp:Button ID="Button3" runat="server" Text="发布文章" />
                                        <input type="reset" value="重新填写" />
                                        <asp:HiddenField ID="SuoYouZiYuan" runat="server" Value="" />
                                        </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </div>
    </form>
    <object id="dlgHelper" classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0px" height="0px"></object>
</body>
</html>
