/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'assessments', $aViewUrls = array(), $aData = array()) { $this->getController()->_js_admin_includes(Yii::app()->getConfig('adminscripts') . 'assessments.js'); $this->getController()->_js_admin_includes(Yii::app()->getConfig('generalscripts') . 'jquery/jquery.tablesorter.min.js'); $this->getController()->_css_admin_includes(Yii::app()->getConfig('adminstyleurl') . "superfish.css"); parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'assessments', $aViewUrls = array(), $aData = array()) { App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('adminscripts') . 'assessments.js'); App()->getClientScript()->registerPackage('jquery-tablesorter'); App()->getClientScript()->registerPackage('jquery-superfish'); parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'participants', $aViewUrls = array(), $aData = array()) { $aData['display']['menu_bars'] = false; foreach ((array) $aViewUrls as $sViewUrl) { $a_ViewUrls[] = $sViewUrl . '_view'; } parent::_renderWrappedTemplate($sAction, $a_ViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'participants', $aViewUrls = array(), $aData = array()) { App()->getClientScript()->registerPackage('bootstrap-multiselect'); $aData['display']['menu_bars'] = false; foreach ((array) $aViewUrls as $sViewUrl) { $a_ViewUrls[] = $sViewUrl . '_view'; } parent::_renderWrappedTemplate($sAction, $a_ViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'participants', $aViewUrls = array(), $aData = array()) { App()->getClientScript()->registerPackage('bootstrap-multiselect'); $aData['display']['menu_bars'] = false; // Add "_view" to urls array_walk($aViewUrls, function (&$url) { $url .= "_view"; }); parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
function __construct($controller, $id) { parent::__construct($controller, $id); if (!Permission::model()->hasGlobalPermission('superadmin', 'read')) { die; } if (!in_array(Yii::app()->db->getDriverName(), array('mysql', 'mysqli')) || Yii::app()->getConfig('demoMode') == true) { die($this->getController()->lang->gT('This feature is only available for MySQL databases.')); } }
function __construct($controller, $id) { parent::__construct($controller, $id); if (Yii::app()->session['USER_RIGHT_SUPERADMIN'] != 1) { die; } if (!in_array(Yii::app()->db->getDriverName(), array('mysql', 'mysqli')) || Yii::app()->getConfig('demoMode') == true) { die($this->getController()->lang->gT('This feature is only available for MySQL databases.')); } }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'saved', $aViewUrls = array(), $aData = array()) { $aData['display']['menu_bars']['browse'] = gT('Browse responses'); // browse is independent of the above $aData['surveyid'] = $iSurveyId = $aData['iSurveyId']; $surveyinfo = Survey::model()->findByPk($iSurveyId)->surveyinfo; $aData["surveyinfo"] = $surveyinfo; $aData['title_bar']['title'] = gT('Browse responses') . ': ' . $surveyinfo['surveyls_title']; $aData['menu']['close'] = true; $aData['menu']['edition'] = false; parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'assessments', $aViewUrls = array(), $aData = array()) { $aData['sidebar']['state'] = "close"; $iSurveyID = $aData['surveyid']; $surveyinfo = Survey::model()->findByPk($iSurveyID)->surveyinfo; $aData['title_bar']['title'] = $surveyinfo['surveyls_title'] . "(" . gT("ID") . ":" . $iSurveyID . ")"; $aData['surveybar']['savebutton']['form'] = true; $aData['surveybar']['closebutton']['url'] = 'admin/survey/sa/view/surveyid/' . $iSurveyID; $aData['gid'] = null; App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('adminscripts') . 'assessments.js'); parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'assessments', $aViewUrls = array(), $aData = array()) { $aData['sidemenu']['state'] = false; $iSurveyID = $aData['surveyid']; $surveyinfo = Survey::model()->findByPk($iSurveyID)->surveyinfo; $aData['surveybar']['closebutton']['url'] = 'admin/survey/sa/view/surveyid/' . $iSurveyID; // Close button $aData['title_bar']['title'] = $surveyinfo['surveyls_title'] . "(" . gT("ID") . ":" . $iSurveyID . ")"; $aData['surveybar']['savebutton']['form'] = TRUE; $aData['gid'] = null; App()->getClientScript()->registerScriptFile(App()->getAssetManager()->publish(ADMIN_SCRIPT_PATH . 'assessments.js')); parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'participants', $aViewUrls = array(), $aData = array()) { App()->getClientScript()->registerPackage('bootstrap-multiselect'); $aData['display']['menu_bars'] = false; // Add "_view" to urls if (is_array($aViewUrls)) { array_walk($aViewUrls, function (&$url) { $url .= "_view"; }); } elseif (is_string($aViewUrls)) { $aViewUrls .= "_view"; } else { // Complete madness throw new \InvalidArgumentException("aViewUrls must be either string or array"); } parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'region/country', $aViewUrls = array(), $aData = array()) { $aData['display']['menu_bars']['country'] = true; parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'export', $aViewUrls = array(), $aData = array()) { $this->getController()->_css_admin_includes(Yii::app()->getConfig('adminstyleurl') . "superfish.css"); $aData['display']['menu_bars']['gid_action'] = 'exportstructureGroup'; parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'authentication', $aViewUrls = array(), $aData = array()) { App()->getClientScript()->registerPackage('panels-animation'); $aData['display']['menu_bars'] = false; parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'token', $aViewUrls = array(), $aData = array()) { $aData['imageurl'] = Yii::app()->getConfig('adminimageurl'); $aData['display']['menu_bars'] = false; parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'survey', $aViewUrls = array(), $aData = array()) { App()->getClientScript()->registerPackage('jquery-superfish'); parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'labels', $aViewUrls = array(), $aData = array()) { if (!isset($aData['display']['menu_bars']['labels']) || $aData['display']['menu_bars']['labels'] != false) { if (empty($aData['labelsets'])) { $aData['labelsets'] = getLabelSets(); } if (empty($aData['lid'])) { $aData['lid'] = 0; } $aViewUrls = (array) $aViewUrls; array_unshift($aViewUrls, 'labelsetsbar_view'); } $aData['display']['menu_bars'] = false; parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'panellist/profilecategory', $aViewUrls = array(), $aData = array()) { $aData['display']['menu_bars']['panellist'] = true; parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'quotas', $aViewUrls = array(), $aData = array()) { App()->getClientScript()->registerScriptFile(App()->getAssetManager()->publish(ADMIN_SCRIPT_PATH . '/quotas.js')); parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'authentication', $aViewUrls = array(), $aData = array()) { $aData['display']['menu_bars'] = false; parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'emailtemplates', $aViewUrls = array(), $aData = array()) { App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('adminscripts') . 'emailtemplates.js'); $aData['display']['menu_bars']['surveysummary'] = 'editemailtemplates'; parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'dataentry', $aViewUrls = array(), $aData = array()) { if (!isset($aData['display']['menu_bars']['browse'])) { $aData['display']['menu_bars']['browse'] = $this->getController()->lang->gT("Data entry"); } parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'dataentry', $aViewUrls = array(), $aData = array()) { if (!isset($aData['display']['menu_bars']['browse'])) { if (isset($aData['surveyid'])) { $iSurveyId = $aData['surveyid']; } if (isset($_POST['sid'])) { $iSurveyId = $_POST['sid']; } $aData['display']['menu_bars']['browse'] = gT("Data entry"); $surveyinfo = Survey::model()->findByPk($iSurveyId)->surveyinfo; $aData["surveyinfo"] = $surveyinfo; $aData['title_bar']['title'] = gT("Data entry"); } parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'survey/QuestionGroups', $aViewUrls = array(), $aData = array()) { $this->getController()->_css_admin_includes(Yii::app()->getConfig('adminstyleurl') . "superfish.css"); parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = '', $aViewUrls = array(), $aData = array()) { App()->getClientScript()->registerScriptFile(App()->getAssetManager()->publish(ADMIN_SCRIPT_PATH . 'browse.js')); $iSurveyId = $aData['iSurveyId']; $aData['display']['menu_bars'] = false; $aData['display']['menu_bars']['browse'] = gT('Browse responses'); // browse is independent of the above $surveyinfo = Survey::model()->findByPk($iSurveyId)->surveyinfo; $aData["surveyinfo"] = $surveyinfo; $aData['title_bar']['title'] = gT('Browse responses') . ': ' . $surveyinfo['surveyls_title']; parent::_renderWrappedTemplate('responses', $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = '', $aViewUrls = array(), $aData = array()) { App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('adminscripts') . "globalsettings.js"); parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'user', $aViewUrls = array(), $aData = array()) { parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'conditions', $aViewUrls = array(), $aData = array()) { ////$aData['display']['menu_bars'] = false; parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = '', $aViewUrls = array(), $aData = array()) { $this->getController()->_js_admin_includes(Yii::app()->getConfig('generalscripts') . "jquery/jquery.selectboxes.min.js"); $this->getController()->_js_admin_includes(Yii::app()->getConfig('adminscripts') . "globalsettings.js"); parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }
/** * Renders template(s) wrapped in header and footer * * @param string $sAction Current action, the folder to fetch views from * @param string|array $aViewUrls View url(s) * @param array $aData Data to be passed on. Optional. */ protected function _renderWrappedTemplate($sAction = 'survey/Question', $aViewUrls = array(), $aData = array()) { $this->getController()->_js_admin_includes(Yii::app()->getConfig('generalscripts') . 'jquery/jquery.dd.js'); $this->getController()->_css_admin_includes(Yii::app()->getConfig('generalscripts') . 'jquery/dd.css'); $this->getController()->_css_admin_includes(Yii::app()->getConfig('adminstyleurl') . "superfish.css"); parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData); }