⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 content_add.aspx

📁 最好用的站点内容管理系统 全部源代码都有
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Content_add.aspx.cs" Inherits="manage_channel_Content_add" %>
<%@ Register Src="../../controls/UserPop.ascx" TagName="UserPop" TagPrefix="uc1" %>
<!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>
<link href="../../sysImages/<%Response.Write(NetCMS.Config.UIConfig.CssPath());%>/css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.reshows{height:28px;background-color: #FFFFB5;TEXT-DECORATION: none;COLOR: #FF0000;}
</style>
<script language="JavaScript" type="text/javascript" src="../../configuration/js/Prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="../../configuration/js/Public.js"></script>
<script type="text/javascript" src="../../editor/fckeditor.js"></script>
</head>
<body>
    <form id="form1" runat="server">
   <iframe width="260" height="165" id="colorPalette" src="../../configuration/system/selcolor.htm" style="visibility:hidden; position: absolute;border:1px gray solid; left: 297px; top: -20px;" frameborder="0" scrolling="no" ></iframe>
 <table id="top1" width="100%"  border="0" cellpadding="0" cellspacing="0" class="toptable">
        <tr>
          <td height="1" colspan="2"></td>
        </tr>
        <tr>
          <td width="57%" class="sysmain_navi" style="padding-left:14px;">添加/修改内容</td>
          <td width="43%">导航:<a href="../main.aspx" class="list_link" target="sys_main">首页</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" /><a href="list.aspx" class="list_link" target="sys_main">频道列表</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" /><a href="Class_list.aspx?ChID=<%Response.Write(Request.QueryString["ChID"]); %>" class="list_link" target="sys_main">栏目列表</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" /><a href="Content.aspx?ChID=<%Response.Write(Request.QueryString["ChID"]); %>" class="list_link" target="sys_main">内容列表</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" />添加/修改内容</td>
        </tr>
    </table>
    <table width="98%"  border="0" cellpadding="3" align="center" cellspacing="0" class="table">
        <tr class="TR_BG_list">
          <td style="padding-left:14px;height:20px;width:70%;">
          <span id="A2" class="reshows" style="cursor:pointer" onclick="getNewsInfo('definfo');">自定义属性</span>
          &nbsp; &nbsp; <span id="A1" class="list_link" style="cursor:pointer" onclick="getNewsInfo('baseinfo');">内容/参数属性</span>
          &nbsp; &nbsp; <span id="A3" class="list_link" style="cursor:pointer" onclick="getNewsInfo('otherinfo');">其他属性</span>
          </td>
          <td>
            <span class="list_link"> 所属频道:<span id="channelName" runat="server" /></span>
          </td>
        </tr>
    </table>
    <!--必填项-->
    <table width="98%"  border="0" cellpadding="3" align="center" cellspacing="1" class="table">
        <tr class="TR_BG_list">
          <td style="width:100px;text-align:right;">
          标题
          </td>
          <td>
            <asp:TextBox ID="title" CssClass="titlerule" MaxLength="100" Width="260px" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="f_NewsTitle" runat="server" ControlToValidate="title" Display="Dynamic" ErrorMessage="<span class='reshow'>请填写标题</span>"></asp:RequiredFieldValidator>
            &nbsp;&nbsp;<asp:CheckBox Checked="true" ID="isHTML" runat="server" Text="立刻发布" />
            <asp:DropDownList ID="DropDownList1" CssClass="form" onchange="javascript:titleFlag(this.value);" runat="server">
            <asp:ListItem Value="">类型</asp:ListItem>
            <asp:ListItem Value="[图文]">[图文]</asp:ListItem>
            <asp:ListItem Value="[原创]">[原创]</asp:ListItem>
            <asp:ListItem Value="[转载]">[转载]</asp:ListItem>
            </asp:DropDownList>
            <asp:HiddenField ID="TitleColor" runat="server" />
            <img src="../../sysImages/blue/admin/Rect.gif" alt="-" name="MarkFontColor_Show" width="18" height="17" border="0" align="middle" id="MarkFontColor_Show" style="cursor:pointer;background-color:#<%= TitleColor.Value%>;" title="标题颜色选取" onclick="GetColor(this,'TitleColor');"/>
            <asp:CheckBox ID="TitleBTF" runat="server" title="是否粗体" /><strong>B</strong>              
            <asp:CheckBox ID="TitleITF" runat="server" title="是否斜体" /><i>I</i>              
            权重:
            <asp:DropDownList ID="OrderID" runat="server">
            <asp:ListItem Value="0" Text="0" />
            <asp:ListItem Value="1" Text="1" />
            <asp:ListItem Value="2" Text="2" />
            <asp:ListItem Value="3" Text="3" />
            <asp:ListItem Value="4" Text="4" />
            <asp:ListItem Value="5" Text="5" />
            <asp:ListItem Value="6" Text="6" />
            <asp:ListItem Value="7" Text="7" />
            <asp:ListItem Value="8" Text="8" />
            <asp:ListItem Value="9" Text="9" />
            <asp:ListItem Value="10" Text="10"/>
            </asp:DropDownList>
            <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_004',this)">帮助</span>           
          </td>
        </tr>
        <tr class="TR_BG_list">
          <td style="width:100px;text-align:right;">
          栏目
          </td>
          <td>
        <asp:DropDownList ID="ClassID" runat="server">
        </asp:DropDownList>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ClassID" Display="Dynamic" ErrorMessage="<span class='reshow'>请选择栏目</span>"></asp:RequiredFieldValidator>
          &nbsp; &nbsp; &nbsp; 专题:
        <asp:DropDownList ID="SpecialID" runat="server">
        <asp:ListItem Value="">没有指定专题</asp:ListItem>
        </asp:DropDownList>
        </td>
      </tr>
    </table>
    <!--基本属性-->
    <table id="baseinfo" width="98%"  border="0" cellpadding="3" align="center" cellspacing="1" class="table" style="display:none;">
        <tr class="TR_BG_list">
          <td style="width:100px;text-align:right;">
          图片地址
          </td>
          <td>
          <asp:TextBox ID="PicURL" runat="server" Width="50%" MaxLength="200" CssClass="form" onmouseover="javascript:ShowDivPic(this,document.form1.PicURL.value.toLowerCase().replace('{@dirfile}','files'),'.jpg',1);" onmouseout="javascript:hiddDivPic();"></asp:TextBox>
          <img src="../../sysImages/folder/s.gif" alt="选择已有图片" border="0" style="cursor:pointer;" onclick="selectFile('pic',document.form1.PicURL,480,600);document.form1.PicURL.focus();" />
          <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_PicURL',this)">帮助</span> 
          </td>
          </tr>
         <tr class="TR_BG_list" id="div_naviContent" style="display:none;">
          <td style="width:100px;text-align:right;">导读</td>
          <td>
          <asp:TextBox ID="naviContent" runat="server" Width="80%" MaxLength="200" CssClass="form" Height="50px" TextMode="MultiLine"></asp:TextBox> <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_NaviContent',this)"> 帮助</span>
          </td>
        </tr>  
        <tr class="TR_BG_list">
          <td style="width:100px;text-align:right;" valign="top">
          内容
          <br /><asp:CheckBox ID="naviContentTF" runat="server" title="为内容设置导读" onclick="NaviClick(this);" Text="设置导读" /><span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_naviContentTF',this)">帮助</span>
          <br /><br /><div align="center">缩放编辑区
          <br /><a href="javascript:ZoonEdit('300')" class="list_link" style="text-decoration:underline;">原始</a>&nbsp;&nbsp;<a class="list_link" style="text-decoration:underline;" href="javascript:ZoonEdit('500')">中</a>&nbsp;&nbsp;<a class="list_link" style="text-decoration:underline;" href="javascript:ZoonEdit('700')">大</a></div>
          <div style="padding-top:2px;padding-bottom:2px;position:relative;width:100%;height:2px;border-top-width:1px;border-right-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-top-style: dashed;	border-right-style: none;border-bottom-style: none;border-left-style: none;border-top-color: #CCCCCC;"></div>
          <div style="padding-bottom:3px;"><a style="cursor:pointer;" onclick="UpFile('<% Response.Write(UDir); %>');" title="在上传的时候,请在编辑区鼠标点击,设置要上传图片的位置。"><font color="red">上传图片</font></a></div>
          <div style="padding-top:2px;padding-bottom:2px;position:relative;width:100%;height:2px;border-top-width:1px;border-right-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-top-style: dashed;	border-right-style: none;border-bottom-style: none;border-left-style: none;border-top-color: #CCCCCC;"></div>
          <div><a style="cursor:pointer;" onclick="selectFile('picEdit',document.getElementById('picContentTF'),320,500);" title="在上传的时候,请在编辑区鼠标点击,设置要上传图片的位置。"><font color="blue">选择图片</font></a></div>
          </td>
          <td id="EditSizeID" style="height:300px;">
            <div style="height:30px;">
<%--            <asp:CheckBox ID="RemoteTF" runat="server" title="保存图片(文件)到本地" Text="远程存图" /><span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_downfiles',this)">帮助</span>  
            &nbsp;&nbsp;<asp:CheckBox ID="sPicFromContent" Text="提取图片地址" runat="server" onclick="getDivsPicFromContent();" />&nbsp;<span id="getContentNum" style="display:none;"> 提取第 <asp:TextBox Width="25px" ID="btngetContentNum" runat="server" Text="1" MaxLength="2"></asp:TextBox>张</span> <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_getContentPic',this)">帮助</span>&nbsp;&nbsp;&nbsp;
            <asp:CheckBox ID="sNaviContentFromContent" Text="获取导读" runat="server" /><span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_getNaviContent',this)">帮助</span>&nbsp;&nbsp;&nbsp;
            &nbsp; 插入分页符:<span style="cursor:pointer;color:red;">分页标题</span> <asp:TextBox ID="PageTitle" Text="" runat="server" Width="200px"></asp:TextBox> <a href="###" onclick="insertPageStr();">插入</a>
--%>            </div>
            <label id="picContentTF"></label>
           <script type="text/javascript" language="JavaScript">
              window.onload = function()
                {
                var sBasePath = "../../editor/"
                var oFCKeditor = new FCKeditor('Content') ;
                oFCKeditor.BasePath	= sBasePath ;
                oFCKeditor.Width = '100%' ;
                oFCKeditor.Height = '350' ;	
                oFCKeditor.ReplaceTextarea() ;
                } 
            </script>
	        <textarea rows="1" cols="1" name="Content" style="display:none" id="Content" runat="server" ></textarea>
          </td>
          </tr>
        <tr class="TR_BG_list">
          <td style="width:100px;text-align:right;">
          内容属性
          </td>
          <td>
            <span id="NewsProperty_RECTF"><asp:CheckBox ID="NewsProperty_RECTF1" runat="server" />推荐</span>&nbsp;
            <span id="NewsProperty_MARTF"><asp:CheckBox ID="NewsProperty_MARTF1" runat="server" />滚动</span>&nbsp;
            <span id="NewsProperty_HOTTF"><asp:CheckBox ID="NewsProperty_HOTTF1" runat="server" />热点</span>&nbsp;
            <span id="NewsProperty_FILTTF"><asp:CheckBox ID="NewsProperty_FILTTF1" runat="server" />幻灯</span>&nbsp;
            <span id="NewsProperty_TTTF"><asp:CheckBox ID="NewsProperty_TTTF1" runat="server" />头条</span>&nbsp;
          </td>
          </tr>
        <tr class="TR_BG_list">
          <td style="width:100px;text-align:right;">
          发布者
          </td>
          <td>
         <asp:TextBox ID="Author" MaxLength="100" runat="server" Width="16%" CssClass="form"></asp:TextBox><img src="../../sysImages/folder/s.gif" alt="选择已有作者" border="0" style="cursor:pointer;" onclick="selectFile('Author',document.form1.Author,220,420);document.form1.Author.focus();" />
          &nbsp;<a href="javascript:addAuthor('本站');" class="helpstyle">本站</a>&nbsp;&nbsp;<a class="helpstyle" href="javascript:addAuthor('未知');">未知</a>&nbsp;&nbsp;<a class="helpstyle" href="javascript:addAuthor('网络来源');">网络来源</a>          
          </td>
          </tr>
        <tr class="TR_BG_list">
          <td style="width:100px;text-align:right;">
          来源
          </td>
          <td>
          <asp:TextBox ID="Souce" runat="server" Width="16%" MaxLength="100" CssClass="form"></asp:TextBox><img src="../../sysImages/folder/s.gif" alt="选择已有来源" border="0" style="cursor:pointer;" onclick="selectFile('Souce',document.form1.Souce,220,450);document.form1.Souce.focus();" />
          &nbsp;<a href="javascript:addSource('本站');" class="helpstyle">本站</a>&nbsp;&nbsp;<a class="helpstyle" href="javascript:addSource('未知');">未知</a>&nbsp;&nbsp;<a class="helpstyle" href="javascript:addSource('网络来源');">网络来源</a>
          </td>
          </tr>
        <tr class="TR_BG_list">
          <td style="width:100px;text-align:right;">
          Tags
          </td>
          <td>
          <asp:TextBox ID="Tags" runat="server" MaxLength="100" Width="28%" CssClass="form"></asp:TextBox><img src="../../sysImages/folder/s.gif" alt="选择已有标签" border="0" style="cursor:pointer;" onclick="selectFile('Tag',document.form1.Tags,220,480);document.form1.Tags.focus();" />
          <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_tags',this)">什么是标签</span> 
          <div id="lastTags" runat="server"></div>
          </td>
          </tr>
    </table>

    <!--自定义属性-->
    <div id="definfo" style="width:100%;" runat="server">
          loading...
     </div>
    <!--其他属性-->
    <table id="otherinfo" width="98%" style="display:none;"  border="0" cellpadding="3" align="center" cellspacing="0" class="table">
        <tr class="TR_BG_list">
          <td style="width:100px;text-align:right;">
          模板
          </td>
          <td>
          <asp:TextBox ID="Templet" runat="server" MaxLength="200" Width="50%" CssClass="form"></asp:TextBox><img src="../../sysImages/folder/s.gif" alt="" border="0" style="cursor:pointer;" onclick="selectFile('templet',document.form1.Templet,250,500);document.form1.Templet.focus();" />
          <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_Templet',this)">帮助</span>
          </td>
          </tr>
        <tr class="TR_BG_list">
          <td style="width:100px;text-align:right;">
          保存路径
          </td>
          <td>
            <asp:TextBox ID="SavePath" Width="50%" runat="server" CssClass="form" onclick="selectFile('rulesmallPram',this,100,450);document.form1.SavePath.focus();"></asp:TextBox>
            <span class="helpstyle" style="cursor:help;" title="点击显示帮助" onclick="Help('H_News_add_SavePath',this)">帮助</span>
            <span class="reshow">为了方便搜索引擎搜索,建议不要修改。</span>
          </td>
          </tr>
        <tr class="TR_BG_list">
          <td style="width:100px;text-align:right;">
          文件名

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -