Ejemplo n.º 1
0
 public function actionLoadNew()
 {
     $moduleStr = EnvUtil::getRequest("module");
     $moduleStr = urldecode($moduleStr);
     $moduleArr = explode(",", $moduleStr);
     $data = MainUtil::execApiMethod("loadNew", $moduleArr);
     $data["timestamp"] = TIMESTAMP;
     $this->ajaxReturn($data);
 }
Ejemplo n.º 2
0
 public function actionIndex()
 {
     $modules = Module::model()->fetchAllClientModule();
     $widgetModule = $modules;
     foreach ($widgetModule as $index => $module) {
         $conf = CJSON::decode($module["config"]);
         $param = $conf["param"];
         if (!isset($param["indexShow"]) || !isset($param["indexShow"]["widget"])) {
             unset($widgetModule[$index]);
         }
     }
     $moduleArr = ConvertUtil::getSubByKey($widgetModule, "module");
     $moduleSetting = MainUtil::execApiMethod("loadSetting", $moduleArr);
     $data = array("modules" => $modules, "widgetModule" => $widgetModule, "moduleSetting" => CJSON::encode($moduleSetting), "menus" => MenuPersonal::model()->fetchMenuByUid(Ibos::app()->user->uid));
     $this->setPageTitle(Ibos::lang("Home office"));
     $this->setPageState("breadCrumbs", array(array("name" => Ibos::lang("Home office"))));
     $this->render("index", $data);
 }