company page
This commit is contained in:
parent
68e51e4a9d
commit
f98fbe6470
|
@ -31,6 +31,8 @@
|
||||||
Router::connect('/agb', array('controller' => 'home', 'action' => 'agb'));
|
Router::connect('/agb', array('controller' => 'home', 'action' => 'agb'));
|
||||||
Router::connect('/contact', array('controller' => 'home', 'action' => 'contact'));
|
Router::connect('/contact', array('controller' => 'home', 'action' => 'contact'));
|
||||||
|
|
||||||
|
Router::connect('/company', array('controller' => 'home', 'action' => 'company'));
|
||||||
|
|
||||||
Router::connect('/registration', array('controller' => 'registration', 'action' => 'main'));
|
Router::connect('/registration', array('controller' => 'registration', 'action' => 'main'));
|
||||||
Router::connect('/registration/user', array('controller' => 'registration', 'action' => 'worker'));
|
Router::connect('/registration/user', array('controller' => 'registration', 'action' => 'worker'));
|
||||||
Router::connect('/registration/company', array('controller' => 'registration', 'action' => 'company'));
|
Router::connect('/registration/company', array('controller' => 'registration', 'action' => 'company'));
|
||||||
|
|
|
@ -21,13 +21,18 @@ class HomeController extends AppController {
|
||||||
* or MissingViewException in debug mode.
|
* or MissingViewException in debug mode.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
private $opening_limit = 3;
|
private static $opening_limit = 3;
|
||||||
|
|
||||||
|
function beforeFilter(){
|
||||||
|
$this->Security->unlockedActions[]="login";
|
||||||
|
parent::beforeFilter();
|
||||||
|
}
|
||||||
|
|
||||||
public function home() {
|
public function home() {
|
||||||
$this->MiconwareSession->init($this);
|
$this->MiconwareSession->init($this);
|
||||||
$this->MiconwareSession->initWeb($this);
|
$this->MiconwareSession->initWeb($this);
|
||||||
$openings = $this->DreamjobJobOpening->find('all',array('conditions'=>$this->MiconwareSession->getOpeningCondition(),
|
$openings = $this->DreamjobJobOpening->find('all',array('conditions'=>$this->MiconwareSession->getOpeningCondition(),
|
||||||
'order'=>'DreamjobJobOpening.id DESC','limit'=> $this->opening_limit));
|
'order'=>'DreamjobJobOpening.id DESC','limit'=> self::$opening_limit));
|
||||||
$this->set('openings',$openings);
|
$this->set('openings',$openings);
|
||||||
$this->set('title', 'dreamjob.startpage');
|
$this->set('title', 'dreamjob.startpage');
|
||||||
$this->set('MENU_START', true);
|
$this->set('MENU_START', true);
|
||||||
|
@ -55,7 +60,7 @@ class HomeController extends AppController {
|
||||||
|
|
||||||
$this->MiconwareSession->initWeb($this);
|
$this->MiconwareSession->initWeb($this);
|
||||||
$openings = $this->DreamjobJobOpening->find('all',array('conditions'=>$this->MiconwareSession->getOpeningCondition(),
|
$openings = $this->DreamjobJobOpening->find('all',array('conditions'=>$this->MiconwareSession->getOpeningCondition(),
|
||||||
'order'=>'DreamjobJobOpening.id DESC','limit'=> $this->opening_limit));
|
'order'=>'DreamjobJobOpening.id DESC','limit'=> self::$opening_limit));
|
||||||
$this->set('openings',$openings);
|
$this->set('openings',$openings);
|
||||||
$this->set('title', 'dreamjob.startpage');
|
$this->set('title', 'dreamjob.startpage');
|
||||||
$this->set('MENU_START', true);
|
$this->set('MENU_START', true);
|
||||||
|
@ -72,7 +77,7 @@ class HomeController extends AppController {
|
||||||
|
|
||||||
$this->MiconwareSession->initWeb($this);
|
$this->MiconwareSession->initWeb($this);
|
||||||
$openings = $this->DreamjobJobOpening->find('all',array('conditions'=>$this->MiconwareSession->getOpeningCondition(),
|
$openings = $this->DreamjobJobOpening->find('all',array('conditions'=>$this->MiconwareSession->getOpeningCondition(),
|
||||||
'order'=>'DreamjobJobOpening.id DESC','limit'=> $this->opening_limit));
|
'order'=>'DreamjobJobOpening.id DESC','limit'=> self::$opening_limit));
|
||||||
$this->set('openings',$openings);
|
$this->set('openings',$openings);
|
||||||
$this->set('title', 'dreamjob.startpage');
|
$this->set('title', 'dreamjob.startpage');
|
||||||
$this->set('MENU_START', true);
|
$this->set('MENU_START', true);
|
||||||
|
@ -102,4 +107,24 @@ class HomeController extends AppController {
|
||||||
$this->set('title', 'dreamjob.agb');
|
$this->set('title', 'dreamjob.agb');
|
||||||
$this->render('/Home/agb');
|
$this->render('/Home/agb');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function company() {
|
||||||
|
if(false){
|
||||||
|
$Email = new CakeEmail('dreamjobMain');
|
||||||
|
$Email->to('service@dream-job.eu');
|
||||||
|
$Email->from(array($this->request->data['mail']['adresse'] => $this->request->data['mail']['first_name'].' '.$this->request->data['mail']['last_name']));
|
||||||
|
$Email->subject('[Dreamjob-Kontakt-Firma]'.$this->request->data['mail']['subject']);
|
||||||
|
$Email->template('contact');
|
||||||
|
$Email->viewVars(array('text'=>$this->request->data));
|
||||||
|
if($Email->send())
|
||||||
|
$this->MiconwareSession->setFlash(__('dreamjob.contactSend'),'flash',array('alert'=>'success'));
|
||||||
|
else
|
||||||
|
$this->MiconwareSession->setFlash(__('dreamjob.contactSend.error'),'flash',array('alert'=>'danger'));
|
||||||
|
}
|
||||||
|
$this->MiconwareSession->init($this);
|
||||||
|
$this->MiconwareSession->initWeb($this);
|
||||||
|
$this->set('MENU_START_company', true);
|
||||||
|
$this->set('title', 'dreamjob.company');
|
||||||
|
$this->render('/Home/company');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1115,6 +1115,16 @@ msgstr ""
|
||||||
msgid "dreamjob.favority.removeing"
|
msgid "dreamjob.favority.removeing"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#
|
||||||
|
msgid "dreamjob.contactSend"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#
|
||||||
|
msgid "dreamjob.contactSend.error"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generierte Fehlermeldungen eigenarbeit!
|
# Generierte Fehlermeldungen eigenarbeit!
|
||||||
#
|
#
|
||||||
|
|
|
@ -57,6 +57,30 @@ if($isLoggedin){
|
||||||
-->
|
-->
|
||||||
</style>
|
</style>
|
||||||
<?php
|
<?php
|
||||||
echo $this->Html->link(__('dreamjob.company.startpage'),array('controller'=>'home', 'action'=>'home'),array("class" => "btn btn-primary"));
|
echo $this->Html->link(__('dreamjob.company.startpage'),array('controller'=>'home', 'action'=>'company'),array("class" => "btn btn-primary"));
|
||||||
|
}elseif(!empty($MENU_START_company)){
|
||||||
|
?>
|
||||||
|
<style type="text/css">
|
||||||
|
<!--
|
||||||
|
#narbar{
|
||||||
|
min-width:1220px;
|
||||||
|
}
|
||||||
|
.bar #barleft {
|
||||||
|
width:140px;
|
||||||
|
position:relative;
|
||||||
|
right:-120px;
|
||||||
|
}
|
||||||
|
.bar #barleft .btn{
|
||||||
|
width:140px;
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
.column-center{
|
||||||
|
padding-left:130px;
|
||||||
|
width:1220px;
|
||||||
|
}
|
||||||
|
-->
|
||||||
|
</style>
|
||||||
|
<?php
|
||||||
|
echo $this->Html->link(__('dreamjob.startpage'),array('controller'=>'home', 'action'=>'home'),array("class" => "btn btn-primary"));
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td><?=$data['mail']['adresse'];?></td>
|
||||||
|
<td><?=$data['mail']['last_name'].', '.$data['mail']['first_name'];></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2"><?=$this->request->data['mail']['subject']);?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2"><?=strip_tags($data['mail']['text'],$strip_tags);?></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
|
@ -0,0 +1,42 @@
|
||||||
|
<?=$data['mail']['adresse'];?>\n
|
||||||
|
<?=$data['mail']['last_name'].', '.$data['mail']['first_name'];>\n
|
||||||
|
\n
|
||||||
|
\n
|
||||||
|
<?=$this->request->data['mail']['subject']);?>\n
|
||||||
|
\n
|
||||||
|
\n
|
||||||
|
<?php
|
||||||
|
$Document = strip_tags($data['mail']['text'],$strip_tags);
|
||||||
|
|
||||||
|
$Rules = array ('@<script[^>]*?>.*?</script>@si',
|
||||||
|
'@<[\/\!]*?[^<>]*?>@si',
|
||||||
|
'@([\r\n])[\s]+@',
|
||||||
|
'@&(quot|#34);@i',
|
||||||
|
'@&(amp|#38);@i',
|
||||||
|
'@&(lt|#60);@i',
|
||||||
|
'@&(gt|#62);@i',
|
||||||
|
'@&(nbsp|#160);@i',
|
||||||
|
'@&(iexcl|#161);@i',
|
||||||
|
'@&(cent|#162);@i',
|
||||||
|
'@&(pound|#163);@i',
|
||||||
|
'@&(copy|#169);@i',
|
||||||
|
'@&(reg|#174);@i',
|
||||||
|
'@&#(d+);@e'
|
||||||
|
);
|
||||||
|
$Replace = array ('',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
'&',
|
||||||
|
'<',
|
||||||
|
'>',
|
||||||
|
' ',
|
||||||
|
chr(161),
|
||||||
|
chr(162),
|
||||||
|
chr(163),
|
||||||
|
chr(169),
|
||||||
|
chr(174),
|
||||||
|
'chr()'
|
||||||
|
);
|
||||||
|
echo preg_replace($Rules, $Replace, $Document);
|
||||||
|
?>
|
|
@ -0,0 +1,62 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
<div class="box start-search-box">
|
||||||
|
<div class="img">
|
||||||
|
<?=$this->Html->image('start-company.jpg'); ?>
|
||||||
|
<?=$this->Html->link(__('dreamjob.registration.to'),array('controller'=>'search', 'action'=>'opening'),array("class" => "btn btn-primary"));?>
|
||||||
|
</div>
|
||||||
|
<div class="bluebox">
|
||||||
|
Stellen ausschreiben<br/>
|
||||||
|
Unternehmen darstellen <br/>
|
||||||
|
Bewerbungen verwalten
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="box" style="font-size:22px;">
|
||||||
|
Die Plattform für Ihr komplettes Ausschreibungsverfahren!<br/>
|
||||||
|
übersichtlich - bequem - flexibel
|
||||||
|
<ul>
|
||||||
|
<li>einfaches Verwaltungssystem von A wie Ausschreibung bis Z wie Zielgruppe</li>
|
||||||
|
<li>Sammlung der Bewerbungsunterlagen im vereinheitlichn Format</li>
|
||||||
|
<li>stufenweise Auswertung nach verschiedenen Kategorien</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="columns" style="margin-bottom:20px;">
|
||||||
|
<div class="box bar" style="width:300px;font-size:16px;">
|
||||||
|
Unser Prospekt für Arbeitgeber<br/>
|
||||||
|
<br/>
|
||||||
|
- Unser kostenloses Angebot<br/>
|
||||||
|
- was dreamJOB Ihnen bietet<br/>
|
||||||
|
<br/>
|
||||||
|
<?=$this->Html->image('start-company-broschuere.jpg'); ?>
|
||||||
|
</div>
|
||||||
|
<div class="bar" style="width:20px;"></div>
|
||||||
|
<div class="box bar" style="font-size:16px;">
|
||||||
|
Bei Fragen kontaktieren Sie gerne unser Service-Team
|
||||||
|
<?php
|
||||||
|
$default_Form['inputDefaults']['div'] = array('style' => 'margin-top:15px;');
|
||||||
|
$default_Form['inputDefaults']['between']=false;
|
||||||
|
$default_Form['inputDefaults']['after']=false;
|
||||||
|
$default_Form['inputDefaults']['label']=false;
|
||||||
|
|
||||||
|
echo $this->Form->create(null,$default_Form);
|
||||||
|
|
||||||
|
echo $this->Form->input('mail.last_name',array('placeholder'=>'Name'));
|
||||||
|
echo $this->Form->input('mail.first_name',array('placeholder'=>'Vorname'));
|
||||||
|
echo $this->Form->input('mail.adresse',array('placeholder'=>'E-Mail'));
|
||||||
|
echo $this->Form->input('mail.subject',array('placeholder'=>'Betreff'));
|
||||||
|
echo $this->Form->input('mail.text',array('placeholder'=>'Nachricht'));
|
||||||
|
?>
|
||||||
|
<div class="buttonrow">
|
||||||
|
<?=$this->Form->button(__('dreamjob.application.send'),array('div' => false,'class'=>"btn btn-primary ",'type' => 'submit'));?>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
echo $this->Form->end();
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -4,7 +4,7 @@
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
<div class="box start-search-box">
|
<div class="box start-search-box">
|
||||||
<?=$this->Html->image('start-beside-search.jpg'); ?>
|
<?=$this->Html->image('start-beside-search.jpg',array('class'=>'img')); ?>
|
||||||
<div class="redbox">
|
<div class="redbox">
|
||||||
<h1><?=__('dreamjob.search');?></h1>
|
<h1><?=__('dreamjob.search');?></h1>
|
||||||
<div class="searchform">
|
<div class="searchform">
|
||||||
|
|
|
@ -106,9 +106,9 @@ body.loading #container{
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
#navbar > div{
|
#navbar > div{
|
||||||
margin: 25px 15px;
|
margin: 30px 15px;
|
||||||
float:right;
|
float:right;
|
||||||
height:50px;
|
height:40px;
|
||||||
}
|
}
|
||||||
#navbar > ul{
|
#navbar > ul{
|
||||||
margin: 60px 15px 0px;
|
margin: 60px 15px 0px;
|
||||||
|
@ -356,9 +356,29 @@ body.loading #container{
|
||||||
.start-search-box{
|
.start-search-box{
|
||||||
text-align:center;
|
text-align:center;
|
||||||
}
|
}
|
||||||
.start-search-box img{
|
.start-search-box .img{
|
||||||
float:left;
|
float:left;
|
||||||
margin-right:20px;
|
margin-right:20px;
|
||||||
|
position:relative;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
.start-search-box .img .btn{
|
||||||
|
color: #FFFFFF;
|
||||||
|
float: none;
|
||||||
|
bottom: 40px;
|
||||||
|
position: absolute;
|
||||||
|
left: 150px;
|
||||||
|
}
|
||||||
|
.start-search-box .bluebox, .start-search-box .redbox.bluebox{
|
||||||
|
display:inline-block;
|
||||||
|
text-align:left;
|
||||||
|
font-size:26px;
|
||||||
|
line-height:2;
|
||||||
|
width:465px;
|
||||||
|
height:282px;
|
||||||
|
background-color:#357EBD;
|
||||||
|
padding:50px 70px;
|
||||||
|
color:white;
|
||||||
}
|
}
|
||||||
.start-search-box .redbox{
|
.start-search-box .redbox{
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 606 KiB |
Binary file not shown.
After Width: | Height: | Size: 82 KiB |
Loading…
Reference in New Issue