<%@ page title="" language="VB" masterpagefile="MasterPage.master" autoeventwireup="false" inherits="user_user_add_news, App_Web_user_add_news.aspx.6cc23264" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script src="../web_js/intjs.js" type="text/javascript"></script>
<script charset="utf-8" src="../kindeditor/kindeditor.js" type="text/javascript"></script>
	<script charset="utf-8" src="../kindeditor/lang/zh_CN.js" type="text/javascript"></script>
		<script type="text/javascript">
		    var editor;
		    KindEditor.ready(function (K) {
		        editor = K.create('#ctl00_ContentPlaceHolder1_add_new_nr', {
		            uploadJson: '../kindeditor/file_upload_user.ashx',
		            fileManagerJson: '../kindeditor/file_look_user.ashx',
		            allowFileManager: true,
		            resizeType: 1,
		            afterChange: function () {
		                var self = this;
		                document.getElementById('ctl00_ContentPlaceHolder1_add_new_nr').value = self.html();
		            }
		        });
		    });

</script>
		<script type="text/javascript">
		    var editor;
		    KindEditor.ready(function (K) {
		        editor = K.create('#ctl00_ContentPlaceHolder1_add_new_browse', {
		            uploadJson: '../kindeditor/file_upload_user.ashx',
		            fileManagerJson: '../kindeditor/file_look_user.ashx',
		            allowFileManager: true,
		            resizeType: 1,
		            afterChange: function () {
		                var self = this;
		                document.getElementById('ctl00_ContentPlaceHolder1_add_new_browse').value = self.html();
		            }
		        });
		    });

</script>
    <script language="javascript" type="text/javascript">
        /***
        *功能：隐藏和显示div
        *参数divDisplay：html标签id
        ***/
        function click_a(divDisplay1,divDisplay2)
        {
           
                document.getElementById(divDisplay1).style.display = "block";
          
                document.getElementById(divDisplay2).style.display = "none";
           
        }
    </script>
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 
<table width="744" border="0" cellpadding="0" cellspacing="0">
<tr>
                <td width="100%" height="60"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td bgcolor="#CCCCCC"><table width="100%" border="0" cellpadding="0" cellspacing="1">
                          <tr>
                            <td height="27" bgcolor="#F5F5F5" class="string_12"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="7%" align="center"><img src="user_image/use_shu2.JPG" width="21" height="25" /></td>
                                  <td width="93%" class="string_12">发表文章</td>
                                </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td height="30" bgcolor="#FFFFFF">
                            
                            <fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;"><legend class="string_12"><strong>发表文章</strong></legend>
                            <table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#E7E7E7" style="margin-top:5px;">
                              <tr>
                                <td width="17%" height="30" align="center" bgcolor="#F6F6F6" class="string_12_FF0000">文章分类：</td>
                                <td width="83%" ><asp:DropDownList ID="add_new_lei" runat="server" AutoPostBack="True"> </asp:DropDownList>
                                    <asp:CheckBox ID="add_new_tw" runat="server" Enabled="False" Visible="False" />                              
                                    <asp:Label CssClass="string_12" ID="add_new_imageurl" 
                                          runat="server" Visible="False"></asp:Label>
                                    <asp:FileUpload ID="add_new_image" runat="server" 
                                          CssClass="text_autox22_cccccc" Visible="False" Width="350px" />                                </td>
                              </tr>
                              <tr>
                                <td height="30" align="center" bgcolor="#F6F6F6" class="string_12_FF0000">文章标题：</td>
                                <td ><table border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td><asp:DropDownList ID="add_new_catgory" runat="server" Visible="False" > </asp:DropDownList></td>
                                      <td><asp:TextBox ID="add_new_bt" runat="server" Width="350px" MaxLength="255"></asp:TextBox>
                                          <span class="string_12_e10a0f_bold">*</span></td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td height="30" align="center" bgcolor="#F6F6F6" class="string_12">参数设置：</td>
                                <td ><asp:CheckBox runat="server" ID="add_new_js" CssClass="string_12" 
                                                        Text="JS在线运行" ></asp:CheckBox>
                                    <asp:CheckBox runat="server" ID="add_new_jspage" CssClass="string_12" 
                                                        Text="分页显示" ></asp:CheckBox>
                                    <asp:CheckBox runat="server" ID="add_new_pl" CssClass="string_12" 
                                                        Text="开放评论" Checked="true"></asp:CheckBox></td>
                              </tr>
                              <tr>
                                <td height="30" align="center" bgcolor="#F6F6F6" class="string_12"><span class="string_12">SEO关键字：</span></td>
                                <td ><asp:TextBox ID="add_new_keywords" runat="server" 
                                              CssClass="text_autox22_cccccc" Width="550px" MaxLength="255"></asp:TextBox></td>
                              </tr>
                              <tr>
                                <td height="30" align="center" bgcolor="#F6F6F6" class="string_12"><span class="string_12">SEO简介：</span></td>
                                <td ><asp:TextBox ID="add_new_description" runat="server" 
                                              CssClass="text_autox22_cccccc" Width="570px" MaxLength="255"></asp:TextBox></td>
                              </tr>
                            </table>
                            </fieldset>

                              <asp:Label ID="news_annex_string" runat="server" Visible="False"></asp:Label>
                              <% 
     If ubb.xml_tables("red_parrot.xml", "parrot_form") = "True" Then
         If news_annex_string.Text <> "" Then
		 %>
		                             <fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;"><legend class="string_12"><strong>附加表单</strong></legend>
                             <table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#E7E7E7" style="margin-top:5px;">
		 <%
             Dim news_array() = news_annex_string.Text.ToString.Split("|")

 For i = 0 To news_array.Length - 1%>
                              <tr>
                                <td width="17%" height="30" align="center" bgcolor="#F6F6F6" class="string_12"><%= news_array(i).Split(",")(0)%>：</td>
                                <td width="83%" class="string_12"><%= form_replace_text(news_array(i).Split(",")(1), news_array(i).Split(",")(2), news_array(i).Split(",")(3), i, news_array(i).Split(",")(4))%></td>
                              </tr>
                              <%  Next%>
	 
                            </table>
 </fieldset>
	 <%
	 End If
End If%>
 
                             <fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;" id="divOne_1" ><legend class="string_12"><strong>文章正文</strong><span class="string_12_999999">&nbsp;&nbsp;&nbsp;<a onClick="return click_a('divOne_2','divOne_1')" onmouseover= "this.style.cursor= 'hand' ">点击编辑有偿资源</a>&nbsp;--&nbsp;正文中可调用标签：[!--文章图片--!]&nbsp;&nbsp;[!--图片路径--!]&nbsp;</span></legend>
<table width="100%" border="0" cellpadding="0" cellspacing="2" bordercolor="#E7E7E7" style="margin-top:5px;">
<tr>
                                          <td colspan="2" align="center" style="word-break: break-all">
                                        <asp:TextBox ID="add_new_nr" runat="server"  
                                                  Height="250px" TextMode="MultiLine" Width="100%"></asp:TextBox>                                                  </td>
                                        </tr>
                                    </table>
                          
 </fieldset>
 
<fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;display:none;" id="divOne_2" ><legend class="string_12"><strong>有偿资源</strong><span class="string_12_999999">&nbsp;&nbsp;&nbsp;<a onClick="return click_a('divOne_1','divOne_2')" onmouseover= "this.style.cursor= 'hand' ">点击编辑文章正文</a></span></legend>
                                      <table width="100%" border="0" cellpadding="0" cellspacing="2" bordercolor="#E7E7E7" style="margin-top:5px;">
<tr>
                                        <td colspan="2" align="center" style="word-break: break-all">
                                          <asp:TextBox ID="add_new_browse" runat="server" 
                                              Height="250px" TextMode="MultiLine" Width="100%"></asp:TextBox></td>
    </tr>
                                        
                                       
                                        <tr>
                                          <td width="17%" height="30" align="right"><span class="string_12_FF0000">浏览所需分数：</span></td>
                                          <td height="25"><table border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td><asp:TextBox ID="add_new_browse_jifen" runat="server" 
                                              CssClass="text_autox22_cccccc" Width="50px" Height="18px" Text='0' onkeydown="intjs()"></asp:TextBox></td>
                                              <td class="string_12_FF0000">*</td>
                                              <td><asp:DropDownList ID="add_new_browse_lei" runat="server">
                                                  <asp:ListItem>积分</asp:ListItem>
                                                  <asp:ListItem>红币</asp:ListItem>
                                                </asp:DropDownList>                                              </td>
                                            </tr>
                                          </table></td>
    </tr>
                    </table>
  </fieldset>
 
 <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:5px;">
                              
                              
                              <tr>
                                <td width="17%" height="30" align="center"><span class="string_12">请输入验证码：</span></td>
                                <td width="83%" ><table width="555" border="0" cellspacing="5" cellpadding="0">
                                    <tr>
                                      <td width="50" class="string_12"><asp:TextBox CssClass="text_autox22_cccccc" ID="add_new_captcha" 
                                              runat="server" Width="50px"></asp:TextBox></td>
                                      <td width="75"><img src="../images/captcha_img.jpg" alt="看不清，请点击换一个！" onclick="this.src='../web_aspx/captcha_img.aspx?temp='+ Math.random();" /></td>
                                      <td width="56"><asp:Button ID="add_new_ok" runat="server" CssClass="btn" 
                                                            Text=" 提交 " Enabled="False" Height="22px" Width="80px" /></td>
                                      <td ><input name="Submit2" type="reset" class="btn" value=" 重置 " 
                                                style="width: 80px; height: 22px" /></td>
                                    </tr>
                                </table></td>
                              </tr>
                            </table>
 
                            
                            </td>
                          </tr>
                      </table></td>
                    </tr>
                </table></td>
              </tr>
            </table>
</asp:Content>

