2015-02-28 01:58:24 +01:00
|
|
|
<?php
|
|
|
|
App::uses('AppController', 'Controller');
|
|
|
|
|
|
|
|
class ExternController extends AppController {
|
|
|
|
|
|
|
|
public $uses = array('DreamjobJobOpening','DreamjobCompany');
|
2015-02-28 01:59:47 +01:00
|
|
|
|
2015-02-28 01:58:24 +01:00
|
|
|
public $components = array('MiconwareSession');
|
2015-02-28 01:59:47 +01:00
|
|
|
|
2015-02-28 01:58:24 +01:00
|
|
|
public function button_company() {
|
|
|
|
$this->MiconwareSession->init($this);
|
|
|
|
$this->MiconwareSession->initWeb($this);
|
|
|
|
if(!empty($this->request->params['id'])){
|
|
|
|
$this->set("company",$this->DreamjobCompany->find('first',array('conditions' => array('AppUser.id' => $this->request->params['id']))));
|
|
|
|
}
|
|
|
|
$this->layout = 'extern_mini';
|
|
|
|
$this->render('/Extern/button_company');
|
|
|
|
}
|
|
|
|
public function button_opening() {
|
|
|
|
$this->MiconwareSession->init($this);
|
|
|
|
$this->MiconwareSession->initWeb($this);
|
|
|
|
if(!empty($this->request->params['id'])){
|
|
|
|
$con = $this->MiconwareSession->getOpeningCondition();
|
|
|
|
$con['DreamjobJobOpening.id'] = $this->request->params['id'];
|
|
|
|
$this->set("opening",$this->DreamjobJobOpening->find('first', array('conditions' => $con)));
|
|
|
|
}
|
|
|
|
$this->layout = 'extern_mini';
|
|
|
|
$this->render('/Extern/button_opening');
|
|
|
|
}
|
|
|
|
public function button_opening_extern() {
|
|
|
|
$this->MiconwareSession->init($this);
|
2015-02-28 01:59:47 +01:00
|
|
|
$this->MiconwareSession->initWeb($this);
|
|
|
|
$this->set("content",array(
|
|
|
|
"mail"=>$this->request->query('mail'),
|
|
|
|
"company"=>$this->request->query('company'),
|
|
|
|
"street"=>$this->request->query('street'),
|
|
|
|
"postcode"=>$this->request->query('postcode'),
|
|
|
|
"city"=>$this->request->query('city'),
|
|
|
|
));
|
2015-02-28 01:58:24 +01:00
|
|
|
$this->layout = 'extern_mini';
|
|
|
|
$this->render('/Extern/button_opening_extern');
|
|
|
|
}
|
|
|
|
}
|