<!--#
##
#	Project: PHPDISK File Storage Solution
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.phpdisk.com
#
#	$Id: menu.tpl.html 31 2011-03-09 01:46:49Z along $
#
#	Copyright (C) 2008-2011 PHPDisk Team. All Rights Reserved.
#
##
#-->
<html>
<head>
<meta http-equiv="content-Type" content="text/html; charset={$charset}" />
<title>[menu] - Powered by PHPDisk Team</title>
<link href="{$user_tpl_dir}images/mydisk.css" rel=stylesheet type=text/css>
<script type="text/javascript" src="includes/js/jquery.js"></script>
<script type="text/javascript" src="includes/js/common.js"></script>
<script type="text/javascript" src="includes/js/tree.js"></script>
<script lanuage="javascript">
function expand(id) {
	if(getId('box_'+id).style.display == ''){
		getId('box_'+id).style.display = 'none';
		getId('img_'+id).src = "images/menu_close.gif";
		setCookie('mydisk_menu_'+id,1,30);
	}else{
		getId('box_'+id).style.display = '';
		getId('img_'+id).src = "images/menu_open.gif";
		setCookie('mydisk_menu_'+id,0,30);
	}
}
$(document).ready(function(){
	$("#menu_container li").mouseover(function(){
		$(this).addClass("m_over");
	}).mouseout(function(){
		$(this).removeClass("m_over");
	});
});
</script>
</head>

<body style="margin:0; padding:0; background:url({$user_tpl_dir}images/menu_leftbg.gif) bottom repeat-y">
<div id="menu_container">
<!--#if($op =='file'){#-->
<div class="menu_box">
<div class="title"><img align="absmiddle" src="images/menu_open.gif" border=0>{$L['folder_list']}</div>
<script type="text/javascript">
tr = new tree('tr');
{$folder_list}
document.write(tr);
</script>
</div>
<!--#}elseif($op == 'public'){#-->
<div class="menu_box">
<div class="title"><img align="absmiddle" src="images/menu_open.gif" border=0>{$L['public_category']}</div>
<script type="text/javascript">
tr = new tree('tr');
{$public_folder_tree}
document.write(tr);
</script>
<ul>
	<li><a href="{#urr("mydisk","item=public&action=index")#}" target="mainframe"><img align="absmiddle" src="images/tree/base.gif" border=0>{$L['temp_store_space']}</a></li>
</ul>
</div>
<br />
<div class="menu_box">
<div class="title" onClick="expand(1);"><img id="img_1" align="absmiddle" src="images/menu_open.gif" border=0>{$L['data_stats']}</div>
<div id="box_1">
	<li>{$L['file_count']}: {$file_count}</li>
	<li>{$L['total_space']}: {$total_space}</li>
</div>	
</div>
<!--#}elseif($op =='profile'){#-->
<div class="menu_box">
<div class="title" onClick="expand(1);"><img id="img_1" align="absmiddle" src="images/menu_open.gif" border=0>{$L['menu_profile']}</div>
<div id="box_1">
	<li><a href="{#urr("mydisk","item=profile&action=mypower")#}" target="mainframe">{$L['menu_my_power']}</a></li>
	<li><a href="{#urr("mydisk","item=profile&action=password")#}" target="mainframe">{$L['menu_password_modify']}</a></li>
	<li><a href="{#urr("mydisk","item=profile&action=exchange")#}" target="mainframe">{$L['menu_credit_exchange']}</a></li>
	<!--#if(display_plugin('payment','open_payment_plugin',$settings['open_payment'],0)){#-->
	<li><a href="{#urr("mydisk","item=profile&action=payment")#}" target="mainframe">{$L['menu_profile_payment']}</a></li>
	<li><a href="{#urr("mydisk","item=profile&action=history")#}" target="mainframe">{$L['menu_profile_history']}</a></li>
	<!--#}#-->
	<!--#if(display_plugin('filelog','open_filelog_plugin',($settings['open_filelog'] && $settings['open_down_filelog']),0)){#-->
	<li><a href="{#urr("mydisk","item=stats")#}" target="mainframe">{$L['menu_stats_down']}</a></li>
	<!--#}#-->
</div>
</div>
<br/>
<div class="menu_box">
<div class="title" onClick="expand(2);"><img id="img_2" align="absmiddle" src="images/menu_open.gif" border=0>{$L['menu_buddy']}</div>
<div id="box_2">
	<li><a href="{#urr("mydisk","item=buddy&action=mybuddy")#}" target="mainframe">{$L['menu_my_buddy']}</a></li>
	<li><a href="{#urr("mydisk","item=buddy&action=whobuddy")#}" target="mainframe">{$L['menu_who_buddy']}</a></li>
	<li><a href="{#urr("mydisk","item=buddy&action=invite")#}" target="mainframe">{$L['menu_invite_buddy']}</a></li>
	<li><a href="{#urr("mydisk","item=buddy&action=invite_success")#}" target="mainframe">{$L['menu_invite_success_buddy']}</a></li>
</div>
</div>
<br/>
<div class="menu_box">
<div class="title" onClick="expand(3);"><img id="img_3" align="absmiddle" src="images/menu_open.gif" border=0>{$L['menu_message']}</div>
<div id="box_3">
	<li><a href="{#urr("mydisk","item=message&action=inbox")#}" target="mainframe">{$L['menu_msg_inbox']}{$new_msg}</a></li>
	<li><a href="{#urr("mydisk","item=message&action=sendbox")#}" target="mainframe">{$L['menu_msg_sendbox']}</a></li>
</div>
</div>
<br/>
<!--#}elseif($op =='disk'){#-->
<div class="menu_box">
<div class="title" onClick="expand(1);"><img id="img_1" align="absmiddle" src="images/menu_open.gif" border=0>{$L['menu_op_panel']}</div>
<div id="box_1">
	<!--#if(display_plugin('disk','open_disks_plugin',$settings['open_disks'],0)){#-->
	<li><a href="{#urr("mydisk","item=disk")#}" target="mainframe">{$L['menu_disk_setting']}</a></li>
	<!--#}#-->
</div>
</div>
<br />
<!--#}elseif($op =='recycle'){#-->
<div class="menu_box">
<div class="title" onClick="expand(1);"><img id="img_1" align="absmiddle" src="images/menu_open.gif" border=0>{$L['menu_files_recycle']}</div>
<div id="box_1">
	<li><a href="{#urr("mydisk","item=recycle&action=delete_all")#}" target="mainframe">{$L['menu_delete_all']}</a></li>
	<li><a href="{#urr("mydisk","item=recycle&action=restore_all")#}" target="mainframe">{$L['menu_restore_all']}</a></li>
</div>
</div>
<br/>
<div class="menu_box">
<div class="title" onClick="expand(2);"><img id="img_2" align="absmiddle" src="images/menu_open.gif" border=0>{$L['data_stats']}</div>
<div id="box_2">
	<li>{$L['folder_count']}: {$folder_count}</li>
	<li>{$L['file_count']}: {$file_count}</li>
	<li>{$L['total_space']}: {$total_space}</li>
</div>
</div>
<br/>
<!--#}#-->
</div>
</body>
</html>
