From 23eb9c630ce85828eb0d6722503778f3c9563343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Sun, 12 Oct 2014 19:56:10 +0200 Subject: [PATCH] Extra Info-Bar+Facebook --- app/Controller/UserController.php | 7 +++++- app/View/Elements/navbar.ctp | 4 ++-- app/View/Elements/user_worker_header.ctp | 8 ++++++- app/View/Job/application_send_ext_info.ctp | 5 +++-- app/View/Layouts/default.ctp | 13 ++++++++--- app/View/User/worker.ctp | 2 +- app/webroot/css/dreamjob.css | 25 ++++++++++++++++++---- 7 files changed, 50 insertions(+), 14 deletions(-) diff --git a/app/Controller/UserController.php b/app/Controller/UserController.php index 6936cb9..466710d 100755 --- a/app/Controller/UserController.php +++ b/app/Controller/UserController.php @@ -40,10 +40,15 @@ class UserController extends AppController { //self check $self_company = false; + $self_company_pro = false; $self = $this->MiconwareSession->getWorker(); if(!is_array($self) or count($self)<= 0){ $self = $this->MiconwareSession->getCompany(); $self_company = true; + + $_pro = decbin($self['DreamjobCompany']['pro_user']); + $_pro_l = strlen($_pro); + $self_company_pro = !empty($_pro[$_pro_l-1]); } //get Profil @@ -79,7 +84,7 @@ class UserController extends AppController { }else{ if(isset($profil['DreamjobWorker'])){ $cv = $this->DreamjobCvEntry->find('all',array('conditions' => array('worker_id'=> $profil['AppUser']['id']))); - if(!$self_company and $profil['AppUser']['id']==$self['AppUser']['id']){ + if($self_company_pro or $profil['AppUser']['id']==$self['AppUser']['id']){ $cvp0 = $this->DreamjobListCvCategory->find('first',array('conditions' => array('DreamjobListCvCategory.position' => 0))); $this->set('cvp0', $cvp0); $this->set("cv",$cv); diff --git a/app/View/Elements/navbar.ctp b/app/View/Elements/navbar.ctp index e70bccd..bf92ec0 100755 --- a/app/View/Elements/navbar.ctp +++ b/app/View/Elements/navbar.ctp @@ -5,9 +5,9 @@ class="active">Html->link(__('dreamjob.startpage'),array('controller'=>'home','action'=>'home'));?> class="active">Html->link(__('dreamjob.search'),array('controller'=>'search','action'=>'opening'));?> - + class="active">Html->link(__('dreamjob.service'),array('controller'=>'service','action'=>'index'));?> - + class="active">Html->link(__('dreamjob.application.extern.to'),array('controller'=>'job','action'=>'applicationSendExtInfo'),array("data-toggle"=>"modal","data-target"=>"#popup","ref"=>"eventOff"));?> diff --git a/app/View/Elements/user_worker_header.ctp b/app/View/Elements/user_worker_header.ctp index ba83451..5dd4f2f 100644 --- a/app/View/Elements/user_worker_header.ctp +++ b/app/View/Elements/user_worker_header.ctp @@ -39,7 +39,13 @@ :

- 0 and !isset($application)){ ?> + 0 and !isset($application) or $isLoggedin and $pro_user){ + ?>

diff --git a/app/View/Job/application_send_ext_info.ctp b/app/View/Job/application_send_ext_info.ctp index a391d68..80a8f0f 100644 --- a/app/View/Job/application_send_ext_info.ctp +++ b/app/View/Job/application_send_ext_info.ctp @@ -21,9 +21,10 @@
diff --git a/app/View/Layouts/default.ctp b/app/View/Layouts/default.ctp index c6d0a4d..565d2fe 100755 --- a/app/View/Layouts/default.ctp +++ b/app/View/Layouts/default.ctp @@ -32,9 +32,16 @@ - Html->image('mobil.png',array("url"=>array('controller'=>'home','action'=>'home')));?> - */ ?> + +
+ Html->link('Info-Seite','http://info.dream-job.eu/', array('class'=>'main','ref'=>'eventOff','target'=>'_blank'));?> + Html->link('für Unternehmen','http://info.dream-job.eu/arbeitgeber/', array('ref'=>'eventOff','target'=>'_blank'));?> + Html->link('für Suchende','http://info.dream-job.eu/', array('ref'=>'eventOff','target'=>'_blank'));?> + Html->link('für Schüler','http://info.dream-job.eu/schuelen/', array('ref'=>'eventOff','target'=>'_blank'));?> + Html->link('Facebook','https://www.facebook.com/Dreamjobforyou', array('ref'=>'eventOff','target'=>'_blank'));?> + Html->image('mobil.png',array("url"=>array('controller'=>'home','action'=>'home')));?> +
+ .modal-title{ - padding:40px 40px; + padding:20px; } .modal-body,.modal-title{ color:black;