public function actionChoose() { $layout_data = array('username' => Yii::$app->session['username'], 'status' => 1); $this->layout_data = $layout_data; $username = Yii::$app->session['username']; $pictures = Pictures::find()->where(['type' => "0"])->all(); $svg = pictures::find()->where(['type' => "1"])->all(); return $this->render('choose', ["username" => $username, 'pictures' => $pictures, 'svg' => $svg]); }
function show() { if (!$this->check_right('ExhibitionAdmin')) { return Html::h(2, 'Dazu haben Sie kein Recht!'); } $this->system->backend->tabs = $this->obere_navi(); if ($this->check_folder_rights()) { return $this->check_folder_rights(); } if (preg_match('/Scan$/', SELF)) { $this->return .= $this->scan(); } if (preg_match('/Upload$/', SELF)) { $this->return .= $this->upload(); } if (preg_match('/Rooms$/', SELF)) { include_once INSTALL_PATH . '/Module/RheinaufExhibition/Backend/rooms.php'; $rooms = new rooms($this->scaff, $this->system); $this->return .= $GLOBALS['backchannel']; $this->return .= $rooms->show(); } if (preg_match('/Exhibitions$/', SELF)) { include_once INSTALL_PATH . '/Module/RheinaufExhibition/Backend/exhibitions.php'; $instance = new exhibitions($this->scaff, $this->system); $this->return .= $GLOBALS['backchannel']; $this->return .= $instance->show(); } if (preg_match('/Pictures$/', SELF)) { include_once INSTALL_PATH . '/Module/RheinaufExhibition/Backend/pictures.php'; $instance = new pictures($this->scaff, $this->system); return $this->return .= $instance->show(); } if (preg_match('/Locations$/', SELF)) { include_once INSTALL_PATH . '/Module/RheinaufExhibition/Backend/LocationsBackend.php'; $instance = new LocationsBackend($this->system); return $this->return .= $instance->show(); } if (preg_match('/BildDesMonats$/', SELF)) { include_once INSTALL_PATH . '/Module/RheinaufExhibition/Backend/bdm.php'; $instance = new bdm($this->scaff, $this->system); return $this->return .= $instance->show(); } return $this->return; }