template_export.php

来自「phpcms网站管理系统  很不错的 有需要的就下载看看八 」· PHP 代码 · 共 73 行

PHP
73
字号
<?php 
defined('IN_PHPCMS') or exit('Access Denied');
include admintpl('header');
?>
<body onload="myform.templatedir.value=myform.module.value+'_'+myform.projectid.value">
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
  <tr>
    <td></td>
  </tr>
</table>
<?=$menu?>
<table cellpadding="2" cellspacing="1" class="tableborder">
  <tr>
    <th colspan=2>批量导出模板到目录</th>
  </tr>
<form method="post" name="myform" action="?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&templateid=<?=$templateid?>&save=1">
<tr>
<td class="tablerow" width="15%">所属方案</td>
<td class="tablerow">
<select name="projectid" onchange="if(myform.module.value!=''){tpldir.style.display='';myform.templatedir.value=myform.module.value+'_'+myform.projectid.value; }else{ tpldir.style.display='none';}">
<?php 
if(is_array($projects)){
	foreach($projects as $project){
        $selected = $project['projectid'] == $projectid ? " selected" : "";
        echo "<option value='".$project['projectid']."' ".$selected.">".$project['projectname']."</option>\n";
	}
}
?>
</select>
</td>
</tr>
<tr>
<td class="tablerow" width="15%">所属模块</td>
<td class="tablerow">
<select name="module" onchange="if(myform.module.value!=''){tpldir.style.display='';myform.templatedir.value=myform.module.value+'_'+myform.projectid.value; }else{ tpldir.style.display='none';}">
<option value=''>所有模块</option>
<?php 
foreach($_MODULE as $key=>$m){
	$selected = $key == $module ? " selected" : "";
	echo "<option value='".$key."' ".$selected.">".$m['modulename']."</option>\n";
}
?>
</select>
</td>
</tr>
<tr id="tpldir" style="display:">
<td class="tablerow">保存到目录</td>
<td class="tablerow">
./data/templates/<input size=15 name="templatedir" type=text value="<?=$templatedir?>">
<font color="red">*</font>
</td>
</tr>
<tr>
<td class="tablerow"></td>
<td class="tablerow">
<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">
	此只能分模块导出模板,如果您需要导出一套全站的模板方案,则请进“模板方案管理”,然后“导出模板方案”。
	</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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