From e887a32b3db60fb67266cafef349ae531284ded9 Mon Sep 17 00:00:00 2001 From: Aram HARUTYUNYAN Date: Mon, 23 Sep 2013 14:26:56 +0000 Subject: [PATCH] Issue #0001653: Add Extranet search link to WorldCheck Content page --- .../controllers/WorldcheckController.php | 1 + .../scripts/worldcheck/matchcontent.phtml | 69 +++++++++++++++++-- 2 files changed, 66 insertions(+), 4 deletions(-) diff --git a/application/controllers/WorldcheckController.php b/application/controllers/WorldcheckController.php index 33e7f32af..ffcaefb6b 100644 --- a/application/controllers/WorldcheckController.php +++ b/application/controllers/WorldcheckController.php @@ -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); } } \ No newline at end of file diff --git a/application/views/default/scripts/worldcheck/matchcontent.phtml b/application/views/default/scripts/worldcheck/matchcontent.phtml index f51812a8f..e44b4da68 100644 --- a/application/views/default/scripts/worldcheck/matchcontent.phtml +++ b/application/views/default/scripts/worldcheck/matchcontent.phtml @@ -20,7 +20,42 @@ else { $content = $this->content; ?> -

content[0]->names->name[0]->fullName;?>

+

content[0]->names->name[0]->fullName;?> +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'=>'', + ); +} +?> +
 Search in Extranet  
+

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: targetEntity->names->name[0]->fullName;?> -
targetEntity->names->name[0]->lastName.'/dirPrenom/'.$associate->targetEntity->names->name[0]->givenName;?> - -
+
+
 Search in Extranet