Issue #0001653: Add Extranet search link to WorldCheck Content page
This commit is contained in:
parent
489adb4b93
commit
e887a32b3d
@ -161,5 +161,6 @@ class WorldcheckController extends Zend_Controller_Action
|
||||
|
||||
$this->view->assign('matchIdentifier', $param->matchIdentifier);
|
||||
$this->view->assign('content', $content);
|
||||
$this->view->assign('nameType', $param->nameType);
|
||||
}
|
||||
}
|
@ -20,7 +20,42 @@ else
|
||||
{
|
||||
$content = $this->content;
|
||||
?>
|
||||
<h2><?=$this->content[0]->names->name[0]->fullName;?></h2>
|
||||
<h2><?=$this->content[0]->names->name[0]->fullName;?>
|
||||
<?php
|
||||
if (strtolower($this->nameType)=='individual')
|
||||
{
|
||||
$day = $month = $year = '';
|
||||
if ($content[0]->events->event[0]->day>0) $day = $content[0]->events->event[0]->day;
|
||||
if ($content[0]->events->event[0]->month>0) $month = $content[0]->events->event[0]->month;
|
||||
if ($content[0]->events->event[0]->year>0) $year = $content[0]->events->event[0]->year;
|
||||
$param = array(
|
||||
'controller'=>'recherche',
|
||||
'action'=>'dirigeant',
|
||||
'dirNom'=>$content[0]->names->name[0]->lastName,
|
||||
'dirPrenom'=>$content[0]->names->name[0]->givenName,
|
||||
'dirDateNaissJJ' =>$day,
|
||||
'dirDateNaissMM' =>$month,
|
||||
'dirDateNaissAAAA' =>$year,
|
||||
'dirCpVille' =>$content[0]->events->event[0]->address->region
|
||||
);
|
||||
} else {
|
||||
$param = array(
|
||||
'controller'=>'recherche',
|
||||
'action'=>'entreprise',
|
||||
'siret'=>'',
|
||||
'raisonSociale'=>$content[0]->names->name[0]->fullName,
|
||||
'numero'=>'',
|
||||
'voie'=>'',
|
||||
'cpVille' =>'',
|
||||
'telFax' =>'',
|
||||
'naf' =>'',
|
||||
'fj' =>'',
|
||||
'pays'=>'',
|
||||
);
|
||||
}
|
||||
?>
|
||||
<div style='float:right;'><a style="color:white;" href="<?=$this->url($param, null, true)?>"> Search in Extranet </a></div>
|
||||
</h2>
|
||||
<div class="paragraph">
|
||||
<table cellpadding=3>
|
||||
<?php if (isset($content[0]->category)) { ?>
|
||||
@ -140,16 +175,42 @@ if ($associate->associatetype=='ASSOCIATE')
|
||||
{
|
||||
$dirType = 'INDIVIDUAL';
|
||||
$dirName = 'dirNom';
|
||||
$day = $month = $year = '';
|
||||
if ($associate->targetEntity->events->event[0]->day>0) $day = $associate->targetEntity->events->event[0]->day;
|
||||
if ($associate->targetEntity->events->event[0]->month>0) $month = $associate->targetEntity->events->event[0]->month;
|
||||
if ($associate->targetEntity->events->event[0]->year>0) $year = $associate->targetEntity->events->event[0]->year;
|
||||
$param = array(
|
||||
'controller'=>'recherche',
|
||||
'action'=>'dirigeant',
|
||||
'dirNom'=>$associate->targetEntity->names->name[0]->lastName,
|
||||
'dirPrenom'=>$associate->targetEntity->names->name[0]->givenName,
|
||||
'dirDateNaissJJ' =>$day,
|
||||
'dirDateNaissMM' =>$month,
|
||||
'dirDateNaissAAAA' =>$year,
|
||||
'dirCpVille' =>$associate->targetEntity->events->event[0]->address->region
|
||||
);
|
||||
} else {
|
||||
$dirType = 'ORGANISATION';
|
||||
$dirName = 'dirSociete';
|
||||
$param = array(
|
||||
'controller'=>'recherche',
|
||||
'action'=>'entreprise',
|
||||
'siret'=>'',
|
||||
'raisonSociale'=>$associate->targetEntity->names->name[0]->fullName,
|
||||
'numero'=>'',
|
||||
'voie'=>'',
|
||||
'cpVille' =>'',
|
||||
'telFax' =>'',
|
||||
'naf' =>'',
|
||||
'fj' =>'',
|
||||
'pays'=>'',
|
||||
);
|
||||
}
|
||||
?>
|
||||
Associate: <?=$associate->targetEntity->names->name[0]->fullName;?>
|
||||
<div style='float:right;'>
|
||||
<?php $id='/dirType/'.$dirType.'/'.$dirName.'/'.$associate->targetEntity->names->name[0]->lastName.'/dirPrenom/'.$associate->targetEntity->names->name[0]->givenName;?>
|
||||
<img class="wcheck" id="<?=$id;?>" src='/themes/default/images/worldcheck/wc-blanc.png'/>
|
||||
</div>
|
||||
<div style='float:right;'><img class="wcheck" id="<?=$id;?>" src='/themes/default/images/worldcheck/wc-blanc.png'/></div>
|
||||
<div style='float:right;'><a style="color:white;" href="<?=$this->url($param, null, true)?>"> Search in Extranet </a></div>
|
||||
<script>
|
||||
$('img.wcheck').each(function(){
|
||||
$(this).qtip({
|
||||
|
Loading…
Reference in New Issue
Block a user