Merge corrections diverses + surveillances actes et dirigeants

This commit is contained in:
Michael RICOIS 2009-09-18 17:09:22 +00:00
parent fb17fe4f3b
commit 077278e1e3
11 changed files with 158 additions and 127 deletions

View File

@ -34,6 +34,7 @@ function cache_filename(){
static $filename;
$numargs = func_num_args();
if($numargs != 0){
unset($filename);
$args = func_get_args();
$filename = PATH_SITE.'/cache/'.$args[0].CACHE_EXT;
}
@ -49,12 +50,10 @@ function cache_filename(){
* @return boolean
*/
function cache_add($block, $array){
global $firephp;
//Traitement
$array = cache_htmlencode($array);
//Ajout des blocs sérialisés
$file = cache_filename();
$firephp->log($file, 'CACHE ADD : Fichier');
if($file != ''){
$data = $block.' = '.serialize($array);
if( cache_writefile($file,$data) !== FALSE ) return TRUE;
@ -69,9 +68,8 @@ function cache_add($block, $array){
function cache_get($block){
global $firephp;
$file = cache_filename();
$firephp->log($file, 'CACHE GET : Fichier ');
$cache = cache_readfile($file);
$firephp->log($cache, 'CACHE GET : Content');
$firephp->log($cache, 'CACHE : Fichier');
if(isset($cache[$block])){
//Traitement
$block = unserialize($cache[$block]);
@ -110,17 +108,10 @@ function cache_exist(){
* Retourne TRUE or FALSE
*/
function cache_timeover($file){
global $firephp;
$dateFile = filemtime($file);
$now= mktime(date('G'), date('i'), date('s'), date("m") , date("d"), date("Y"));
$maxTime = mktime(date('G',$dateFile)+CACHE_MAXTIME, date('i',$dateFile), date('s',$dateFile), date("m",$dateFile), date("d",$dateFile), date("Y",$dateFile));
$refreshHour = mktime(CACHE_REFRESH_HOUR, 0, 0, date("m"), date("d"), date("Y"));
//Debug
//$firephp->log(date('G:i:s - d/m/Y',$dateFile), 'CACHE : dateFile ');
//$firephp->log(date('G:i:s - d/m/Y',$now), 'CACHE : now ');
//$firephp->log(date('G:i:s - d/m/Y',$maxTime), 'CACHE : MaxTime');
//$firephp->log(date('G:i:s - d/m/Y',$refreshHour), 'CACHE : RefreshHour ');
//Fin Debug
if( ($now>$maxTime) || ($dateFile<$refreshHour && $now>$refreshHour) ) return TRUE;
else return FALSE;
}

View File

@ -32,7 +32,6 @@ function processSoapFault($clientSoap, $fault, $tabInfo, $debug = FALSE){
$message.= 'REQUEST : '.print_r($_REQUEST,true).'<br/><br/>';
$message.= 'SERVER : '.print_r($_REQUEST,true).'<br/><br/>';
$message.= 'SESSION : '.print_r($_SESSION,true).'<br/><br/>';
$message.= 'ENV : '.print_r($_ENV,true).'<br/><br/>';
$message.= 'tabInfo : '.print_r($tabInfo,true).'<br/><br/>';
$message.= '</pre>';

View File

@ -17,6 +17,8 @@ function formSurveillance($source, $siret, $notEmail, $displayAjax = TRUE){
'insee' => 'les événements INSEE',
'bilans' => 'les bilans',
'score' => 'IndiScore',
'actes' => 'les actes &amp; status',
'dirigeants' => 'les dirigeants',
);
$fileStyle = 'style.css';
@ -33,22 +35,22 @@ function formSurveillance($source, $siret, $notEmail, $displayAjax = TRUE){
$formHTML.= '<script type="text/javascript" src="./js/jquery.form.js"></script>'."\n";
$formHTML.= '<script type="text/javascript">'.$js.'</script>'."\n";
$formHTML.= '<style type="text/css">'.$style.'</style>'."\n";
$formHTML.= '<form id="frmSurv" name="frmSurv" action="./pages/ajax_surveillance.php" method="POST">';
$formHTML.= '<form id="frmSurv" name="frmSurv" action="./pages/ajax_surveillance.php" method="POST">'."\n";
if($displayAjax){
$formHTML.= '<input name="surveillance" type="checkbox"/> Mettre sous surveillance '.$assocSourceTxt[$source].'<br/>';
$formHTML.= '<input name="surveillance" type="checkbox"/> Mettre sous surveillance '.$assocSourceTxt[$source].'<br/>'."\n";
}
$formHTML.= '<input name="q" type="hidden" value="setsurv"/>';
$formHTML.= '<input name="formSurv[siret]" type="hidden" value="'.$siret.'"/>';
$formHTML.= '<input name="formSurv[source]" type="hidden" value="'.$source.'"/>';
$formHTML.= '<input name="formSurv[siret]" type="hidden" value="'.$siret.'"/>'."\n";
$formHTML.= '<input name="formSurv[source]" type="hidden" value="'.$source.'"/>'."\n";
$ref='';
if(isset($_REQUEST['ref'])){
$ref = $_REQUEST['ref'];
}
$formHTML.= '<div id="survForm">';
$formHTML.= '<div class="fieldgrp">';
$formHTML.= '<label class="StyleInfoLib">Votre référence</label><div class="field"><input name="formSurv[ref]" type="text" value="'.$ref.'" size="10"/></div>';
$formHTML.= '</div>';
$formHTML.= '<div id="survForm">'."\n";
$formHTML.= '<div class="fieldgrp">'."\n";
$formHTML.= '<label class="StyleInfoLib">Votre référence</label><div class="field"><input name="formSurv[ref]" type="text" value="'.$ref.'" size="10"/></div>'."\n";
$formHTML.= '</div>'."\n";
$email = '';
if(!in_array($_SESSION['tabInfo']['login'],$notEmail) && !isset($_REQUEST['email'])){
@ -56,14 +58,14 @@ function formSurveillance($source, $siret, $notEmail, $displayAjax = TRUE){
}elseif(isset($_REQUEST['email'])){
$email = $_REQUEST['email'];
}
$formHTML.= '<div class="fieldgrp">';
$formHTML.= '<label class="StyleInfoLib">Adresse email du destinataire</label><div class="field"><input name="formSurv[email]" type="text" value="'.$email.'" size="20"/></div>';
$formHTML.= '</div>';
$formHTML.= '<div class="submit"><p class="submit-button">';
$formHTML.= '<input class="submit" type="image" src="./img/boutton_valider_off.gif" name="submit" onmouseover="this.src=\'./img/boutton_valider_on.gif\'" onmouseout="this.src=\'./img/boutton_valider_off.gif\'" title="Mettre sous surveillance...">';
$formHTML.= '</p></div>';
$formHTML.= '</div>';
$formHTML.= '</form>';
$formHTML.= '<div class="fieldgrp">'."\n";;
$formHTML.= '<label class="StyleInfoLib">Adresse email du destinataire</label><div class="field"><input name="formSurv[email]" type="text" value="'.$email.'" size="20"/></div>'."\n";
$formHTML.= '</div>'."\n";;
$formHTML.= '<div class="submit"><p class="submit-button">'."\n";;
$formHTML.= '<input class="submit" type="image" src="./img/boutton_valider_off.gif" name="submit" onmouseover="this.src=\'./img/boutton_valider_on.gif\'" onmouseout="this.src=\'./img/boutton_valider_off.gif\'" title="Mettre sous surveillance...">'."\n";
$formHTML.= '</p></div>'."\n";
$formHTML.= '</div>'."\n";
$formHTML.= '</form>'."\n";
return $formHTML;
}
@ -85,24 +87,27 @@ function getSurveillance($page, $siret){
'evenements' => 'survinsee',
'liasse' => 'survbilan',
'indiscore' => 'survscore',
'actes' => 'survactes',
'dirigeants' => 'survdirigeants',
);
$assocPageSource = array(
'annonces' => 'annonces',
'evenements' => 'insee',
'liasse' => 'bilans',
'indiscore' => 'score',
'greffes' => 'actes',
'dirigeants' => 'dirigeants',
);
$return = '';
$firephp->log($_SESSION,'SESSION');
if(preg_match('/'.$assocPageDroit[$page].'/i', $_SESSION['tabInfo']['droits'])){
//if(preg_match('/'.$assocPageDroit[$page].'/i', $_SESSION['tabInfo']['droits'])){
if(preg_match('/voirsurv/i', $_SESSION['tabInfo']['pref']) && inSurveillance($assocPageSource[$page], $siret)){
$return = '<br/>L\'entité est sous surveillance.'."\n";
}else{
$notEmail = array('testreunica', 'reunicacsf');
$return = formSurveillance($assocPageSource[$page], $siret, $notEmail);
}
}
//}
return $return;
}

View File

@ -15,6 +15,8 @@ $definePerms = array(
'SURVINSEE' => array( 'init' => '', 'txt' => 'Surveillance des événements INSEE'),
'SURVBILAN' => array( 'init' => '', 'txt' => 'Surveillance des bilans'),
'SURVSCORE' => array( 'init' => '', 'txt' => 'Surveillance des événements sur le score'),
'SURVACTES' => array( 'init' => '', 'txt' => 'Surveillance des actes'),
'SURVDIRIGEANTS'=> array( 'init' => '', 'txt' => 'Surveillance des dirigeants'),
'SURVLISTE' => array( 'init' => '', 'txt' => 'Liste des surveillances'),
'INVESTIG' => array( 'init' => '', 'txt' => 'Investigation'),
'ENQUETEC' => array( 'init' => '', 'txt' => 'Enquête commerciale'),
@ -64,10 +66,11 @@ function checkPerm($page, $perm = ''){
* @return string
*/
function formElementPerm($userInfos){
global $definePerms;
global $definePerms, $firephp;
$return = '';
foreach($definePerms as $perm => $infos){
if(overridePerm($perm)){
$firephp->log(hasPerm($perm, $userInfos), 'hasPerm');
(hasPerm($perm, $userInfos)==TRUE) ? $checked = 'checked' : $checked = $infos['init'];
($_SESSION['tabInfo']['profil']=='Administrateur' || $_SESSION['tabInfo']['profil']=='SuperAdministrateur') ? $disabled = '' : $disabled = 'disabled' ;
$return.= '<input type="checkbox" name="frmOptions[droits][]" value="'.strtolower($perm).'" '.$checked.' '.$disabled.' class="noborder"/>'.$infos['txt'].'<br/>'."\n";

View File

@ -132,7 +132,7 @@ if ($idan && ($vue=='bodacc' || $vue=='abod' || $vue=='balo' || $vue=='asso'))
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="3" class="StyleInfoLib"><b><?=$ann['Categorie']?></b></td>
<td width="550" colspan="3" class="StyleInfoLib"><b><?=$ann['Categorie']?></b></td>
</tr>
<tr>
</table>

View File

@ -60,6 +60,15 @@ $raisonSociale = $_SESSION['tabInfo']['entrep']['raisonSociale'];
<td width="200" class="StyleInfoLib">Raison Sociale</td>
<td width="350" class="StyleInfoData"><?=$raisonSociale?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<?php
require_once 'surveillance/surveillance.php';
print getSurveillance($page, $siret);
?>
</td>
</tr>
</table>
<?php
if ($histo)

View File

@ -277,6 +277,15 @@ else
<td width="200" class="StyleInfoLib">Raison Sociale</td>
<td width="350" class="StyleInfoData"><?=$raisonSociale?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<?php
require_once 'surveillance/surveillance.php';
print getSurveillance($page, $siret);
?>
</td>
</tr>
</table>
<h2>Actes &amp; Statuts</h2>
@ -361,7 +370,6 @@ else
</tr>
<?php
//$date=$dom_object->getValueFromTag('date_acte');
$tabOptions=explode('-', $option);
$acte=array();
if (!isset($typeActes['a'.$tabOptions[0]])) {
@ -428,6 +436,15 @@ else
<td width="200" class="StyleInfoLib">Raison Sociale</td>
<td width="350" class="StyleInfoData"><?=$raisonSociale?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<?php
require_once 'surveillance/surveillance.php';
print getSurveillance($page, $siret);
?>
</td>
</tr>
</table>
<h2>Actes &amp; Statuts</h2>
@ -534,8 +551,15 @@ else
<td width="200" class="StyleInfoLib">Raison Sociale</td>
<td width="350" class="StyleInfoData"><?=$raisonSociale?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<?php
require_once 'surveillance/surveillance.php';
print getSurveillance($page, $siret);
?>
</td>
</tr>
</table>
<h2>Actes &amp; Statuts</h2>

View File

@ -41,7 +41,6 @@ if( cache_exist() && !( preg_match('/saisie/i', $_SESSION['tabInfo']['droits'])
try {
$O = $client->getIdentite($siret, $idEntreprise);
$etab = $O['result'];
$firephp->log($etab,'etab');
cache_delete();
cache_add('etab', $etab);
} catch (SoapFault $fault) {
@ -51,6 +50,8 @@ if( cache_exist() && !( preg_match('/saisie/i', $_SESSION['tabInfo']['droits'])
}
}
$firephp->log($etab,'etab');
$tabEntrep = array();
$tabEntrep['raisonSociale'] = $etab['Nom'];
$tabEntrep['siren'] = $etab['Siren'];
@ -140,7 +141,8 @@ if (trim($etab['Web'])<>'') {
$urlImg=getLogo($siteWeb, $etab['Siren']);
}
if ($etab['Isin']<>'') {
if ($etab['Isin']<>'')
{
$bourse=$etab['Bourse'];
?>
<tr>
@ -149,7 +151,8 @@ if ($etab['Isin']<>'') {
<td width="350" class="StyleInfoData"><a href="./?page=bourse&siret=<?=$etab['Siret']?>" title="Voir les informations boursi&eacute;res"><?=$etab['Isin']?></a></td>
</tr>
<?php
if ($bourse['capitalisation']<>0) {
if ($bourse['capitalisation']<>0)
{
?>
<tr>
<td width="30">&nbsp;</td>
@ -197,7 +200,7 @@ if (isset($etab['numRC']) && $etab['numRC']!='') {
<?php
//Autre identifiant : Numéro WALDEC ou ancien numéro RC si le nouveau n'est pas disponible
if (isset($etab['AutreId']) && $etab['AutreId']!='' && (!$flafNewRC || substr($etab['AutreId'],0,1)=='W'))
if (isset($etab['AutreId']) && $etab['AutreId']!='' && (!$flagNewRC || substr($etab['AutreId'],0,1)=='W'))
{
$libTrib = '';
?>
@ -223,6 +226,7 @@ if (isset($etab['AutreId']) && $etab['AutreId']!='' && (!$flafNewRC || substr($
<?
}
?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Etablissement actif
@ -247,56 +251,57 @@ if (isset($etab['AutreId']) && $etab['AutreId']!='' && (!$flafNewRC || substr($
</td>
</tr>
<?php
//Situation Jurique + affichage date de radiation
$dateRadiation = '';
if(isset($etab['DateRadiation']) && $etab['DateRadiation']!='' && $etab['DateRadiation']!='0000-00-00'){
$dateRadiation = WDate::dateT('Ymd', 'd/m/Y', str_replace('-','',$etab['DateRadiation']));
}
$firephp->log($etab['SituationJuridique'], 'SituationJuridique');
<?php
//Situation Jurique + affichage date de radiation
$dateRadiation = '';
if(isset($etab['DateRadiation']) && $etab['DateRadiation']!='' && $etab['DateRadiation']!='0000-00-00'){
$dateRadiation = WDate::dateT('Ymd', 'd/m/Y', str_replace('-','',$etab['DateRadiation']));
}
$firephp->log($etab['SituationJuridique'], 'SituationJuridique');
if ( $etab['SituationJuridique']=='P' || $etab['SituationJuridique'][0]=='R' || $_SESSION['tabInfo']['mode_edition']==1)
{
?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Situation juridique</td>
<td width="350" class="StyleInfoData">
if ( $etab['SituationJuridique']=='P' || $etab['SituationJuridique'][0]=='R' || $_SESSION['tabInfo']['mode_edition']==1)
{
?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Situation juridique</td>
<td width="350" class="StyleInfoData">
<?php
}
//Procédure collective
if ($etab['SituationJuridique']=='P')
{
?>
<a href="./?page=annonces&siret=<?=$etab['Siret']?>&idEntreprise=<?=$idEntreprise?>">
<font color="red"><b>En proc&eacute;dure collective</b></font>
</a>
<?php if($dateRadiation!=''){ ?><br/>Radié du RCS le <?php print $dateRadiation; } ?>
<?php
}
//Procédure collective
if ($etab['SituationJuridique']=='P')
{
?>
<a href="./?page=annonces&siret=<?=$etab['Siret']?>&idEntreprise=<?=$idEntreprise?>">
<font color="red"><b>En proc&eacute;dure collective</b></font>
</a>
<?php if($dateRadiation!=''){ ?><br/>Radié du RCS le <?php print $dateRadiation; } ?>
<?php
}/*else{
if($dateRadiation!=''){ ?>Radié du RCS le <?php print $dateRadiation; }
}*/
//Radiation
if($etab['SituationJuridique']=='RR')
{
?> Radié du RCS <?php if($dateRadiation!=''){ ?> le <?php print $dateRadiation; }
}elseif($etab['SituationJuridique']=='RP'){
?> Radiation publiée <?php if($dateRadiation!=''){ ?> le <?php print $dateRadiation; }
}
if ($_SESSION['tabInfo']['mode_edition']==1)
{
?>
<a href="./?page=saisie&siret=<?=$etab['Siret']?>&idEntreprise=<?=$idEntreprise?>">(Edition)</a>
<?php
}
if ( $etab['SituationJuridique']=='P' || $etab['SituationJuridique'][0]!='R' || $_SESSION['tabInfo']['mode_edition']==1)
{
?>
</td>
</tr>
<?php
} // Fin Situation juridique
?>
}/*else{
if($dateRadiation!=''){ ?>Radié du RCS le <?php print $dateRadiation; }
}*/
//Radiation
if($etab['SituationJuridique']=='RR')
{
?> Radié du RCS <?php if($dateRadiation!=''){ ?> le <?php print $dateRadiation; }
}elseif($etab['SituationJuridique']=='RP'){
?> Radiation publiée <?php if($dateRadiation!=''){ ?> le <?php print $dateRadiation; }
}
if ($_SESSION['tabInfo']['mode_edition']==1)
{
?>
<a href="./?page=saisie&siret=<?=$etab['Siret']?>&idEntreprise=<?=$idEntreprise?>">(Edition)</a>
<?php
}
if ( $etab['SituationJuridique']=='P' || $etab['SituationJuridique'][0]!='R' || $_SESSION['tabInfo']['mode_edition']==1)
{
?>
</td>
</tr>
<?php
} // Fin Situation juridique
?>
</table>
<h2>Raison sociale & Coordonnées</h2>
@ -388,7 +393,7 @@ if($dateImmat!=''){
?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Date de cr&eacute;ation de l'entreprise</td>
<td width="200" class="StyleInfoLib">Cr&eacute;ation de l'entreprise</td>
<td width="350" class="StyleInfoData">
<?php
$dateCreationEn=str_replace('-','',$etab['DateCreaEn']);
@ -404,7 +409,7 @@ if($dateImmat!=''){
?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Date de cr&eacute;ation de l'&eacute;tablissement</td>
<td width="200" class="StyleInfoLib">Cr&eacute;ation de l'&eacute;tablissement</td>
<td width="350" class="StyleInfoData">
<?php
$dateCreationEt=str_replace('-','',$etab['DateCreaEt']);
@ -580,27 +585,7 @@ if (preg_match('/NAF4/i', $_SESSION['tabInfo']['pref']) && trim(@$etab['Naf4Ent'
<?php
}
//Nature de l'activité
$strActivite='';
/*if ($etab['NatureActivite']*1>0 && $etab['NatureActivite']*1<99) {
$tabNatureActivite=array( 3=>'Extraction',
4=>'Fabrication, production',
5=>'Montage, installation',
6=>'Réparation',
7=>'Transport',
8=>'Import, export',
9=>'Commerce de gros ou intermédiaire du commerce',
10=>'Commerce de détail',
11=>'Profession libérale',
12=>'Services',
13=>'Location de meublés',
14=>'Bâtiments, travaux publics',
15=>'Services aux entreprises',
20=>'Donneur d\'ordre',
);
$strActivite.=$tabNatureActivite[$etab['NatureActivite']*1].' ';
}*/
if (/*trim($strActivite)<>''*/$etab['NatureActivite']==1 && $etab['Actif']==1)
if ($etab['NatureActivite']==1 && $etab['Actif']==1)
{
?>
<tr>
@ -738,19 +723,14 @@ elseif($dir2LieuNaiss!='' && $dir2NaissText=='') $dir2NaissText.= 'n
<td width="200" class="StyleInfoLib">Principaux Dirigeants</td>
<td width="350" class="StyleInfoData">
<div class="txtAdresse">
<p><u><b><?php print strWsToHtml(ucfirst($etab['dir1Titre'])); ?></b></u></p>
<p>
<?php print strWsToHtml($etab['dir1NomPrenom']); ?>
<?php if($dir1NaissText!=''){?>, <?php print $dir1NaissText; }?>
<p><u><b><?php print strWsToHtml(ucfirst($etab['dir1Titre'])); ?></b></u><br/><?php print strWsToHtml($etab['dir1NomPrenom']); ?><?php if($dir1NaissText!=''){?>, <?php print $dir1NaissText; }?></p>
</div>
<?php
if ($etab['dir2Titre']<>'') {
?>
<br/>
<div class="txtAdresse">
<p><u><b><?php print strWsToHtml(ucfirst($etab['dir2Titre'])); ?></b>:</u></p>
<p><?php print strWsToHtml($etab['dir2NomPrenom']); ?>
<?php if($dir2NaissText!=''){?>, <?php print $dir2NaissText; }?>
<p><u><b><?php print strWsToHtml(ucfirst($etab['dir2Titre'])); ?></b>:</u><br/><?php print strWsToHtml($etab['dir2NomPrenom']); ?> <?php if($dir2NaissText!=''){?>, <?php print $dir2NaissText; }?></p>
</div>
<?php
}

View File

@ -219,6 +219,17 @@ if ( preg_match('/scorecsf/i', $_SESSION['tabInfo']['droits']) )
<?php
}
//Rapport de synthèse
if( ($_SESSION['tabInfo']['login']=='mricois') )
{
if ( $siret*1!=0 ) { $href = './?page=rsynthese&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#';}
?>
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Rapport de synthèse<?php if($href=='#'){print '</font>';} ?></a>
<?php
}
?>
<?php
// Enquete commerciale
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
{

View File

@ -32,7 +32,9 @@ else {
$tabOptions['nom'] = preg_replace('/[^0-9A-Z\'-]/i', ' ', strtoupper(strtr(stripslashes($tabOptions['nom']), 'àáâãäåæçèéêëìíîïðñòóôõöùúûüýÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝŸ', 'aaaaaaaceeeeiiiionooooouuuuyyAAAAAAACEEEEIIIIONOOOOOUUUUYY')));
$tabOptions['prenom'] = ucwords(strtolower(preg_replace('/[^0-9A-Z\'-]/i', ' ', strtoupper(strtr(stripslashes($tabOptions['prenom']), 'àáâãäåæçèéêëìíîïðñòóôõöùúûüýÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝŸ', 'aaaaaaaceeeeiiiionooooouuuuyyAAAAAAACEEEEIIIIONOOOOOUUUUYY')))));
$tabOptions['reference'] = preg_replace('/[^0-9A-Z\'-]/i', ' ', strtoupper(strtr(stripslashes($tabOptions['reference']), 'àáâãäåæçèéêëìíîïðñòóôõöùúûüýÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝŸ', 'aaaaaaaceeeeiiiionooooouuuuyyAAAAAAACEEEEIIIIONOOOOOUUUUYY')));
$firephp->log($loginVu, 'loginVu');
$firephp->log($tabOptions, 'tabOptions');
try {
$O = $client->setInfosLogin($loginVu, $tabOptions);
if ($O['result']==1) $message='Compte mis à jour !';
@ -318,6 +320,7 @@ if ($_SESSION['tabInfo']['login']=='ylenaour') {
<div class="infoTitle StyleInfoLib">Droits d'acc&egrave;s</div>
<div class="infoData">
<?php $firephp->log($login, 'login'); ?>
<?php print formElementPerm($login); ?>
</div>

View File

@ -33,7 +33,7 @@ switch($tri){
case 'datederenvoi': $triws = 'dateDerEnvoi'; break;
}
$tabSource = array('annonces', 'insee', 'bilans', 'score');
$tabSource = array('annonces', 'insee', 'bilans', 'score', 'actes', 'dirigeants');
$nbAffichage = 100;
//Enregistrement pour liste dernière recherche
@ -158,13 +158,18 @@ if($vue=='default'){
Afficher uniquement les suveillances de type
<select name="type">
<option value="-">toutes</option>
<option value="annonces" <?php if(isset($source) && $source=='annonces'){print 'selected';}?>>annonces</option>
<option value="insee" <?php if(isset($source) && $source=='insee'){print 'selected';}?>>insee</option>
<option value="bilans" <?php if(isset($source) && $source=='bilans'){print 'selected';}?>>bilans</option>
<option value="score" <?php if(isset($source) && $source=='score'){print 'selected';}?>>score</option>
<?php
foreach($tabSource as $s)
{
?>
<option value="<?=$s?>" <?php if(isset($source) && $source==$s){print 'selected';}?>><?=$s?></option>
<?php
}
?>
</select>
</p>
<p class="options"><ul id="tri">
<p class="options">
<ul id="tri">
<li><a href="./?page=surveillance&vue=<?php print $vue;?><?php if(isset($source)){print '&source='.$source;}?>&tri=siren&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Tri par Siren</a></li>
<li><a href="./?page=surveillance&vue=<?php print $vue;?><?php if(isset($source)){print '&source='.$source;}?>&tri=rs&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Tri par Raison sociale</a></li>
<?php
@ -176,7 +181,8 @@ if($source != ''){
<?php
}
?>
</ul></p>
</ul>
</p>
<p class="options">
Les options de tri pemettent de trier la liste de vos surveillances.
Il est ensuite possible de trier les surveillances affichées dans le tableau en cliquant sur chaque titre de colonnes.
@ -248,7 +254,7 @@ foreach($listTrier as $item)
?>
<div id="a<?php print $item['siren'];?>" class="action">
<p><?php print ucfirst($source);?></p>
<a class="thickbox" href="./pages/ajax_surveillance.php?q=ajouter&siren=<?php print $item['siren']; ?>&source=<?php print $source;?>" title="Ajouter la surveillance <?php print $source;?>"><img src="./img/interface/ajouter.png"/></a>
<a class="thickbox" href="./pages/ajax_surveillance.php?q=ajouter&siren=<?php print $item['siren']; ?>&source=<?php print $source;?>" title="Ajouter la surveillance <?=$source?>"><img src="./img/interface/ajouter.png"/></a>
<a class="thickbox" href="./pages/ajax_surveillance.php?q=ajouter&siren=<?php print $item['siren']; ?>&source=<?php print $source;?>&ref=<?php print $surveillance['ref'];?>&email=<?php print $surveillance['email'];?>" title="Editer la surveillance <?php print $source;?>"><img src="./img/interface/editer.png"/></a>
<a href="./?page=surveillance&action=supprimer&siren=<?php print $item['siren']; ?>&ref=<?php print $surveillance['ref']; ?>&source=<?php print $source;?>&email=<?php print $surveillance['email']; ?>&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>" title="Supprimer la surveillance <?php print $source.' '.$surveillance['email'];?>"><img src="./img/interface/supprimer.png"/></a>
</div>
@ -258,7 +264,7 @@ foreach($listTrier as $item)
?>
<div id="a<?php print $item['siren'];?>" class="action">
<p><?php print ucfirst($source);?></p>
<a class="thickbox" href="./pages/ajax_surveillance.php?q=ajouter&siren=<?php print $item['siren']; ?>&source=<?php print $source;?>" title="Ajouter la surveillance <?php print $item['source'];?>"><img src="./img/interface/ajouter.png"/></a>
<a class="thickbox" href="./pages/ajax_surveillance.php?q=ajouter&siren=<?php print $item['siren']; ?>&source=<?php print $source;?>" title="Ajouter la surveillance <?=$source?>"><img src="./img/interface/ajouter.png"/></a>
</div>
<?php
}