?? template.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="30">
<tr>
<td>當前位置:<a href="?mod=phpcms&file=templateproject&action=manage">模板方案管理</a> > <a href="?mod=phpcms&file=template&action=manage&project=<?=$project?>&module=<?=$module?>"><?=$projectname?> - <?=$_MODULE[$module][modulename]?> 模板管理</a></td>
</tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
<tr>
<th colspan=8>模板管理</th>
</tr>
<form name="myform" method="post" action="?mod=<?=$mod?>&file=<?=$file?>&action=update&module=<?=$module?>">
<tr align="center">
<td width="15%" class="tablerowhighlight">模板名稱</td>
<td width="20%" class="tablerowhighlight">文件名</td>
<td width="15%" class="tablerowhighlight">模板類型</td>
<td width="30%" class="tablerowhighlight">調用函數</td>
<td width="5%" class="tablerowhighlight">默認</td>
<td width="15%" 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><input type="text" name="templatename[<?=$template['file']?>]" size="17" value="<?=$template['name']?>"></td>
<td align="left"><a href="?mod=<?=$mod?>&file=<?=$file?>&action=edit&channelid=<?=$channelid?>&template=<?=$template['template']?>&module=<?=$module?>&project=<?=$project?>" title="上次修改時間:<?=date("Y-m-d H:i:s",$template['mtime'])?>"><?=$template['file']?></a></td>
<td align="left"><?=$template['type']?></td>
<td><input type="text" name="function<?=$template['template']?>" size="35" value="template('<?=$module?>','<?=$template['template']?>')" onfocus="document.myform.elements['function<?=$template['template']?>'].select();"></td>
<td><?php if($template['isdefault']){?>√<?php }?></td>
<td><a href="?mod=<?=$mod?>&file=<?=$file?>&action=down&channelid=<?=$channelid?>&template=<?=$template['template']?>&module=<?=$module?>&project=<?=$project?>" title="上次修改時間:<?=date("Y-m-d H:i:s",$template['mtime'])?>">下載</a> | <a href="?mod=<?=$mod?>&file=<?=$file?>&action=edit&channelid=<?=$channelid?>&template=<?=$template['template']?>&module=<?=$module?>&project=<?=$project?>" title="上次修改時間:<?=date("Y-m-d H:i:s",$template['mtime'])?>">修改</a> | <a href="?mod=<?=$mod?>&file=<?=$file?>&action=delete&channelid=<?=$channelid?>&template=<?=$template['template']?>&module=<?=$module?>&project=<?=$project?>" title="上次修改時間:<?=date("Y-m-d H:i:s",$template['mtime'])?>">刪除</a></td>
</tr>
<?php
}
}
?>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left"> <input type="submit" name="submit" value=" 更新模板名稱 "></td>
</tr>
</table>
</form>
<br/>
<table cellpadding="2" cellspacing="1" border="0" align=center class="tableBorder" >
<tr>
<td class="submenu" align=center>提示信息</td>
</tr>
<tr>
<td class="tablerow">
1、當前模板保存在 <font color="red">./templates/<?=$project?>/<?=$module?>/</font> 目錄下(如果需要在線修改,請通過ftp將 ./templates/ 目錄設置為 777 ,并應用到子目錄)<br/>
2、同類型模板具有相同的前綴,后面以中劃線隔開。例如:<br/> tag_slidespecial.html 和 tag_slidespecial-js.html 都是 tag_slidespecial 類型的模板,并且 tag_slidespecial.html 是該類型的默認模板
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -