/** * 显示左侧菜单 */ function actionSidebar() { // 首先定义菜单 $catalog = FLEA::loadFile('Config_Menu.php'); // 借助 FLEA_Dispatcher_Auth 对用户角色和控制器 ACT 进行验证 $dispatcher =& $this->_getDispatcher(); include APP_DIR . '/ZobSidebar.php'; }
/** * 载入指定的文件(已经过时,用 FLEA::loadFile() 代替) * * @return boolean * @deprecated */ function load_file($filename, $loadOnce = false) { return FLEA::loadFile($filename, $loadOnce); }
<?php defined('APP_DIR') or die('Direct Access to this location is not allowed.'); FLEA::loadFile('FLEA_Helper_Html.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo RESPONSE_CHARSET; ?> " /> <link href="css/style.css" rel="stylesheet" type="text/css" /> <script language="javascript" type="text/javascript"> <!-- function fnOnBack() { var url = '<?php echo $this->_getBack(); ?> '; document.location.href = url; } function fnOnSubmit(form) { form.Save.disabled = true; if (form.title.value == '' || form.body.value == '') { alert('<?php echo h(_T('ui_c_form_validation')); ?> ');