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

📄 template.php

📁 phpcms网站管理系统  很不错的 有需要的就下载看看八 
💻 PHP
字号:
<?php 
defined('IN_PHPCMS') or exit('Access Denied');
include admintpl('header');
?>
<body>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
  <tr>
    <td></td>
  </tr>
</table>
<?=$menu?>
	<?php if(isset($_grade) && $_grade==0){ ?>
<table cellpadding='2' cellspacing='1' border='0' align='center' class='tableBorder'>
  <tr>
    <td class='pagemenu' align="center">所有模块:
	<?php
		foreach($_MODULE as $key=>$m){
		?>
		| <a href="?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&module=<?=$key?>&projectid=<?=$projectid?>" class='pagelink'><?=$m['modulename']?></a>
	 <?php 
		}
	?>
	</td>
  </tr>
</table>
<?php } ?>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
  <tr>
    <td></td>
  </tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
  <tr>
    <th><?=$_MODULE[$module]['modulename']?>模块 - 模板类型</th>
  </tr>
  <tr>
    <td class="tablerow">

<?php 
if(is_array($types)){
	foreach($types as $type){
?>
·<a href="?mod=<?=$mod?>&channelid=<?=$channelid?>&file=<?=$file?>&action=<?=$action?>&type=<?=$type['type']?>&projectid=<?=$projectid?>&module=<?=$type['module']?>"><?=$type['typename']?></a>
<?php 
	}
}
?>
	</td>
  </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
  <tr>
    <td></td>
  </tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
  <tr>
    <th colspan=8><?=$_MODULE[$module][modulename]?>模块 - 模板管理</th>
  </tr>
<form name="myform" method="post" action="?mod=<?=$mod?>&file=<?=$file?>&action=updatecache">
<tr align="center">
<td width="5%" class="tablerowhighlight">ID</td>
<td width="18%" class="tablerowhighlight">模板名称</td>
<td width="14%" class="tablerowhighlight">方案名称</td>
<td width="15%" class="tablerowhighlight">模板类型</td>
<td width="20%" class="tablerowhighlight">调用函数</td>
<td width="5%" class="tablerowhighlight">默认</td>
<td width="23%" class="tablerowhighlight">管理操作</td>
</tr>
<?php 
if(is_array($templates)){
	foreach($templates as $template){
?>
<tr align="center" onmouseout="this.style.backgroundColor='#F1F3F5'" onmouseover="this.style.backgroundColor='#BFDFFF'" bgColor='#F1F3F5'>
<td><?=$template['templateid']?></td>
<td><a href="?mod=<?=$mod?>&file=<?=$file?>&action=edit&channelid=<?=$channelid?>&templateid=<?=$template['templateid']?>&module=<?=$module?>&projectid=<?=$projectid?>" title="上次修改时间:<?=date("Y-m-d H:i:s",$template['updatetime'])?>"><?=$template['templatename']?></a></td>
<td><?=$template['projectname']?></td>
<td><a href="?mod=<?=$mod?>&file=template&action=manage&type=<?=$template['type']?>&module=<?=$module?>" title="管理此类型的模板"><?=$template['typename']?></a></td>
<td><input type="text" name="function<?=$template['templateid']?>" value="template(<?=$template['isdefault'] ? 0 : $template['templateid']?>,'<?=$template['module']?>','<?=$template['type']?>')" onfocus="document.myform.elements['function<?=$template['templateid']?>'].select();"></td>
<td><?php if($template['isdefault']){?>√<?php }?></td>
<td>
<?php if($template['isdefault']){?><span class="gray">设为默认</span><?php }else{ ?>
<a href="?mod=<?=$mod?>&file=<?=$file?>&action=setdefault&channelid=<?=$channelid?>&templateid=<?=$template['templateid']?>&module=<?=$module?>&projectid=<?=$projectid?>">设为默认</a><?php } ?> | 
<a href="?mod=<?=$mod?>&file=<?=$file?>&action=down&channelid=<?=$channelid?>&templateid=<?=$template['templateid']?>&module=<?=$module?>&projectid=<?=$projectid?>">下载</a> | 
<a href="?mod=<?=$mod?>&file=<?=$file?>&action=edit&channelid=<?=$channelid?>&templateid=<?=$template['templateid']?>&module=<?=$module?>&projectid=<?=$projectid?>" title="上次修改时间:<?=date("Y-m-d H:i:s",$template['updatetime'])?>">修改</a> | 
<?php if($template['isdefault']){?><span class="gray">删除</span><?php }else{ ?>
<a href="?mod=<?=$mod?>&file=<?=$file?>&action=delete&channelid=<?=$channelid?>&templateid=<?=$template['templateid']?>&module=<?=$module?>&projectid=<?=$projectid?>">删除</a><?php } ?>
</td>
</tr>
<?php 
	}
}
?>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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