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

📄 template.php

📁 不错的一个网站管理系统
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
//模板组
$gid=(int)$_GET['gid'];
if(!$gid)
{
	if($ecmsdeftempid)
	{
		$gid=$ecmsdeftempid;
	}
	elseif($public_r['deftempid'])
	{
		$gid=$public_r['deftempid'];
	}
	else
	{
		$gid=1;
	}
}
$tempgroup="";
$tgname="";
$tgsql=$empire->query("select gid,gname,isdefault from {$dbtbpre}enewstempgroup order by gid");
while($tgr=$empire->fetch($tgsql))
{
	$tgselect="";
	if($tgr['gid']==$gid)
	{
		$tgname=$tgr['gname'];
		$tgselect=" selected";
	}
	$tempgroup.="<option value='".$tgr['gid']."'".$tgselect.">".$tgr['gname']."</option>";
}
if(empty($tgname))
{
	printerror("ErrorUrl","");
}
?>
<!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 rel="stylesheet" href="adminstyle.css" type="text/css">
<SCRIPT lanuage="JScript">
function DisplayImg(ss,imgname,phome)
{
	if(imgname=="ltimg")
	{
		img=todisplay(dolt,phome);
		document.images.ltimg.src=img;
	}
	else if(imgname=="ctimg")
	{
		img=todisplay(doct,phome);
		document.images.ctimg.src=img;
	}
	else if(imgname=="ntimg")
	{
		img=todisplay(dont,phome);
		document.images.ntimg.src=img;
	}
	else if(imgname=="bqtimg")
	{
		img=todisplay(dobqt,phome);
		document.images.bqtimg.src=img;
	}
	else if(imgname=="tvimg")
	{
		img=todisplay(dotv,phome);
		document.images.tvimg.src=img;
	}
	else if(imgname=="ptimg")
	{
		img=todisplay(dopt,phome);
		document.images.ptimg.src=img;
	}
	else if(imgname=="upimg")
	{
		img=todisplay(doup,phome);
		document.images.upimg.src=img;
	}
	else if(imgname=="jstimg")
	{
		img=todisplay(dojst,phome);
		document.images.jstimg.src=img;
	}
	else if(imgname=="stimg")
	{
		img=todisplay(dost,phome);
		document.images.stimg.src=img;
	}
	else if(imgname=="vtimg")
	{
		img=todisplay(dovt,phome);
		document.images.vtimg.src=img;
	}
	else if(imgname=="bqimg")
	{
		img=todisplay(dobq,phome);
		document.images.bqimg.src=img;
	}
	else if(imgname=="otimg")
	{
		img=todisplay(doot,phome);
		document.images.otimg.src=img;
	}
	else if(imgname=="ujimg")
	{
		img=todisplay(douj,phome);
		document.images.ujimg.src=img;
	}
	else if(imgname=="ulimg")
	{
		img=todisplay(doul,phome);
		document.images.ulimg.src=img;
	}
	else
	{
	}
}
function todisplay(ss,phome)
{
	if(ss.style.display=="") 
	{
  		ss.style.display="none";
		theimg="images/add.gif";
	}
	else
	{
  		ss.style.display="";
		theimg="images/noadd.gif";
	}
	return theimg;
}
function turnit(ss,img)
{
	DisplayImg(ss,img,0);
}
</SCRIPT>
</head>

<body topmargin="0">
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td height="25" class="header"><img src="images/noadd.gif" width="20" height="9">
	<select name="selecttempgroup" onchange="self.location.href='left.php?ecms=template&gid='+this.options[this.selectedIndex].value">
	<?=$tempgroup?>
	</select>
	</td>
  </tr>
  </table>
<br>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder">
  <tr>
    <td height="25" class="header"><img src="images/noadd.gif" width="20" height="9"><a href="#ecms" onclick="window.open('../../template/EnewsBq.php','','width=600,height=600,scrollbars=yes,resizable=yes');">查看标签语法</a>
	</td>
  </tr>
  </table>
<br>
<?
if($r[dotemplate])
{
?>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="doctid">
  <tr> 
    <td height="25" class="header"><img src="<?=$addimg?>" width="20" height="9" name="ctimg"><a href="#ecms" onMouseUp=turnit(doct,"ctimg"); style="CURSOR: hand">栏目封面模板</a></td>
  </tr>
  <tbody id="doct"<?=$display?>>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"<?=$movecolor?>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../template/ClassTempClass.php?gid=<?=$gid?>" target="main">管理封面模板分类</a></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"<?=$movecolor?>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../template/ListClasstemp.php?gid=<?=$gid?>" target="main">管理封面模板</a></td>
    </tr>
  </tbody>
  </table>
  <br>
<?
}
?>
<?
if($r[dotemplate])
{
?>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="doltid">
  <tr> 
    <td height="25" class="header"><img src="<?=$addimg?>" width="20" height="9" name="ltimg"><a href="#ecms" onMouseUp=turnit(dolt,"ltimg"); style="CURSOR: hand">列表模板</a></td>
  </tr>
  <tbody id="dolt"<?=$display?>>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"<?=$movecolor?>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../template/ListtempClass.php?gid=<?=$gid?>" target="main">管理列表模板分类</a></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"<?=$movecolor?>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../template/ListListtemp.php?gid=<?=$gid?>" target="main">管理列表模板</a></td>
    </tr>
  </tbody>
  </table>
  <br>
<?
}
?>
<?
if($r[dotemplate])
{
?>
  <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="dontid">
  <tr> 
    <td height="25" class="header"><img src="<?=$addimg?>" width="20" height="9" name="ntimg"><a href="#ecms" onMouseUp=turnit(dont,"ntimg"); style="CURSOR: hand">内容模板</a></td>
  </tr>
  <tbody id="dont"<?=$display?>>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"<?=$movecolor?>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../template/NewstempClass.php?gid=<?=$gid?>" target="main">管理内容模板分类</a></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"<?=$movecolor?>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../template/ListNewstemp.php?gid=<?=$gid?>" target="main">管理内容模板</a></td>
    </tr>
  </tbody>
  </table>
  <br>
<?
}
?>
<?
if($r[dotemplate])
{
?>
  <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="dobqtid">
  <tr> 
    <td height="25" class="header"><img src="<?=$addimg?>" width="20" height="9" name="bqtimg"><a href="#ecms" onMouseUp=turnit(dobqt,"bqtimg"); style="CURSOR: hand">标签模板</a></td>
  </tr>
  <tbody id="dobqt"<?=$display?>>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"<?=$movecolor?>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../template/BqtempClass.php?gid=<?=$gid?>" target="main">管理标签模板分类</a></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"<?=$movecolor?>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../template/ListBqtemp.php?gid=<?=$gid?>" target="main">管理标签模板</a></td>
    </tr>
  </tbody>
  </table>
  <br>
<?
}
?>
<?
if($r[dotempvar])
{
?>
  <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="dotvid">
  <tr> 
    <td height="25" class="header"><img src="<?=$addimg?>" width="20" height="9" name="tvimg"><a href="#ecms" onMouseUp=turnit(dotv,"tvimg"); style="CURSOR: hand">公共模板变量</a></td>
  </tr>
  <tbody id="dotv"<?=$display?>>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"<?=$movecolor?>>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../template/TempvarClass.php?gid=<?=$gid?>" target="main">管理模板变量分类</a></td>

⌨️ 快捷键说明

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