<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeBehind="AddFrm.aspx.cs" Inherits="KstCMS.KstCMS_Manager.WebContent.wz.wzlist.AddFrm" %>

<html>
<head id="Head1" runat="server">
    <title>无标题页</title>
<script type="text/javascript" src="../../../xheditor1.1.6/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../../../xheditor1.1.6/xheditor-1.1.6-zh-cn.min.js"></script>
<script type="text/javascript">
    $(pageInit);
    function pageInit() {
        $('#txt_WzContent').xheditor({ upLinkUrl: "../../../xheditor1.1.6/UpLoad.aspx?immediate=1", upLinkExt: "doc,xls,ppt,pdf,zip,rar,txt", upImgUrl: "../../../xheditor1.1.6/UpLoad.aspx?immediate=1", upImgExt: "jpg,jpeg,gif,png", upFlashUrl: "../../../xheditor1.1.6/UpLoad.aspx?immediate=1", upFlashExt: "swf", upMediaUrl: "../../../xheditor1.1.6/UpLoad.aspx?immediate=1", upMediaExt: "wmv,avi,wma,mp3,mid", shortcuts: { 'ctrl+enter': submitForm} });
    }
    function submitForm() { $('#form1').submit(); }

    function check() {
        var frm = document.forms[0];
        if (!checkForm(frm)) {
            return false;
        } else {
            document.getElementById("txt_WzContent").value = $('#txt_WzContent').val();
            $('#txt_WzContent').xheditor(false);
            return true;
        }
    }
    
</script>

</head>
<body>

    <form id="form1" runat="server">

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
   <ContentTemplate>


    <div class="MainBox">
      <table class="PageTitle" width="98%"><tr><td>
       <img src="<%=SysRootUrl %>/KstCMS_Manager/images/sms_type13.gif" align="absmiddle" /> <b> 增加文章</b> </td></tr></table>
         <table width="98%" border="0" cellspacing="0" cellpadding="5">
        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
         <td width="8%" nowrap class="Line">所属类别：</td>
          <td width="92%" class="Line">
           <asp:DropDownList ID="drp_SiteList" runat="server" AutoPostBack="true">
           </asp:DropDownList>
           <asp:DropDownList ID="drp_MenuList" runat="server" AutoPostBack="true">
           </asp:DropDownList>
            <asp:DropDownList ID="drp_lblist" runat="server" AutoPostBack="true">
            </asp:DropDownList> <span class="Red">*</span>
          </td>
        
        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td nowrap class="Line">文章标题：</td>
          <td class="Line">
              <asp:TextBox ID="txt_WzTile" runat="server" MaxLength="100" Width="400" CssClass="input_text"></asp:TextBox> <span class="Red">*</span></td>
        </tr>
        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td nowrap class="Line">标题图片：</td>
          <td class="Line">
              <asp:TextBox ID="txt_WzPic1" runat="server" Width="350"   BackColor="ButtonFace" CssClass="input_text"></asp:TextBox>
              <input type="button" class="uPageBtn" value="上传" onclick="OpenDialog('../../../Module/Upload/index.aspx?FromUpload=3&TextBoxId=txt_WzPic1',400,150);" />
              </td>
        </tr>
         <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td colspan="2">
            <fieldset>
            <legend>文章简介</legend>
            <div style="padding:4px">
             <textarea name="txt_WzDoc" id="txt_WzDoc" runat="server" rows="3" style="width: 100%"></textarea>
             </div>
             </fieldset>
          </td>
        </tr>
         <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
         <td colspan="2">
            <fieldset>
            <legend>文章内容</legend>
            <div style="padding:4px">
                <textarea id="txt_WzContent" name="txt_WzContent"  runat="server"  rows="15" style="width: 99%"></textarea>
            </div>
            <div style="padding:4px">
            最新：<asp:CheckBox ID="chk_IsNew" runat="server" /> 推荐：<asp:CheckBox ID="chk_IsTj" runat="server" /> 热门：<asp:CheckBox ID="chk_IsHot" runat="server" /> 
            排序：<asp:TextBox ID="txt_SortNo" CssClass="input_text" runat="server" Width="30"></asp:TextBox>
            日期：<asp:TextBox ID="txt_Utime" CssClass="input_text" runat="server" Width="150"></asp:TextBox><br />
            模板：<asp:DropDownList ID="drp_TempList" runat="server"></asp:DropDownList>
            生成文件：<asp:TextBox ID="txt_FileName" CssClass="input_text" MaxLength="50" runat="server" Width="200"></asp:TextBox> 
            </div>
            </fieldset>
          </td>
        </tr>
        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td nowrap class="Line">Meta关键字：</td>
          <td class="Line">
             <asp:TextBox ID="txt_MateKey" runat="server" TextMode="MultiLine" Rows="3" Width="500" ></asp:TextBox> 
          </td>
        </tr>

        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td nowrap class="Line">Meta注解：</td>
          <td class="Line">
             <asp:TextBox ID="txt_MateDesc" runat="server" TextMode="MultiLine" Rows="3" Width="500" ></asp:TextBox> 
          </td>
        </tr>

        <tr class="Linetr1" >
          <td nowrap class="Line">&nbsp;</td>
          <td nowrap class="Line">
              <asp:Button ID="OkBtn" runat="server" Text=" 确 定 " CssClass="bigButton" OnClientClick="return check();" />
              <input type="button" value="返回" class="bigButton" onclick="history.go(-1);" />
              </td>
        </tr>
  
        </table>     
    </div>
      </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
         <ProgressTemplate>正在处理中，请稍候...</ProgressTemplate>
    </asp:UpdateProgress>
    
    </form>
    
</body>
</html>