<!--#
##
#	Project: PHPDISK File Storage Solution
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.phpdisk.com
#
#	$Id: menu.tpl.php 67 2016-08-05 07:26:31Z along $
#
#	Copyright (C) 2008-2016 PHPDisk Team. All Rights Reserved.
#
##
#-->
<?php !defined('IN_PHPDISK') && exit('[PHPDisk] Access Denied!'); ?>
<script type="text/javascript" src="includes/js/tree.js"></script>
<div id="menu_container">
<!--#if($menu =='file'){#-->	
<div class="subnav2">
	<h3><img align="absmiddle" src="images/menu_open.gif" border=0><?=__('folder_list')?></h3>
	<ul>
	<script type="text/javascript">
	tr = new tree('tr');
	{$folder_list}
	document.write(tr);
	</script>
	</ul>
</div>
<!--#}elseif($menu == 'share'){#-->
<div class="subnav">
	<h3><img align="absmiddle" src="images/menu_open.gif" border=0>共享给公司</h3>
	<ul>
	<li><a href="{#urr("mydisk","item=share&menu=$menu&action=corp_folders")#}">共享目录</a></li>
	<li><a href="{#urr("mydisk","item=share&menu=$menu&action=corp_files")#}">共享文件</a></li>
	</ul>
</div>
<div class="subnav">
	<h3><img align="absmiddle" src="images/menu_open.gif" border=0>共享给部门</h3>
	<ul>
	<li><a href="{#urr("mydisk","item=share&menu=$menu&action=depart_folders")#}">共享目录</a></li>
	<li><a href="{#urr("mydisk","item=share&menu=$menu&action=depart_files")#}">共享文件</a></li>
	</ul>
</div>
<div class="subnav">
	<h3><img align="absmiddle" src="images/menu_open.gif" border=0>共享给其他部门</h3>
	<ul>
	<li><a href="{#urr("mydisk","item=share&menu=$menu&action=other_depart_folders")#}">共享目录</a></li>
	<li><a href="{#urr("mydisk","item=share&menu=$menu&action=other_depart_files")#}">共享文件</a></li>
	</ul>
</div>
<div class="subnav">
	<h3><img align="absmiddle" src="images/menu_open.gif" border=0>共享给好友</h3>
	<ul>
	<li><a href="{#urr("mydisk","item=share&menu=$menu&action=buddy_folders")#}">共享目录</a></li>
	<li><a href="{#urr("mydisk","item=share&menu=$menu&action=buddy_files")#}">共享文件</a></li>
	</ul>
</div>
<!--#}elseif($menu == 'public'){#-->
<div class="subnav">
	<h3><img align="absmiddle" src="images/menu_open.gif" border=0>公司的共享</h3>
	<ul>
	<li><a href="{#urr("mydisk","item=public&menu=$menu&action=corp_folders")#}">共享目录</a></li>
	<li><a href="{#urr("mydisk","item=public&menu=$menu&action=corp_files")#}">共享文件</a></li>
	</ul>
</div>
<div class="subnav">
	<h3><img align="absmiddle" src="images/menu_open.gif" border=0>(其他)部门的共享</h3>
	<ul>
	<li><a href="{#urr("mydisk","item=public&menu=$menu&action=depart_folders")#}">共享目录</a></li>
	<li><a href="{#urr("mydisk","item=public&menu=$menu&action=depart_files")#}">共享文件</a></li>
	</ul>
</div>
<div class="subnav">
	<h3><img align="absmiddle" src="images/menu_open.gif" border=0>好友的共享</h3>
	<ul>
	<li><a href="{#urr("mydisk","item=public&menu=$menu&action=buddy_folders")#}">共享目录</a></li>
	<li><a href="{#urr("mydisk","item=public&menu=$menu&action=buddy_files")#}">共享文件</a></li>
	</ul>
</div>
<!--#}elseif($menu =='buddy'){#-->
<div class="subnav">
	<h3><img align="absmiddle" src="images/menu_open.gif" border=0><?=__('menu_buddy')?></h3>
	<ul>
	<li id="lm_mybuddy"><a href="{#urr("mydisk","item=buddy&menu=$menu&action=mybuddy")#}"><?=__('menu_my_buddy')?></a></li>
	<li id="lm_whobuddy"><a href="{#urr("mydisk","item=buddy&menu=$menu&action=whobuddy")#}"><?=__('menu_who_buddy')?></a></li>
	<li id="lm_mydepart"><a href="{#urr("mydisk","item=buddy&menu=$menu&action=mydepart")#}">我的同事</a></li>
	<li id="lm_corp_depart"><a href="{#urr("mydisk","item=buddy&menu=$menu&action=corp_depart")#}">企业架构</a></li>
	</ul>
</div>	
<div class="subnav2" style="padding:5px; margin-left:8px">	
	<ul>
	<script type="text/javascript" src="includes/js/tree2.js"></script>
	<script type="text/javascript">
	tr2 = new tree2('tr2');
	{$depart_list}
	document.write(tr2);
	</script>
	</ul>
</div>
<!--#}elseif($menu =='profile'){#-->
<div class="subnav">
	<h3><img align="absmiddle" src="images/menu_open.gif" border=0><?=__('menu_profile')?></h3>
	<ul>
	<li id="lm_mypower"><a href="{#urr("mydisk","item=profile&menu=$menu&action=mypower")#}"><?=__('menu_mypower')?></a></li>
	<li id="lm_mycontact"><a href="{#urr("mydisk","item=profile&menu=$menu&action=mycontact")#}">联系信息</a></li>
	<li id="lm_password"><a href="{#urr("mydisk","item=profile&menu=$menu&action=password")#}"><?=__('menu_password_modify')?></a></li>
	<!--#if($auth[can_view_log]){#-->
	<li id="lm_stats"><a href="{#urr("mydisk","item=profile&menu=$menu&action=stats")#}">访问日志</a></li>
	<!--#}#-->
	</ul>
</div>
<div class="subnav">
	<h3><img align="absmiddle" src="images/menu_open.gif" border=0><?=__('menu_message')?></h3>
	<ul>
	<li id="lm_inbox"><a href="{#urr("mydisk","item=message&menu=$menu&action=inbox")#}"><?=__('menu_msg_inbox')?>{$new_msg}</a></li>
	<li id="lm_sendbox"><a href="{#urr("mydisk","item=message&menu=$menu&action=sendbox")#}"><?=__('menu_msg_sendbox')?></a></li>
	</ul>
</div>
<!--#}elseif($menu =='recycle'){#-->
<div class="subnav">
	<h3><img align="absmiddle" src="images/menu_open.gif" border=0><?=__('menu_files_recycle')?></h3>
	<ul>
	<li id="lm_delete_all"><a href="{#urr("mydisk","item=recycle&menu=$menu&action=delete_all")#}"><?=__('menu_delete_all')?></a></li>
	<li id="lm_restore_all"><a href="{#urr("mydisk","item=recycle&menu=$menu&action=restore_all")#}"><?=__('menu_restore_all')?></a></li>
	</ul>
</div>
<!--#}#-->
</div>
<!--#if($action){#-->
<script type="text/javascript">
$('#lm_{$action}').addClass('current');
</script>
<!--#}#-->
