**************************
*/
include MY_APP_DIR . 'controllers/explorerControllerShared.php';
/*
**************************
*/
include MY_APP_DIR . 'controllers/explorerControllerFS.php';
/*
**************************
*/
include MY_APP_DIR . 'controllers/explorerControllerAPI.php';
/*
**************************
*/
// Start explorer
$explorer = new app_explorer();
$explorer->set_fs($fs);
$explorer->assign_filesystem($phposFS);
$explorer->assign_window($apiWindow);
$explorer->assign_my_app($my_app);
$explorer->config('filetypes_icons_folder_url', PHPOS_WEBROOT_URL . '_phpos/icons/filetypes/80x80/');
$explorer->config('filetypes_icons_folder_dir', PHPOS_WEBROOT_DIR . '_phpos/icons/filetypes/80x80/');
$explorer->config('div_prefix', 'phpos_icon' . $apiWindow->getParam('id'));
$explorer->config('div_contener', 'phpos_icons_contener' . $apiWindow->getParam('id'));
/*.............................................. */
switch ($my_app->get_param('icon_size')) {
    case 'medium':
        $explorer->config('icon_size_class', 'phpos_icon_window_size_medium');
        break;
    case 'small':
        $explorer->config('icon_size_class', 'phpos_icon_window_size_small');
示例#2
0
$tree_local_files = '
	<li data-options="iconCls:\'icon-disk\'' . $closed . '">
	<span><a title="' . txt('home_local_folder') . '" href="javascript:void(0);" onclick="' . link_action('index', 'reset_shared:1,in_shared:0,shared_id:0,root_id:' . $root_id . ',dir_id:' . $root_id . ',fs:' . $my_fs) . '"><span style="color: black; ">' . txt('home_local_folder') . '</span></a></span>			
	<ul>' . $tree_explorer->get_tree($treeFS->get_root_directory_id()) . '</ul>
	</li>
	';
/*
**************************
*/
// mysql
$closed = '';
$my_fs = 'db_mysql';
$filesystem_class = 'phpos_fs_plugin_' . $my_fs;
$treeFS = new $filesystem_class();
// start filesytem
$tree_explorer = new app_explorer();
$tree_explorer->set_fs($my_fs);
$tree_explorer->assign_filesystem($treeFS);
$tree_explorer->assign_window($apiWindow);
$tree_explorer->assign_my_app($my_app);
$root_id = $treeFS->get_root_directory_id();
if ($dir_id == $root_id || $global_fs != $my_fs) {
    $closed = ',state:\'closed\'';
}
/*
**************************
*/
$tree_db_mysql = '
	<li data-options="iconCls:\'icon-disk\'' . $closed . '">
	<span><a title="' . txt('home_db_folder') . '" href="javascript:void(0);" onclick="' . link_action('index', 'reset_shared:1,in_shared:0,shared_id:0,tmp_shared_id:0,root_id:' . $root_id . ',dir_id:' . $root_id . ',fs:' . $my_fs) . '"><span style="color: black;">' . txt('home_db_folder') . '</span></a></span>				
	<ul>' . $tree_explorer->get_tree($treeFS->get_root_directory_id()) . '</ul>