suche erste schritte

This commit is contained in:
Martin Müller 2014-03-29 21:35:00 +01:00
parent adf05c8a06
commit 7d793f0bca
3 changed files with 9 additions and 3 deletions

View File

@ -60,6 +60,8 @@
Router::connect('/favorite', array('controller' => 'job', 'action' => 'favorite'));
Router::connect('/search', array('controller' => 'search', 'action' => 'listopening'));
Router::connect('/test/', array('controller' => 'user', 'action' => 'test'));
Router::parseExtensions('json');

View File

@ -6,7 +6,7 @@
$DreamjobUser = 'DreamjobUser';
$AppUser = 'AppUser';
$DreamjobListGraducation = 'DreamjobListGraducation';
if($enableOpening){
if(isset($enableOpening) and $enableOpening){
$User = 'WorkerUser';
$DreamjobUser = 'DreamjobUserWorker';
$AppUser = 'AppUserWorker';
@ -43,14 +43,14 @@
<?php if($profil['DreamjobWorker']['workexperience']){ ?>
<span><?=__('dreamjob.workexperience').': '.$profil['DreamjobWorker']['workexperience'].' ',__('dreamjob.years');?></span>
<?php } ?>
<?php if($enableOpening){ ?>
<?php if(isset($enableOpening) and $enableOpening){ ?>
<span><?=$this->Time->format('d.m.Y H:i', $profil['DreamjobJobApplication']['created']);?></span>
<?php } ?>
</div>
<div class="right">
<div class="btn-group-vertical">
<?php
if($enableOpening){
if(isset($enableOpening) and $enableOpening){
$status = 'dreamjob.application.close';
$statusApp = null;
$archiv = array("archiv"=> $profil['DreamjobJobApplication']['id']);
@ -70,6 +70,8 @@
}
echo $this->Html->link(__($status),array('controller'=>'job', 'action'=>'applicationByOpening', 'id'=> $profil['DreamjobJobApplication']['opening_id'],'?'=>$archiv),array("class" => "btn btn-default",'escape' => true));
echo $this->Html->link($statusApp,array('controller'=>'job', 'action'=>'applicationGet', 'id'=> $profil['DreamjobJobApplication']['id']),array("class" => "btn btn-default",'escape' => true));
}else{
echo $this->Html->link(__('dreamjob.details'),array('controller'=>'user', 'action'=>'profil', 'id'=> $profil[$AppUser]['id']),array("class" => "btn btn-default"));
}
?>
</div>

View File

@ -44,7 +44,9 @@ ALTER TABLE `mic_dj_jobs_opening_worker`
-- ACHTUNG:
update `mic_dj_account_cmpy` left join `mic_dj_list_branch` on `name`=`branch` set `branch`=`mic_dj_list_branch`.`id`;
ALTER TABLE `mic_dj_account_cmpy` CHANGE `branch` `branch_id` INT(11) NOT NULL;
update `mic_dj_jobs_opening` left join `mic_dj_list_branch` on `name`=`branch` set `branch`=`mic_dj_list_branch`.`id`;
ALTER TABLE `mic_dj_jobs_opening` CHANGE `branch` `branch_id` INT(11) NOT NULL;
-- LOLA
update `mic_dj_account_isearch` left join `mic_dj_list_job` on `name`=`job` set `job`=`mic_dj_list_job`.`id`