<{include file="header.tpl"}>
<div class="wrap">
    <div class="container">
        <div id="main">
            <div class="con box-green">
                <form action="<{$sys.subform}>" method="post">
                <input type="hidden" name="referer" value="<{$sys.goback}>"/>
                <{if $form.id}><input type="hidden" name="id" value="<{$form.id}>"/><{/if}>

                <div class="box-content">
                    <!--<div class="pb5">
                        <input type="button" value="备份当前模板" onclick="self.location = '?c=template_manage&a=backup&filename=<{$form.tpl_file}>'" /> 
                        <input type="button" value="恢复到备份模板" onclick="self.location = '?c=template_manage&a=restore&filename=<{$form.tpl_file}>'" /> 
                    </div>-->
                    <div class="pb5">
                        模板文件：<input type="text" name="tpl_file" value="<{$tpl_file}>" /> (为空时系统默认分配一个文件名)
                        <input type="hidden" name="tpl_file_old" value="<{$tpl_file}>" />
                    </div>
                    <div>
                        <textarea name="content" style="width:98%; height:420px; border:1px solid #ccc; overflow:hidden; overflow-y:scroll;"><{$content}></textarea>
                    </div>
                    <{if $show_msg}><p>提示：修改模板后请手动更新静态页面</p><{/if}>
                </div>
                <div class="box-footer">
                    <div class="box-footer-inner">
                    	<input name="submit" type="submit" value="保存更改" />
                    </div>
                </div>
                </form>
            </div><!--/ con-->
        </div>
    </div><!--/ container-->
</div><!--/ wrap-->
<{include file="footer.tpl"}>
