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

📄 editor.php

📁 一、超强系统模型扩展功能 EmpireCMS卓越之处在于:不仅提供了网站管理功能
💻 PHP
字号:
<?php
require("../../class/connect.php");
include("../../class/config.php");
$getvar=$_GET['getvar'];
$returnvar=$_GET['returnvar'];
$fun=$_GET['fun'];
//风格
$loginadminstyleid=(int)getcvar('loginadminstyleid');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>在线编辑模板</title>
<link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../editor/fckeditor/fckeditor.js"></script>
<script>
function GetContents()
{
	// Get the editor instance that we want to interact with.
	var oEditor = FCKeditorAPI.GetInstance('pagetext') ;

	// Get the editor contents in XHTML.
	return oEditor.GetXHTML( true );		// "true" means you want it formatted.
}
function SaveTemp()
{
var isok=confirm('确认要保存?');
if(isok)
{
<?=$returnvar?>=GetContents();
window.close();
}
return false;
}
</script>
<noscript>
<iframe src=*.htm></iframe>
</noscript>
</head>

<body topmargin="0">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="tableborder">
  <form name="edittemp" method="post" action="../enews.php" onsubmit="return SaveTemp()">
    <tr class="header"> 
      <td>在线编辑模板</td>
    </tr>
    <tr> 
      <td bgcolor="#FFFFFF"> <div align="center"> 
          <input type="button" name="Submit" value=" 保存内容 " onclick="return SaveTemp()">
        </div></td>
    </tr>
    <tr> 
      <td bgcolor="#FFFFFF"><div align="center"> 
          <script type="text/javascript">
<!--
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
var sBasePath = '../editor/fckeditor/' ;

var oFCKeditor = new FCKeditor( 'pagetext' ) ;
oFCKeditor.BasePath	= sBasePath ;
oFCKeditor.Height	= 480 ;
oFCKeditor.Value	= <?=$getvar?> ;
oFCKeditor.Create() ;
//-->
			</script>
        </div></td>
    </tr>
    <tr> 
      <td bgcolor="#FFFFFF"> <div align="center"> 
          <input type="button" name="Submit2" value=" 保存内容 " onclick="return SaveTemp()">
        </div></td>
    </tr>
    <tr>
      <td bgcolor="#FFFFFF">说明:具体标签介绍请点 
        <input type="button" name="Submit32" value="这里" onclick="window.open('EnewsBq.php','','width=600,height=500,scrollbars=yes');">
        或JS调用点 
        <input type="button" name="Submit322" value="这里" onclick="window.open('../ListClass.php','','width=800,height=600,scrollbars=yes');">
        。</td>
    </tr>
  </form>
</table>
<script>
var mytext=<?=$getvar?>;
//mytext=mytext.replace("<","&lt;");
//mytext=mytext.replace(">","&gt;");
document.edittemp.pagetext.value=mytext;
</script>
</body>
</html>

⌨️ 快捷键说明

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