dreamjob/app/View/Job/opening.ctp

67 lines
2.6 KiB
Plaintext
Raw Normal View History

2014-02-19 00:03:29 +01:00
<?php
/*
*
*/
$fav=false;
2014-02-23 10:59:00 +01:00
if(isset($WORKER['Favority']))
2014-02-19 00:03:29 +01:00
foreach($WORKER['Favority'] as $val){
if($val['id'] == $opening['DreamjobJobOpening']['id'])
$fav=true;
}
?>
<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){
?>
<span style="float: right;">
<?php
//TODO bereits beworben
if(false)
echo $this->Html->link(__('dreamjob.my.application'),array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'favorite'=>'favorite'));
else{
//TODO isFavority
$link='dreamjob.favority.adding';
if($fav)
$link='dreamjob.favority.removeing';
echo $this->Html->link(__($link),array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'favorite'=>'favorite'));
}
?>
</span>
<?php } ?>
</div>
<div class="box">
<div class="box-title">
<h3><?=$opening['AppUser']['nickname']." ".$opening['DreamjobCompany']['corporateform'];?></h3>
<h1><?=$opening['DreamjobJobOpening']['title'];?></h1>
</div>
<p>
<h4><?=__("dreamjob.opening.titleinfo");?></h4>
<?=__("dreamjob.graducation.company");?>: <?=$opening['DreamjobListGraducation']['name'];?><br/>
<?=__("dreamjob.branch");?>: <?=$opening['DreamjobJobOpening']['branch'];?><br/>
<?=__("dreamjob.kindofjob");?>: <?=$opening['DreamjobListKindofjob']['name'];?><br/>
<span<?php if( time() > strtotime($opening['DreamjobJobOpening']['enddate'])){ ?> class="opening_outdate"<?php } ?>><?=__("dreamjob.opening.enddate");?>: <?=$this->Time->format('d.m.Y', $opening['DreamjobJobOpening']['enddate']);?></span>
</p>
<br/>
<p>
<h4><?=__("dreamjob.company.titleinfo");?></h4>
<?=__("dreamjob.company");?>: <?=$opening['AppUser']['nickname']." ".$opening['DreamjobCompany']['corporateform'];?><br/>
<?=__("dreamjob.headcount");?>: <?=$opening['DreamjobCompany']['headcount'];?><br/>
<?=__("dreamjob.owner");?>: <?=$opening['DreamjobCompany']['owner'];?>
</p>
<p>
<?=__("dreamjob.address");?>: <br/>
<?=$opening['DreamjobUser']['street'];?><br/>
<?=$opening['DreamjobUser']['postcode']." ".$opening['DreamjobUser']['city'];?>
</p>
<br/>
<div>
<?=$opening['DreamjobJobOpening']['text'];?>
</div>
2014-02-23 10:59:00 +01:00
<div style="text-align:right;">
<?php
echo $this->Html->link(__('dreamjob.applicate'),array('controller'=>'job', 'action'=>'openingGet', 'id'=> $opening['DreamjobJobOpening']['id']),array("class" => "btn btn-default"));
?>
</div>
2014-02-19 00:03:29 +01:00
</div>