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

📄 editpublictemp.php

📁 帝国CMS,功能全面的CMS源码,下载试用下
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?php
require("../../class/connect.php");
include("../../class/db_sql.php");
include("../../class/config.php");
include("../../class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
$logininid=getcvar('loginuserid');
$loginin=getcvar('loginusername');
$loginrnd=getcvar('loginrnd');
$loginlevel=getcvar('loginlevel');
$editor=1;
is_login($logininid,$loginin,$loginrnd);
//验证权限
CheckLevel($logininid,$loginin,$classid,"template");
$gid=(int)$_GET['gid'];
$gname=CheckTempGroup($gid);
$tname=$_GET['tname'];
$r=$empire->fetch1("select * from ".GetDoTemptb('enewspubtemp',$gid)." limit 1");
db_close();
$empire=null;
//风格
$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">
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr> 
    <td width="83%"><p>位置: 
        <?=$gname?>
        &nbsp;->&nbsp;<a href="EditPublicTemp.php?gid=<?=$gid?>">公共模板管理</a></p></td>
    <td width="17%"><div align="center">
        <input type="button" name="Submit5" value="进入数据更新" onclick="window.open('../ReHtml/ChangeData.php');">
      </div></td>
  </tr>
</table>
<?
if($tname=="indextemp"||empty($tname))
{
?>
<form name="formindex" method="post" action="../enews.php">
  <table width="100%%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id=indextemp>
    <tr class="header"> 
      <td height="25"><div align="center">修改首页模板(<a href="../../../" target="_blank">预览</a>)</div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <textarea name="temptext" cols="110" rows="25" id="temptext"><?=htmlspecialchars(stripSlashes($r[indextemp]))?></textarea>
        </div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <input type="submit" name="Submit" value="修改">&nbsp;&nbsp;
          <input name="enews" type="hidden" id="enews" value="EditPublicTemp">
          <input name="templatename" type="hidden" id="templatename" value="indextemp">
          <input type="reset" name="Submit2" value="重置">
          &nbsp;&nbsp;
          <input type="button" name="Submit33" value="页面在线编辑" onclick="window.open('editor.php?getvar=opener.document.formindex.temptext.value&returnvar=opener.document.formindex.temptext.value&fun=ReturnHtml','edittemp','width=880,height=600');">
          <input name="gid" type="hidden" id="gid" value="<?=$gid?>">
        </div></td>
    </tr>
    <tr>
      <td height="25" bgcolor="#FFFFFF">说明: 具体标签介绍请点 
        <input type="button" name="Submit3" 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>
  </table>
</form>
<?
}
if($tname=="pltemp"||empty($tname))
{
?>
<form name="formpl" method="post" action="../enews.php">
  <table width="100%%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id=pltemp>
    <tr class="header"> 
      <td height="25"><div align="center">评论列表模板</div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <textarea name="temptext" cols="110" rows="25" id="temptext"><?=htmlspecialchars(stripSlashes($r[pllisttemp]))?></textarea>
        </div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <input type="submit" name="Submit" value="修改">&nbsp;&nbsp; 
          <input name="enews" type="hidden" id="enews" value="EditPltemp">
          <input name="templatename" type="hidden" id="templatename" value="pllisttemp">
          <input type="reset" name="Submit2" value="重置">
          &nbsp;&nbsp; 
          <input type="button" name="Submit332" value="页面在线编辑" onclick="window.open('editor.php?getvar=opener.document.formpl.temptext.value&returnvar=opener.document.formpl.temptext.value&fun=ReturnHtml','edittemp','width=880,height=600');">
          <input name="gid" type="hidden" id="gid" value="<?=$gid?>">
        </div></td>
    </tr>
    <tr>
      <td height="25" bgcolor="#FFFFFF"><p>说明: 格式:列表头[!--empirenews.listtemp--]列表内容[!--empirenews.listtemp--]列表尾<br>
          评论ID:[!--plid--],评论内容:[!--pltext--],评论时间:[!--pltime--]<br>
          评论IP:[!--plip--],信息ID:[!--id--],分类ID:[!--classid--]<br>
          评论发表者:[!--username--],标题: [!--title--],标题链接: [!--titleurl--]<br>
          验证码地址: [!--key.url--],登陆用户: [!--lusername--],登陆用户密码(加密过):[!--lpassword--]<br>
          站点地址: [!--news.url--],分页导航:[!--listpage--],导航条:[!--url--]</p>
        </td>
    </tr>
  </table>
</form>
<?
}
if($tname=="cptemp"||empty($tname))
{
?>
<form name="formcp" method="post" action="../enews.php">
  <table width="100%%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id=cptemp>
    <tr class="header"> 
      <td height="25"><div align="center">控制面板模板</div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <textarea name="temptext" cols="110" rows="25" id="temptext"><?=htmlspecialchars(stripSlashes($r[cptemp]))?></textarea>
        </div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <input type="submit" name="Submit4" value="修改">&nbsp;&nbsp; 
          <input name="enews" type="hidden" id="enews" value="EditCptemp">
          <input name="templatename" type="hidden" id="templatename" value="cptemp">
          <input type="reset" name="Submit22" value="重置">
          &nbsp;&nbsp; 
          <input type="button" name="Submit3322" value="页面在线编辑" onclick="window.open('editor.php?getvar=opener.document.formcp.temptext.value&returnvar=opener.document.formcp.temptext.value&fun=ReturnHtml','edittemp','width=880,height=600');">
          <input name="gid" type="hidden" id="gid3" value="<?=$gid?>">
        </div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"><p>说明: 在要显示内容的地方(如注册,登陆等)加上“[!--empirenews.template--]”,显示导航条的地方加上: “[!--newsnav--]”</p></td>
    </tr>
  </table>
</form>
<?
}
if($tname=="gbooktemp"||empty($tname))
{
?>
<form name="formgbook" method="post" action="../enews.php">
  <table width="100%%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id=pltemp>
    <tr class="header"> 
      <td height="25"><div align="center">留言板模板</div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <textarea name="temptext" cols="110" rows="25" id="temptext"><?=htmlspecialchars(stripSlashes($r['gbooktemp']))?></textarea>
        </div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <input type="submit" name="Submit" value="修改">&nbsp;&nbsp; 
          <input name="enews" type="hidden" id="enews" value="EditGbooktemp">
          <input name="templatename" type="hidden" id="templatename" value="gbooktemp">
          <input type="reset" name="Submit2" value="重置">
          &nbsp;&nbsp; 
          <input type="button" name="Submit332" value="页面在线编辑" onclick="window.open('editor.php?getvar=opener.document.formgbook.temptext.value&returnvar=opener.document.formgbook.temptext.value&fun=ReturnHtml','edittemp','width=880,height=600');">
          <input name="gid" type="hidden" id="gid" value="<?=$gid?>">
        </div></td>
    </tr>
    <tr>
      <td height="25" bgcolor="#FFFFFF"><p>说明: <br>
          <strong>页面格式:</strong> 列表头[!--empirenews.listtemp--]列表内容[!--empirenews.listtemp--]列表尾<br>
          <strong>回复显示格式:</strong>[!--start.regbook--]回复显示格式内容[!--end.regbook--]<br>
          留言ID:[!--lyid--],留言者:[!--name--],留言者邮箱:[!--email--]<br>
          留言者电话:[!--call--],留言时间:[!--lytime--],留言内容:[!--lytext--]<br>
          回复内容:[!--retext--],留言分类ID:[!--bid--],留言分类名称:[!--bname--]<br>
          站点地址: [!--news.url--],分页导航:[!--listpage--],导航条:[!--url--]</p>
        </td>
    </tr>
  </table>
</form>
<?
}
if($tname=="searchformtemp"||empty($tname))
{
?>
<form name="formsearchform" method="post" action="../enews.php">
  <table width="100%%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id=searchtemp>
    <tr class="header"> 
      <td height="25"><div align="center">搜索表单模板</div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <textarea name="temptext" cols="110" rows="25" id="temptext"><?=htmlspecialchars(stripSlashes($r[searchtemp]))?></textarea>
        </div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <input type="submit" name="Submit4" value="修改">&nbsp;&nbsp; 
          <input name="enews" type="hidden" id="enews" value="EditSearchTemp">
          <input name="tempname" type="hidden" id="tempname" value="searchtemp">
          <input type="reset" name="Submit22" value="重置">
		  <input name="gid" type="hidden" id="gid3" value="<?=$gid?>">
          &nbsp;&nbsp; 
          <input type="button" name="Submit33222" value="页面在线编辑" onclick="window.open('editor.php?getvar=opener.document.formsearchform.temptext.value&returnvar=opener.document.formsearchform.temptext.value&fun=ReturnHtml','edittemp','width=880,height=600');">
        </div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"><p>说明: <br>
          在显示表格颜色的地方加上: [!--bgcolor--]<br>
          在显示站点地址的地方加上: [!--newsurl--]<br>
          在显示搜索栏目的地方加上: [!--class--]</p></td>
    </tr>
  </table>
</form>
<?
}
if($tname=="searchformjs"||empty($tname))
{
?>
<form name="form1" method="post" action="../enews.php">
  <table width="100%%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id=searchjstemp>
    <tr class="header"> 
      <td height="25"><div align="center">搜索JS模板(横向)</div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <textarea name="temptext" cols="110" rows="25" id="temptext"><?=htmlspecialchars(stripSlashes($r[searchjstemp]))?></textarea>
        </div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <input type="submit" name="Submit4" value="修改">
          <input name="enews" type="hidden" id="enews" value="EditSearchTemp">
          <input name="tempname" type="hidden" id="tempname" value="searchjstemp">
          <input type="reset" name="Submit22" value="重置">
		  <input name="gid" type="hidden" id="gid3" value="<?=$gid?>">
        </div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"><p>说明: <br>
          在显示站点地址的地方加上: [!--newsurl--]<br>
          在显示搜索栏目的地方加上: [!--class--] </p></td>
    </tr>

⌨️ 快捷键说明

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