rhymix/modules/menu/tpl/menu_item_info.html
2012-03-05 09:16:55 +00:00

123 lines
4.6 KiB
HTML

<input type="hidden" name="menu_item_srl" value="{$item_info->menu_item_srl}" />
<input type="hidden" name="parent_srl" value="{$item_info->parent_srl}" />
<input type="hidden" name="normal_btn" value="{$item_info->normal_btn}" />
<input type="hidden" name="hover_btn" value="{$item_info->hover_btn}" />
<input type="hidden" name="active_btn" value="{$item_info->active_btn}" />
<div class="layer" style="display:block;">
<h3 class="h3">{$lang->menu}</h3>
<button type="button" onclick="hideCategoryInfo();return false" >{$lang->cmd_close}</button>
<div class="layerBody">
<div class="table">
<table width="100%" border="1" cellspacing="0">
<!--@if($item_info->parent_menu_name)-->
<tr class="row{$cycle_idx}">
<th scope="row">{$lang->parent_menu_name}</th>
<td>{$item_info->parent_menu_name}</td>
</tr>
<!--@end-->
<tr>
<th scope="row">{$lang->menu_name}</th>
<td>
<input type="text" name="menu_name" id="menu_name" value="{$item_info->name}" />
<a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','menu_name')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a> </td>
</tr>
<tr>
<th scope="row">{$lang->menu_url}</th>
<td>
<input type="text" name="menu_url" value="{$item_info->url}" />
<a href="{getUrl('module','menu','act','dispMenuAdminMidList')}" onclick="popopen(this.href);return false;" class="button black"><span>{$lang->cmd_search_mid}</span> </a>
<p>{$lang->about_menu_url}</p>
</td>
</tr>
<tr>
<th scope="row">{$lang->menu_open_window}</th>
<td> <input type="checkbox" name="menu_open_window" value="Y" <!--@if($item_info->open_window=="Y")-->checked="checked"<!--@end--> />
<p>{$lang->about_menu_open_window}</p>
</td>
</tr>
<tr>
<th scope="row">{$lang->menu_expand}</th>
<td> <input type="checkbox" name="menu_expand" value="Y" <!--@if($item_info->expand=="Y")-->checked="checked"<!--@end--> />
<p>{$lang->about_menu_expand}</p>
</td>
</tr>
<tr>
<th scope="row">{$lang->menu_img_btn}</th>
<td>
<p>{$lang->about_menu_img_btn}</p>
</td>
</tr>
<tr>
<th scope="row">{$lang->menu_normal_btn}</th>
<td> <div id="menu_normal_btn_zone" <!--@if(!$item_info->normal_btn)-->style="display:none;"<!--@end-->> <img src="{$item_info->normal_btn}" alt="" id="menu_normal_btn_img" /><br />
<button type="button" onclick="doDeleteButton('menu_normal_btn');">{$lang->cmd_delete}</button>
</div>
<input type="file" name="menu_normal_btn" value="" onchange="doMenuUploadButton(this); return false;"/>
</td>
</tr>
<tr>
<th scope="row">{$lang->menu_hover_btn}</th>
<td> <div id="menu_hover_btn_zone") <!--@if(!$item_info->hover_btn)-->style="display:none;"<!--@end-->> <img src="{$item_info->hover_btn}" alt="" id="menu_hover_btn_img" /><br />
<button type="button" onclick="doDeleteButton('menu_hover_btn');return false;">{$lang->cmd_delete}</button>
</div>
<input type="file" name="menu_hover_btn" value="" onchange="doMenuUploadButton(this); return false;"/>
</td>
</tr>
<tr>
<th scope="row">{$lang->menu_active_btn}</th>
<td> <div id="menu_active_btn_zone" <!--@if(!$item_info->active_btn)-->style="display:none;"<!--@end-->> <img src="{$item_info->active_btn}" alt="" id="menu_active_btn_img" /><br />
<button type="button" onclick="doDeleteButton('menu_active_btn');return false;">{$lang->cmd_delete}</button>
</div>
<input type="file" name="menu_active_btn" value="" onchange="doMenuUploadButton(this); return false;"/>
</td>
</tr>
<tr>
<th scope="row">{$lang->menu_group_srls}</th>
<td>
<!--@foreach($group_list as $key=>$val)-->
<input type="checkbox" name="group_srls[]" value="{$key}" id="group_{$key}" <!--@if(is_array($item_info->group_srls)&&in_array($key, $item_info->group_srls))-->checked="checked"<!--@end-->/>
<label for="group_{$key}">{$val->title}</label>
<!--@end-->
<p>{$lang->about_menu_group_srls}</p>
</td>
</tr>
</table>
</div>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_save}" /></span>
</div>
<script type="text/javascript">
(function($){
$("[name^=menu_name_]").bind("blur",function(e){
if($("[name=ck_"+$(this).attr("name")+"]:checked").size()>0){
$("[name^=ck_menu_name_]:checked").each(function(i){
$("[name="+$(this).attr("name").substring(3)+"]").val(e.target.value);
});
}
});
$('input#menu_name').focus();
})(jQuery);
</script>
</div>
</div>