public function actionSide() { $category = zotop::model('content.category'); $tree = $category->getTree(0, '<span class="zotop-icon zotop-icon-$icon"></span><a href="' . zotop::url('content/content/index/$id') . '" target="mainIframe">$title</a>'); $page = new side(); $page->set('title', zotop::t('文件管理')); $page->set('tree', $tree); $page->display(); }
public function actionSide() { $folder = zotop::model('system.folder'); $folders = $folder->getAll(); $tree = new tree($folders, 0); $folders_tree = $tree->getHtml(0, '<span class="zotop-icon zotop-icon-folder"></span><a href="' . zotop::url('system/file/index/all/$id') . '" target="mainIframe">$title</a>', $folderid); $page = new side(); $page->set('title', zotop::t('文件管理')); $page->set('folderid', $folderid); $page->set('folders_tree', $folders_tree); $page->display(); }
public function sideAction() { $tools = array('reboot' => array('id' => 'reboot', 'title' => '系统重启', 'href' => zotop::url('zotop/system/reboot')), 'close' => array('id' => 'close', 'title' => '关闭网站', 'href' => zotop::url('zotop/system/close')), 'config' => array('id' => 'config', 'title' => '注册表管理', 'href' => zotop::url('zotop/config'))); $tools = zotop::filter('zotop.system.tools', $tools); $users = array('user' => array('id' => 'reboot', 'title' => '系统用户管理', 'href' => zotop::url('zotop/user')), 'usergroup' => array('id' => 'close', 'title' => '系统用户组管理', 'href' => zotop::url('zotop/usergroup'))); $modules = array('list' => array('id' => 'list', 'title' => '模块列表', 'href' => zotop::url('zotop/module')), 'install' => array('id' => 'uninstalled', 'title' => '安装新模块', 'href' => zotop::url('zotop/module/uninstalled'))); $page = new side(); $page->title = '系统控制面板'; $page->set('tools', $page->navlist($tools)); $page->set('users', $page->navlist($users)); $page->set('modules', $page->navlist($modules)); $page->display(); }
public function actionSide() { $m = array(); $modules = (array) zotop::module(); foreach ($modules as $module) { if ($module['type'] == 'com') { $module['href'] = zotop::url($module['id']); $m[$module['id']] = $module; } } $page = new side(); $page->set('modules', $page->navlist($m)); $page->display(); }
public function actionSide() { $modules = (array) zotop::modules(); foreach ($modules as $id => $module) { if ($module['type'] != 'com') { unset($modules[$id]); } else { $modules[$id]['href'] = zotop::url($module['id']); } } $page = new side(); $page->title = '系统控制面板'; $page->set('modules', $modules); $page->display(); }