<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="YC_News_Add.aspx.cs"
    Inherits="YCHR.Web.admin.News.YC_News_Add" %>
<!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 id="Head1" runat="server">
<title>发布资讯</title>
<link rel="stylesheet" type="text/css" href="../images/style.css" />
<script type="text/javascript" src="../js/jquery.js"></script> 
<script type="text/javascript" src="../js/jquery.validate.min.js"></script>
<script type="text/javascript" src="../js/messages_cn.js"></script>
<script type="text/javascript" src="../js/jquery.form.js"></script>
<script type="text/javascript" src="../js/cursorfocus.js"></script>
<script type="text/javascript" src="../js/singleupload.js"></script>
<script type="text/javascript" src="../xheditor/xheditor.js"></script>
<script type="text/javascript">
    $(pageInit);
    function pageInit() {
        $('#txtncontent').xheditor({ upLinkUrl: "../upload.aspx", upLinkExt: "zip,rar,txt", upImgUrl: "../upload.aspx", upImgExt: "jpg,jpeg,gif,png", upFlashUrl: "../upload.aspx", upFlashExt: "swf", upMediaUrl: "../upload.aspx", upMediaExt: "avi" });
    }
</script>
<script type="text/javascript">

        $(function () {
            //表单验证JS
            $("#form1").validate({
                //出错时添加的标签
                errorElement: "span",
                success: function (label) {
                    //正确时的样式
                    label.text(" ").addClass("success");
                }
            });
        });
        $(function () {
            $("#cblItem_3,#cbIsImage").bind("click", function () {
                if ($(this).attr("checked") == true)
                {
                    $(".upordown").show();
                } else
                {
                    $(".upordown").hide();
                }
            });
        });
    </script>
</head>
<body style="padding: 10px;">
<form id="form1" runat="server">
  <div class="navigation"> <span class="back"><a href="YC_News_List.aspx">返回列表</a></span><b>您当前的位置：首页 &gt; 资讯管理 &gt; 发布资讯</b> </div>
  <div class="spClear"> </div>
  <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
    <tr>
      <td height="25" class="pl20"><b>管理选项： <a href="YC_NewsClass_Add.aspx">新增栏目</a>| <a href="YC_NewsClass_List.aspx"> 栏目管理</a>| <a href="YC_News_Add.aspx">添加资讯</a> | <a href="YC_News_List.aspx">资讯管理</a> |[<a href="javascript:location.reload()">刷新页面</a>]</b></td>
    </tr>
  </table>
  <div style="padding-bottom: 10px;"> </div>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
    <tr>
      <th colspan="2" align="left"> 发布资讯 </th>
    </tr>
    <tr>
      <td align="right"> 所属栏目： </td>
      <td><asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
          <ContentTemplate>
            <asp:DropDownList ID="ddlChannelId" AutoPostBack="True" runat="server" OnSelectedIndexChanged="ddlChannelId_SelectedIndexChanged"> </asp:DropDownList>
            <asp:DropDownList ID="ddlsmall" CssClass=" required" runat="server"> </asp:DropDownList>
            <br />
            <br />
            <asp:Label ID="Label1" runat="server"></asp:Label>
          </ContentTemplate>
        </asp:UpdatePanel></td>
    </tr>
    <tr>
      <td width="15%" align="right"> 文章标题： </td>
      <td width="85%"><asp:TextBox ID="txtTitle" runat="server" CssClass="input w380 required" MaxLength="250"
                    minlength="3"></asp:TextBox></td>
    </tr>
    <tr>
      <td align="right"> 文章作者： </td>
      <td><asp:TextBox ID="txtAuthor" runat="server" CssClass="input w250 required" MaxLength="50">管理员</asp:TextBox></td>
    </tr>
    <tr>
      <td align="right"> 文章来源： </td>
      <td><asp:TextBox ID="txtForm" runat="server" CssClass="input w250 required" MaxLength="100">本站</asp:TextBox></td>
    </tr>
    <tr>
      <td align="right"> 文章导读： </td>
      <td><asp:TextBox ID="txtDaodu" runat="server" CssClass="textarea wh380" TextMode="MultiLine"
                    Height="101px" Width="502px"></asp:TextBox></td>
    </tr>
    <tr>
      <td align="right"> 文章属性： </td>
      <td><asp:CheckBoxList ID="cblItem" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
          <asp:ListItem Value="1">首页显示</asp:ListItem>
          <asp:ListItem Value="1">推荐新闻</asp:ListItem>
          <asp:ListItem Value="1">热点新闻</asp:ListItem>
          <asp:ListItem Value="1">图片新闻</asp:ListItem>
        </asp:CheckBoxList></td>
    </tr>
    <tr class="upordown">
      <td align="right"> 文章图片： </td>
      <td><asp:TextBox ID="txtImgUrl" runat="server" CssClass="input w380 left"></asp:TextBox>
        <a href="javascript:void(0);" class="files">
        <input type="file" id="FileUpload" name="FileUpload" />
        </a> <span class="uploading"> 正在上传，请稍候...</span></td>
    </tr>
    <tr>
      <td align="right" valign="top"> 文章内容： </td>
      <td><asp:TextBox ID="txtncontent" runat="server" CssClass="input" Height="482px"
                    TextMode="MultiLine" Width="655px"></asp:TextBox></td>
    </tr>
    <tr>
      <td align="right"> 关键字： </td>
      <td><asp:TextBox ID="txtKeyword" runat="server" CssClass="input w250" MaxLength="100"
                    HintTitle="Meta关键字"></asp:TextBox></td>
    </tr>
    <tr>
      <td align="right"> 浏览次数： </td>
      <td><asp:TextBox ID="txthits" runat="server" CssClass="input required number" size="10"
                    MaxLength="10">0</asp:TextBox></td>
    </tr>
  </table>
  <div style="margin-top: 10px; text-align: center;">
    <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="submit" OnClick="btnSave_Click" />
    &nbsp;
    <input name="重置" type="reset" class="submit" value="重置" />
  </div>
</form>
</body>
</html>
