git-svn-id: http://xe-core.googlecode.com/svn/trunk@1167 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-16 09:10:54 +00:00
parent 8b610f5334
commit 6b38f2b8bd
35 changed files with 300 additions and 599 deletions

View file

@ -1,4 +1,3 @@
<!--%import("filter/update_layout_info.xml")-->
<!--%import("filter/insert_layout_menu.xml")-->
<!--%import("filter/delete_layout_menu.xml")-->
<!--%import("filter/move_layout_menu.xml")-->
@ -12,79 +11,6 @@
<input type="hidden" name="target_node_srl" />
</form>
<div style="margin-bottom:10px;">
<table border="1" width="100%">
<col width="140" />
<col width="*" />
<tr>
<th>{$lang->layout}</th>
<td>{$layout_info->title} ver {$layout_info->version} ({$layout_info->layout})</td>
</tr>
<tr>
<th>{$lang->path}</th>
<td>{$layout_info->path}</td>
</tr>
<tr>
<th>{$lang->author}</th>
<td><a href="#" onclick="window.open('{$layout_info->author->homepage}');return false;">{$layout_info->author->name}</a></td>
</tr>
<tr>
<th>{$lang->description}</th>
<td>{nl2br($layout_info->author->description)}</td>
</tr>
</table>
</div>
<div style="margin-bottom:10px;">
<form id="fo_layout" action="./" method="get" onsubmit="return procFilter(this, update_layout_info)">
<input type="hidden" name="layout_srl" value="{$layout_srl}" />
<input type="hidden" name="layout" value="{$layout_info->layout}" />
<table border="1" width="100%">
<col width="140" />
<col width="*" />
<tr>
<th>{$lang->title}</th>
<td><input type="text" name="title" value="{htmlspecialchars($layout_info->layout_title)}" /></td>
</tr>
<!--@foreach($layout_info->extra_var as $id => $var)-->
<tr>
<th rowspan="2">{$var->name}</th>
<!--@if($var->type == "text")-->
<td><input type="text" name="{$id}" value="{htmlspecialchars($var->value)}" /></td>
<!--@elseif($var->type == "textarea")-->
<td><textarea name="{$id}">{htmlspecialchars($var->value)}</textarea></td>
<!--@elseif($var->type == "select")-->
<td>
<select name="{$id}">
<!--@foreach($var->options as $key => $val)-->
<option value="{$key}" <!--@if($key==$var->value)-->selected="true"<!--@end-->>{$val}</option>
<!--@end-->
</select>
</td>
<!--@end-->
</tr>
<tr>
<td>{$var->description}</td>
</tr>
<!--@end-->
<tr>
<td colspan="2" align="center">
<!--@if($module=='admin')-->
<input type="button" value="{$lang->cmd_list}" onclick="location.href='{getUrl('act','dispLayoutAdminContent')}';return false;"/>
<!--@else-->
<input type="button" value="{$lang->cmd_back}" onclick="location.href='{getUrl('act','')}';return false;"/>
<!--@end-->
<input type="submit" value="{$lang->cmd_save}" />
</td>
</tr>
</table>
</form>
</div>
<div style="margin-bottom:10px;">
<div>
<h4>{$lang->menu_management}</h4>
@ -97,7 +23,7 @@
<input type="hidden" name="layout" value="{$layout_info->layout}" />
<input type="hidden" name="menu_id" value="{$menu_id}" />
<input type="hidden" name="menu_title" value="{$menu->name}" />
<input type="hidden" name="xml_file" value="{$menu->xml_file}" />
<input type="hidden" name="xml_file" value="{$menu_info->xml_file}" />
<table border="1" width="100%">
<col width="300" />
@ -122,7 +48,7 @@
</table>
</form>
<script type="text/javascript">
loadTreeMenu("{$menu->xml_file}", "{$menu_id}", "menu_zone_{$menu_id}", "{$menu->name} ({$lang->limit_menu_depth} : {$menu->maxdepth} {$lang->depth})", doGetMenuInfo, 0, doMoveTree);
loadTreeMenu("{$menu_info->xml_file}", "{$menu_id}", "menu_zone_{$menu_id}", "{$menu_info->name} ({$lang->limit_menu_depth} : {$menu_info->maxdepth} {$lang->depth})", doGetMenuInfo, 0, doMoveTree);
</script>
<br />
<!--@end-->