Modification page dirigeants, recherche à partir du nom

This commit is contained in:
Michael RICOIS 2009-06-04 16:30:12 +00:00
parent 804d6e7d83
commit 51a050f661

View File

@ -53,13 +53,7 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){
$raisonSociale=$tabInfo['entrep']['raisonSociale'];
?>
<style type="text/css">
.txtDir{float:left;}
.txtDir p {margin:0; line-height:16px; vertical-align:middle;}
.search {float:right; border:0;}
</style>
?>
<table width="580" border="0" align="left" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><img src="./img/rub_dirigeant.png" width="577" height="36"></td>
@ -88,7 +82,7 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){
foreach ($dirs as $i=>$dir) {
$nom=$dir['Societe'].' '.$dir['Nom'].' '.$dir['Prenom'];
?>
<tr><td class="StyleInfoData" width="150"><?=$dir['Titre']?></td>
<tr><td class="StyleInfoData" width="100"><?=$dir['Titre']?></td>
<td class="StyleInfoData" width="200"><?=$nom?></td>
<td class="StyleInfoData" width="200">
<?php
@ -110,23 +104,19 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){
</tr>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData"><table><?
<td colspan="2" width="550" class="StyleInfoData">
<table>
<?
foreach ($dirs as $i=>$dir) {
$nom = str_replace('&amp;#160;',' ', $dir['Societe'].' '.$dir['Nom'].' '.$dir['Prenom']);
if(isset($dir['Civilite']) && $dir['Civilite']!=''){$nom = $dir['Civilite'].'. '.$nom;}
if(isset($dir['Civilite']) && $dir['Civilite']!=''){$nom = $dir['Civilite'].'. '.$nom;}
?>
<tr>
<td class="StyleInfoData" width="150"><?php print $dir['Titre'];?></td>
<td class="StyleInfoData" width="150">
<div class="txtDir">
<p><?php print $nom;?></p>
</div>
<div class="search">
<a href="/?page=recherche&vue=list&formR[type]=dir&formR[dirNom]=<?php print $dir['Nom'];?>&formR[dirPrenom]=<?php print $dir['Prenom'];?>" title="Recherche le nom du dirigeant"><img src="./img/search.png"/></a>
</div>
<td class="StyleInfoData" width="120"><?php print $dir['Titre'];?></td>
<td class="StyleInfoData" width="200">
<p><a href="/?page=recherche&vue=list&formR[type]=dir&formR[dirNom]=<?php print $dir['Nom'];?>&formR[dirPrenom]=<?php print $dir['Prenom'];?>" title="Recherche à partir du nom du dirigeant"><?php print $nom;?></a></p>
</td>
<td class="StyleInfoData" width="250"><?
<td class="StyleInfoData" width="230"><?
if (trim($dir['NaissDate'])<>'' && trim($dir['NaissVille'].' '.$dir['NaissDepPays'])<>'') {
echo 'n&eacute;(e) le '.$dir['NaissDate'].' &agrave; '.$dir['NaissVille'];
if (trim($dir['NaissDepPays'])<>'')