<{include file="file:admin_header.html"}>

<script type="text/javascript" charset="utf-8">
jQuery.noConflict();
</script>

<form id="<{$dirname}>_itemform" name="<{$dirname}>_itemform" action="maintenance_itemwithdraw.php" method="post" enctype="multipart/form-data"<{$accept_charset}>>
<input id="<{$dirname}>_op" type="hidden" name="op" value="">
<{$token_ticket}>
<table width="100%" cellspacing="0" class="outer">
  <tbody>
<{if $index_flg}>
  <tr>
    <td style="width: 20%; text-align: left;" class="head"><{$smarty.const._AM_XOONIPS_MAINTENANCE_ITEM_INDEX}></td>
    <td style="width: 80%; text-align: left;" class="odd">
<script type="text/javascript" charset="utf-8">
jQuery(function(){
	<{foreach item=index from=$indexes}>
	jQuery('#<{$dirname}>_item_withdraw_index_tree_<{$index.index_id}>').treeview({
			control: '#<{$dirname}>_item_withdraw_treecontrol',
			persist: 'cookie',
			cookieId: '<{$dirname}>_item_withdraw_index_treeview_<{$index.index_id}>'
		});
	<{/foreach}>

	jQuery('#<{$dirname}>_item_withdraw_index_tree_tabs').tabs({
		cookie: {}
	});
});
</script>
<div id="<{$dirname}>_item_withdraw_treecontrol" style="float: none; clear: both; margin: 0px 0px 3px 0px; padding: 0px;">
<button class="formButton" >open all</button>
<button class="formButton" >close all</button>
</div>
<div style="margin: 0px; padding: 0px;font-size:80%;" id="<{$dirname}>_item_withdraw_index_tree_tabs">
<ul>
<{foreach item=index from=$indexes}>
	<li><a href="#<{$dirname}>_item_withdraw_index_tree_div_<{$index.index_id}>"><{$index.title|xoops_escape}></a></li>
<{/foreach}>
</ul>
<{foreach item=tree from=$trees}>
	<div id="<{$dirname}>_item_withdraw_index_tree_div_<{$tree.index_id}>" style="border-right: 1px solid #404040;border-top: 1px solid #e4e4e4; border-left: 1px solid #e4e4e4;
            border-bottom: 1px solid #858585; border-right: 1px solid #858585; padding: 0px; margin: 0px;">
	<ul id="<{$dirname}>_item_withdraw_index_tree_<{$tree.index_id}>" class="filetree">
	<{$tree.html}>
	</ul>
	</div>
<{/foreach}>
</div>
    </td>
  </tr>
<{/if}>
  </tbody>
</table>
<{if $index_flg}>
<div style="text-align: left">
 	<input class="formButton" type="button" value="<{$smarty.const._AM_XOONIPS_LABEL_DECIDE}>" onclick="op.value='confirm'; submit();" />&nbsp;&nbsp;
</div>
<{/if}>
</form>


<{include file="file:admin_footer.html"}>