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

<script type="text/javascript" charset="utf-8">
jQuery.noConflict();
jQuery(function(){
    jQuery('#<{$dirname}>_itemform :button[rel^="prettyPopin"]').prettyPopin({
        width : 400, /* false/integer */
        height: 400, /* false/integer */
        opacity: 0.5, /* value from 0 to 1 */
        animationSpeed: '0', /* slow/medium/fast/integer */
        close : false, /* true/false */
        followScroll: false, /* true/false */
        overflow : 'hidden', /* scroll/hidden */
        divname : 'prettyPopin',
        dirname : '<{$dirname}>',
        loader_path: './images/loader.gif', /* path to your loading image */
        callback: function(id, value) {
            var form=jQuery('#<{$dirname}>_itemform');
            jQuery('#<{$dirname}>_searchUserID').attr('value',value);
            jQuery('#<{$dirname}>_op').attr('value','index');
            form.submit();
            return false;
        }
    });
});
</script>

<form id="<{$dirname}>_itemform" name="<{$dirname}>_itemform" action="maintenance_itemdelete.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>
  <tr>
	<td style="width: 20%; text-align: left;" class="head">
	  <table>
	  <tr>
	  <td style="text-align: left;border: 0px;"><{$smarty.const._AM_XOONIPS_MAINTENANCE_ITEMDELETE_USER}></td>
	  <td style="text-align: right; border: 0px;"><input type="button" href="../userselectsub.php?callbackid=searchUserID&mode=single" rel="prettyPopin" value="<{$smarty.const._MD_XOONIPS_ITEM_SEARCH_BUTTON_LABEL}>"></td>
      </tr>
	  </table>
	</td>
	<td class="even" style="width: 80%; vertical-align: top;">
	<{$searchUserName|xoops_escape}>
	<input type="hidden" id="<{$dirname}>_searchUserID" name="searchUserID" value="<{$searchUserID}>">
	<input type="hidden" id="<{$dirname}>_searchUserName" name="searchUserName" value="<{$searchUserName}>">
    </td>
  </tr>
<{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_delete_index_tree_<{$index.index_id}>').treeview({
			control: '#<{$dirname}>_item_delete_treecontrol',
			persist: 'cookie',
			cookieId: '<{$dirname}>_item_delete_index_treeview_<{$index.index_id}>'
		});
	<{/foreach}>

	jQuery('#<{$dirname}>_item_delete_index_tree_tabs').tabs({
		cookie: {}
	});
});
</script>
<div id="<{$dirname}>_item_delete_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_delete_index_tree_tabs">
<ul>
<{foreach item=index from=$indexes}>
	<li><a href="#<{$dirname}>_item_delete_index_tree_div_<{$index.index_id}>"><{$index.title|xoops_escape}></a></li>
<{/foreach}>
</ul>
<{foreach item=tree from=$trees}>
	<div id="<{$dirname}>_item_delete_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_delete_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"}>