Opening ende

This commit is contained in:
Martin Müller 2014-03-01 12:15:34 +01:00
parent 09cb5961cf
commit 88ecf412f7
3 changed files with 10 additions and 2 deletions

View File

@ -86,7 +86,7 @@ class UserController extends AppController {
$this->set('page',$page);
if(!$hard_error)
if($company){
$openings = $this->DreamjobJobOpening->find('all',array('conditions' => array('DreamjobJobOpening.company_id' => $profil['AppUser']['id'])));
$openings = $this->DreamjobJobOpening->find('all',array('conditions' => array('DreamjobJobOpening.company_id' => $profil['AppUser']['id'],'DreamjobJobOpening.active'=>1)));
$this->set("openings",$openings);
$this->render('/User/company');
}else

View File

@ -0,0 +1,8 @@
<?php
/*
*
*/
?>
<div class="box">
</div>

View File

@ -12,7 +12,7 @@
<div>
<span><?=$this->Html->link(__('dreamjob.company.to'),array('controller'=>'user','action'=>'profil','id'=>$opening['AppUser']['id']));?></span>
<?php
if(is_array($WORKER) and count($WORKER) > 0){
if(isset($WORKER) and is_array($WORKER) and count($WORKER) > 0){
?>
<span style="float: right;">
<?php