Extra Info-Bar+Facebook

This commit is contained in:
Martin Müller 2014-10-12 19:56:10 +02:00
parent 145d29bb23
commit 23eb9c630c
7 changed files with 50 additions and 14 deletions

View File

@ -40,10 +40,15 @@ class UserController extends AppController {
//self check
$self_company = false;
$self_company_pro = false;
$self = $this->MiconwareSession->getWorker();
if(!is_array($self) or count($self)<= 0){
$self = $this->MiconwareSession->getCompany();
$self_company = true;
$_pro = decbin($self['DreamjobCompany']['pro_user']);
$_pro_l = strlen($_pro);
$self_company_pro = !empty($_pro[$_pro_l-1]);
}
//get Profil
@ -79,7 +84,7 @@ class UserController extends AppController {
}else{
if(isset($profil['DreamjobWorker'])){
$cv = $this->DreamjobCvEntry->find('all',array('conditions' => array('worker_id'=> $profil['AppUser']['id'])));
if(!$self_company and $profil['AppUser']['id']==$self['AppUser']['id']){
if($self_company_pro or $profil['AppUser']['id']==$self['AppUser']['id']){
$cvp0 = $this->DreamjobListCvCategory->find('first',array('conditions' => array('DreamjobListCvCategory.position' => 0)));
$this->set('cvp0', $cvp0);
$this->set("cv",$cv);

View File

@ -5,9 +5,9 @@
<?php else: ?>
<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'),array('controller'=>'search','action'=>'opening'));?></li>
<?php endif; ?>
<?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)): ?>
<?php */ if(empty($COMPANY)): ?>
<li<?php if(isset($MENU_EXT_APP)){?> class="active"<?php } ?>><?=$this->Html->link(__('dreamjob.application.extern.to'),array('controller'=>'job','action'=>'applicationSendExtInfo'),array("data-toggle"=>"modal","data-target"=>"#popup","ref"=>"eventOff"));?></li>
<?php endif; ?>
<?php if(!empty($isLoggedin)){ ?>

View File

@ -39,7 +39,13 @@
<?=__("dreamjob.iam");?>:<br/>
<?=$profil['DreamjobWorker']['iam'];?>
</p>
<?php if(!empty($WORKER) and is_array($WORKER) and count($WORKER) > 0 and !isset($application)){ ?>
<?php
$pro = '00000000'.decbin($COMPANY['DreamjobCompany']['pro_user']);
$pro_l = strlen($pro);
$pro_user = !empty($pro[$pro_l-2]);
if(!empty($WORKER) and is_array($WORKER) and count($WORKER) > 0 and !isset($application) or $isLoggedin and $pro_user){
?>
<h3><?=__("dreamjob.mail");?></h3>
<a href="mailto:<?=$profil['User']['mail'];?>">
<?=__('dreamjob.mail.contact');?>

View File

@ -21,9 +21,10 @@
<br/>
<div class="modal-footer">
<?php
if(empty($isLoggedin))
if(empty($isLoggedin)){
echo $this->Html->link(__('dreamjob.registration.to'),array('controller'=>'registration','action'=>'worker'),array('class'=>'btn btn-primary'));
else
echo $this->Html->link(__('dreamjob.login'),array('controller'=>'home','action'=>'login'),array('class'=>'btn btn-default'));
}else
echo $this->Html->link('<span class="glyphicon glyphicon-send"></span>&nbsp;'.__('dreamjob.application.extern.to.doing'),array('controller'=>'job','action'=>'applicationSendExt'),array('class'=>'btn btn-primary','escape'=>false));
?>
</div>

View File

@ -32,9 +32,16 @@
<div id="logo">
<?=$this->Html->image('logo.png',array('url'=>array('controller'=>'home','action'=>'home'))); ?>
</div>
<?php /*
<div id="logo_right"><?=$this->Html->image('mobil.png',array("url"=>array('controller'=>'home','action'=>'home')));?></div>
*/ ?>
<div id="logo_right">
<?=$this->Html->link('Info-Seite','http://info.dream-job.eu/', array('class'=>'main','ref'=>'eventOff','target'=>'_blank'));?>
<?=$this->Html->link('für Unternehmen','http://info.dream-job.eu/arbeitgeber/', array('ref'=>'eventOff','target'=>'_blank'));?>
<?=$this->Html->link('für Suchende','http://info.dream-job.eu/', array('ref'=>'eventOff','target'=>'_blank'));?>
<?=$this->Html->link('für Schüler','http://info.dream-job.eu/schuelen/', array('ref'=>'eventOff','target'=>'_blank'));?>
<?=$this->Html->link('Facebook','https://www.facebook.com/Dreamjobforyou', array('ref'=>'eventOff','target'=>'_blank'));?>
<?=(true)?'':$this->Html->image('mobil.png',array("url"=>array('controller'=>'home','action'=>'home')));?>
</div>
</div>
<div id="navbar" class="content-size">
<!-- navbar -->

View File

@ -9,7 +9,7 @@
?>
</div>
<?php
$pro = decbin($COMPANY['DreamjobCompany']['pro_user']);
$pro = '00000000'.decbin($COMPANY['DreamjobCompany']['pro_user']);
$pro_l = strlen($pro);
$pro_user = !empty($pro[$pro_l-1]);

View File

@ -64,13 +64,30 @@ legend{
}
#logo_right{
position:absolute;
width:60px;
padding:15px 15px 15px 0px;
width:420px;
height:25px;
padding:4px 10px;
top:0px;
right:0px;
background-color:#3276B1;
color:#FFF;
border:1px solid #285E8E;
border-radius:0 0 0 15px;
font-size:smaller;
}
#logo,#logo_right{
height:70px;
max-height:70px;
}
#logo_right a{
text-decoration:none;
color:#FFF;
margin:0 5px;
}
#logo_right a.main{
font-weight:600;
}
#logo_right a:last-child{
float:right;
}
/*
* Loading
@ -495,7 +512,7 @@ body.loading #container{
box-shadow:none;
}
.box > .modal-title{
padding:40px 40px;
padding:20px;
}
.modal-body,.modal-title{
color:black;