This commit is contained in:
2014-05-06 13:45:52 +02:00
parent 15e71689ea
commit f5d8479729
1 changed files with 7 additions and 11 deletions

View File

@ -1,10 +1,4 @@
<?php
if(!empty($isLoggedin)){
?>
<ul> <ul>
<?php if(!empty($isStaff)){ ?>
<li<?php if(isset($MENU_ADMIN)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.admin'),'/admin/');?></li>
<?php } ?>
<li<?php if(isset($MENU_START)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.startpage'),array('controller'=>'home','action'=>'home'));?></li> <li<?php if(isset($MENU_START)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.startpage'),array('controller'=>'home','action'=>'home'));?></li>
<?php if(!$COMPANY): ?> <?php if(!$COMPANY): ?>
<li<?php if(isset($MENU_SEARCH)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.search'),array('controller'=>'search','action'=>'opening'));?></li> <li<?php if(isset($MENU_SEARCH)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.search'),array('controller'=>'search','action'=>'opening'));?></li>
@ -12,9 +6,11 @@ if(!empty($isLoggedin)){
<li<?php if(isset($MENU_SEARCH)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.search'),array('controller'=>'search','action'=>'worker'));?></li> <li<?php if(isset($MENU_SEARCH)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.search'),array('controller'=>'search','action'=>'worker'));?></li>
<?php endif; ?> <?php endif; ?>
<li<?php if(isset($MENU_SERVICE)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.service'),'/service/');?></li> <li<?php if(isset($MENU_SERVICE)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.service'),'/service/');?></li>
<?php if(!empty($isLoggedin)){ ?>
<li><?=$this->Html->link(__('dreamjob.logout'),array('controller'=>'home','action'=>'logout'));?></li> <li><?=$this->Html->link(__('dreamjob.logout'),array('controller'=>'home','action'=>'logout'));?></li>
<?php } ?>
</ul> </ul>
<?php }else{ ?> <?php if(empty($isLoggedin)){ ?>
<div> <div>
<?php <?php
echo $this->Form->create(null, array('inputDefaults'=> array('div' => false,'label'=>false, echo $this->Form->create(null, array('inputDefaults'=> array('div' => false,'label'=>false,