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

📄 templateproject_import.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?>
<table cellpadding="2" cellspacing="1" class="tableborder">
  <tr>
    <th colspan=7>导入模板方案到数据库</th>
  </tr>
<form method="post" name="myform" action="?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&save=1">
<tr>
<td class="tablerow">方案所在目录</td>
<td class="tablerow">
./data/templates/<input size=15 name="projectdir" type=text value="<?=$projectdir?>">
<font color="red">*</font>
<select name="tpldir" onchange="myform.projectdir.value=this.value">
<option value='' >请选择模板方案目录</option>
<?php 
if(is_array($projectdirs)){
	foreach($projectdirs as $dir){
		$dir = basename($dir);
        $selected = $dir == $projectdir ? " selected" : "";
        echo "<option value='".$dir."' ".$selected.">".$dir."</option>\n";
	}
}
?>
</select>
</td>
</tr>
<tr>
<td class="tablerow">导入方式</td>
<td class="tablerow"><input type="radio" name="importtype" value="1" checked onclick="importtype1.style.display='';"> 添加新模板方案&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="importtype" value="0" onclick="importtype1.style.display='none';"> 更新已有模板方案 </td>
</tr>
<tbody id="importtype1">
<tr>
<td class="tablerow" width="15%">方案名称</td>
<td class="tablerow">
<input size=32 name="projectname" type=text value="<?=$projectname?>"> <font color="red">*</font>
</td>
</tr>
<tr>
<td class="tablerow" width="15%">方案介绍</td>
<td class="tablerow">
<input size=60 name="introduce" type=text value="<?=$introduce?>">
</td>
</tr>
<tr>
<td class="tablerow">设为默认</td>
<td class="tablerow"><input type="radio" name="isdefault" value="1"> 是(将立即启用)&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="isdefault" value="0" checked> 否(暂不启用) </td>
</tr>
</tbody>
<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">
	系统将从指定的目录自动导入风格、模板和模板类型到数据库。如果您希望导入他人分享的模板方案,则建议选择“添加新模板方案”;如果您要恢复以前备份的模板方案,则建议选择“更新现有模板方案”。<br/><br/>
	<b>功能用途:</b><br/>
	1、可以用来恢复原模板方案来。<br/>
	2、可以把导入的他人分享的模板方案。
	</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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