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

📄 editor.aspx

📁 最好用的站点内容管理系统 全部源代码都有
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="manage_Templet_editor"  ResponseEncoding="utf-8" Codebehind="editor.aspx.cs" %>
<!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" />
</head>
<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/Templet_editor.js"></script>
<body>
<form id="fromeditor" runat="server">
  <table width="100%" border="0" cellpadding="0" cellspacing="0"  class="toptable">
    <tr>
      <td width="57%" class="sysmain_navi"  style="PADDING-LEFT: 14px" Height="30">在线编辑</td>
      <td width="43%"  class="topnavichar"  style="PADDING-LEFT: 14px" ><div align="left">位置导航:<a href="../main.aspx" target="sys_main" class="list_link">首页</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" /><a href="Manage_List.aspx" class="list_link">模板管理</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" />在线编辑<asp:TextBox ID="FilePath"
            runat="server" Visible="False"></asp:TextBox></div></td>
    </tr>
  </table>

<table width="98%" align="center" cellpadding="5" cellspacing="1" class="table">
  <tr class="TR_BG_list">
    <td class="TR_BG_list"><div>
        <span id="adress"></span>
        <span class="reshow">特殊页面标签:</span><asp:DropDownList ID="LabelList1" runat="server">
        <asp:ListItem Value="">=单页面标签=</asp:ListItem>
        <asp:ListItem Value="{#Page_Title}">页面标题</asp:ListItem>
        <asp:ListItem Value="{#Page_MetaKey}">meta关键字</asp:ListItem>
        <asp:ListItem Value="{#Page_MetaDesc}">meta描述</asp:ListItem>
        <asp:ListItem Value="{#Page_Content}">内容</asp:ListItem>
        <asp:ListItem Value="{#Page_Navi}">导航</asp:ListItem>
        </asp:DropDownList>
        <input id="Button2" style="width:35px;" type="button" value="插入" onclick="javascript:getValue(document.fromeditor.LabelList1.value);" />
        <asp:DropDownList ID="history" runat="server">
        <asp:ListItem Value="">=归档页面标签=</asp:ListItem>
        <asp:ListItem Value="{#history_list}">列表</asp:ListItem>
        <asp:ListItem Value="{#history_PageTitle}">页面标题</asp:ListItem>
        </asp:DropDownList>
        <input id="Button4" style="width:35px;" type="button" value="插入" onclick="javascript:getValue(document.fromeditor.history.value);" />
        <asp:DropDownList ID="Search1" runat="server">
        <asp:ListItem Value="">=搜索页面标签=</asp:ListItem>
        <asp:ListItem Value="{#Page_SearchContent}">列表(标题/内容)</asp:ListItem>
        <asp:ListItem Value="{#Page_SearchPages}">分页</asp:ListItem>
        </asp:DropDownList>
        <input id="Button5" style="width:35px;" type="button" value="插入" onclick="javascript:getValue(document.fromeditor.Search1.value);" />
        <asp:DropDownList ID="Comm1" runat="server">
        <asp:ListItem Value="">=评论页面标签=</asp:ListItem>
        <asp:ListItem Value="{#Page_CommTitle}">评论内容[通用]</asp:ListItem>
        <asp:ListItem Value="{#Page_CommPages}">分页[通用]</asp:ListItem>
        <asp:ListItem Value="{#Page_Commidea}">显示观点统计[通用]</asp:ListItem>
        <asp:ListItem Value="{#Page_CommStat}">评论数据统计[通用]</asp:ListItem>
        <asp:ListItem Value="{#Page_PageTitle}">评论页面标题[评论独立列表]</asp:ListItem>
        <asp:ListItem Value="{#Page_PostComm}">发表评论[评论独立列表]</asp:ListItem>
        <asp:ListItem Value="{#Page_NewsURL}">新闻连接[评论独立列表]</asp:ListItem>
        </asp:DropDownList>
        <input id="Button6" style="width:35px;" type="button" value="插入" onclick="javascript:getValue(document.fromeditor.Comm1.value);" />
        <div style="height:6px;border-bottom:1px #999999 dotted;"></div>
        <div style="padding-top:5px;padding-bottom:5px;">
        <asp:DropDownList ID="LabelList" runat="server" Width="180px">
        </asp:DropDownList>
        <input id="sbutton1" style="width:35px;" type="button" value="插入" onclick="javascript:getValue(document.fromeditor.LabelList.value);" />
        <span style="display:none;">
        <input id="sbutton2" style="width:100px;" type="button" value="系统标签(内置)" onclick="javascript:show('Label1',document.getElementById('adress'),'系统标签列表(点击选择)',600,380);" />
        </span>
        <input id="sbutton3" style="width:150px;" type="button" value="动态标签(内置)" onclick="javascript:show('Labelm',document.getElementById('adress'),'动态栏目/专题标签(内置)列表(点击选择)',600,380);" />
        <input id="sbutton4" style="width:80px;color:Red;" type="button" value="自定义标签" onclick="javascript:show('Label',document.getElementById('adress'),'自定义标签列表(点击选择)',600,380);" />
        <input id="sbutton5" style="width:100px;" type="button" value="自由标签" onclick="javascript:show('freeLabel',document.getElementById('adress'),'自由标签列表(点击选择)',600,380);" />
        <input id="Button3" style="width:100px;color:Blue;" type="button" value="频道标签" onclick="javascript:show('ChannelLabel',document.getElementById('adress'),'频道标签(点击选择)',600,380);" />
        </div>
        </div>
        <input type="button" name="Submit" style="border:1px dotted #999999;padding:2px 0 0 0;background-color:#eeeeee;" runat="server" value="保存模板" id="Button7" onserverclick="Button1_ServerClick" />	
        <input type="button" name="Submit" value=" 恢 复 "  style="border:1px dotted #999999;padding:2px 0 0 0;background-color:#eeeeee;" onclick="javascript:UnDo();" />                
	    <span>缩放编辑区&nbsp;&nbsp;<a href="javascript:ZoonEdit('400')" class="list_link" style="text-decoration:underline;">原始</a>&nbsp;&nbsp;<a class="list_link" style="text-decoration:underline;" href="javascript:ZoonEdit('600')">中</a>&nbsp;&nbsp;<a class="list_link" style="text-decoration:underline;" href="javascript:ZoonEdit('800')">大</a></span>&nbsp;&nbsp;
        <span id="dirPath" runat="server" />
        <p id = "picadress">
        <span><a style="cursor:pointer;" onclick="UpFile('<% Response.Write(""); %>');" title="在上传的时候,请在编辑区鼠标点击,设置要上传图片的位置。"><font color="red">上传图片</font></a>  <a style="cursor:pointer;" onclick="selectFile('picEdit',document.getElementById('picadress'),320,500);" title="在上传的时候,请在编辑区鼠标点击,设置要上传图片的位置。"><font color="blue">选择图片</font></a></span></p>
     
    </td>
  </tr>
  <tr class="TR_BG_list">
    <td class="list_link" id="EditSizeID" style="height:400px;padding-top:0;padding-left:0;padding-right:0;padding-bottom:0;">
        <script type="text/javascript" language="JavaScript">
        window.onload = function()
	        {
	        var sBasePath = "../../editor/"
            var oFCKeditor = new FCKeditor('FileContent') ;
            oFCKeditor.BasePath	= sBasePath ;
            oFCKeditor.Width = '100%' ;
            oFCKeditor.ToolbarSet = 'NT_Templet';
            oFCKeditor.Height = '100%' ;	
            oFCKeditor.ReplaceTextarea() ;
            }
        </script>
		<textarea rows="1" cols="1" name="FileContent" style="display:none" id="FileContent" runat="server" ></textarea>
                    
     </td>
  </tr>
  <tr class="TR_BG_list">
  <td>
     站点目录:{$InstallDir}&nbsp;&nbsp;&nbsp;模板路径:{$TempletDir}  您可以直接在模板中插入此标签替代您的图片,CSS等目录.<br />
     自定义标签格式:{NT_xx}<br />
     (内置)系统标签:{NT_S_xx}<br />
     (内置)动态栏目标签:{NT_Class*_xx}(不调用子类),{NT_Class*C_xx}(调用子类),xx为栏目的ClassID <br />
     (内置)动态专题标签:{NT_Special*_xx},xx为专题的SpecialID<br />
     自由标签:{NT_FREE_xx}
     <div class="reshow">特别注意:标签严格区分大小写</div>
  </td>
  </tr>
  <tr class="TR_BG_list">
    <td class="list_link">
     <input type="button" name="Submit" runat="server" value="保存模板" id="Button1" onserverclick="Button1_ServerClick" />
	<input type="button" name="Submit" value=" 恢 复 " onclick="javascript:UnDo();" />
	&nbsp;&nbsp;<a style="color:Red;" onClick="{if(confirm('确定要切换到文本编辑吗?请在切换前先保存您的数据,否则会丢失!\n确定切换吗?')){return true;}return false;}" href="Txteditor.aspx?dir=<%Response.Write(dir); %>&filename=<%Response.Write(filename); %>">切换到文本编辑器</a>
</td>
  </tr>
  </table>
  <br />
  <br />
   <table width="100%" border="0" cellpadding="8" cellspacing="0" class="copyright_bg" style="height: 76px" align="center">
   <tr>
     <td align="center"><label id="copyright" runat="server" /></td>
   </tr>
</table>
</form>
</body>
<script language="javascript" type="text/javascript">
function UnDo()
{
    if(confirm('你确定要取消所做的更改吗?'))
    {
        document.fromeditor.reset();
    }   
}
function getValue(value)
{
    if(value!="")
    {
        var oEditor = FCKeditorAPI.GetInstance("FileContent");
        if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG)
        {
           oEditor.InsertHtml(value);
        }else
        {
        return false;
        }
    }
}

function ZoonEdit(obj)
{
   document.getElementById('EditSizeID').style.height=obj+'px';
}  

function UpFile(path)
{
    var WWidth = (window.screen.width-500)/2;
    var Wheight = (window.screen.height-150)/2;
    window.open("../../configuration/system/Upload.aspx?Path="+path+"&upfiletype=files", '文件上传', 'height=200, width=500, top='+Wheight+', left='+WWidth+', toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no'); 
}

function insertHTMLEdit(url)
{
    var urls = url.replace('{@dirfile}','<% Response.Write(NetCMS.Config.UIConfig.dirFile); %>')
    var oEditor = FCKeditorAPI.GetInstance("FileContent");
    if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG)
    {
       oEditor.InsertHtml('<img src=\"'+urls+'\" border=\"0\" />');
    }
    else
    {
        return false;
    }
    return;
}
</script>
</html>

⌨️ 快捷键说明

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