<!--
<?php
print <<<EOT
--> 
 <form name="myform" method="post" action="index.php?lfj=$lfj&action=$job" enctype="multipart/form-data">
<div class="MainContainers">
  <div class="Header"><span class="tag">模板管理</span><span class="more">&gt;&gt;</span></div>
  <div class="Conter">
  <table class="FormTable">
    <tr> 
      <td class='tdL'>模板保存路径:</td>
      <td class='tdR'> 
        <input type="text" name="postdb[filepath]" value="$rsdb[filepath]" size="60" id="filepath">
        (不能使用汉字) </td>
    </tr>
    <tr> 
      <td class='tdL'>模板名称:</td>
      <td class='tdR'> 
        <input type="text" name="postdb[name]" value="$rsdb[name]">
        (可以使用汉字) </td>
    </tr>
    <tr style="display:$none;"> 
      <td class='tdL'>适用哪个类型:</td>
      <td class='tdR'> 
        <input type="radio" name="postdb[type]" value="1" $rsdb_type[1] >
        主页&nbsp;&nbsp;
        <input type="radio" name="postdb[type]" value="2" $rsdb_type[2] >
        列表页 &nbsp;
        <input type="radio" name="postdb[type]" value="3" $rsdb_type[3] >
        内容页 <br>
        <input type="radio" name="postdb[type]" value="7" $rsdb_type[7] >
        网页头部 
        <input type="radio" name="postdb[type]" value="8" $rsdb_type[8] >
        网页底部<br>
        <input type="radio" name="postdb[type]" value="9" $rsdb_type[9] >
        独立页&nbsp;
        <input type="radio" name="postdb[type]" value="11" $rsdb_type[11] >
        系统专题页</td>
    </tr>
     
 
    <tr style="display:$none;" id="edittpl"> 
      <td class='tdL'>模板HTML代码:<br>
        <br>
        (提示:<font color="#0000FF">建议复制里边的代码在你的Dreamweaver软件里编辑好再粘贴进来</font>) </td>
      <td class='tdR'> 
         
        <textarea name="postdb[code]" cols="120" rows="17" id="code">$code</textarea>
        <br>
       <input type="button" value="切换可视化编辑器" onclick="initEditor('code','770px','300px');$(this).hide();" />
      </td>
    </tr>
  </table>
  <div class='submits'>
        <input type="hidden" name="id" value="$id">
        <input type="submit" name="Submit" value="提 交">
        <input type="hidden" name="obj_id" value="$obj_id">    
  </div>
 </div>
 </div>
 </form>
<div style="display:none;"><iframe id="Iframe" name="Iframe" src="about:blank"></iframe></div>
<SCRIPT LANGUAGE="JavaScript">
<!--
function choose_type(type){
	window.open("index.php?lfj=$lfj&job=$job&type="+type+"&filepath="+get_obj('filepath').value,target='_self');
}
//-->
</SCRIPT>
<!--
EOT;
?>
-->
