/** * Add the required JS */ protected function setUp() { parent::setUp(); $this->addScript('//cdnjs.cloudflare.com/ajax/libs/jeditable.js/1.7.3/jeditable.min.js'); $this->addScript($this->path('resource/scripts/classes/Display.class.js')); $this->addScript($this->path('resource/scripts/classes/Application.class.js')); $this->addScript($this->path('resource/scripts/classes/DisplayManager.class.js')); $this->addScript($this->path('resource/scripts/controllers/setup_roles.controller.js')); $this->addCss($this->path('resource/styles/displaymanager.css')); //add all of the JazzeePage scripts for display $types = $this->_em->getRepository('\\Jazzee\\Entity\\PageType')->findAll(); $scripts = array(); $scripts[] = $this->path('resource/scripts/page_types/JazzeePage.js'); foreach ($types as $type) { $class = $type->getClass(); $scripts[] = $this->path($class::pageBuilderScriptPath()); } //add all of the Jazzee element scripts for data rendering $this->addScript($this->path('resource/scripts/element_types/JazzeeElement.js')); $types = $this->_em->getRepository('\\Jazzee\\Entity\\ElementType')->findAll(); $scripts[] = $this->path(\Jazzee\Interfaces\Element::PAGEBUILDER_SCRIPT); $scripts[] = $this->path('resource/scripts/element_types/List.js'); $scripts[] = $this->path('resource/scripts/element_types/FileInput.js'); foreach ($types as $type) { $class = $type->getClass(); $scripts[] = $this->path($class::PAGEBUILDER_SCRIPT); } $scripts = array_unique($scripts); foreach ($scripts as $path) { $this->addScript($path); } }
/** * Add the required JS */ protected function setUp() { parent::setUp(); $this->addScript($this->path('resource/foundation/scripts/jquery.wysiwyg.js')); $this->addCss($this->path('resource/foundation/styles/jquery.wysiwyg.css')); $this->addScript($this->path('resource/scripts/controllers/setup_application.controller.js')); }
/** * Add the required JS */ protected function setUp() { parent::setUp(); $this->addScript($this->path('resource/scripts/classes/Status.class.js')); $this->addScript($this->path('resource/scripts/classes/ChangeProgram.class.js')); $this->addScript($this->path('resource/scripts/controllers/payments_pending.controller.js')); }
/** * If there is no application then create a new one to work with * @SuppressWarnings(PHPMD.ExitExpression) */ protected function setUp() { parent::setUp(); $this->setLayout('xml'); $this->setLayoutVar('filename', 'api.xml'); $this->dom = new DOMDocument('1.0', 'UTF-8'); $this->setVar('xml', $this->dom); $versions = array(1, 2); if (empty($this->post['version']) or !in_array($this->post['version'], $versions)) { $this->setLayoutVar('status', 'error'); $this->addMessage('error', 'Invalid API Version'); $this->loadView('admin_api/index'); exit(0); } $this->version = $this->post['version']; if (empty($this->post['apiKey']) or !($this->_user = $this->_em->getRepository('\\Jazzee\\Entity\\User')->findOneBy(array('apiKey' => $this->post['apiKey'])))) { sleep(5); $this->setLayoutVar('status', 'error'); $this->addMessage('error', 'Invalid API Key'); $this->loadView('admin_api/index'); exit(0); } if (!empty($this->post['applicationId'])) { $userPrograms = $this->_user->getPrograms(); if (!($this->_application = $this->_em->getRepository('\\Jazzee\\Entity\\Application')->find($this->post['applicationId'])) or !$this->checkIsAllowed('admin_changeprogram', 'anyProgram') and !in_array($this->_application->getProgram()->getId(), $userPrograms)) { $this->setLayoutVar('status', 'error'); $this->addMessage('error', 'Invalid Application ID or you do not have access to that application'); $this->loadView('admin_api/index'); exit(0); } } }
/** * Add the required JS */ public function setUp() { parent::setUp(); $this->setLayoutVar('status', 'success'); $this->layout = 'json'; $this->setVar('result', 'nothing'); }
/** * If there is no application then create a new one to work with */ protected function setUp() { parent::setUp(); if (!$this->_application) { $this->addMessage('notice', 'There is no data to export in this application.'); $this->redirectPath('welcome'); } }
/** * Add the required JS */ protected function setUp() { parent::setUp(); $this->layout = 'json'; $this->setLayoutVar('status', 'error'); //default to an error $this->addScript($this->path('resource/foundation/scripts/form.js')); $this->addScript($this->path('resource/scripts/classes/Applicant.class.js')); $this->addScript($this->path('resource/scripts/classes/DisplayChooser.class.js')); $this->addScript($this->path('resource/scripts/controllers/applicants_single.controller.js')); }
/** * Add the required JS */ protected function setUp() { parent::setUp(); $this->addCss('https://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables.css'); $this->addCss('https://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables_themeroller.css'); $this->addScript('https://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js'); $this->addCss('//cdnjs.cloudflare.com/ajax/libs/datatables-tabletools/2.1.4/css/TableTools.min.css'); $this->addCss('//cdnjs.cloudflare.com/ajax/libs/datatables-tabletools/2.1.4/css/TableTools_JUI.min.css'); $this->addScript('//cdnjs.cloudflare.com/ajax/libs/datatables-tabletools/2.1.4/js/TableTools.min.js'); $this->addScript($this->path('resource/scripts/classes/Status.class.js')); $this->addScript($this->path('resource/scripts/classes/ChangeProgram.class.js')); $this->addScript($this->path('resource/scripts/controllers/payments_report.controller.js')); }
/** * Add the required JS */ protected function setUp() { parent::setUp(); $this->layout = 'json'; $this->addCss('https://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables.css'); $this->addCss('https://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables_themeroller.css'); $this->addScript('https://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js'); $this->addScript('//cdnjs.cloudflare.com/ajax/libs/jeditable.js/1.7.3/jeditable.min.js'); $this->addScript('//cdnjs.cloudflare.com/ajax/libs/moment.js/2.4.0/moment.min.js'); $this->addScript($this->path('resource/scripts/classes/Display.class.js')); $this->addScript($this->path('resource/scripts/classes/Application.class.js')); $this->addScript($this->path('resource/scripts/classes/ApplicantData.class.js')); $this->addScript($this->path('resource/scripts/classes/DisplayChooser.class.js')); $this->addScript($this->path('resource/scripts/classes/DisplayManager.class.js')); $this->addScript($this->path('resource/scripts/classes/Grid.class.js')); $this->addScript($this->path('resource/scripts/controllers/applicants_grid.controller.js')); $this->addCss($this->path('resource/styles/grid.css')); $this->addCss($this->path('resource/styles/displaymanager.css')); $this->addScript($this->path('resource/foundation/scripts/form.js')); $scripts = array(); //add all of the JazzeePage scripts for display $types = $this->_em->getRepository('\\Jazzee\\Entity\\PageType')->findAll(); $scripts = array(); $scripts[] = $this->path('resource/scripts/page_types/JazzeePage.js'); foreach ($types as $type) { $class = $type->getClass(); $scripts[] = $this->path($class::pageBuilderScriptPath()); } $scripts = array_unique($scripts); foreach ($scripts as $path) { $this->addScript($path); } //add all of the Jazzee element scripts for data rendering $this->addScript($this->path('resource/scripts/element_types/JazzeeElement.js')); $types = $this->_em->getRepository('\\Jazzee\\Entity\\ElementType')->findAll(); $scripts[] = $this->path(\Jazzee\Interfaces\Element::PAGEBUILDER_SCRIPT); $scripts[] = $this->path('resource/scripts/element_types/List.js'); $scripts[] = $this->path('resource/scripts/element_types/FileInput.js'); foreach ($types as $type) { $class = $type->getClass(); $scripts[] = $this->path($class::PAGEBUILDER_SCRIPT); } $scripts = array_unique($scripts); foreach ($scripts as $path) { $this->addScript($path); } }
/** * Add the required JS */ protected function setUp() { parent::setUp(); $this->addScript($this->path('resource/jsdiff.js')); $this->addScript($this->path('resource/scripts/controllers/setup_comparechanges.controller.js')); }
/** * Add the required JS */ protected function setUp() { parent::setUp(); $this->addScript($this->path('resource/scripts/controllers/manage_cycles.controller.js')); }
/** * Add the required JS */ protected function setUp() { parent::setUp(); $this->addScript($this->path('resource/jquery.tagcloud.js')); $this->addScript($this->path('resource/scripts/controllers/applicants_list.controller.js')); }
/** * Add the required JS */ protected function setUp() { parent::setUp(); $this->addScript($this->path('resource/scripts/controllers/applicants_decisions.controller.js')); }
/** * Add the required JS */ protected function setUp() { parent::setUp(); $this->addScript($this->path('resource/scripts/classes/ChangeProgram.class.js')); $this->addScript($this->path('resource/scripts/controllers/applicants_search.controller.js')); }
/** * Add the required JS and create a default email to be used in single and bulk */ protected function setUp() { parent::setUp(); $this->addScript($this->path('resource/scripts/controllers/applicants_create.controller.js')); $this->_defaultEmail = "Dear _Applicant_Name_,\n\nWe would like to invite you to submit an application to our {$this->_program->getName()} program. " . "An account has been created for you on our online application system. To apply, visit our online application system at:\n_Link_\n\n" . "Please login using the email and password listed below.\n" . "Email: _Email_\nPassword: _Password_\n\n" . "We recommend you change your Password after initially logging on." . "You may change your password by clicking 'My Account' in the top right hand corner and clicking 'Change Password.'\n\n" . "You will have until _Deadline_ to complete your application.\n\n" . "If this application is not submitted by this deadline, your application for admission " . "will be denied and you will be ineligible to be considered for {$this->_cycle->getName()} admission.\n\n" . "If you have decided that you no longer wish to apply to our program, please inform us immediately so that we may cancel your application.\n\n" . "If you have trouble with your account, please contact {$this->_application->getContactName()} at {$this->_application->getContactEmail()}\n" . "Thank you.\n{$this->_application->getContactName()}"; }