Complément recherche actionnaire

This commit is contained in:
Michael RICOIS 2011-07-11 07:12:01 +00:00
parent d86eb9a03d
commit de7d0d7f81
2 changed files with 14 additions and 6 deletions

View File

@ -31,7 +31,7 @@ foreach (array('siret',
<div class="fieldgrp">
<label>RAISON SOCIALE / NOM</label>
<input type="text" name="formR[actNom]" value="<?=$formR['actNomRs']?>" size="30" maxlength="40" style="vertical-align:middle;" />
<input type="text" name="formR[actNomRs]" value="<?=$formR['actNomRs']?>" size="30" maxlength="40" style="vertical-align:middle;" />
</div>
<div class="fieldgrp">

View File

@ -231,7 +231,7 @@ if ($typeRech=='ent' && $siret<>'') {
try {
$O = $client->searchAct(
$actNomRs, $cpVille, $siret, $pays, $pctMin, $pctMax,
$tabInfo['nbReponses'], 200, false
$position, $tabInfo['nbReponses'], 200, false
);
echo '<!-- '.print_r($formR,1).' -->';
echo '<!-- '.print_r($O,1).' -->';
@ -365,8 +365,16 @@ if ( isset($O['results']['info']) &&
}
if ($typeRech == 'act'){
require_once 'common/dates.php';
echo '<u>Actionnaire recherch&eacute; :</u> ';
if ($etab['ActNomRs']<>'') {
echo '<b>'. strWsToHtml($etab['ActNomRs']) . '</b >';
if ($etab['ActPays']!='' &&
$etab['ActPays']!='FRA') echo ' ('.strWsToHtml($etab['ActPays']).')';
if ($etab['ActDateLien']!='') echo ', le '.WDate::dateT('Y-m-d', 'd/m/Y',$etab['ActDateLien']);
if ($etab['ActPmin']!='') echo ', à '.strWsToHtml($etab['ActPmin']).' %';
}
echo '<br/>';
}
//Affichage spécial
@ -418,8 +426,8 @@ if ( isset($O['results']['info']) &&
<?php
if ($curPage>1)
{
$prev_index=$position-$O['results']['nbReponses'];
if ($prev_index<$O['results']['nbReponses']) $prev_index=0;
$prev_index = $position-$O['results']['nbReponses'];
if ($prev_index < $O['results']['nbReponses']) $prev_index=0;
?>
<td width="40%" align="right">
<a href="./?page=recherche&vue=list&p=<?=$prev_index?>" title="Page précédente...">