<div class="frame-main">
	<div class='frame-left'>
		<ul id="folder-list-tree" class="ztree"></ul>
		<div class="bottom-box">
			<div class="user-space-info"></div>
			<div class="box-content">
				<div class="cell menu-recycle-button"><i class="font-icon icon-trash"></i><span><?php echo LNG('recycle');?></span></div>
				<div class="cell menuShareButton"><i class="font-icon icon-share-sign"></i><span><?php echo LNG('my_share');?></span></div>
				<div style="clear:both"></div>
			</div>
		</div>
	</div><!-- / frame-left end-->
	
	<div class='frame-resize'></div>
	<div class='frame-right'>
		<div class="frame-header">
			<div class="header-content">
				<div class="header-left">
					<div class="btn-group btn-group-sm">
						<button class="btn btn-default" id='btn-history-back' title='<?php echo LNG('history_back');?>' type="button">
							<i class="font-icon icon-angle-left"></i>
						</button>
						<button class="btn btn-default" id='btn-history-next' title='<?php echo LNG('history_next');?>' type="button">
							<i class="font-icon icon-angle-right"></i>
						</button>
					</div>
				</div><!-- /header left -->

				<div class='header-middle'>
					<button class="btn btn-default btn-left-radius ml-10" id='home' title='<?php echo LNG('root_path');?>'>
						<i class="font-icon icon-home"></i>
					</button>
					<div id='yarnball' title="<?php echo LNG('address_in_edit');?>"></div>
					<div id='yarnball-input'><input type="text" name="path" value="" class="path" id="path"/></div>

					<button class="btn btn-default" id='fav' title='<?php echo LNG('add_to_fav');?>' type="button">
						<i class="font-icon icon-star"></i>
					</button>
					<!-- <button class="btn btn-default" id='refresh' title='<?php echo LNG('refresh_all');?>' type="button">
						<i class="font-icon icon-refresh"></i>
					</button> -->
					<button class="btn btn-default btn-right-radius" id='goto-father' title='<?php echo LNG('go_up');?>' type="button">
						<i class="font-icon icon-circle-arrow-up"></i>
					</button>
					<div class="path-tips" title="<?php echo LNG('only_read_desc');?>" title-timeout="0">
						<i class="icon-warning-sign"></i><span></span>
					</div>

					<div class="role-label-box"></div>
				</div><!-- /header-middle end-->		
				<div class='header-right' style="margin-right: 160px">
					<input type="text" name="seach" class="btn-left-radius" style="width:140px"/>
					<button class="btn btn-default btn-right-radius" id='search' title='<?php echo LNG('search');?>' type="button">
						<i class="font-icon icon-search"></i>
					</button>
				</div>

				<!--用户设置-->
				<div class="top-right">
					<?php if(!isset($config['settings']['language'])){ ?>
					<div class="menu-group">
						<a id='topbar-language' data-toggle="dropdown" href="#" class="topbar-menu hide">
							<i class='font-icon icon-flag'></i>&nbsp;<b class="caret"></b>
						</a>
						<ul class="dropdown-menu topbar-language pull-right animated menuShow" role="menu" aria-labelledby="topbar-language">
							<?php
				  		$tpl = "";
				  		foreach ($config['settingAll']['language'] as $key => $value) {
							$name = $value[0];
							$select = I18n::getType() == $key ? "this":"";
							$tpl .= "<li><a href='javascript:core.language(\"{$key}\");' title=\"{$key}/{$value[1]}/{$value[2]}\" class='{$select}'><i class='lang-flag flag-{$key}'></i>{$name}</a></li>";
							}
							echo $tpl;
							?>
						</ul>
					</div>
					<?php } ?>
					<!-- 全局设置语言则不再显示 -->

					<div class="menu-group"  style="display: ">
						<a href="#" id='topbar-user' data-toggle="dropdown" class="topbar-menu">
							<i class="font-icon icon-user"></i>
							<?php
						$user = $_SESSION['kodUser'];
						echo $user['nickName']?$user['nickName']:$user['name'];
					?>&nbsp;
							<b class="caret"></b>
						</a>
						<ul class="dropdown-menu menu-topbar-user pull-right animated menuShow" role="menu" aria-labelledby="topbar-user">
							<?php if($GLOBALS['isRoot']){ ?>
							<li class="menu-system-setting"><a href="#" onclick="core.setting('system');"><i class="font-icon icon-cog"></i><?php echo LNG('system_setting');?></a></li>
							<?php } ?>

							<?php if($GLOBALS['isRoot'] || $GLOBALS['auth']['systemMember.get']){ ?>
							<li class="menu-system-group"><a href="#" onclick="core.setting('member');"><i class="font-icon icon-group"></i><?php echo LNG('setting_member');?></a></li>
							<?php } ?>
							<?php if($GLOBALS['isRoot'] || $GLOBALS['auth']['pluginApp.index']){ ?>
							<li class="menu-system-plugin">
								<a href="#" onclick="core.openWindowBig('./kod_index.php?pluginApp/index','<?php echo LNG('PluginCenter');?>');"><i class="font-icon icon-puzzle-piece"></i><?php echo LNG('PluginCenter');?></a></li>
							<li role="presentation" class="divider"></li>
							<?php } ?>


							<li class="menu-system-user"><a href="#" onclick="core.setting('user');"><i class="font-icon icon-user"></i><?php echo LNG('setting_user');?></a></li>
							<li class="menu-system-theme"><a href="#" onclick="core.setting('theme');"><i class="font-icon icon-dashboard"></i><?php echo LNG('setting_theme');?></a></li>
							<li class="menu-system-full"><a href="#" onclick="core.fullScreen();"><i class="font-icon icon-fullscreen"></i><?php echo LNG('full_screen');?></a></li>
							<li class="menu-system-help"><a href="#" onclick="core.setting('help');"><i class="font-icon icon-question"></i><?php echo LNG('setting_help');?></a></li>
							<li class="menu-system-about"><a href="#" onclick="core.setting('about');"><i class="font-icon icon-info-sign"></i><?php echo LNG('setting_about');?></a></li>
							<li role="presentation" class="divider"></li>
							<li class="menu-system-logout"><a href="./kod_index.php?user/logout"><i class="font-icon icon-signout"></i><?php echo LNG('ui_logout');?></a></li>
						</ul>
					</div>
				</div>
			</div>
		</div><!-- / header end -->
		<div class="frame-right-main">
			<div class="tools">
				<div class="tools-left tools-left-share <?php if(ST!='share'){echo 'hidden';}?>">
					<!-- 文件功能 -->
					<div class="kod-toolbar kod-toolbar-path btn-group btn-group-sm">
						<button data-action='select-all' class="btn btn-default" type="button">
							<i class="font-icon icon-check"></i><?php echo LNG('selectAll');?>
						</button>
						<button data-action='upload' class="btn btn-default" type="button">
							<i class="font-icon icon-cloud-upload"></i><?php echo LNG('upload');?>
						</button>
						
						<button data-action='download' class="btn btn-default" type="button">
							<i class="font-icon icon-download"></i><?php echo LNG('download');?>
						</button>
					</div>
					<span class='msg'><?php echo LNG('path_loading');?></span>
					<div class="clear"></div>
				</div>


				<div class="tools-left tools-left-explorer <?php if(ST=='share'){echo 'hidden';}?>">
					<!-- 回收站tool -->
					<div class="kod-toolbar kod-toolbar-recycle btn-group btn-group-sm hidden fl-left">
						<button data-action='recycle-clear' class="btn btn-default" type="button">
							<i class="font-icon icon-folder-close-alt"></i><?php echo LNG('recycle_clear');?>
						</button>
					</div>

					<!-- 分享 tool -->
					<div class="kod-toolbar kod-toolbar-share hidden fl-left">
						<button data-action='refresh' class="btn btn-sm btn-default fl-left" type="button">
							<i class="font-icon icon-refresh"></i><?php echo LNG('refresh');?>
						</button>
						<div class="select-button-show-share btn-group btn-group-sm fl-left ml-10 mr-10 hidden">
							<button data-action='remove' class="btn btn-default" type="button">
								<i class="font-icon icon-remove"></i><?php echo LNG('share_remove');?>
							</button>
							<button data-action='shareEdit' class="btn btn-default" type="button">
								<i class="font-icon icon-edit"></i><?php echo LNG('share_edit');?>
							</button>
							<button data-action='shareOpenWindow' class="btn btn-default" type="button">
								<i class="font-icon icon-link"></i><?php echo LNG('share_open_page');?>
							</button>
						</div>
					</div>

					<!-- 文件功能 -->
					<div class="kod-toolbar kod-toolbar-path fl-left">
						<div class="select-button-default btn-group btn-group-sm fl-left mr-10">
							<button data-action='newfolder' class="btn btn-default" type="button">
								<i class="font-icon icon-folder-close-alt"></i><?php echo LNG('newfolder');?>
							</button>
							<button data-action='newfile' class="btn btn-default tool-path-newfile" type="button">
								<i class="font-icon icon-caret-down"></i>
							</button>
						</div>

						<div class="select-button-default btn-group btn-group-sm fl-left mr-10">
							<button data-action='upload' class="btn btn-default" type="button">
								<i class="font-icon icon-cloud-upload"></i><?php echo LNG('upload');?>
							</button>
							<button data-action='upload-more' class="btn btn-default tool-path-upload" type="button">
								<i class="font-icon icon-caret-down"></i>
							</button>
						</div>

						<div class="select-button-show btn-group btn-group-sm fl-left ml-10 mr-10 hidden">
							<button data-action='share' class="btn btn-default" type="button">
								<i class="font-icon icon-share"></i><?php echo LNG('share');?>
							</button>
							<button data-action='download' class="btn btn-default" type="button">
								<i class="font-icon icon-download"></i><?php echo LNG('download');?>
							</button>
							<button data-action='remove' class="btn btn-default" type="button">
								<i class="font-icon icon-remove"></i><?php echo LNG('remove');?>
							</button>
							<button data-action='rname' class="btn btn-default" type="button">
								<i class="font-icon icon-rename"></i><?php echo LNG('rename');?>
							</button>

							<button data-action='copy' class="btn btn-default" type="button">
								<i class="font-icon icon-copy"></i><?php echo LNG('copy');?>
							</button>
							<button data-action='cute' class="btn btn-default" type="button">
								<i class="font-icon icon-cute"></i><?php echo LNG('cute');?>
							</button>
							<button type="button" class="btn btn-default btn-sm toolbar-path-more fl-left mr-10">
								<i class="font-icon icon-ellipsis-horizontal"></i>
								<?php echo LNG('button_more');?>&nbsp;<span class="caret"></span>
							</button>
						</div>

						<div class="group-space-use fl-left hidden"></div>
						<div class="admin-real-path hidden fl-left">
							<button type="button" class="btn btn-default btn-sm dialog-goto-path ml-10"  title="<?php echo LNG('open_the_path');?>">
								<i class="font-icon icon-folder-open"></i>
							</button>
						</div>
						<span class='msg fl-left'><?php echo LNG('path_loading');?></span>
						<div class="clear"></div>
					</div>
				</div>
				<div class="tools-right">
					<div class="btn-group btn-group-sm">
						<button data-action='set-icon' title="<?php echo LNG('list_icon');?>" type="button" class="btn btn-default">
							<i class="font-icon icon-th"></i>
						</button>
						<button data-action='set-list' title="<?php echo LNG('list_list');?>" type="button" class="btn btn-default">
							<i class="font-icon icon-list"></i>
						</button>
						<button data-action='set-split' title="<?php echo LNG('list_list_split');?>" type="button" class="btn btn-default">
							<i class="font-icon icon-columns"></i>
						</button>

						<div class="btn-group btn-group-sm menu-theme-list" style="display: none">
						<button data-action="set-theme" title="<?php echo LNG('setting_theme');?>" type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
						  <i class="font-icon icon-dashboard"></i>&nbsp;&nbsp;<span class="caret"></span>
						</button>
						<ul class="dropdown-menu pull-right dropdown-menu-theme animated menuShow">
							<?php 
								$arr = explode(',',$config['settingAll']['themeall']);
								foreach ($arr as $value) {
									echo "<li class='list' theme='{$value}'><a href='javascript:void(0);'>".LNG('theme_'.$value)."</a></li>\n";
								}
							?>
						</ul>
					  </div>
					</div>
					<div class="set-icon-size">
						<span class="dropdown-toggle" data-toggle="dropdown">
							<i class="font-icon icon-zoom-in"></i>
						</span>
						<ul class="dropdown-menu set-icon-size-slider animated menuShow">
							<div class="slider-bg"></div>
							<div class="slider-handle"></div>
						</ul>
					</div>
				</div>
				<div style="clear:both"></div>
			</div><!-- end tools -->
			<div id='list-type-header' class="hidden">
				<div id="main-title">
					<div class="filename" field="name"><?php echo LNG('name');?><span></span></div><div class="resize filename-resize"></div>
					<div class="filetype" field="ext"><?php echo LNG('type');?><span></span></div><div class="resize filetype-resize"></div>
					<div class="filesize" field="size"><?php echo LNG('size');?><span></span></div><div class="resize filesize-resize"></div>
					<div class="filetime" field="mtime"><?php echo LNG('modify_time');?><span></span></div><div class="resize filetime-resize"></div>
					<div style="clear:both"></div>
				</div>
			</div>
			</div><!-- list type 列表排序方式 -->

			<div class='bodymain drag-upload-box menu-body-main'>
				<div class="line-split-box hidden">
					<div class="split-line"></div>
					<div class="split-line"></div>
					<div class="split-line"></div>
					<div class="split-line"></div>
					<div class="split-line"></div>
					<div class="split-line"></div>
					<div class="split-line"></div>
					<div class="split-line"></div>
					<div class="split-line"></div>
					<div class="split-line"></div>
				</div>
				<div class="file-continer"></div>
				<div class="file-continer-more"></div>
			</div><!-- html5拖拽上传list -->
			<div class="file-select-info">
				<span class="item-num"></span>
				<span class="item-select"></span>
			</div>
		</div>
	</div><!-- / frame-right end-->
</div><!-- / frame-main end-->

