<%@ Page Title="添加新闻" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Addnews.aspx.cs" Inherits="Portal.Admin.Addnews" %>
<%@ Register src="~/UserControls/HtmlEdit.ascx" tagname="HtmlEdit" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

 <div class="result-wrap">


 
            <div class="result-title">
                <b>添加新闻</b>
            </div>

 
 <div>
   
 

 
  <table class="table">
   <tr>
   <th width=150px>新闻类别：
   </th>
    <td>
   <asp:DropDownList id="parentname"  Width="250px"  runat="server"     CssClass="form-control" >
			  <asp:ListItem Text="做为顶级目录" Value="0"></asp:ListItem>
          </asp:DropDownList> <asp:HyperLink runat="server" ID="hlcat" Visible="false"></asp:HyperLink>
      </td>
    </tr>
   

   <tr>
     <th>新闻标题：</th>
     <td><asp:TextBox ID="title" runat="server" Width="370" CssClass="form-control"  ></asp:TextBox>
     
         <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator1" ControlToValidate="title" ForeColor="Red" runat="server" ErrorMessage="新闻标题不能为空"></asp:RequiredFieldValidator>
     
     </td>
   </tr>

 

    <tr>
     <th>站外URL：</th>
     <td class=" form-inline"><asp:TextBox ID="url" CssClass="form-control"  Width="300px"  runat="server"></asp:TextBox>
           
     </td>
   </tr>

     



    <tr>
     <th>内容与分页：</th>
     <td>
      
     <asp:DropDownList ID="pagecount" Width=60px runat="server" AutoPostBack="True" onselectedindexchanged="pagecount_SelectedIndexChanged">
    </asp:DropDownList>
  &nbsp;  <asp:Button ID="insert" runat="server" Text="插入页" class="btn  btn-success   btn-sm " onclick="insert_Click" />
          <asp:Button ID="remove" runat="server" Text="删除页" class="btn btn-danger btn-sm  " onclick="remove_Click" />
   &nbsp;&nbsp; 
          <asp:CheckBox Checked="false" runat="server" ID="cb_autodownpic" Text="自动下载站外图片" />
  

     </td>
   </tr>



    <tr>
     <th>新闻内容</th>
     <td> 
       <uc1:HtmlEdit runat="server" ID="contents" />
     </td>
   </tr>




    <tr>
     <th>新闻来源名称：</th>
     <td><asp:TextBox ID="source" runat="server" CssClass="form-control"  Width="300px"></asp:TextBox> </td>
   </tr>


    <tr>
     <th>新闻来源URL：</th>
     <td><asp:TextBox ID="sourcelink" runat="server" CssClass="form-control"  Width="300px"></asp:TextBox></td>
   </tr>



   
  
  <tr>
  <td colspan="2">
  
  <div class="btnc">
    <asp:Button ID="submits" runat="server" Text="提交"  class="btn btn-primary" onclick="submits_Click" />
   
     </div>

  </td>
  </tr>
  </table>
 
  
 


  

 <div runat="server" id="div_div" visible="false"  >

      
     
     <asp:TextBox ID="intro"   TextMode="MultiLine" Width='600px' Height="100px" runat="server"></asp:TextBox> 
    <asp:TextBox ID="author" runat="server" CssClass="form-control"  Width="300px"></asp:TextBox> 
   

      

   <asp:TextBox ID="littletitle"  runat="server" CssClass="form-control" Width="300"></asp:TextBox> 
   
      

 <asp:TextBox ID="tags" CssClass="form-control" Width="300px"  runat="server"></asp:TextBox> 
 


标题属性：  <asp:CheckBox ID="bold" Text="粗体" runat="server" />
<asp:CheckBox ID="italic" Text="斜体" runat="server" />
 <asp:CheckBox ID="underline" Text="下划线" runat="server" />

颜色 <asp:DropDownList ID="color" runat="server">
     <asp:ListItem style=" background-color:#FFFFFF" Value="#ffffff" Selected="true"></asp:ListItem>
    </asp:DropDownList>
 字体大小：<asp:TextBox ID="size" Width="50" runat="server"></asp:TextBox>  
 标题图片：   <asp:TextBox ID="titleimg"  Width="300px"  runat="server"></asp:TextBox>

  
  
 
评论设置：
    <asp:DropDownList ID="comment" runat="server">
    <asp:ListItem Text="不允许评论" Value="0"></asp:ListItem>
    <asp:ListItem Text="允许任何评论" Value="1"></asp:ListItem>
    <asp:ListItem Text="允许任何人评论但需要审核" Value="2"></asp:ListItem>
    <asp:ListItem Text="仅限会员评论" Value="3"></asp:ListItem>
    
    </asp:DropDownList>

 
       <asp:DropDownList ID="toptype" runat="server">
       <asp:ListItem Text="不置顶" Value="0"></asp:ListItem>
         <asp:ListItem Text="一级置顶" Value="0"></asp:ListItem>
           <asp:ListItem Text="二级置顶" Value="0"></asp:ListItem>
             <asp:ListItem Text="三级置顶" Value="0"></asp:ListItem>
       </asp:DropDownList>

       
  
 </div>
 
 
 

       

 </div>



    </div>
</asp:Content>
