| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 | <?phpdefine('EmpireCMSAdmin','1');require("../../class/connect.php");require("../../class/db_sql.php");require("../../class/functions.php");$link=db_connect();$empire=new mysqlquery();$editor=1;//验证用户$lur=is_login();$logininid=$lur['userid'];$loginin=$lur['username'];$loginrnd=$lur['rnd'];$loginlevel=$lur['groupid'];$loginadminstyleid=$lur['adminstyleid'];//ehash$ecms_hashur=hReturnEcmsHashStrAll();//验证权限CheckLevel($logininid,$loginin,$classid,"template");$gid=(int)$_GET['gid'];$gname=CheckTempGroup($gid);$urlgname=$gname." > ";$enews=ehtmlspecialchars($_GET['enews']);$url=$urlgname."<a href=ListPltemp.php?gid=$gid".$ecms_hashur['ehref'].">管理评论模板</a> > 增加评论模板";//复制if($enews=="AddPlTemp"&&$_GET['docopy']){	$tempid=(int)$_GET['tempid'];	$r=$empire->fetch1("select tempid,tempname,temptext from ".GetDoTemptb("enewspltemp",$gid)." where tempid=$tempid");	$url=$urlgname."<a href=ListPltemp.php?gid=$gid".$ecms_hashur['ehref'].">管理评论模板</a> > 复制评论模板:<b>".$r[tempname]."</b>";}//修改if($enews=="EditPlTemp"){	$tempid=(int)$_GET['tempid'];	$r=$empire->fetch1("select tempid,tempname,temptext from ".GetDoTemptb("enewspltemp",$gid)." where tempid=$tempid");	$url=$urlgname."<a href=ListPltemp.php?gid=$gid".$ecms_hashur['ehref'].">管理评论模板</a> > 修改评论模板:<b>".$r[tempname]."</b>";}db_close();$empire=null;?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><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><script>function ReTempBak(){	self.location.reload();}</script></head><body><table width="98%" border="0" align="center" cellpadding="3" cellspacing="1">  <tr>    <td height="25">位置:<?=$url?></td>  </tr></table><br>  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">  <form name="form1" method="post" action="ListPltemp.php">  <?=$ecms_hashur['form']?>    <tr class="header">       <td height="25" colspan="2">增加评论模板         <input name="enews" type="hidden" id="enews" value="<?=$enews?>"> <input name="tempid" type="hidden" id="tempid" value="<?=$tempid?>">         <input name="gid" type="hidden" id="gid" value="<?=$gid?>"> </td>    </tr>    <tr bgcolor="#FFFFFF">       <td width="19%" height="25">模板名称</td>      <td width="81%" height="25"> <input name="tempname" type="text" id="tempname" value="<?=$r[tempname]?>">       </td>    </tr>    <tr bgcolor="#FFFFFF">       <td height="25"><strong>模板内容</strong>(*)</td>      <td height="25">请将模板内容<a href="#ecms" onclick="window.clipboardData.setData('Text',document.form1.temptext.value);document.form1.temptext.select()" title="点击复制模板内容"><strong>复制到Dreamweaver(推荐)</strong></a>或者使用<a href="#ecms" onclick="window.open('editor.php?getvar=opener.document.form1.temptext.value&returnvar=opener.document.form1.temptext.value&fun=ReturnHtml<?=$ecms_hashur['ehref']?>','edittemp','width=880,height=600,scrollbars=auto,resizable=yes');"><strong>模板在线编辑</strong></a>进行可视化编辑</td>    </tr>    <tr bgcolor="#FFFFFF">       <td height="25" colspan="2"><div align="center">           <textarea name="temptext" cols="90" rows="27" id="temptext" wrap="OFF" style="WIDTH: 100%"><?=ehtmlspecialchars(stripSlashes($r[temptext]))?></textarea>        </div></td>    </tr>    <tr bgcolor="#FFFFFF">       <td height="25"> </td>      <td height="25"><input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置">        <?php		if($enews=='EditPlTemp')		{		?>          [<a href="#empirecms" onclick="window.open('TempBak.php?temptype=pltemp&tempid=<?=$tempid?>&gid=<?=$gid?><?=$ecms_hashur['ehref']?>','ViewTempBak','width=450,height=500,scrollbars=yes,left=300,top=150,resizable=yes');">修改记录</a>]         <?php		}		?>      </td>    </tr>	</form>	<tr bgcolor="#FFFFFF">       <td height="25" colspan="2">  [<a href="#ecms" onclick="tempturnit(showtempvar);">显示模板变量说明</a>]           [<a href="#ecms" onclick="window.open('../ListClass.php<?=$ecms_hashur['whehref']?>','','width=800,height=600,scrollbars=yes,resizable=yes');">查看JS调用地址</a>]           [<a href="#ecms" onclick="window.open('ListTempvar.php<?=$ecms_hashur['whehref']?>','','width=800,height=600,scrollbars=yes,resizable=yes');">查看公共模板变量</a>]</td>    </tr>    <tr bgcolor="#FFFFFF" id="showtempvar" style="display:none">       <td height="25" colspan="2"><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="[!--newsnav--]">              :所在位置导航条</td>            <td width="34%"><input name="textfield72" type="text" value="[!--pagekey--]">              :页面关键字 </td>            <td width="33%"><input name="textfield73" type="text" value="[!--pagedes--]">              :页面描述 </td>          </tr>          <tr bgcolor="#FFFFFF">            <td height="25"><input name="textfield92" type="text" value="[!--class.menu--]">              :一级栏目导航</td>            <td><input name="textfield4" type="text" value="[!--titleurl--]">              :信息链接</td>            <td><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><input name="textfield182" type="text" value="<script src="[!--news.url--]d/js/js/plface.js"></script>">:评论表情选择调用</td>          </tr>          <tr bgcolor="#FFFFFF">            <td height="25"><strong>支持公共模板变量</strong></td>            <td> </td>            <td> </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="textfield252" type="text" value="[!--userid--]">              :发表者ID</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><input name="textfield25" type="text" value="[!--includelink--]">              :引用评论链接地址</td>            <td><strong>[!--字段名--]:自定义字段内容调用</strong></td>          </tr>        </table></td>    </tr>    <tr bgcolor="#FFFFFF">       <td height="25">模板格式:</td>      <td height="25">列表头[!--empirenews.listtemp--]列表内容[!--empirenews.listtemp--]列表尾</td>    </tr>  </table></body></html>
 |