From 5a7c86cff8e4e9a3ba2158ed4295e0da5b0baa74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Wed, 5 Mar 2014 19:01:44 +0100 Subject: [PATCH] startseite --- app/Controller/HomeController.php | 11 ++++---- app/View/Home/home.ctp | 12 ++++---- app/webroot/css/dreamjob.css | 36 ++++++++++++++++++++++++ app/webroot/img/start-beside-search.jpg | Bin 0 -> 83741 bytes 4 files changed, 48 insertions(+), 11 deletions(-) create mode 100644 app/webroot/img/start-beside-search.jpg diff --git a/app/Controller/HomeController.php b/app/Controller/HomeController.php index fd7ef09..c87f7c9 100755 --- a/app/Controller/HomeController.php +++ b/app/Controller/HomeController.php @@ -20,12 +20,12 @@ class HomeController extends AppController { * @throws NotFoundException When the view file could not be found * or MissingViewException in debug mode. */ - + private $home_opening_condition = array('contitions'=>array('active'=>true),'order'=>'DreamjobJobOpening.id DESC','limit'=>3); public function home() { $this->MiconwareSession->init($this); $this->MiconwareSession->initWeb($this); $this->MiconwareSession->setFlash('In Entwicklung','flash',array('alert'=>'info')); - $openings = $this->DreamjobJobOpening->find('all',array('contitions'=>array('active'=>true),'order'=>'DreamjobJobOpening.id DESC','limit'=>3)); + $openings = $this->DreamjobJobOpening->find('all',$this->home_opening_condition); $this->set('openings',$openings); $this->set('title', 'dreamjob.startpage'); $this->set('MENU_START', true); @@ -52,7 +52,8 @@ class HomeController extends AppController { $this->MiconwareSession->initWeb($this); - + $openings = $this->DreamjobJobOpening->find('all',$this->home_opening_condition); + $this->set('openings',$openings); $this->set('title', 'dreamjob.startpage'); $this->set('MENU_START', true); $this->render('/Home/home'); @@ -67,7 +68,8 @@ class HomeController extends AppController { $this->MiconwareSession->setFlash('dreamjob.loggingoutError','flash',array('alert'=>'danger')); $this->MiconwareSession->initWeb($this); - + $openings = $this->DreamjobJobOpening->find('all',$this->home_opening_condition); + $this->set('openings',$openings); $this->set('title', 'dreamjob.startpage'); $this->set('MENU_START', true); $this->render('/Home/home'); @@ -76,7 +78,6 @@ class HomeController extends AppController { public function contact() { $this->MiconwareSession->init($this); - sleep(1); $this->MiconwareSession->initWeb($this); $this->set('title', 'dreamjob.contact'); $this->render('/Home/contact'); diff --git a/app/View/Home/home.ctp b/app/View/Home/home.ctp index bbf9c4d..a2f1420 100755 --- a/app/View/Home/home.ctp +++ b/app/View/Home/home.ctp @@ -3,15 +3,15 @@ * */ ?> -
- -
-

-
+