<%@ page language="VB" autoeventwireup="false" inherits="qiye_admin_admin_update_new, App_Web_admin_update_new.aspx.25f04327" %>
<!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>
<title>修改文章</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="css/css.css" rel="stylesheet" type="text/css">
<link href="css/body.css" rel="stylesheet" type="text/css">
<link href="css/text.css" rel="stylesheet" type="text/css">
<link href="css/button.css" rel="stylesheet" type="text/css" />
<script src="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 charset="utf-8" src="js/kindeditor_admin.js" type="text/javascript"></script>
		<script type="text/javascript">

function Getcolor(img_val,input_val){
	var arr = showModalDialog("selcolor.aspx?action=title", "", "dialogWidth:440px; dialogHeight:267px; status:0; help:0");
	if (arr != null){
		document.getElementById(input_val).value = arr;
		img_val.style.backgroundColor = arr;
		}
}
<%if up_new_js.checked=False then %>
		    KindEditor_admin('update_new_nr',1)
            <%end if  %>
			 KindEditor_admin('up_new_browse',1)
			document.oncontextmenu=new Function('event.returnValue=false;'); 
		</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>
</head>
<body>
<form id="form1" runat="server">

<table width="100%" border="0" cellspacing="3" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="1" cellpadding="0">
            <tr>
              <td bgcolor="#FFFFFF"><table width="100%" height="29" border="0" cellpadding="0" cellspacing="5">
                  <tr>
                    <td height="19" bgcolor="#EBEBEB"><table width="100%" border="0" cellspacing="8" cellpadding="0">
                        <tr>
                          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="3" cellpadding="0">
                              <tr>
                                <td width="15%" height="25" align="center" class="wuse16"><strong class="16huise">管理中心</strong></td>
                                <td valign="bottom" class="huise12">修改文章</td>
                                <td width="9%" valign="bottom" class="huise12"><a href="admin_new.aspx?sou=<%=server.urlencode(ubb.query_string("sou"))%>&sou_flei=<%=Server.UrlEncode(ubb.query_string("sou_flei")) %>&sou_zlei=<%=Server.UrlEncode(ubb.query_string("sou_zlei")) %>&new_zt=<%=ubb.query_string("new_zt")%>&page_ye=<%=ubb.query_string("page_ye")%>">返回</a></td>
                              </tr>
                          </table></td>
                        </tr>
                    </table></td>
                  </tr>
              </table></td>
            </tr>
            
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;"><legend class="wuse12"><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="hongse12">文章分类：</td>
<td width="83%" height="25">
    <asp:DropDownList  ID="up_new_lei" runat="server" 
                                AutoPostBack="True" Height="26px"></asp:DropDownList>
                                              <asp:CheckBox ID="up_new_tw" runat="server" Visible="False" />                                  
                                              <asp:Label ID="up_new_image2" runat="server"></asp:Label>
                                              <asp:FileUpload ID="up_new_image" runat="server" CssClass="text_autox22_cccccc" 
                                                        Visible="False" Width="350px" />
                                              <asp:CheckBox ID="up_new_ghost" runat="server" CssClass="hongse12" Text="幻灯片显示" 
                                                        Visible="False" />                                          </td>
                                        </tr>
                                        <%If ubb.xml_tables("red_parrot.xml", "parrot_newstoupiao") = "True" Then%>
                                        <tr>
                                          <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">加入投票：</td>
                                    <td height="25"><asp:DropDownList ID="new_diaocha" runat="server" 
                                            AppendDataBoundItems="True" Height="26px">
                                              <asp:ListItem Value="False">不加入投票</asp:ListItem>
                                            </asp:DropDownList>
                                            &nbsp;<a href="admin_new_diaocha.aspx" target="mainFrame" class="wuse12">管理投票项目</a></td>
                                        </tr>
                                        <%End If%>
                                        
                                        <tr>
                                          <td height="30" align="center" bgcolor="#F6F6F6" class="hongse12">文章标题：</td>
                            <td height="25"><table border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                  <td><asp:DropDownList ID="update_new_catgory" runat="server" Visible="False" Height="26px"> </asp:DropDownList></td>
                                                  <td><asp:TextBox CssClass="text_autox22_cccccc" ID="update_new_bt" 
                                                        runat="server" Width="350px" MaxLength="255"></asp:TextBox></td>
                                                  <td><asp:TextBox ID="update_new_bt_color" runat="server" style="width:1px;visibility: hidden;"></asp:TextBox>
                                                    <img border="0" src="image/Rect.gif" style="cursor:pointer;background:<%=update_new_bt_color.Text%>" onclick="Getcolor(this,'update_new_bt_color');" title="选取标题颜色"  align="absmiddle" /> <span class="hongse12">*</span></td>
                                                </tr>
                                              </table></td>
                                        </tr>
                                        <tr>
                                          <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">外部连接：</td>
                                          <td height="25" class="wuse12">
                                            <asp:TextBox CssClass="text_autox22_cccccc" ID="update_new_url" 
                                                        runat="server" Width="350px" MaxLength="255"></asp:TextBox>
                                            非外部链接请保留为空</td>
    </tr>
                                        
                                        <tr>
                                          <td height="30" align="center" bgcolor="#F6F6F6" class="hongse12">点击总数：</td>
                                          <td height="25"><asp:TextBox ID="up_new_paihang" runat="server" CssClass="text_autox22_cccccc" 
                                                 Width="50px" ></asp:TextBox>
                                            &nbsp;<span class="hongse12">* 必须为数字，不能为空</span></td>
                                        </tr>
                                        <tr>
                                          <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">SEO关键字：</td>
                                    <td height="25">
                                              <asp:TextBox ID="up_new_keywords" runat="server" 
                                                 CssClass="text_autox22_cccccc" Width="530px" MaxLength="255"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                          <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">SEO简介：</td>
                                    <td height="25">
                                              <asp:TextBox ID="up_new_description" runat="server" 
                                                 CssClass="text_autox22_cccccc" Width="560px" MaxLength="255"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                          <td height="30" align="center" bgcolor="#F6F6F6" class="wuse12">其他设置：</td>
                                          <td height="25"><asp:CheckBox ID="up_new_top" runat="server" CssClass="wuse12" Text="固顶显示" />                                          
                                            <asp:CheckBox runat="server" ID="up_new_js" CssClass="wuse12" 
                                                        Text="JS在线运行" AutoPostBack="True" ></asp:CheckBox>
                                            <asp:CheckBox runat="server" ID="up_new_jspage" CssClass="wuse12" 
                                                        Text="分页显示" ></asp:CheckBox>
                                            <asp:CheckBox runat="server" ID="loadwebfile" CssClass="wuse12" 
                                                        Text="下载远程图片" ></asp:CheckBox>
                                          <asp:CheckBox ID="up_new_pl" runat="server" CssClass="hongse12" Text="开放评论" /></td>
                                        </tr>
  </table>
</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
             Dim news_array() = news_annex_string.Text.ToString.Split("|")
         %>
  <fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;"><legend class="wuse12"><strong>附加表单</strong></legend>
<table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#E7E7E7" style="margin-top:5px;">
    <%  
        Dim news_annex_items() As String
        If up_news_text_tb.Rows(0).Item("new_annex") <> "" Then
            news_annex_items = up_news_text_tb.Rows(0).Item("new_annex").split("‖")
            
        End If
        For i = 0 To news_array.Length - 1
            
            Dim item_values As String = ""
            Try
                item_values = news_annex_items(i).Split("∷")(1)
            Catch ex As Exception

            End Try
            
            %>
  <tr>
    <td width="17%" height="30" align="center" bgcolor="#F6F6F6" class="wuse12"><%= news_array(i).Split(",")(0)%>：</td>
    <td width="83%" height="25" class="wuse12"><%= form_replace_text(news_array(i).Split(",")(1), news_array(i).Split(",")(2), news_array(i).Split(",")(3), i, news_array(i).Split(",")(4), item_values)%></td>
  </tr>
    <%  Next%>
        <tr>
    <td width="17%" height="30" align="center" bgcolor="#F6F6F6" class="wuse12">选项显示样式：</td>
    <td width="83%" height="25" class="wuse12">
        <asp:DropDownList ID="up_new_annex_style" 
            runat="server">
            <asp:ListItem Value="3">显示三排</asp:ListItem>
            <asp:ListItem Value="2">显示两排</asp:ListItem>
            <asp:ListItem Value="1">显示一排</asp:ListItem>
        </asp:DropDownList>
        </td>
  </tr>
</table>
</fieldset>
<%  End If
End If%>
<fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;" id="divOne_1" >
<legend class="wuse12"><strong>文章正文</strong><span class="huise12">
   <% If ubb.xml_tables("red_parrot.xml", "parrot_user") = "True" Then%>
&nbsp;&nbsp;&nbsp;<a onClick="return click_a('divOne_2','divOne_1')" onmouseover= "this.style.cursor= 'hand' ">点击编辑有偿资源</a>
   <%End If%>
&nbsp;--&nbsp;正文中可调用标签：[!--文章图片--!]&nbsp;&nbsp;[!--图片路径--!]&nbsp;&nbsp;[!--附加表单--!]&nbsp;</span></legend>
                                    <table width="100%" border="0" cellpadding="0" cellspacing="2"  style="margin-top:5px;">
                                        <tr>
                                          <td height="30" colspan="2" align="center" style="word-break: break-all">
                                          <asp:TextBox ID="update_new_nr" runat="server" Height="250px" TextMode="MultiLine" Width="100%" ></asp:TextBox></td>
                                        </tr>
                            
                                    
                                    </table>
  </fieldset>
  
   <% If ubb.xml_tables("red_parrot.xml", "parrot_user") = "True" Then%>
                                      <fieldset style="margin:10px 5px 5px 5px; padding:0px 5px 5px 5px;display:none;" id="divOne_2" ><legend class="wuse12"><strong>有偿资源</strong><span class="huise12">&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="up_new_browse" runat="server" 
                                              Height="250px" TextMode="MultiLine" Width="100%"></asp:TextBox></td>
    </tr>
                                        
                                       
                                        <tr>
                                          <td width="17%" height="30" align="right"><span class="hongse12">浏览所需分数：</span></td>
                                          <td height="25"><table border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td><asp:TextBox ID="up_new_browse_jifen" runat="server" 
                                              CssClass="text_autox22_cccccc" Width="50px" Height="18px" Text='0' onkeydown="intjs()"></asp:TextBox></td>
                                              <td class="hongse12">*</td>
                                              <td><asp:DropDownList ID="up_new_browse_lei" runat="server">
                                                  <asp:ListItem>积分</asp:ListItem>
                                                  <asp:ListItem>红币</asp:ListItem>
                                                </asp:DropDownList>                                              </td>
                                            </tr>
                                          </table></td>
                                        </tr>
                                    </table>
  </fieldset>
   <%End If%>
   <table width="100%" border="0" cellpadding="0" cellspacing="2" bordercolor="#E7E7E7" style="margin-top:5px;">
                                           <tr>
                                          <td width="17%" height="30" align="center">&nbsp;</td>
                                          <td height="25">
                                          <asp:Button ID="update_new_ok" runat="server" CssClass="btn" Text="提交修改" />
                                          &nbsp;&nbsp;<input name="Submit22" type="reset" class="btn" value=" 重置 " /></td>
                                        </tr>
                                    </table>
    </form>
</body>
</html>