<{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}>_' + id).attr('value',value);
            jQuery('#<{$dirname}>_op').attr('value','index');
            form.submit();
            return false;
        }
    });
});
</script>

<form id="<{$dirname}>_itemform" name="<{$dirname}>_itemform" action="maintenance_itemtransfer.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>
    <th style="text-align: left;" colspan="2"><{$smarty.const._AM_XOONIPS_MAINTENANCE_ITEMTRANSFER_FROM}></th>
  </tr>
  <tr>
	<td style="width: 20%; text-align: left;" class="head">
	  <table>
	  <tr>
	  <td style="text-align: left;border: 0px;"><{$smarty.const._AM_XOONIPS_MAINTENANCE_ITEMTRANSFER_USER}></td>
	  <td style="text-align: right; border: 0px;"><input type="button" href="../userselectsub.php?callbackid=searchUserID_from&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_from|xoops_escape}>
	<input type="hidden" id="<{$dirname}>_searchUserID_from" name="searchUserID_from" value="<{$searchUserID_from}>">
	<input type="hidden" id="<{$dirname}>_searchUserName_from" name="searchUserName_from" value="<{$searchUserName_from}>">
    </td>
  </tr>
<{if $index_from_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_from}>
	jQuery('#<{$dirname}>_item_transfer_index_from_tree_<{$index.index_id}>').treeview({
			control: '#<{$dirname}>_item_transfer_treecontrol',
			persist: 'cookie',
			cookieId: '<{$dirname}>_item_transfer_index_from_treeview_<{$index.index_id}>'
		});
	<{/foreach}>

	jQuery('#<{$dirname}>_item_transfer_index_from_tree_tabs').tabs({
		cookie: {}
	});
});
</script>
<div id="<{$dirname}>_item_transfer_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_transfer_index_from_tree_tabs">
<ul>
<{foreach item=index from=$indexes_from}>
	<li><a href="#<{$dirname}>_item_transfer_index_from_tree_div_<{$index.index_id}>"><{$index.title|xoops_escape}></a></li>
<{/foreach}>
</ul>
<{foreach item=tree from=$trees_from}>
	<div id="<{$dirname}>_item_transfer_index_from_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_transfer_index_from_tree_<{$tree.index_id}>" class="filetree">
	<{$tree.html}>
	</ul>
	</div>
<{/foreach}>
</div>
    </td>
  </tr>
<{/if}>
  </tbody>
</table>

<{if $index_from_flg}>
<table width="100%" cellspacing="0" class="outer">
  <tbody>
  <tr>
    <th style="text-align: left;" colspan="2"><{$smarty.const._AM_XOONIPS_MAINTENANCE_ITEMTRANSFER_TO}></th>
  </tr>
  <tr>
	<td style="width: 20%; text-align: left;" class="head">
	  <table>
	  <tr>
	  <td style="text-align: left;border: 0px;"><{$smarty.const._AM_XOONIPS_MAINTENANCE_ITEMTRANSFER_USER}></td>
	  <td style="text-align: right; border: 0px;"><input type="button" href="../userselectsub.php?callbackid=searchUserID_to&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_to|xoops_escape}>
	<input type="hidden" id="<{$dirname}>_searchUserID_to" name="searchUserID_to" value="<{$searchUserID_to}>">	
	<input type="hidden" id="<{$dirname}>_searchUserName_to" name="searchUserName_to" value="<{$searchUserName_to}>">	
    </td>
  </tr>
<{if $index_to_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_to}>
	jQuery('#<{$dirname}>_item_transfer_index_to_tree_<{$index.index_id}>').treeview({
			control: '#<{$dirname}>_item_transfer_treecontrol',
			persist: 'cookie',
			cookieId: '<{$dirname}>_item_transfer_index_to_treeview_<{$index.index_id}>'
		});
	<{/foreach}>

	jQuery('#<{$dirname}>_item_transfer_index_to_tree_tabs').tabs({
		cookie: {}
	});
});
</script>
<div id="<{$dirname}>_item_transfer_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_transfer_index_to_tree_tabs">
<ul>
<{foreach item=index from=$indexes_to}>
	<li><a href="#<{$dirname}>_item_transfer_index_to_tree_div_<{$index.index_id}>"><{$index.title|xoops_escape}></a></li>
<{/foreach}>
</ul>
<{foreach item=tree from=$trees_to}>
	<div id="<{$dirname}>_item_transfer_index_to_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_transfer_index_to_tree_<{$tree.index_id}>" class="filetree">
	<{$tree.html}>
	</ul>
	</div>
<{/foreach}>
</div>
    </td>
  </tr>
<{/if}>
  </tbody>
</table>
<{/if}>
<{if $index_to_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"}>