Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->loadClass(array('PollModel', 'PollAnswerLangModel', 'PollVotesModel'));
     Route::get('poll/list', array('before' => 'auth', array($this, 'poll_list')));
     Route::post('poll/getlist', array('before' => 'auth', array($this, 'getlist')));
     Route::get('poll/form', array('before' => 'auth', array($this, 'form')));
     Route::get('poll/form/{id}', array('before' => 'auth', array($this, 'form')));
     Route::post('poll/save', array('before' => 'auth', array($this, 'save')));
     Route::post('poll/save_lang', array('before' => 'auth', array($this, 'save_lang')));
     Route::post('poll/edititem', array('before' => 'auth', array($this, 'edititem')));
     Route::post('poll/edititem/{poll_lang_id}', array('before' => 'auth', array($this, 'edititem')));
     Route::post('poll/add', array('before' => 'auth', array($this, 'poll_add')));
     Route::get('poll/del', array('before' => 'auth', array($this, 'poll_del')));
     Route::get('poll/del/{id}', array('before' => 'auth', array($this, 'poll_del')));
     Route::post('poll/list/answer', array('before' => 'auth', array($this, 'getlist_answer')));
     Route::post('poll/list/answer/{poll_lang_id}', array('before' => 'auth', array($this, 'getlist_answer')));
     Route::get('poll/anwser/create/{id}', array('before' => 'auth', array($this, 'create_answer')));
     Route::get('poll/answer/edit/{id}', array('before' => 'auth', array($this, 'edit_answer')));
     Route::post('poll/answer/save', array('before' => 'auth', array($this, 'save_answer')));
     Route::get('poll/answer/delete/{id}', array('before' => 'auth', array($this, 'delete_answer')));
     Route::post('poll/answer/jqsave', array('before' => 'auth', array($this, 'jqsave_answer')));
     Event::listen('construct_left_menu', array($this, 'left_menu_item'));
     Event::listen('language_created', array($this, 'language_created'));
     Event::listen('language_deleted', array($this, 'language_deleted'));
     Template::registerViewMethod('page', 'pollList', 'Lista de sondaje', null, true);
     $this->layout = Template::mainLayout();
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     Route::get('partners', array('before' => 'auth', array($this, 'view')));
     Event::listen('construct_left_menu', array($this, 'left_menu_item'));
     $this->layout = Template::mainLayout();
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $this->loadClass(array('JobRequestModel'));
     Route::get('jobrequest/list', array('before' => 'auth', array($this, 'requests_list')));
     Route::post('jobrequest/getlist', array('before' => 'auth', array($this, 'getlist')));
     Route::post('jobrequest/edititem', array('before' => 'auth', array($this, 'edititem')));
     Event::listen('construct_left_menu', array($this, 'left_menu_item'));
     $this->layout = Template::mainLayout();
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     $this->loadClass(array('FireChatSession', 'FireBaseAuth'));
     Route::get('firechat', array('before' => 'auth', array($this, 'view')));
     Route::get('firechat/display', array('before' => 'auth', array($this, 'display')));
     Route::post('firechat/closeroom', array('before' => 'auth', array($this, 'closeroom')));
     Route::post('firechat/audience', array('before' => 'auth', array($this, 'audience')));
     Route::post('firechat/sendmail', array('before' => 'auth', array($this, 'sendmail')));
     Route::get('firechat/settings', array('before' => 'auth', array($this, 'settings')));
     Event::listen('construct_left_menu', array($this, 'left_menu_item'));
     $this->layout = Template::mainLayout();
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     $this->loadClass(array('SComplaintsModel'));
     // Set settings page
     Shortcodes::register('scomplaint', array());
     Route::get('socialcomplaints/list', array('before' => 'auth', array($this, 'soclist')));
     Route::post('socialcomplaints/getlist', array('before' => 'auth', array($this, 'getlist')));
     Route::post('socialcomplaints/edititem', array('before' => 'auth', array($this, 'edititem')));
     Template::registerViewMethod('page', 'secial_complaints_list', 'Lista cu plângeri', null, true);
     Event::listen('construct_left_menu', array($this, 'left_menu_item'));
     // Set layout
     $this->layout = Template::mainLayout();
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->loadClass(array('ActeLocaleModel'));
     Route::get('actelocale/list', array('before' => 'auth', array($this, 'acte_list')));
     Route::post('actelocale/getlist', array('before' => 'auth', array($this, 'getlist')));
     Route::get('actelocale/create', array('before' => 'auth', array($this, 'create')));
     Route::get('actelocale/edit/{id}', array('before' => 'auth', array($this, 'editact')));
     Route::get('actelocale/parse', array('before' => 'auth', array($this, 'parse')));
     Route::post('actelocale/save', array('before' => 'auth', array($this, 'save')));
     Event::listen('construct_left_menu', array($this, 'left_menu_item'));
     Template::registerViewMethod('page', 'acteList', 'Lista de acte locale', null, true);
     $this->layout = Template::mainLayout();
 }
Example #7
0
 public function __construct()
 {
     parent::__construct();
     $this->loadClass(array('NewsletterModel'));
     Route::get('newsletter/settings', array('before' => 'auth', array($this, 'settings')));
     Route::get('newsletter/list', array('before' => 'auth', array($this, 'email_list')));
     Route::post('newsletter/getlist', array('before' => 'auth', array($this, 'getlist')));
     Route::post('newsletter/edititem', array('before' => 'auth', array($this, 'edititem')));
     Route::get('newsletter/send', array('before' => 'auth', array($this, 'send_message')));
     Route::post('newsletter/sendarticle', array('before' => 'auth', array($this, 'sendarticle')));
     Route::get('newsletter/export', array('before' => 'auth', array($this, 'getExport')));
     Event::listen('construct_left_menu', array($this, 'left_menu_item'));
     Event::listen('feed_post_bottom', array($this, 'sendemails'));
     $this->layout = Template::mainLayout();
 }
Example #8
0
 public function __construct()
 {
     parent::__construct();
     $this->loadClass(array('CalendarModel', 'CalendarLangModel', 'CalendarGroup'));
     Route::get('calendar/list', array('before' => 'auth', array($this, 'calendar_list')));
     Route::post('calendar/getlist', array('before' => 'auth', array($this, 'getlist')));
     Route::get('calendar/edit/{id}', array('before' => 'auth', array($this, 'edit_item')));
     Route::post('calendar/create', array('before' => 'auth', array($this, 'create_item')));
     Route::post('calendar/getgroups', array('before' => 'auth', array($this, 'getgroups')));
     Route::post('calendar/editgroup', array('before' => 'auth', array($this, 'editgroup')));
     Route::post('calendar/save', array('before' => 'auth', array($this, 'save')));
     Route::post('calendar/save_lang', array('before' => 'auth', array($this, 'save_lang')));
     Event::listen('page_attachment', array($this, 'page_group_attachment'));
     Route::post('calendar/save_post_attach', array('before' => 'auth', array($this, 'save_post_attach')));
     Event::listen('construct_left_menu', array($this, 'left_menu_item'));
     Event::listen('language_created', array($this, 'language_created'));
     Event::listen('language_deleted', array($this, 'language_deleted'));
     Template::registerViewMethod('page', $this->page_view_mod, 'Calendar', null, true);
     $this->layout = Template::mainLayout();
     Event::listen('feed_post_bottom', [$this, 'post_event']);
     Route::post('calendar/save_post_cal_attach', array('before' => 'auth', array($this, 'save_post_cal_attach')));
     Route::post('calendar/get_person_list/{id}', array('before' => 'auth', array($this, 'get_person_list')));
 }
Example #9
0
 public function __construct()
 {
     parent::__construct();
     $this->loadClass(array('PersonModel', 'PersonLangModel', 'PersonGroupPostModel', 'PersonGroupLang', 'PersonGroup'));
     // Set settings page
     Route::get('person/settings', array('before' => 'auth', array($this, 'settings')));
     // Set others routes
     Route::get('person/list', array('before' => 'auth', array($this, 'list_persons')));
     Route::post('person/getlist', array('before' => 'auth', array($this, 'getlist')));
     Route::post('person/getgroups', array('before' => 'auth', array($this, 'list_groups')));
     Route::get('person/editgroup/{id}', array('before' => 'auth', array($this, 'edit_group')));
     Route::post('person/savegroup', array('before' => 'auth', array($this, 'save_group')));
     Route::get('person/emptyperson', array('before' => 'auth', array($this, 'emptyperson')));
     Route::get('person/form', array('before' => 'auth', array($this, 'form')));
     Route::get('person/form/{id}', array('before' => 'auth', array($this, 'form')));
     Route::post('person/save', array('before' => 'auth', array($this, 'save')));
     Route::post('person/save_lang', array('before' => 'auth', array($this, 'save_lang')));
     Route::post('person/save_dynamic_fields', array('before' => 'auth', array($this, 'save_dynamic_fields')));
     Route::post('person/delete', array('before' => 'auth', array($this, 'deleteperson')));
     Route::post('person/save_post_attach', array('before' => 'auth', array($this, 'save_post_attach')));
     Route::post('person/save_person_groups', array('before' => 'auth', array($this, 'save_person_groups')));
     Route::post('person/getaudiences', array('before' => 'auth', array($this, 'getaudiences')));
     // Register new action
     Event::listen('construct_left_menu', array($this, 'left_menu_item'));
     Event::listen('page_attachment', array($this, 'page_group_attachment'));
     Event::listen('language_created', array($this, 'language_created'));
     Event::listen('language_deleted', array($this, 'language_deleted'));
     //Template::registerViewMethod('page', 'persons_list', 'Tabel persoane (consilieri)', null, true);
     Template::registerViewMethod('page', 'group_with_persons', 'Grupe de persoane', null, true);
     Template::registerViewMethod('page', 'persons_with_photo', 'Personalități', null, true);
     Template::registerViewMethod('page', 'persons_big', 'Viceprimar', null, true);
     Template::registerViewMethod('page', 'persons_mayor', 'Primar', null, true);
     Template::registerViewMethod('page', 'persons_secretar', 'Secretar', array($this, 'secretar'), true);
     Template::registerViewMethod('page', 'city_councilors', 'Consilieri locali', null, true);
     // Set layout
     $this->layout = Template::mainLayout();
 }