public function __construct() { global $FANNIE_COOP_ID; parent::__construct(); // If saving, set higher priv: members_edit_full if (isset($FANNIE_COOP_ID) && $FANNIE_COOP_ID == 'WEFC_Toronto') { $this->auth_classes = array('members_edit_full'); $this->auth_classes[] = 'editmembers'; } }
public function __construct() { FanniePage::__construct(); // Link to a file of CSS by using a function. $this->add_css_file("../src/style.css"); $this->add_css_file("../src/javascript/jquery-ui.css"); $this->add_css_file("../src/css/install.css"); // Link to a file of JS by using a function. $this->add_script("../src/javascript/jquery.js"); $this->add_script("../src/javascript/jquery-ui.js"); // __construct() }
/** Get the standard install-page footer @return An HTML string */ function getFooter() { $FANNIE_AUTH_ENABLED = $this->config->get('AUTH_ENABLED'); $FANNIE_URL = $this->config->get('URL'); ob_start(); if ($this->themed) { echo parent::getFooter(); } elseif ($this->config->get('WINDOW_DRESSING')) { include dirname(__FILE__) . '/../src/footer.html'; } else { include dirname(__FILE__) . '/../src/footer_install.html'; } return ob_get_clean(); }
public function __construct() { // To set authentication. FanniePage::__construct(); // Link to a file of CSS by using a function. $this->add_css_file("../src/style.css"); $this->add_css_file("../src/css/configurable.php"); $this->add_css_file("../src/javascript/jquery-ui.css"); $this->add_css_file("../src/css/install.css"); // Link to a file of JS by using a function. $this->add_script("../src/javascript/jquery.js"); $this->add_script("../src/javascript/jquery-ui.js"); // __construct() }
public function __construct() { // To set authentication. FanniePage::__construct(); $SRC = '../src'; // Link to a file of CSS by using a function. $this->add_css_file("{$SRC}/style.css"); $this->add_css_file("{$SRC}/javascript/jquery-ui.css"); $this->add_css_file("{$SRC}/css/install.css"); $this->add_css_file("{$SRC}/css/toggle-switch.css"); // Link to a file of JS by using a function. $this->add_script("{$SRC}/javascript/jquery.js"); $this->add_script("{$SRC}/javascript/jquery-ui.js"); // __construct() }
public function __construct() { // To set authentication. FanniePage::__construct(); // Why do this here instead of above? //$this->title = "Fannie: Membership Settings"; //$this->header = "Fannie: Membership Settings"; // Link to a file of CSS by using a function. $this->add_css_file("../src/style.css"); $this->add_css_file("../src/javascript/jquery-ui.css"); $this->add_css_file("../src/css/install.css"); // Link to a file of JS by using a function. $this->add_script("../src/javascript/jquery.js"); $this->add_script("../src/javascript/jquery-ui.js"); // __construct() }
public function __construct() { // To set authentication. FanniePage::__construct(); // Link to a file of CSS by using a function. $this->add_css_file("../src/javascript/jquery-ui.css"); $this->add_css_file("../src/css/install.css"); // Link to a file of JS by using a function. $this->add_script("../src/javascript/jquery.js"); $this->add_script("../src/javascript/jquery-ui.js"); $this->add_script('../src/javascript/syntax-highlighter/scripts/jquery.syntaxhighlighter.min.js'); $this->add_onload_command(' $.SyntaxHighlighter.init({ baseUrl: \'../src/javascript/syntax-highlighter\', prettifyBaseUrl: \'../src/javascript/syntax-highlighter/prettify\', wrapLines: false });'); // __construct() }
public function __construct() { $this->routing_trait = new \COREPOS\common\ui\CoreRESTfulRouter(); $this->form = new COREPOS\common\mvc\FormValueContainer(); parent::__construct(); }
/** Check for input and display the page */ function drawPage() { if (!$this->config instanceof FannieConfig) { $this->config = FannieConfig::factory(); } if (!$this->checkAuth() && $this->must_authenticate) { $this->loginRedirect(); } elseif ($this->preprocess()) { /** Use FanniePage::drawPage for the plain old html version of the page */ if ($this->content_function == 'form_content') { if (FormLib::get('json') !== '') { $this->addOnloadCommand(FormLib::fieldJSONtoJavascript(base64_decode(FormLib::get('json')))); } return parent::drawPage(); } /** Global setting overrides default behavior to force the menu to appear. Unlike normal pages, the override is only applied when the output format is HTML. */ if (($this->config->get('WINDOW_DRESSING') || $this->new_tablesorter) && $this->report_format == 'html') { $this->window_dressing = true; } if ($this->window_dressing) { echo $this->getHeader(); } if ($this->readinessCheck() !== false) { $func = $this->content_function; echo $this->{$func}(); } else { echo $this->errorContent(); } if ($this->window_dressing) { $footer = $this->getFooter(); $footer = str_ireplace('</html>', '', $footer); $footer = str_ireplace('</body>', '', $footer); echo $footer; } if ($this->report_format == 'html') { foreach ($this->scripts as $s_url => $s_type) { printf('<script type="%s" src="%s"></script>', $s_type, $s_url); echo "\n"; } $js_content = $this->javascriptContent(); if (!empty($js_content) || !empty($this->onload_commands)) { echo '<script type="text/javascript">'; echo $js_content; echo "\n\$(document).ready(function(){\n"; foreach ($this->onload_commands as $oc) { if (strstr($oc, 'standardFieldMarkup()')) { continue; } echo $oc . "\n"; } echo "});\n"; echo '</script>'; } $page_css = $this->cssContent(); if (!empty($page_css)) { echo '<style type="text/css">'; echo $page_css; echo '</style>'; } echo array_reduce($this->css_files, function ($carry, $css_url) { return $carry . sprintf('<link rel="stylesheet" type="text/css" href="%s">' . "\n", $css_url); }, ''); } if ($this->window_dressing || $this->report_format == 'html') { echo '</body></html>'; } } // drawPage() }