dreamjob/app/View/User/worker.ctp

62 lines
2.0 KiB
PHP

<?php
/*
*
*/
?>
<div class="box">
<?php
echo $this->element('user_worker_header');
?>
</div>
<?php
if(( !empty($COMPANY) and is_array($COMPANY) and count($COMPANY) > 0 and ($COMPANY['DreamjobCompany']['pro_user']>1) )
or ( !empty($WORKER) and is_array($WORKER) and count($WORKER) > 0 )
){
?>
<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 }?>
</ul>
</div>
<?php
if(!empty($page)){
echo $this->element('user_page');
}else{
if(!empty($WORKER) and is_array($WORKER) and count($WORKER) > 0 and $WORKER['AppUser']['id']== $profil['AppUser']['id'] and !empty($edit_show)){
echo $this->element('user_worker_cv_edit');
}else{
echo $this->element('user_worker_cv');
}
}
?>
<!-- /tab -->
</div>
<?php
}elseif( !empty($COMPANY) and is_array($COMPANY) and count($COMPANY) > 0){
?>
<div class="box">
<h1><?=__('dreamjob.company.nopro.title');?></h1>
<?=__('dreamjob.company.nopro');?>
</div>
<?php
}
?>