rhymix/modules/layout/tpl/layout_edit.html

39 lines
1.6 KiB
HTML

<!--%import("filter/update_layout_code.xml")-->
<!--%import("filter/reset_layout_code.xml")-->
<!--#include("header.html")-->
<table border="1" width="100%">
<tr>
<th>{$layout_info->title} ver {$layout_info->version} ({$layout_info->layout})</th>
</tr>
<tr>
<td>{nl2br($lang->about_layout_code)}</td>
</tr>
</table>
<div style="margin-bottom:10px;border:1px solid #DDDDDD;padding:5px;">
<div style="font-weight:bold">{$lang->plugin}</div>
<div>
<!--@foreach($plugin_list as $plugin)-->
[<a href="#" onclick="popopen('./?module=plugin&amp;act=dispPluginGenerateCode&amp;selected_plugin={$plugin->plugin}&amp;module_srl={$module_srl}','GenerateCodeInPage');return false;">{$plugin->title}</a>]
<!--@end-->
</div>
</div>
<div style="margin-bottom:10px;">
<form id="fo_layout" action="./" method="post" onsubmit="return procFilter(this, update_layout_code);">
<input type="hidden" name="layout_srl" value="{$layout_srl}" />
<input type="hidden" name="module" value="layout" />
<input type="hidden" name="act" value="" />
<div>
<textarea name="code" style="width:99%;height:400px;border:2px solid #DDDDDD;">{htmlspecialchars($layout_code)}</textarea>
</div>
<div>
<input type="submit" value="{$lang->cmd_save}" />
<input type="button" value="{$lang->cmd_preview}" onclick="doPreviewLayoutCode();return false" />
<input type="button" value="{$lang->cmd_reset}" onclick="doResetLayoutCode('{$layout_srl}');return false" />
</div>
</form>
</div>