dreamjob/app/View/User/worker.ctp

70 lines
2.4 KiB
Plaintext
Raw Normal View History

2014-02-18 12:10:29 +01:00
<?php
/*
*
*/
?>
<div class="box">
<?php
echo $this->element('user_worker_header');
?>
</div>
2014-02-19 00:02:17 +01:00
<?php
2014-10-04 17:46:33 +02:00
$pro = decbin($COMPANY['DreamjobCompany']['pro_user']);
$pro_l = strlen($pro);
$pro_user = !empty($pro[$pro_l-1]);
if(( !empty($COMPANY) and is_array($COMPANY) and count($COMPANY) > 0 and $pro_user )
2014-02-19 00:02:17 +01:00
or ( !empty($WORKER) and is_array($WORKER) and count($WORKER) > 0 )
){
?>
2014-02-18 12:10:29 +01:00
<div id="tab" class="box">
<!-- tab -->
<div class="tabs-below">
<ul class="nav nav-tabs pull-right">
<li<?php if (empty($page)){?> class="active"<?php } ?>>
<?php
if(isset($id))
echo $this->Html->link(__("dreamjob.cv"),array('controller'=>'user','action'=>'profil','id'=> $id ),array('rel'=>"tab"));
else
echo $this->Html->link(__("dreamjob.cv"),array('controller'=>'user','action'=>'profil' ),array('rel'=>"tab"));
?>
</li>
<?php foreach($profil['DreamjobPageInh'] as $pag){ ?>
<li<?php if(isset($page['DreamjobPageInh']['id'])) if ($page['DreamjobPageInh']['id'] == $pag['id']){?> class="active"<?php } ?>>
<?php
if(isset($id))
echo $this->Html->link($pag['title'],array('controller'=>'user','action'=>'profil','id'=> $id,'page'=> $pag['id'] ),array('rel'=>"tab"));
else
echo $this->Html->link($pag['title'],array('controller'=>'user','action'=>'profil','page'=> $pag['id'] ),array('rel'=>"tab"));
?>
<?php }?>
2014-09-23 15:53:51 +02:00
<?php if(isset($WORKER) and $WORKER['AppUser']['id']==$profil['AppUser']['id']){ ?>
2014-09-23 16:13:22 +02:00
<li><?=$this->Html->link('<span class="glyphicon glyphicon-plus"></span>&nbsp;'.__('dreamjob.pages.new'),array('controller'=>'user','action'=>'settings_pageInh'),array('escape'=>false));?></li>
2014-09-23 15:53:51 +02:00
<?php } ?>
2014-02-18 12:10:29 +01:00
</ul>
</div>
<?php
if(!empty($page)){
echo $this->element('user_page');
}else{
2014-04-01 20:58:36 +02:00
if(!empty($WORKER) and is_array($WORKER) and count($WORKER) > 0 and $WORKER['AppUser']['id']== $profil['AppUser']['id'] and !empty($edit_show)){
2014-03-15 01:52:07 +01:00
echo $this->element('user_worker_cv_edit');
}else{
echo $this->element('user_worker_cv');
}
2014-03-12 17:42:02 +01:00
}
2014-02-18 12:10:29 +01:00
?>
<!-- /tab -->
</div>
2014-02-19 00:02:17 +01:00
<?php
2014-04-13 20:06:35 +02:00
}elseif( !empty($COMPANY) and is_array($COMPANY) and count($COMPANY) > 0){
?>
<div class="box">
2014-04-29 22:54:46 +02:00
<h3><?=__('dreamjob.company.nopro.title');?></h3>
2014-04-13 20:06:35 +02:00
<?=__('dreamjob.company.nopro');?>
</div>
<?php
}
2014-02-19 00:02:17 +01:00
?>