This commit is contained in:
Martin Müller 2014-04-17 11:10:14 +02:00
parent f534087aaa
commit 89a45dad65
5 changed files with 153 additions and 79 deletions

View File

@ -44,12 +44,12 @@ class HomeController extends AppController {
$this->request->data['User']['password']) $this->request->data['User']['password'])
){ ){
$this->MiconwareSession->refreshCache(); $this->MiconwareSession->refreshCache();
$this->MiconwareSession->setFlash('dreamjob.loggedin','flash',array('alert'=>'success')); $this->MiconwareSession->setFlash(__('dreamjob.loggedin'),'flash',array('alert'=>'success'));
}else{ }else{
$this->MiconwareSession->setFlash('dreamjob.loggedinError','flash',array('alert'=>'danger')); $this->MiconwareSession->setFlash(__('dreamjob.loggedinError'),'flash',array('alert'=>'danger'));
} }
}else{ }else{
$this->MiconwareSession->setFlash('dreamjob.loggedinError','flash',array('alert'=>'danger')); $this->MiconwareSession->setFlash(__('dreamjob.loggedinError'),'flash',array('alert'=>'danger'));
} }

View File

@ -14,6 +14,9 @@ class SearchController extends AppController {
'DreamjobListBranch','DreamjobListCity','DreamjobListKindofjob','DreamjobListGraducation'); 'DreamjobListBranch','DreamjobListCity','DreamjobListKindofjob','DreamjobListGraducation');
public $components = array('MiconwareSession'); public $components = array('MiconwareSession');
private static $TYPE_id = array('education'=>5,'academy'=>6,'internship'=>4);
/** /**
* Displays a view * Displays a view
* *
@ -47,10 +50,9 @@ class SearchController extends AppController {
$this->MiconwareSession->init($this); $this->MiconwareSession->init($this);
$this->MiconwareSession->initWeb($this); $this->MiconwareSession->initWeb($this);
$profil = $this->MiconwareSession->getWorker(); $profil = $this->MiconwareSession->getWorker();
if(!empty($profil) and count($profil) > 0){ if(!empty($profil) and count($profil) > 0 and isset(self::$TYPE_id[$type])){
$con = $this->MiconwareSession->getOpeningCondition(); $con = $this->MiconwareSession->getOpeningCondition();
$con['DreamjobJobOpening.kindofjob_id'] = self::$TYPE_id[$type];
$openings = $this->DreamjobJobOpening->find('all',array('conditions' => $con)); $openings = $this->DreamjobJobOpening->find('all',array('conditions' => $con));
@ -87,6 +89,8 @@ class SearchController extends AppController {
$this->MiconwareSession->initWeb($this); $this->MiconwareSession->initWeb($this);
echo var_dump($this->request->data);
$companies = $this->DreamjobCompany->find('all'); $companies = $this->DreamjobCompany->find('all');
$this->set("branches",$this->DreamjobListBranch->find('list')); $this->set("branches",$this->DreamjobListBranch->find('list'));

View File

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"POT-Creation-Date: 2014-04-13 21:31+0200\n" "POT-Creation-Date: 2014-04-17 11:09+0200\n"
"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n" "PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
"Last-Translator: NAME <EMAIL@ADDRESS>\n" "Last-Translator: NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"

View File

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"POT-Creation-Date: 2014-04-13 21:31+0200\n" "POT-Creation-Date: 2014-04-17 11:09+0200\n"
"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n" "PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
"Last-Translator: NAME <EMAIL@ADDRESS>\n" "Last-Translator: NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"

View File

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"POT-Creation-Date: 2014-04-13 21:31+0200\n" "POT-Creation-Date: 2014-04-17 11:09+0200\n"
"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n" "PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
"Last-Translator: NAME <EMAIL@ADDRESS>\n" "Last-Translator: NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
@ -14,32 +14,40 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
#: Controller/HomeController.php:47
msgid "dreamjob.loggedin"
msgstr ""
#: Controller/HomeController.php:49;52
msgid "dreamjob.loggedinError"
msgstr ""
#: Controller/RegistrationController.php:63;123 #: Controller/RegistrationController.php:63;123
#: Controller/UserController.php:292 #: Controller/UserController.php:293
msgid "dreamjob.error.password.notEqual" msgid "dreamjob.error.password.notEqual"
msgstr "" msgstr ""
#: Controller/UserController.php:98;107;201;248;320;354;439;485 #: Controller/UserController.php:99;108;202;249;321;355;434;480;509
msgid "dreamjob.error.page.notFound" msgid "dreamjob.error.page.notFound"
msgstr "" msgstr ""
#: Controller/UserController.php:219 #: Controller/UserController.php:220
msgid "dreamjob.error.page.order.saved" msgid "dreamjob.error.page.order.saved"
msgstr "" msgstr ""
#: Controller/UserController.php:222 #: Controller/UserController.php:223
msgid "dreamjob.error.page.order.error" msgid "dreamjob.error.page.order.error"
msgstr "" msgstr ""
#: Controller/UserController.php:349;411 #: Controller/UserController.php:350;406
msgid "dreamjob.page.save.error" msgid "dreamjob.page.save.error"
msgstr "" msgstr ""
#: Controller/UserController.php:397 #: Controller/UserController.php:392
msgid "dreamjob.page.oneType" msgid "dreamjob.page.oneType"
msgstr "" msgstr ""
#: Controller/UserController.php:417 #: Controller/UserController.php:412
msgid "dreamjob.page.save" msgid "dreamjob.page.save"
msgstr "" msgstr ""
@ -48,34 +56,60 @@ msgstr ""
msgid "dreamjob.company.to" msgid "dreamjob.company.to"
msgstr "" msgstr ""
#: View/Elements/job_opening_head_extra.ctp:7 #: View/Elements/job_company_item.ctp:37
msgid "dreamjob.opening.titleinfo"
msgstr ""
#: View/Elements/job_opening_head_extra.ctp:8
#: View/Elements/job_opening_item.ctp:66
msgid "dreamjob.graducation.company"
msgstr ""
#: View/Elements/job_opening_head_extra.ctp:9 #: View/Elements/job_opening_head_extra.ctp:9
#: View/Elements/job_opening_item.ctp:67 #: View/Elements/job_opening_item.ctp:66
#: View/Job/opening_edit.ctp:35 #: View/Job/opening_edit.ctp:35
#: View/Registration/company.ctp:24 #: View/Registration/company.ctp:24
#: View/User/company.ctp:71 #: View/Search/academy.ctp:23
#: View/Search/company.ctp:23
#: View/Search/education.ctp:23
#: View/Search/internship.ctp:23
#: View/Search/opening.ctp:23
#: View/User/company.ctp:81
#: View/User/settings_account.ctp:67 #: View/User/settings_account.ctp:67
#: View/User/settings_isearch.ctp:29 #: View/User/settings_isearch.ctp:29
msgid "dreamjob.branch" msgid "dreamjob.branch"
msgstr "" msgstr ""
#: View/Elements/job_company_item.ctp:38
#: View/Elements/job_opening_item.ctp:67
#: View/Elements/user_worker_item.ctp:40
#: View/Job/opening_edit.ctp:45
#: View/Registration/company.ctp:32
#: View/Registration/worker.ctp:32
#: View/Search/academy.ctp:24
#: View/Search/company.ctp:24
#: View/Search/education.ctp:24
#: View/Search/internship.ctp:24
#: View/Search/opening.ctp:25
#: View/User/settings_account.ctp:76
msgid "dreamjob.city"
msgstr ""
#: View/Elements/job_company_item.ctp:42
msgid "dreamjob.company.detail"
msgstr ""
#: View/Elements/job_opening_head_extra.ctp:7
msgid "dreamjob.opening.titleinfo"
msgstr ""
#: View/Elements/job_opening_head_extra.ctp:8
#: View/Elements/job_opening_item.ctp:65
msgid "dreamjob.graducation.company"
msgstr ""
#: View/Elements/job_opening_head_extra.ctp:10 #: View/Elements/job_opening_head_extra.ctp:10
#: View/Elements/job_opening_item.ctp:69 #: View/Elements/job_opening_item.ctp:68
#: View/Job/opening_edit.ctp:33 #: View/Job/opening_edit.ctp:33
#: View/Search/opening.ctp:27
#: View/User/settings_isearch.ctp:31 #: View/User/settings_isearch.ctp:31
msgid "dreamjob.kindofjob" msgid "dreamjob.kindofjob"
msgstr "" msgstr ""
#: View/Elements/job_opening_head_extra.ctp:11 #: View/Elements/job_opening_head_extra.ctp:11
#: View/Elements/job_opening_item.ctp:70 #: View/Elements/job_opening_item.ctp:69
#: View/Job/opening_edit.ctp:32 #: View/Job/opening_edit.ctp:32
msgid "dreamjob.opening.enddate" msgid "dreamjob.opening.enddate"
msgstr "" msgstr ""
@ -99,51 +133,42 @@ msgstr ""
#: View/Elements/job_opening_head_extra.ctp:18 #: View/Elements/job_opening_head_extra.ctp:18
#: View/Registration/company.ctp:23 #: View/Registration/company.ctp:23
#: View/User/company.ctp:67 #: View/User/company.ctp:77
#: View/User/settings_account.ctp:66 #: View/User/settings_account.ctp:66
msgid "dreamjob.owner" msgid "dreamjob.owner"
msgstr "" msgstr ""
#: View/Elements/job_opening_head_extra.ctp:21 #: View/Elements/job_opening_head_extra.ctp:21
#: View/Job/opening_edit.ctp:42 #: View/Job/opening_edit.ctp:42
#: View/User/company.ctp:76 #: View/User/company.ctp:86
msgid "dreamjob.address" msgid "dreamjob.address"
msgstr "" msgstr ""
#: View/Elements/job_opening_item.ctp:68 #: View/Elements/job_opening_item.ctp:74
#: View/Elements/user_worker_item.ctp:41
#: View/Job/opening_edit.ctp:45
#: View/Registration/company.ctp:32
#: View/Registration/worker.ctp:32
#: View/User/settings_account.ctp:76
msgid "dreamjob.city"
msgstr ""
#: View/Elements/job_opening_item.ctp:75
msgid "dreamjob.opening.detail" msgid "dreamjob.opening.detail"
msgstr "" msgstr ""
#: View/Elements/job_opening_item.ctp:78 #: View/Elements/job_opening_item.ctp:77
#: View/Elements/user_worker_item.ctp:69 #: View/Elements/user_worker_item.ctp:68
#: View/Job/application.ctp:12;64 #: View/Job/application.ctp:12;64
msgid "dreamjob.application" msgid "dreamjob.application"
msgstr "" msgstr ""
#: View/Elements/job_opening_item.ctp:79 #: View/Elements/job_opening_item.ctp:78
msgid "dreamjob.opening.edit" msgid "dreamjob.opening.edit"
msgstr "" msgstr ""
#: View/Elements/job_opening_item.ctp:80 #: View/Elements/job_opening_item.ctp:79
msgid "dreamjob.opening.delete" msgid "dreamjob.opening.delete"
msgstr "" msgstr ""
#: View/Elements/job_opening_item.ctp:90;92 #: View/Elements/job_opening_item.ctp:89;91
#: View/Elements/user_worker_item.ctp:66 #: View/Elements/user_worker_item.ctp:65
#: View/Job/application.ctp:37 #: View/Job/application.ctp:37
msgid "dreamjob.applicated" msgid "dreamjob.applicated"
msgstr "" msgstr ""
#: View/Elements/job_opening_item.ctp:98 #: View/Elements/job_opening_item.ctp:97
#: View/Job/opening.ctp:50 #: View/Job/opening.ctp:50
msgid "dreamjob.applicate" msgid "dreamjob.applicate"
msgstr "" msgstr ""
@ -156,40 +181,76 @@ msgstr ""
msgid "dreamjob.startpage" msgid "dreamjob.startpage"
msgstr "" msgstr ""
#: View/Elements/navbar.ctp:9 #: View/Elements/navbar.ctp:10;12
#: View/Home/home.ctp:9 #: View/Home/home.ctp:9
#: View/User/company.ctp:87 #: View/Search/academy.ctp:27
#: View/Search/company.ctp:27
#: View/Search/education.ctp:27
#: View/Search/internship.ctp:27
#: View/Search/opening.ctp:30
#: View/Search/worker.ctp:24
#: View/User/company.ctp:97
msgid "dreamjob.search" msgid "dreamjob.search"
msgstr "" msgstr ""
#: View/Elements/navbar.ctp:10 #: View/Elements/navbar.ctp:14
msgid "dreamjob.service" msgid "dreamjob.service"
msgstr "" msgstr ""
#: View/Elements/navbar.ctp:11 #: View/Elements/navbar.ctp:15
msgid "dreamjob.logout" msgid "dreamjob.logout"
msgstr "" msgstr ""
#: View/Elements/navbar.ctp:24 #: View/Elements/navbar.ctp:28
#: View/Elements/user_worker_header.ctp:37 #: View/Elements/user_worker_header.ctp:44
#: View/Registration/company.ctp:15 #: View/Registration/company.ctp:15
#: View/Registration/worker.ctp:15 #: View/Registration/worker.ctp:15
#: View/User/company.ctp:35;58 #: View/User/company.ctp:45;68
#: View/User/settings_account.ctp:36 #: View/User/settings_account.ctp:36
msgid "dreamjob.mail" msgid "dreamjob.mail"
msgstr "" msgstr ""
#: View/Elements/navbar.ctp:26 #: View/Elements/navbar.ctp:30
#: View/Registration/company.ctp:16 #: View/Registration/company.ctp:16
#: View/Registration/worker.ctp:16 #: View/Registration/worker.ctp:16
#: View/User/settings_account.ctp:38 #: View/User/settings_account.ctp:38
msgid "dreamjob.password" msgid "dreamjob.password"
msgstr "" msgstr ""
#: View/Elements/navbar.ctp:28 #: View/Elements/navbar.ctp:32
msgid "dreamjob.login" msgid "dreamjob.login"
msgstr "" msgstr ""
#: View/Elements/search_navbar.ctp:3
#: View/Search/opening.ctp:15
msgid "dreamjob.search.opening"
msgstr ""
#: View/Elements/search_navbar.ctp:4
#: View/Search/company.ctp:15
msgid "dreamjob.search.company"
msgstr ""
#: View/Elements/search_navbar.ctp:6
#: View/Search/auto.ctp:10
msgid "dreamjob.search.auto"
msgstr ""
#: View/Elements/search_navbar.ctp:7
#: View/Search/education.ctp:15
msgid "dreamjob.search.education"
msgstr ""
#: View/Elements/search_navbar.ctp:8
#: View/Search/academy.ctp:15
msgid "dreamjob.search.academy"
msgstr ""
#: View/Elements/search_navbar.ctp:9
#: View/Search/internship.ctp:15
msgid "dreamjob.search.internship"
msgstr ""
#: View/Elements/user_worker_cv.ctp:9 #: View/Elements/user_worker_cv.ctp:9
#: View/Elements/user_worker_cv_edit.ctp:12 #: View/Elements/user_worker_cv_edit.ctp:12
#: View/Job/application.ctp:67 #: View/Job/application.ctp:67
@ -210,7 +271,7 @@ msgstr ""
#: View/Elements/user_worker_cv.ctp:34 #: View/Elements/user_worker_cv.ctp:34
#: View/Elements/user_worker_cv_edit.ctp:38 #: View/Elements/user_worker_cv_edit.ctp:38
#: View/Elements/user_worker_item.ctp:44 #: View/Elements/user_worker_item.ctp:43
#: View/Registration/worker.ctp:27 #: View/Registration/worker.ctp:27
#: View/User/settings_account.ctp:51 #: View/User/settings_account.ctp:51
msgid "dreamjob.workexperience" msgid "dreamjob.workexperience"
@ -242,24 +303,31 @@ msgstr ""
msgid "dreamjob.between.till" msgid "dreamjob.between.till"
msgstr "" msgstr ""
#: View/Elements/user_worker_header.ctp:32 #: View/Elements/user_worker_header.ctp:22;23
#: View/User/company.ctp:30;31
#: View/User/settings_imageUpload.ctp:7
msgid "dreamjob.image.edit"
msgstr ""
#: View/Elements/user_worker_header.ctp:39
#: View/Registration/worker.ctp:25 #: View/Registration/worker.ctp:25
#: View/User/settings_account.ctp:49 #: View/User/settings_account.ctp:49
msgid "dreamjob.iam" msgid "dreamjob.iam"
msgstr "" msgstr ""
#: View/Elements/user_worker_item.ctp:42 #: View/Elements/user_worker_item.ctp:41
#: View/Job/opening_edit.ctp:34 #: View/Job/opening_edit.ctp:34
#: View/Registration/worker.ctp:26 #: View/Registration/worker.ctp:26
#: View/Search/opening.ctp:26
#: View/User/settings_account.ctp:50 #: View/User/settings_account.ctp:50
msgid "dreamjob.graducation" msgid "dreamjob.graducation"
msgstr "" msgstr ""
#: View/Elements/user_worker_item.ctp:44 #: View/Elements/user_worker_item.ctp:43
msgid "dreamjob.years" msgid "dreamjob.years"
msgstr "" msgstr ""
#: View/Elements/user_worker_item.ctp:74 #: View/Elements/user_worker_item.ctp:73
msgid "dreamjob.details" msgid "dreamjob.details"
msgstr "" msgstr ""
@ -287,14 +355,6 @@ msgstr ""
msgid "dreamjob.startpage.openings" msgid "dreamjob.startpage.openings"
msgstr "" msgstr ""
#: View/Home/home.ctp:47
msgid "forget password"
msgstr ""
#: View/Home/home.ctp:48
msgid "register"
msgstr ""
#: View/Job/application.ctp:10 #: View/Job/application.ctp:10
#: View/Job/applicationWorker_list.ctp:7 #: View/Job/applicationWorker_list.ctp:7
#: View/Job/opening.ctp:28 #: View/Job/opening.ctp:28
@ -302,7 +362,7 @@ msgid "dreamjob.my.application"
msgstr "" msgstr ""
#: View/Job/application.ctp:16 #: View/Job/application.ctp:16
#: View/User/company.ctp:97;99;118 #: View/User/company.ctp:107;109;128
msgid "dreamjob.opening" msgid "dreamjob.opening"
msgstr "" msgstr ""
@ -386,6 +446,7 @@ msgstr ""
#: View/Job/opening_edit.ctp:44 #: View/Job/opening_edit.ctp:44
#: View/Registration/company.ctp:33 #: View/Registration/company.ctp:33
#: View/Registration/worker.ctp:33 #: View/Registration/worker.ctp:33
#: View/Search/opening.ctp:24
#: View/User/settings_account.ctp:77 #: View/User/settings_account.ctp:77
msgid "dreamjob.postcode" msgid "dreamjob.postcode"
msgstr "" msgstr ""
@ -485,7 +546,7 @@ msgid "dreamjob.corporateform"
msgstr "" msgstr ""
#: View/Registration/company.ctp:27 #: View/Registration/company.ctp:27
#: View/User/company.ctp:28;51 #: View/User/company.ctp:38;61
#: View/User/settings_account.ctp:70 #: View/User/settings_account.ctp:70
msgid "dreamjob.website" msgid "dreamjob.website"
msgstr "" msgstr ""
@ -499,6 +560,7 @@ msgstr ""
#: View/Registration/company.ctp:41 #: View/Registration/company.ctp:41
#: View/Registration/worker.ctp:42 #: View/Registration/worker.ctp:42
#: View/User/settings_account.ctp:83 #: View/User/settings_account.ctp:83
#: View/User/settings_imageUpload.ctp:14
#: View/User/settings_pages.ctp:94 #: View/User/settings_pages.ctp:94
msgid "dreamjob.settings.save" msgid "dreamjob.settings.save"
msgstr "" msgstr ""
@ -542,22 +604,30 @@ msgstr ""
msgid "dreamjob.country" msgid "dreamjob.country"
msgstr "" msgstr ""
#: View/Search/auto.ctp:11
msgid "dreamjob.search.auto.text"
msgstr ""
#: View/Search/worker.ctp:14
msgid "dreamjob.search.worker"
msgstr ""
#: View/User/settings_account.ctp:18;29 #: View/User/settings_account.ctp:18;29
#: View/User/settings_account_delete.ctp:4 #: View/User/settings_account_delete.ctp:9
#: View/User/settings_isearch.ctp:17 #: View/User/settings_isearch.ctp:17
#: View/User/settings_pages.ctp:35 #: View/User/settings_pages.ctp:35
msgid "dreamjob.settings" msgid "dreamjob.settings"
msgstr "" msgstr ""
#: View/User/settings_account.ctp:19 #: View/User/settings_account.ctp:19
#: View/User/settings_account_delete.ctp:5 #: View/User/settings_account_delete.ctp:10
#: View/User/settings_isearch.ctp:18 #: View/User/settings_isearch.ctp:18
#: View/User/settings_pages.ctp:36;46 #: View/User/settings_pages.ctp:36;46
msgid "dreamjob.settings.pages" msgid "dreamjob.settings.pages"
msgstr "" msgstr ""
#: View/User/settings_account.ctp:23 #: View/User/settings_account.ctp:23
#: View/User/settings_account_delete.ctp:9 #: View/User/settings_account_delete.ctp:14
#: View/User/settings_isearch.ctp:19;22 #: View/User/settings_isearch.ctp:19;22
#: View/User/settings_pages.ctp:40 #: View/User/settings_pages.ctp:40
msgid "dreamjob.settings.isearch" msgid "dreamjob.settings.isearch"
@ -568,19 +638,19 @@ msgid "dreamjob.searchhidden"
msgstr "" msgstr ""
#: View/User/settings_account.ctp:82 #: View/User/settings_account.ctp:82
#: View/User/settings_account_delete.ctp:22 #: View/User/settings_account_delete.ctp:27
msgid "dreamjob.settings.delete" msgid "dreamjob.settings.delete"
msgstr "" msgstr ""
#: View/User/settings_account_delete.ctp:15 #: View/User/settings_account_delete.ctp:20
msgid "dreamjob.settings.delete.title" msgid "dreamjob.settings.delete.title"
msgstr "" msgstr ""
#: View/User/settings_account_delete.ctp:18 #: View/User/settings_account_delete.ctp:23
msgid "dreamjob.settings.delete.text" msgid "dreamjob.settings.delete.text"
msgstr "" msgstr ""
#: View/User/settings_account_delete.ctp:21 #: View/User/settings_account_delete.ctp:26
msgid "dreamjob.settings.to" msgid "dreamjob.settings.to"
msgstr "" msgstr ""