dreamjob/app/View/Elements/navbar.ctp

46 lines
2.7 KiB
Plaintext
Raw Normal View History

2015-03-31 14:49:03 +02:00
<div class="nav_wrapper">
<div id="nav_item" style="float: left; margin-top: 100px">
<ul>
<?php if(!empty($COMPANY)): ?>
<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_START)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.startpage'),array('controller'=>'home','action'=>'company'));?></li>
<?php else: ?>
<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_START)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.startpage'),array('controller'=>'home','action'=>'home'));?></li>
<?php endif; /* ?>
<li<?php if(isset($MENU_SERVICE)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.service'),array('controller'=>'service','action'=>'index'));?></li>
<?php */
if(empty($COMPANY)): ?>
<li>
<a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">Login</a>
<ul class="dropdown-menu">
<?php echo $this->Form->input('User.mail',array('placeholder'=>__('dreamjob.mail')));?>
<?php echo $this->Form->input('User.password',array('placeholder'=>__('dreamjob.password')));?>
<?=$this->Form->button(__('dreamjob.login'),array('class'=>'btn btn-primary','type'=>'submit'));?>
</ul>
</li>
<li><?=$this->Html->link(__('Registierung'),array('controller'=>'registration','action'=>'worker'));?></li>
<?php endif; ?>
<?php if(!empty($isLoggedin)){ ?>
<li><?=$this->Html->link(__('dreamjob.logout'),array('controller'=>'home','action'=>'logout'));?></li>
<?php } ?>
</ul>
</div>
<div class="header_search">
<div style="width: 300px; float: left; margin:auto; margin-right:3px">
<div class="input-group">
<?php echo $this->Form->create(null,array('inputDefaults'=> array('div' => false,'label'=>false,'class' => 'form-control'),'url'=>array('controller'=>'search', 'action'=>'opening'),'type'=>'get')); ?>
<?php echo $this->Form->input('dreamjob.registration.to',array('placeholder'=>__('dreamjob.search.opening.startpage.placeholder')),array("class" => "such_feld"),array("type"=> "text"));?>
</div>
<?php echo $this->Form->button('suche',array('div' => false,'class'=>"btn danger search_button",'type' => 'submit')); ?>
</div>
<div class="text">VAGADAS</div>
</div>
<div>
<?=$this->Html->link(__('Stelle ausschreiben'),array('controller'=>'registration', 'action'=>'company'),array("class" => "btn danger ausschreiben"));?>
</div>
</div>