<!--#
##
#	Project: PHPDISK File Storage Solution
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.phpdisk.com
#
#	$Id: admincp.tpl.html 2 2011-05-27 02:59:23Z along $
#
#	Copyright (C) 2008-2011 PHPDisk Team. All Rights Reserved.
#
##
#-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<title>{$L['admin_control_panel']} - Powered by PHPDisk Team</title>
<link rel="shortcut icon" href="favicon.ico">
<meta name="copyright" content="Powered by PHPDisk Team, {PHPDISK_EDITION} {PHPDISK_VERSION} build{PHPDISK_RELEASE}" />
<meta name="generator" content="PHPDisk {PHPDISK_VERSION}" />
<link href="{$admin_tpl_dir}images/admincp.css" rel="stylesheet" type="text/css" >
<script type="text/javascript" src="includes/js/common.js"></script>
<script type=text/javascript>
function expand_menu(){
	if(getId('admincp_left_frame').style.display =='none'){
		getId('admincp_left_frame').style.display = '';
		getId('menu_img').src = "{$admin_tpl_dir}images/menu_left.gif";
		setCookie('admincp_left_frame_status',1,30);
		getId('menu_img').alt = "{$L['close_menu']}";
	}else{
		getId('admincp_left_frame').style.display = 'none';
		getId('menu_img').src = "{$admin_tpl_dir}images/menu_right.gif";
		setCookie('admincp_left_frame_status',0,30);
		getId('menu_img').alt = "{$L['open_menu']}";
	}
}
function set_menu(url,id){
	getId(id).src = url;
}
function set_hl(n) {
	var hl = document.getElementsByTagName('li');
	for(var i = 0; i < hl.length; i++) {
		hl[i].id = '';
	}
	hl[n].id = "admin_nav_sel";
}	
</script>
</head>

<body scroll="no">
<table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0" style="background:url({$admin_tpl_dir}images/logo_cp.gif) no-repeat">
  <tr>
  	<td height="50" colspan="4">
  	  <div class="admin_nav">
  	    <ul>
  	      <li><a href="#" onClick="set_hl(0);set_menu('{#urr("admincp","item=menu&op=base")#}','leftframe');set_menu('{#urr("admincp","item=main")#}','mainframe');return false;">{$L['menu_site_setting']}</a></li>
  	      <li><a href="#" onClick="set_hl(1);set_menu('{#urr("admincp","item=menu&op=user")#}','leftframe');set_menu('{#urr("admincp","item=users&action=index")#}','mainframe');return false;">{$L['menu_user_setting']}</a></li>
  	      <li><a href="#" onClick="set_hl(2);set_menu('{#urr("admincp","item=menu&op=file")#}','leftframe');set_menu('{#urr("admincp","item=files&action=index")#}','mainframe');return false;">{$L['menu_files_manage']}</a></li>
  	      <li><a href="#" onClick="set_hl(3);set_menu('{#urr("admincp","item=menu&op=plugin")#}','leftframe');set_menu('{#urr("admincp","item=plugins")#}','mainframe');return false;">{$L['menu_plugins_manage']}</a></li>
  	      <li><a href="#" onClick="set_hl(4);set_menu('{#urr("admincp","item=menu&op=lang_tpl")#}','leftframe');set_menu('{#urr("admincp","item=templates")#}','mainframe');return false;">{$L['menu_template_language']}</a></li>
  	      <li><a href="#" onClick="set_hl(5);set_menu('{#urr("admincp","item=menu&op=extend")#}','leftframe');set_menu('{#urr("admincp","item=advertisement")#}','mainframe');return false;">{$L['menu_extend_tools']}</a></li>
  	      <li><a href="#" onClick="set_hl(6);set_menu('{#urr("admincp","item=menu&op=tool")#}','leftframe');set_menu('{#urr("admincp","item=database&action=optimize")#}','mainframe');return false;">{$L['menu_system_tools']}</a></li>
        </ul>
  	    <div id="sitemap"><a href="#" onClick="set_menu('{#urr("admincp","item=sitemap")#}','mainframe');return false;" title="{$L['sitemap_tips']}">【SiteMap】</a>&nbsp;&nbsp;</div>
      </div>    </td>
  </tr>
  <tr>
    <td valign="center" align="middle" width="150" id="admincp_left_frame" >
	  <iframe style="z-index: 1; visibility: inherit;overflow:auto; width: 150px; height: 100%" name="leftframe" id="leftframe" src="{#urr("admincp","item=menu")#}" frameborder="0" scrolling="yes"></iframe>
	  </td>
	  <td class="expand_menu">
	  <img id="menu_img" align="absmiddle" src="{$admin_tpl_dir}images/menu_left.gif" border="0" onClick="expand_menu();">
	  </td>
		<td style="width: 100%">
			<iframe style="z-index: 1; visibility: inherit; overflow: auto; width: 100%; height: 100%;" name="mainframe" id="mainframe" src="{#urr("admincp","item=main&action=index")#}" frameborder="0" scrolling="yes"></iframe>
		</td>
		</tr>
	</tbody>
	</table>
	<script type="text/javascript">
	if(getCookie('admincp_left_frame_status')=='0'){
		getId('admincp_left_frame').style.display = 'none';
		getId('menu_img').src = "{$admin_tpl_dir}images/menu_right.gif";
		getId('menu_img').alt = "{$L['open_menu']}";
	}else{
		getId('admincp_left_frame').style.display = '';
		getId('menu_img').src = "{$admin_tpl_dir}images/menu_left.gif";
		getId('menu_img').alt = "{$L['close_menu']}";
	}
	</script>
</body>
</html>
