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

📄 addnewstemp.php

📁 相关软件: ·帝国网站管理系统(Ecms) v3.5 繁体版 ·搜索更多与"帝国网站管理系统(Ecms) "相关的软件 注意事项: ·注意:本站软件一律只用鼠标左键打开
💻 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=$_COOKIE['enewsloginuserid'];
$loginin=$_COOKIE['enewsloginusername'];
$loginrnd=$_COOKIE['enewsloginrnd'];
$loginlevel=$_COOKIE['enewsloginlevel'];
$editor=1;
is_login($logininid,$loginin,$loginrnd);
//验证权限
CheckLevel($logininid,$loginin,$classid,"template");
$enews=$_GET['enews'];
$r[showdate]="Y-m-d H:i:s";
$url="管理模板&nbsp;->&nbsp;<a href=ListNewstemp.php>内容模板管理</a>&nbsp;->&nbsp;增加内容模板";
if($enews=="EditNewstemp")
{
$tempid=$_GET['tempid'];
$r=$empire->fetch1("select tempname,temptext,modid,showdate from phome_enewsnewstemp where tempid='$tempid'");
$url="管理模板&nbsp;->&nbsp;<a href=ListNewstemp.php>内容模板管理</a>&nbsp;->&nbsp;修改内容模板:".$r[tempname];
}
//系统模型
$msql=$empire->query("select mid,mname from phome_enewsmod order by mid");
while($mr=$empire->fetch($msql))
{
if($mr[mid]==$r[modid])
{$select=" selected";}
else
{$select="";}
$mod.="<option value=".$mr[mid].$select.">".$mr[mname]."</option>";
}
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=gb2312">
<title>管理页面模板</title>
<link href="../../data/images/css.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr>
    <td>位置:<?=$url?></td>
  </tr>
</table>
<form name="form1" method="post" action="../enews.php">
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
    <tr class="header"> 
      <td height="25" colspan="2"><strong><font color="#FFFFFF">增加模板 
        <input type=hidden name=enews value="<?=$enews?>">
        <input name="tempid" type="hidden" id="tempid" value="<?=$tempid?>">
        </font></strong></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="24%" height="25">模板名</td>
      <td width="79%" height="25"><input name="tempname" type="text" id="tempname" value="<?=$r[tempname]?>" size="25"> 
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="25"><strong>所属系统模型</strong></td>
      <td height="25"><select name="modid" id="modid">
          <?=$mod?>
        </select></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="25">时间显示格式:</td>
      <td> <input name="showdate" type="text" id="showdate" value="<?=$r[showdate]?>" size="20"> 
        <select name="select4" onchange="document.form1.showdate.value=this.value">
          <option value="Y-m-d H:i:s">选择</option>
          <option value="Y-m-d H:i:s">2005-01-27 11:04:27</option>
          <option value="Y-m-d">2005-01-27</option>
          <option value="m-d">01-27</option>
        </select> </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td rowspan="2" valign="top">模板内容<br> <br> <strong>共公变量说明:</strong><br> 
        <font color="#FF0000">导行条:</font>[!--newsnav--]<br> <br> <font color="#FF0000">页面标题:</font>[!--pagetitle--]<br> 
        <br>
        热门信息:[!--hotnews--]<br> <br>
        最新信息:[!--newnews--]<br> <br>
        推荐信息:[!--goodnews--]<br> <br>
        评论排行:[!--hotplnews--]<br> <br>
        最新头条:[!--firstnews--]<br> </td>
      <td height="25"><textarea name="temptext" cols="70" rows="23"><?=htmlspecialchars(stripSlashes($r[temptext]))?></textarea></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="25"><strong>变量说明:</strong><br> 
        <table width="100%" border="0" cellspacing="1" cellpadding="3">
          <tr> 
            <td>分页导行: 
              <input name="textfield" type="text" value="[!--page.url--]"></td>
            <td>标题式分页导行: 
              <input name="textfield2" type="text" value="[!--title.select--]"></td>
          </tr>
          <tr> 
            <td width="50%">加入收藏链接: 
              <input name="textfield3" type="text" value="[!--fava.url--]"></td>
            <td>信息ID: 
              <input name="textfield4" type="text" value="[!--id--]"></td>
          </tr>
          <tr> 
            <td>分类名称: 
              <input name="textfield5" type="text" value="[!--class.name--]"></td>
            <td>标题链接: 
              <input name="textfield6" type="text" value="[!--titleurl--]"></td>
          </tr>
          <tr> 
            <td>信息编号: 
              <input name="textfield7" type="text" value="[!--no.num--]"></td>
            <td>评论数: 
              <input name="textfield8" type="text" value="[!--plnum--]"></td>
          </tr>
          <tr> 
            <td>网站地址: 
              <input name="textfield9" type="text" value="[!--news.url--]"></td>
            <td>发布者ID: 
              <input name="textfield10" type="text" value="[!--userid--]"></td>
          </tr>
          <tr> 
            <td>点击: 
              <input name="textfield11" type="text" value="[!--onclick--]"></td>
            <td>发布者: 
              <input name="textfield12" type="text" value="[!--username--]"></td>
          </tr>
          <tr> 
            <td>相关链接: 
              <input name="textfield13" type="text" value="[!--other.link--]"></td>
            <td>下载次数: 
              <input name="textfield132" type="text" value="[!--totaldown--]"></td>
          </tr>
          <tr> 
            <td>查点扣除点数: 
              <input name="textfield133" type="text" value="[!--userfen--]"></td>
            <td>分类ID号: 
              <input name="textfield1322" type="text" value="[!--classid--]"></td>
          </tr>
          <tr>
            <td>下一篇链接: 
              <input name="textfield1332" type="text" value="[!--info.next--]"></td>
            <td>上一篇链接: 
              <input name="textfield13322" type="text" value="[!--info.pre--]"></td>
          </tr>
		  <tr> 
            <td>关键字: 
              <input name="textfield134" type="text" value="[!--keyboard--]"></td>
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="2">实时显示点击数:&lt;script src=[!--news.url--]e/public/ViewClick?classid=[!--classid--]&amp;id=[!--id--]&gt;&lt;/script&gt;<br>
              实时显示下载数:&lt;script src=[!--news.url--]e/public/ViewClick?classid=[!--classid--]&amp;id=[!--id--]&amp;down=1&gt;&lt;/script&gt;<br>
              购物车地址:[!--news.url--]e/ShopSys/buycar?classid=[!--classid--]&amp;id=[!--id--]</td>
          </tr>
          <tr> 
            <td colspan="2">其他变量请点击 
              <input type="button" name="Submit3" value="这里" onclick="window.open('ShowVar.php?modid='+document.form1.modid.value,'','width=300,height=520,scrollbars=yes');">
              (因为不同模型有不同的变量)</td>
          </tr>
          <tr> 
            <td colspan="2">&nbsp;</td>
          </tr>
        </table></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="25">&nbsp;</td>
      <td height="25"><input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置"></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td height="25">&nbsp;</td>
      <td height="25">说明:具体标签介绍请点 
        <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>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

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