diff --git a/app/Model/DreamjobCompany.php b/app/Model/DreamjobCompany.php index 05f2eb8..3713aa3 100755 --- a/app/Model/DreamjobCompany.php +++ b/app/Model/DreamjobCompany.php @@ -244,7 +244,9 @@ class DreamjobCompany extends AppModel { 'Pro' => array( 'className' => 'DreamjobCompanyPro', 'foreignKey' => 'company_id', - 'limit' => 1 + 'limit' => 1, + 'conditions'=>array('Pro.till >= CURRENT_DATE()'), + 'order'=>'Pro.till DESC' ), 'DreamjobListCity' => array( 'className' => 'DreamjobListCity', diff --git a/app/View/Layouts/default.ctp b/app/View/Layouts/default.ctp index e40b2e9..90c15d7 100755 --- a/app/View/Layouts/default.ctp +++ b/app/View/Layouts/default.ctp @@ -35,10 +35,10 @@
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 Unternehmen','http://info.dream-job.eu/unser-angebot/', array('ref'=>'eventOff','target'=>'_blank'));?> Html->link('für Schüler','http://info.dream-job.eu/', array('ref'=>'eventOff','target'=>'_blank'));?> - Html->link('für Schulen','http://info.dream-job.eu/schulen/', array('ref'=>'eventOff','target'=>'_blank'));?> - Html->link('Facebook','https://www.facebook.com/Dreamjobforyou', array('ref'=>'eventOff','target'=>'_blank'));?> + Html->link('für Schulen','http://info.dream-job.eu/unser-angebot-schulen/', array('ref'=>'eventOff','target'=>'_blank'));?> + Html->link('Facebook','https://www.facebook.com/dreamjobbremen', array('ref'=>'eventOff','target'=>'_blank'));?> Html->image('mobil.png',array("url"=>array('controller'=>'home','action'=>'home')));?>