Startseiten änderungen
This commit is contained in:
parent
7ec140d615
commit
8b2daca7c6
|
@ -1,21 +1,21 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$opening_in_app = false;
|
$opening_in_app = false;
|
||||||
|
|
||||||
$opening_in_fav=false;
|
$opening_in_fav=false;
|
||||||
if(isset($WORKER) and is_array($WORKER) and count($WORKER)>0){
|
if(isset($WORKER) and is_array($WORKER) and count($WORKER)>0){
|
||||||
foreach($WORKER['Favority'] as $val){
|
foreach($WORKER['Favority'] as $val){
|
||||||
if($val['id'] == $opening['DreamjobJobOpening']['id'])
|
if($val['id'] == $opening['DreamjobJobOpening']['id'])
|
||||||
$opening_in_fav=true;
|
$opening_in_fav=true;
|
||||||
}
|
}
|
||||||
foreach($WORKER['DreamjobJobApplication'] as $val){
|
foreach($WORKER['DreamjobJobApplication'] as $val){
|
||||||
if($val['opening_id'] == $opening['DreamjobJobOpening']['id'])
|
if($val['opening_id'] == $opening['DreamjobJobOpening']['id'])
|
||||||
$opening_in_app=true;
|
$opening_in_app=true;
|
||||||
$opening_inApp=$val;
|
$opening_inApp=$val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$avatar = false;
|
$avatar = false;
|
||||||
$url = '';
|
$url = '';
|
||||||
|
@ -23,76 +23,28 @@ if($opening['AppUser']['avatar']){
|
||||||
$url = $MEDIA.DS.$opening['AppUser']['avatar'];
|
$url = $MEDIA.DS.$opening['AppUser']['avatar'];
|
||||||
$avatar = true;
|
$avatar = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<?php if(!empty($opening_MINI) or !($opening_in_app or $opening_in_fav)){ ?>
|
<?php if(!empty($opening_MINI) or !($opening_in_app or $opening_in_fav)){ ?>
|
||||||
<div class="openingitem">
|
<div class="openingitem">
|
||||||
<h3><?=$opening['DreamjobJobOpening']['title'];?></h3>
|
<div class="text">
|
||||||
<?php if(!empty($WORKER)){ ?>
|
<h1><?=$opening['DreamjobJobOpening']['title']; $this->Html->link(__('dreamjob.opening.detail'));?></h1>
|
||||||
<?php if(!$opening_in_app){ ?>
|
<span><?=$opening['AppUser']['nickname'];?></span>
|
||||||
<span style="float: right;margin-right:60px;">
|
</div>
|
||||||
<?php
|
|
||||||
if(!$opening_in_fav)
|
<div class="icon">
|
||||||
echo $this->Html->image('favority_off.png',array('url' => array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'extra'=>'favorite')));
|
|
||||||
else
|
|
||||||
echo $this->Html->link('<span class="glyphicon glyphicon-trash"></span>',array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'extra'=>'favorite'),array('style'=>'color:black;font-size:16px;margin-right:5px;','escape'=>false));
|
|
||||||
?>
|
|
||||||
</span>
|
|
||||||
<?php } ?>
|
|
||||||
<?php } ?>
|
|
||||||
<div>
|
|
||||||
<?php if($avatar){ ?>
|
<?php if($avatar){ ?>
|
||||||
<div class="icon">
|
<div><img src="<?=$url;?>"/></div>
|
||||||
<span><?=$opening['AppUser']['nickname'];?></span>
|
|
||||||
<div>
|
|
||||||
<img src="<?=$url;?>"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php
|
<?php
|
||||||
}else{
|
}else{
|
||||||
?>
|
?>
|
||||||
<div class="noicon-title">
|
<div></div>
|
||||||
<span><?=$opening['AppUser']['nickname'];?></span>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<div class="left">
|
</div>
|
||||||
<span><?=__("dreamjob.graducation.company");?>: <?=$opening['DreamjobListGraducation']['name'];?></span>
|
|
||||||
<span><?=__("dreamjob.branch");?>: <?=$opening['DreamjobListBranch']['name'];?></span>
|
|
||||||
<span><?=__("dreamjob.city");?>: <?=$opening['DreamjobListCity']['name'];?></span>
|
|
||||||
<span><?=__("dreamjob.kindofjob");?>: <?=$opening['DreamjobListKindofjob']['name'];?></span>
|
|
||||||
<span<?php if( time() > strtotime($opening['DreamjobJobOpening']['enddate'])){ ?> class="opening_outdate"<?php } ?>><?=__("dreamjob.opening.enddate");?>: <?=$this->Time->format('d.m.Y', $opening['DreamjobJobOpening']['enddate']);?></span>
|
|
||||||
</div>
|
|
||||||
<div class="right">
|
|
||||||
<div class="btn-group-vertical">
|
|
||||||
<?php
|
|
||||||
echo $this->Html->link(__('dreamjob.opening.detail'),array('controller'=>'job', 'action'=>'openingGet', 'id'=> $opening['DreamjobJobOpening']['id']),array("class" => "btn btn-default"));
|
|
||||||
|
|
||||||
if( isset($COMPANY['AppUser']['id']) and $COMPANY['AppUser']['id'] == $opening['DreamjobJobOpening']['company_id']){
|
|
||||||
echo $this->Html->link(__('dreamjob.application'),array('controller'=>'job', 'action'=>'applicationByOpening', 'id'=> $opening['DreamjobJobOpening']['id']),array("class" => "btn btn-default"));
|
|
||||||
echo $this->Html->link(__('dreamjob.opening.edit'),array('controller'=>'job', 'action'=>'openingEdit', 'id'=> $opening['DreamjobJobOpening']['id']),array("class" => "btn btn-default"));
|
|
||||||
echo $this->Html->link(__('dreamjob.opening.delete'),array('controller'=>'job', 'action'=>'openingList', '?' => array('del'=> $opening['DreamjobJobOpening']['id'])),array("class" => "btn btn-default"));
|
|
||||||
}elseif($opening_in_app){
|
|
||||||
if(!empty($enableMsg)){
|
|
||||||
$countstr= count($opening['DreamjobJobMsg']);
|
|
||||||
$newcount=0;
|
|
||||||
foreach($opening['DreamjobJobMsg'] as $msg)
|
|
||||||
if(!$msg['saw'])
|
|
||||||
$newcount++;
|
|
||||||
if($newcount>0)
|
|
||||||
$countstr = $newcount."/".$countstr;
|
|
||||||
$countstr =__('dreamjob.applicated').' <span class="badge">'.$countstr.'</span>';
|
|
||||||
}else
|
|
||||||
$countstr =__('dreamjob.applicated');
|
|
||||||
echo $this->Html->link($countstr,array('controller'=>'job', 'action'=>'applicationGet', 'id' => $opening_inApp['id']),array("class" => "btn btn-default","escape"=>false));
|
|
||||||
}else{
|
|
||||||
$class="btn btn-default";
|
|
||||||
if(isset($WORKER) and !is_array($WORKER) and count($WORKER) <= 0)
|
|
||||||
$class = "btn btn-default disable";
|
|
||||||
echo $this->Html->link(__('dreamjob.applicate'),array('controller'=>'job', 'action'=>'applicationSend', 'id'=> $opening['DreamjobJobOpening']['id']),array("class" => $class));
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -120,13 +120,13 @@ html {
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
}
|
}
|
||||||
.btn{
|
.btn{
|
||||||
font-family: sans-serif;
|
font-family: Helvetica;
|
||||||
}
|
}
|
||||||
.input-group{
|
.input-group{
|
||||||
font-family: sans-serif;
|
font-family: Helvetica;
|
||||||
}
|
}
|
||||||
input{
|
input{
|
||||||
font-family: sans-serif;
|
font-family: Helvetica;
|
||||||
}
|
}
|
||||||
#navdown{
|
#navdown{
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
|
@ -171,3 +171,51 @@ input{
|
||||||
width: 960px;
|
width: 960px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.openingitem {
|
||||||
|
margin: 30px auto;
|
||||||
|
width: 900px;
|
||||||
|
height: 120px;
|
||||||
|
padding-bottom:20px;
|
||||||
|
border-top:1px solid #fe7600;
|
||||||
|
}
|
||||||
|
.openingitem .text{
|
||||||
|
width: 700px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.openingitem > div{
|
||||||
|
display: table;
|
||||||
|
table-layout:fixed;
|
||||||
|
width: 900px;
|
||||||
|
}
|
||||||
|
.openingitem .icon{
|
||||||
|
float: right;
|
||||||
|
margin-right: 15px;
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
.openingitem .icon > div > img{
|
||||||
|
max-height: 86px;
|
||||||
|
max-width: 86px;
|
||||||
|
margin-right: 15px;
|
||||||
|
}
|
||||||
|
.openingitem h1{
|
||||||
|
margin-bottom: 0px;
|
||||||
|
font-size: 40px;
|
||||||
|
margin-left: 25px;
|
||||||
|
}
|
||||||
|
.openingitem > div > span{
|
||||||
|
font-family: Helvetica;
|
||||||
|
font-size: 17px;
|
||||||
|
margin-left: 25px;
|
||||||
|
}
|
Loading…
Reference in New Issue