Extern einbinden!

This commit is contained in:
Martin Müller 2015-03-03 13:38:48 +01:00
parent 68f4bf16a5
commit 9101dcef95
3 changed files with 17 additions and 6 deletions

View File

@ -2,7 +2,7 @@
/*
*
*/
$avatar = false;
$url = '';
if($opening['AppUser']['avatar']){
@ -53,9 +53,13 @@ if($opening['AppUser']['avatar']){
</div>
</div>
<?php if(empty($OPP_HIDE)){ ?>
<ul class="nav nav-tabs">
<li<?=(!empty($OPP_NORMAL))?' class="active"':'';?>><?=$this->Html->link(__("dreamjob.opening"),array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id']));?></a></li>
<li<?=(!empty($OPP_OPENING))?' class="active"':'';?>><?=$this->Html->link(__("dreamjob.opening.titleinfo"),array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'extra'=>'openinginfo'));?></a></li>
<li<?=(!empty($OPP_COMPANY))?' class="active"':'';?>><?=$this->Html->link(__("dreamjob.company.titleinfo"),array('controller'=>'job','action'=>'openingGet','id'=>$opening['DreamjobJobOpening']['id'],'extra'=>'companyinfo'));?></a></li>
</ul>
<?php } ?>
<?php if(!empty($OPP_SHOW_EXTERN)){ ?>
<pre>&lt;iframe src="<?=$this->Html->url(array('controller'=>'extern','action'=>'button_opening','id'=>$opening['DreamjobJobOpening']['id']),true);?>" frameborder="0"&gt;&lt;/iframe&gt;</pre>
<?php } ?>

View File

@ -4,7 +4,7 @@
*/
?>
<div class="box">
<?=$this->element('job_opening_head');?>
<?=$this->element('job_opening_head',array('OPP_HIDE'=>true,'OPP_SHOW_EXTERN'=>true));?>
</div>
<div id="tab" class="box">
<!-- tab -->

View File

@ -22,6 +22,13 @@
</ul>
</div>
<h3><?=__("dreamjob.settings");?></h3>
<?php
if(!empty($COMPANY) and count($COMPANY)>0){
?>
<pre>&lt;iframe src="<?=$this->Html->url(array('controller'=>'extern','action'=>'button_company','id'=>$COMPANY['AppUser']['id']),true);?>" frameborder="0"&gt;&lt;/iframe&gt;</pre>
<?php
}
?>
<?php
echo $this->Form->create(false,$default_Form);
?>
@ -29,11 +36,11 @@
<legend><?=__("dreamjob.account");?></legend>
<?php
echo $this->Form->input('User.mail',array('label'=>array('text'=>__("dreamjob.mail"),"class"=>$default_Form['inputDefaults']['label']['class']),'disabled'));
echo $this->Form->input('User.password1',array('label'=>array('text'=>__("dreamjob.password"),"class"=>$default_Form['inputDefaults']['label']['class']),'type'=>'password'));
echo $this->Form->input('User.password2',array('label'=>array('text'=>__("dreamjob.password2"),"class"=>$default_Form['inputDefaults']['label']['class']),'type'=>'password'));
if($WORKER){
if($WORKER){
?>
<legend><?=__("dreamjob.worker");?></legend>
<?php