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

📄 editpublictemp.php

📁 不错的一个网站管理系统
💻 PHP
📖 第 1 页 / 共 3 页
字号:
<?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">
<SCRIPT lanuage="JScript">
<!--
function tempturnit(ss)
{
 if (ss.style.display=="") 
  ss.style.display="none";
 else
  ss.style.display=""; 
}
-->
</SCRIPT>
</head>

<body>
<table width="98%" 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="right">
        <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="98%" 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">请将模板内容<a href="#ecms" onclick="window.clipboardData.setData('Text',document.formindex.temptext.value);document.formindex.temptext.select()" title="点击复制模板内容"><strong>复制到Dreamweaver(推荐)</strong></a>或者使用<a href="#ecms" onclick="window.open('editor.php?getvar=opener.document.formindex.temptext.value&returnvar=opener.document.formindex.temptext.value&fun=ReturnHtml','edittemp','width=880,height=600,scrollbars=auto,resizable=yes');"><strong>模板在线编辑</strong></a>进行可视化编辑</div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <textarea name="temptext" cols="110" rows="27" id="temptext" wrap="OFF" style="WIDTH: 100%"><?=htmlspecialchars(stripSlashes($r[indextemp]))?></textarea>
        </div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF">&nbsp;&nbsp;[<a href="#ecms" onclick="tempturnit(indexshowtempvar);">显示模板变量说明</a>] 
        &nbsp;&nbsp;[<a href="#ecms" onclick="window.open('EnewsBq.php','','width=600,height=500,scrollbars=yes,resizable=yes');">查看模板标签语法</a>] 
        &nbsp;&nbsp;[<a href="#ecms" onclick="window.open('../ListClass.php','','width=800,height=600,scrollbars=yes,resizable=yes');">查看JS调用地址</a>] 
        &nbsp;&nbsp;[<a href="#ecms" onclick="window.open('ListTempvar.php','','width=800,height=600,scrollbars=yes,resizable=yes');">查看公共模板变量</a>] 
        &nbsp;&nbsp;[<a href="#ecms" onclick="window.open('ListBqtemp.php','','width=800,height=600,scrollbars=yes,resizable=yes');">查看标签模板</a>]</td>
    </tr>
    <tr id="indexshowtempvar" style="display:none"> 
      <td height="25" bgcolor="#FFFFFF"><strong>首页模板支持的变量说明</strong> 
        <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
          <tr bgcolor="#FFFFFF"> 
            <td width="50%" height="25">
<input name="textfield" type="text" value="[!--pagetitle--]">
              :网站名称</td>
            <td width="50%">
<input name="textfield2" type="text" value="[!--news.url--]">
              :网站地址(参数设置的站点地址)</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25"><strong>支持公共模板变量</strong></td>
            <td><strong>支持所有模板标签</strong></td>
          </tr>
        </table></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="重置">
          <input name="gid" type="hidden" id="gid" value="<?=$gid?>">
        </div></td>
    </tr>
  </table>
</form>
<?
}
if($tname=="pltemp"||empty($tname))
{
?>
<form name="formpl" method="post" action="../enews.php">
  <table width="98%" 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">请将模板内容<a href="#ecms" onclick="window.clipboardData.setData('Text',document.formpl.temptext.value);document.formpl.temptext.select()" title="点击复制模板内容"><strong>复制到Dreamweaver(推荐)</strong></a>或者使用<a href="#ecms" onclick="window.open('editor.php?getvar=opener.document.formpl.temptext.value&returnvar=opener.document.formpl.temptext.value&fun=ReturnHtml','edittemp','width=880,height=600,scrollbars=auto,resizable=yes');"><strong>模板在线编辑</strong></a>进行可视化编辑</div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <textarea name="temptext" cols="110" rows="27" id="temptext" wrap="OFF" style="WIDTH: 100%"><?=htmlspecialchars(stripSlashes($r[pllisttemp]))?></textarea>
        </div></td>
    </tr>
    <tr>
      <td height="25" bgcolor="#FFFFFF">&nbsp;&nbsp;[<a href="#ecms" onclick="tempturnit(plshowtempvar);">显示模板变量说明</a>] 
        &nbsp;&nbsp;[<a href="#ecms" onclick="window.open('../ListClass.php','','width=800,height=600,scrollbars=yes,resizable=yes');">查看JS调用地址</a>] 
        &nbsp;&nbsp;[<a href="#ecms" onclick="window.open('ListTempvar.php','','width=800,height=600,scrollbars=yes,resizable=yes');">查看公共模板变量</a>]</td>
    </tr>
    <tr id="plshowtempvar" style="display:none">
      <td height="25" bgcolor="#FFFFFF"><strong>1、整体页面支持的变量</strong><br> 
        <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
          <tr bgcolor="#FFFFFF"> 
            <td width="33%" height="25">
<input name="textfield3" type="text" value="[!--url--]">
              :所在位置导航条</td>
            <td width="34%"> 
              <input name="textfield4" type="text" value="[!--titleurl--]">
              :信息链接</td>
            <td width="33%">
<input name="textfield5" type="text" value="[!--title--]">
              :信息标题</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25"><input name="textfield6" type="text" value="[!--classid--]">
              :栏目ID</td>
            <td><input name="textfield7" type="text" value="[!--id--]">
              :信息ID</td>
            <td><input name="textfield8" type="text" value="[!--pinfopfen--]">
              :信息平均评分</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25"><input name="textfield9" type="text" value="[!--infopfennum--]">
              :总评分人数</td>
            <td><input name="textfield10" type="text" value="[!--news.url--]">
              :网站地址</td>
            <td><input name="textfield11" type="text" value="[!--key.url--]">
              :发表评论验证码地址</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25"><input name="textfield12" type="text" value="[!--lusername--]">
              :登陆会员帐号</td>
            <td><input name="textfield13" type="text" value="[!--lpassword--]">
              :登陆用户密码(加密过)</td>
            <td><input name="textfield14" type="text" value="[!--listpage--]">
              :分页导航</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25"><input name="textfield15" type="text" value="[!--plnum--]">
              :总记录数</td>
            <td><input name="textfield16" type="text" value="[!--hotnews--]">
              :热门信息JS调用(默认表)</td>
            <td><input name="textfield17" type="text" value="[!--newnews--]">
              :最新信息JS调用(默认表)</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25"><input name="textfield18" type="text" value="[!--goodnews--]">
              :推荐信息JS调用(默认表)</td>
            <td><input name="textfield19" type="text" value="[!--hotplnews--]">
              :评论热门信息JS调用(默认表)</td>
            <td><strong>支持公共模板变量</strong></td>
          </tr>
        </table>
        <br>
        <strong>2、列表内容支持的变量</strong><br> 
        <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
          <tr bgcolor="#FFFFFF"> 
            <td width="33%" height="25">
<input name="textfield20" type="text" value="[!--plid--]">
              :评论ID</td>
            <td width="34%"> 
              <input name="textfield21" type="text" value="[!--pltext--]">
              :评论内容</td>
            <td width="33%">
<input name="textfield22" type="text" value="[!--pltime--]">
              :评论发表时间</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25"><input name="textfield23" type="text" value="[!--plip--]">
              :评论发表者IP</td>
            <td><input name="textfield24" type="text" value="[!--username--]">
              :发表者</td>
            <td><input name="textfield25" type="text" value="[!--includelink--]">
              :引用评论链接地址</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25"><input name="textfield26" type="text" value="[!--zcnum--]">
              :支持数</td>
            <td><input name="textfield27" type="text" value="[!--fdnum--]">
              :反对数</td>
            <td><input name="textfield28" type="text" value="[!--classid--]">
              :栏目ID</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25"><input name="textfield29" type="text" value="[!--id--]">
              :信息ID</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table></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="重置">
          <input name="gid" type="hidden" id="gid" value="<?=$gid?>">
        </div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"><p>模板格式:列表头[!--empirenews.listtemp--]列表内容[!--empirenews.listtemp--]列表尾</p></td>
    </tr>
  </table>
</form>
<?
}
if($tname=="cptemp"||empty($tname))
{
?>
<form name="formcp" method="post" action="../enews.php">
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder" id=cptemp>
    <tr class="header"> 
      <td height="25"><div align="center">控制面板模板 (<a href="../../member/cp" target="_blank">预览</a>)</div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"><div align="center">请将模板内容<a href="#ecms" onclick="window.clipboardData.setData('Text',document.formcp.temptext.value);document.formcp.temptext.select()" title="点击复制模板内容"><strong>复制到Dreamweaver(推荐)</strong></a>或者使用<a href="#ecms" onclick="window.open('editor.php?getvar=opener.document.formcp.temptext.value&returnvar=opener.document.formcp.temptext.value&fun=ReturnHtml','edittemp','width=880,height=600,scrollbars=auto,resizable=yes');"><strong>模板在线编辑</strong></a>进行可视化编辑</div></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
          <textarea name="temptext" cols="110" rows="27" id="temptext" wrap="OFF" style="WIDTH: 100%"><?=htmlspecialchars(stripSlashes($r[cptemp]))?></textarea>
        </div></td>
    </tr>
    <tr>
      <td height="25" bgcolor="#FFFFFF">&nbsp;&nbsp;[<a href="#ecms" onclick="tempturnit(cpshowtempvar);">显示模板变量说明</a>] 
        &nbsp;&nbsp;[<a href="#ecms" onclick="window.open('../ListClass.php','','width=800,height=600,scrollbars=yes,resizable=yes');">查看JS调用地址</a>] 
        &nbsp;&nbsp;[<a href="#ecms" onclick="window.open('ListTempvar.php','','width=800,height=600,scrollbars=yes,resizable=yes');">查看公共模板变量</a>]</td>
    </tr>
    <tr id="cpshowtempvar" style="display:none">
      <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
          <tr bgcolor="#FFFFFF"> 
            <td width="33%" height="25"><input name="textfield30" type="text" value="[!--newsnav--]">

⌨️ 快捷键说明

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