52 lines
2.5 KiB
PHP
Executable File
52 lines
2.5 KiB
PHP
Executable File
<?php
|
|
if(!empty($isLoggedin)){
|
|
?>
|
|
<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_SEARCH)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.search'),'/search/');?></li>
|
|
<li<?php if(isset($MENU_SETTINGS)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.settings'),'/settings/');?></li>
|
|
<li<?php if(isset($MENU_SERVICE)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.service'),'/service/');?></li>
|
|
<li><?=$this->Html->link(__('dreamjob.logout'),array('controller'=>'home','action'=>'logout'));?></li>
|
|
</ul>
|
|
<?php }else{ ?>
|
|
<div>
|
|
<?php
|
|
echo $this->Form->create(null, array('inputDefaults'=> array('div' => false,'label'=>false,
|
|
'style' => 'width:160px;',
|
|
'class' => 'form-control'),
|
|
'class'=>'navbar-form',
|
|
'back'=>'true',
|
|
'url'=> array('controller'=>'home','action'=>'login')
|
|
// 'url' => array('controller' => 'recipes', 'action' => 'add')
|
|
));
|
|
echo $this->Form->input('User.mail',array('placeholder'=>__('dreamjob.mail')));
|
|
echo "\n";
|
|
echo $this->Form->input('User.password',array('placeholder'=>__('dreamjob.password')));
|
|
echo "\n";
|
|
echo $this->Form->button(__('dreamjob.login'),array('div' => false,'class'=>"btn btn-default",'type' => 'submit'));
|
|
echo $this->Form->end();
|
|
?>
|
|
</div>
|
|
<?php }
|
|
/*
|
|
|
|
<button type="submit" class="btn btn-default"><?=__('dreamjob.login');?></button>
|
|
<form class="navbar-form" method="post" action="${PURL}login/" back="true">
|
|
<input class="form-control" type="text" name="mail" placeholder="<?=__('dreamjob.mail');?>" style="width:160px;"/>
|
|
<input class="form-control" type="password" name="password" placeholder="<?=__('dreamjob.password');?>" style="width:160px;"/>
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="#">Action</a></li>
|
|
<li><a href="#">Another action</a></li>
|
|
<li><a href="#">Something else here</a></li>
|
|
<li class="divider"></li>
|
|
<li class="nav-header">Nav header</li>
|
|
<li><a href="#">Separated link</a></li>
|
|
<li><a href="#">One more separated link</a></li>
|
|
</ul>
|
|
</li> */?>
|