<%@ Page Language="C#" AutoEventWireup="true" CodeFile="eWebAdd.aspx.cs" Inherits="webXabara_news_eWebAdd" ValidateRequest="false" %>

<!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 href="../InClude/StyleSheet.css" rel="stylesheet" type="text/css" />    
    <style type="text/css">
    <!--
    body {
	    margin-left: 0px;margin-top: 15px;margin-right: 10px;margin-bottom: 10px;
    }
    -->
    </style>
    <script src="/js/jquery.min.js" type="text/javascript"></script>
    <script src="/js/all.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript" src="/InClude/DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="/include/ueditor/editor_config.js"></script>
    <script type="text/javascript" src="/include/ueditor/editor.js"></script>
</head>

<body>
<form id="form1" runat="server">
<div class="divWidth">
    <div class="titleBg"><asp:Label ID="newsName" runat="server" Text="发布新闻"></asp:Label></div>
</div>
<div class="height10px"></div>
<div class="divWidth">
<table width="100%" border="0" cellpadding="5" cellspacing="1" class="tableLine">
  <tr>
    <td class="tdTitle" style="width:120px;">新闻标题</td>
    <td colspan="3" class="tdContent">
        <asp:TextBox ID="newsTitle" runat="server" CssClass="inputText" Width="700px" 
            Wrap="False" ToolTip="请输入标题" MaxLength="250"></asp:TextBox>
        <asp:RequiredFieldValidator  SetFocusOnError="True" ForeColor="#ff3300"   ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="newsTitle" ErrorMessage="*"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator  SetFocusOnError="True" ForeColor="#ff3300"   ID="titleRegExpress" runat="server" 
            ControlToValidate="newsTitle"></asp:RegularExpressionValidator>
      </td>
  </tr>  
  <tr>
    <td class="tdTitle">新闻分类</td>
    <td class="tdContent">
        <asp:DropDownList ID="DropDownListClass" runat="server" CssClass="inputText" 
            ToolTip="请选择分类，并注意根目录的选择" >
            <asp:ListItem Selected="True" Value="">== 请选择 ==</asp:ListItem>
        </asp:DropDownList>
        &nbsp;<asp:RequiredFieldValidator  SetFocusOnError="True" ForeColor="#ff3300"   ID="RequiredFieldValidator5" runat="server" 
            ControlToValidate="DropDownListClass" ErrorMessage="请选择分类"></asp:RequiredFieldValidator>
      </td>
    <td class="tdTitle" style="width:120px;">
        标题样式</td>
    <td class="tdContent">
        <asp:DropDownList ID="colorList" runat="server" CssClass="inputText" 
            ToolTip="标题颜色">
            <asp:ListItem Selected="True" Value="">== 无 ==</asp:ListItem>
            <asp:ListItem Value="#FF0000">红色</asp:ListItem>
            <asp:ListItem Value="#FFFF00">黄色</asp:ListItem>
            <asp:ListItem Value="#008000">绿色</asp:ListItem>
            <asp:ListItem Value="#0000FF">蓝色</asp:ListItem>
            <asp:ListItem Value="#FF00FF">紫红色</asp:ListItem>
            <asp:ListItem Value="#00FF00">酸橙色</asp:ListItem>
            <asp:ListItem Value="#00FFFF">水绿色</asp:ListItem>
            <asp:ListItem Value="#000080">海军蓝</asp:ListItem>
            <asp:ListItem Value="#808000">橄榄色</asp:ListItem>            
        </asp:DropDownList>
        <asp:CheckBox ID="checkBold" runat="server" Text="加粗" ToolTip="标题加粗" 
            Font-Bold="True" />
        <asp:Button ID="preTitle" runat="server" CausesValidation="False" 
            CssClass="inputBottom" onclick="preTitle_Click" Text="预览效果" />
        <asp:Label ID="preTitleLable" runat="server"></asp:Label>
      </td>
  </tr>
  <tr>
    <td class="tdTitle">新闻内容</td>
    <td colspan="3">
        <asp:TextBox ID="myEditor" runat="server" style="width:100%;" TextMode="MultiLine"></asp:TextBox>
        <script type="text/javascript">
            var editor = new baidu.editor.ui.Editor();
            editor.render("myEditor");
        </script>
    </td>
  </tr>
  <tr>
    <td class="tdTitle">关 键 字</td>
    <td colspan="3" class="tdContent">
        <asp:TextBox ID="newsKeyWords" runat="server" CssClass="inputText" Width="500px" 
            Wrap="False" ToolTip="请输入关键字" MaxLength="200"></asp:TextBox>
        &nbsp;注：多个搜索关键字请用逗号隔开（使搜索系统速度更快）</td>
  </tr>
  <tr>
    <td class="tdTitle">外链网址</td>
    <td colspan="3" class="tdContent">
        <asp:TextBox ID="newsHttp" runat="server" CssClass="inputText" Width="500px" 
            Wrap="False" ToolTip="请输入网址" MaxLength="255"></asp:TextBox>
        <asp:RegularExpressionValidator  SetFocusOnError="True" ForeColor="#ff3300"   ID="RegHttp" runat="server" 
            ControlToValidate="newsHttp" ErrorMessage="RegularExpressionValidator"></asp:RegularExpressionValidator>
      </td>
  </tr>
  <tr>
    <td class="tdTitle">作　　者</td>
    <td class="tdContent">
        <asp:TextBox ID="newAuthor" runat="server" CssClass="inputText" Width="200px"></asp:TextBox>
      </td>
    <td class="tdTitle">
        来　　源</td>
    <td class="tdContent">
        <asp:TextBox ID="fromWhere" runat="server" CssClass="inputText" Width="200px"></asp:TextBox>
            </td>
  </tr>
  <tr>
    <td class="tdTitle">发布时间</td>
    <td class="tdContent" colspan="3">
                <asp:TextBox ID="pDate" runat="server" Width="200px" 
            Wrap="False" ToolTip="如没特殊，请使用默认时间" MaxLength="50" CssClass="Wdate" 
                    onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" BackColor="#F5FDFE" 
                    BorderColor="#63C4E0" BorderStyle="Dashed" BorderWidth="1px" 
                    Font-Names="courier new, courier, verdana, monospace" Font-Size="12px" 
                    ForeColor="#004B7D"></asp:TextBox>
                <asp:RequiredFieldValidator  SetFocusOnError="True" ForeColor="#ff3300"   ID="RequiredFieldValidator4" runat="server" 
            ControlToValidate="pDate" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator  SetFocusOnError="True" ForeColor="#ff3300"   ID="dateRegExpree" runat="server" 
                    ControlToValidate="pDate"></asp:RegularExpressionValidator>
      </td>
  </tr>
  <tr>
    <td class="tdTitle">
        &nbsp;</td>
    <td colspan="3" class="tdContent">
        <asp:Button ID="PostTitle" runat="server" Text="发布新闻" CssClass="inputBottom" 
            onclick="PostNews_Click" />
      </td>
    </tr>
</table>
</div>
</form>
</body>
</html>