2009-05-20 15:49:08 +00:00
< ? php
2009-02-17 13:14:53 +00:00
$siret = trim ( preg_replace ( '/[^0-9]/' , '' , $_REQUEST [ 'siret' ]));
2009-03-11 07:51:18 +00:00
$idEntreprise = trim ( preg_replace ( '/[^0-9]/' , '' , $_REQUEST [ 'idEntreprise' ])) * 1 ;
2009-03-25 14:38:22 +00:00
2009-02-17 13:14:53 +00:00
if ( ! $_SESSION [ 'connected' ])
echo ( 'Vous devez <20> tre connect<63> afin de pouvoir utiliser cette fonctionnalit<69> ' );
elseif ( $_SESSION [ 'tabInfo' ][ 'profil' ] <> 'Administrateur' && ! preg_match ( '/MONPROFIL/i' , $_SESSION [ 'tabInfo' ][ 'droits' ])) {
echo ( 'Vous n\'avez pas les droits n<> cessaires pour utiliser cette fonctionnalit<69> (' . $_SESSION [ 'tabInfo' ][ 'profil' ] . ' ' . $_SESSION [ 'tabInfo' ][ 'droits' ] . ')' );
$siret = $_REQUEST [ 'siret' ];
}
else {
2009-04-01 12:45:45 +00:00
//
$tabInfo = $_SESSION [ 'tabInfo' ];
2009-05-20 15:49:08 +00:00
//echo '<h6>'.$_SESSION['tabInfo']['mode_edition'].'</h6>';
2009-02-17 13:14:53 +00:00
$message = '' ;
if ( isset ( $_REQUEST [ 'login' ]) && $_REQUEST [ 'login' ] <> '' && $_REQUEST [ 'login' ] <> $_SESSION [ 'tabInfo' ][ 'login' ] && $_SESSION [ 'tabInfo' ][ 'profil' ] == 'Administrateur' )
$loginVu = $_REQUEST [ 'login' ];
elseif ( $tabOptions [ 'action' ] == 'new' )
$loginVu = $tabOptions [ 'login' ];
else
$loginVu = $_SESSION [ 'tabInfo' ][ 'login' ];
if ( $tabOptions [ 'action' ] == 'save' || $tabOptions [ 'action' ] == 'new' ) {
$message = 'Erreur lors de la mise <20> jour du compte !' ;
$tabOptions [ 'nom' ] = preg_replace ( '/[^0-9A-Z\'-]/i' , ' ' , strtoupper ( strtr ( stripslashes ( $tabOptions [ 'nom' ]), '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ݟ' , 'aaaaaaaceeeeiiiionooooouuuuyyAAAAAAACEEEEIIIIONOOOOOUUUUYY' )));
$tabOptions [ 'prenom' ] = ucwords ( strtolower ( preg_replace ( '/[^0-9A-Z\'-]/i' , ' ' , strtoupper ( strtr ( stripslashes ( $tabOptions [ 'prenom' ]), '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ݟ' , 'aaaaaaaceeeeiiiionooooouuuuyyAAAAAAACEEEEIIIIONOOOOOUUUUYY' )))));
$tabOptions [ 'reference' ] = preg_replace ( '/[^0-9A-Z\'-]/i' , ' ' , strtoupper ( strtr ( stripslashes ( $tabOptions [ 'reference' ]), '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ݟ' , 'aaaaaaaceeeeiiiionooooouuuuyyAAAAAAACEEEEIIIIONOOOOOUUUUYY' )));
try {
//print_r($tabOptions);die();
$O = $client -> setInfosLogin ( $loginVu , $tabOptions );
if ( $O [ 'result' ] == 1 ) $message = 'Compte mis <20> jour !' ;
} catch ( SoapFault $fault ) {
$message = 'Erreur SOAP lors de la mise <20> jour du compte !' ;
}
if ( $_REQUEST [ 'referer' ] == 'administration' ) {
2009-05-20 15:49:08 +00:00
?>
< script language = " javascript " >
2009-02-17 13:14:53 +00:00
alert ( " Le profil <?= $loginVu ?> a <20> t<EFBFBD> mis <20> jour ! " );
2009-03-11 07:51:18 +00:00
document . location . href = '/?page=administration&id=<?=$idEntreprise?>&siret=<?=$siret?>' ;
2009-05-20 15:49:08 +00:00
</ script >
< ? php
2009-02-17 13:14:53 +00:00
}
if ( $_REQUEST [ 'frmOptions' ][ 'changepwd' ] == 1 && $loginVu == $_SESSION [ 'tabInfo' ][ 'login' ] && $tabOptions [ 'action' ] == 'save' ) {
2009-05-20 15:49:08 +00:00
?>
< script language = " javascript " >
2009-02-17 13:14:53 +00:00
alert ( " La modification de votre mot de passe n<> cessite votre d<> connexion ! " );
document . location . href = '/?page=main&action=logout' ;
2009-05-20 15:49:08 +00:00
</ script >
< ? php
2009-02-17 13:14:53 +00:00
}
}
/** Utilisation du WS **/
try {
if ( $_REQUEST [ 'action' ] <> 'new' ) {
$O = $client -> getInfosLogin ( $loginVu );
$login = $O [ 'result' ];
} else {
$O = $client -> getNextLogin ( $loginVu );
$loginNew = $O [ 'result' ][ 'racine' ];
$idClient = $O [ 'result' ][ 'idClient' ];
}
} catch ( SoapFault $fault ) {
2009-02-26 17:16:11 +00:00
include_once ( realpath ( dirname ( __FILE__ ) . '/../../' ) . '/includes/soaperror.php' );
processSoapFault ( $client , $fault , $tabInfo );
2009-02-17 13:14:53 +00:00
die ();
}
if ( $_SESSION [ 'tabInfo' ][ 'profil' ] == 'Administrateur' )
$admin = true ;
else
$admin = false ;
?>
2009-05-20 15:49:08 +00:00
< style type = " text/css " >
table { border - collapse : collapse ;}
. bottom td { border - bottom : 1 px solid ;}
</ style >
2009-02-17 13:14:53 +00:00
< form name = " form_moncompte " action = " ./?page=moncompte " method = " POST " enctype = " multipart/form-data " >
< ? if ( $_REQUEST [ 'action' ] == 'new' ) { ?>
< input type = " hidden " name = " frmOptions[action] " value = " new " />
< ? } else { ?>
< input type = " hidden " name = " frmOptions[action] " value = " save " />
< ? } ?>
< input type = " hidden " name = " siret " value = " <?= $siret ?> " />
2009-03-11 07:51:18 +00:00
< input type = " hidden " name = " id " value = " <?= $idEntreprise ?> " />
2009-02-17 13:14:53 +00:00
< input type = " hidden " name = " login " value = " <?= $loginVu ?> " />
< input type = " hidden " name = " frmOptions[idClient] " value = " <?= $idClient ?> " />
< input type = " hidden " name = " referer " value = " <?= $_REQUEST['referer'] ?> " />
< table width = " 580 " border = " 0 " align = " left " bgcolor = " #FFFFFF " >
< ?
if ( $message <> '' ) {
?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 500 " colspan = " 2 " class = " StyleInfoData " >< h3 >< ? = $message ; ?> </h3></td>
</ tr >
< ?
}
?>
< tr >
< td colspan = " 3 " >< img src = " ./img/rub_profil.png " width = " 577 " height = " 36 " ></ td >
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Identifiant utilisateur </ td >
< ? if ( $_REQUEST [ 'action' ] <> 'new' ) { ?>
< td width = " 350 " class = " StyleInfoData " >< ? = $loginVu ?> </td>
< ? } else { ?>
< td width = " 350 " class = " StyleInfoData " >< input type = " text " size = " 20 " maxlength = " 80 " name = " frmOptions[login] " value = " <?= $loginNew ?> " /></ td >
< ? } ?>
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Identit & eacute ; ( NOM / Pr & eacute ; nom ) </ td >
< ? if ( $admin ) { ?>
< td width = " 350 " class = " StyleInfoData " >< input type = " text " size = " 20 " maxlength = " 80 " name = " frmOptions[nom] " value = " <?= $login['nom'] ?> " /> < input type = " text " size = " 20 " maxlength = " 80 " name = " frmOptions[prenom] " value = " <?= $login['prenom'] ?> " /></ td >
< ? } else { ?>
< td width = " 350 " class = " StyleInfoData " >< ? = $login [ 'nom' ] . ' ' . $login [ 'prenom' ] ?> </td>
< ? } ?>
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > R & eacute ; f . facturation ( service , etc ... ) </ td >
< ? if ( $admin ) { ?>
< td width = " 350 " class = " StyleInfoData " >< input type = " text " size = " 20 " maxlength = " 80 " name = " frmOptions[reference] " value = " <?= $login['reference'] ?> " /></ td >
< ? } else { ?>
< td width = " 350 " class = " StyleInfoData " >< ? = $login [ 'reference' ] ?> </td>
< ? } ?>
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Adresse e - mail </ td >
< td width = " 350 " class = " StyleInfoData " >< input type = " text " size = " 30 " maxlength = " 80 " name = " frmOptions[email] " value = " <?= $login['email'] ?> " /></ td >
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Num & eacute ; ros de t & eacute ; l & eacute ; phone < br />< i > ( Fixe , Fax , Mobile ) </ i ></ td >
< td width = " 350 " class = " StyleInfoData " >< input type = " text " size = " 10 " maxlength = " 15 " name = " frmOptions[tel_fix] " value = " <?= $login['tel'] ?> " />< input type = " text " size = " 10 " maxlength = " 15 " name = " frmOptions[tel_fax] " value = " <?= $login['fax'] ?> " />< input type = " text " size = " 10 " maxlength = " 15 " name = " frmOptions[tel_mob] " value = " <?= $login['mobile'] ?> " /><!--< br />< input type = " checkbox " name = " frmOptions[copie_sms] " value = " <?= $_SESSION['tabInfo'] ['copieParSms']?> " /> Recevoir une copie de mes messages de surveillance par SMS --></ td >
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Mot de passe </ td >
< td width = " 350 " class = " StyleInfoData " >< input type = " password " size = " 15 " maxlength = " 32 " name = " frmOptions[password] " value = " oqsrihgwslglm " onkeypress = " document.form_moncompte.changepwd.checked=1 " /> < input name = " frmOptions[changepwd] " id = " changepwd " type = " checkbox " value = " 1 " /> R & eacute ; initialiser le mot de passe </ td >
</ tr >
< tr >
< td colspan = " 3 " >& nbsp ; </ td >
</ tr >
< tr >
< td colspan = " 3 " >< img src = " ./img/srub_moteur.png " width = " 576 " height = " 27 " ></ td >
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > R & eacute ; sultats par page </ td >
< td width = " 350 " class = " StyleInfoData " >< select name = " frmOptions[rech_nbrep] " >
< ?
$opt [ 10 ] = $opt [ 20 ] = $opt [ 30 ] = $opt [ 50 ] = $opt [ 100 ] = $opt [ 150 ] = $opt [ 200 ] = '' ;
if ( $login [ 'nbReponses' ] == 10 ) $opt [ 10 ] = 'selected' ;
elseif ( $login [ 'nbReponses' ] == 20 ) $opt [ 20 ] = 'selected' ;
elseif ( $login [ 'nbReponses' ] == 30 ) $opt [ 30 ] = 'selected' ;
elseif ( $login [ 'nbReponses' ] == 50 ) $opt [ 50 ] = 'selected' ;
elseif ( $login [ 'nbReponses' ] == 100 ) $opt [ 100 ] = 'selected' ;
elseif ( $login [ 'nbReponses' ] == 150 ) $opt [ 150 ] = 'selected' ;
elseif ( $login [ 'nbReponses' ] == 200 ) $opt [ 200 ] = 'selected' ;
?> <option value="10" <?=$opt[10]?>>10</option>
< option value = " 20 " < ? = $opt [ 20 ] ?> >20</option>
< option value = " 30 " < ? = $opt [ 30 ] ?> >30</option>
< option value = " 50 " < ? = $opt [ 50 ] ?> >50</option>
< option value = " 100 " < ? = $opt [ 100 ] ?> >100</option>
< option value = " 150 " < ? = $opt [ 150 ] ?> >150</option>
< option value = " 200 " < ? = $opt [ 200 ] ?> >200</option>
2009-05-20 15:49:08 +00:00
</ select ></ td >
</ tr >
< tr >
2009-02-17 13:14:53 +00:00
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Inclure </ td >
< td width = " 350 " class = " StyleInfoData " >
< input type = " checkbox " name = " frmOptions[rech_limites][] " value = " assocs " checked disabled /> les associations < br />
< input type = " checkbox " name = " frmOptions[rech_limites][] " value = " actifs " checked disabled /> les actifs < br />
< input type = " checkbox " name = " frmOptions[rech_limites][] " value = " radies " checked disabled /> les radi & eacute ; s < br />
< input type = " checkbox " name = " frmOptions[rech_limites][] " value = " sieges " checked disabled /> les & eacute ; tablissements secondaires </ td >
</ tr >
< tr >
< td colspan = " 3 " >& nbsp ; </ td >
</ tr >
< tr >
< td colspan = " 3 " >< img src = " ./img/srub_surveillance.png " width = " 576 " height = " 27 " ></ td >
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Supports pour les alertes </ td >
2009-05-20 15:49:08 +00:00
< td width = " 350 " class = " StyleInfoData " >
< input type = " checkbox " name = " frmOptions[alertes][] " value = " sms " disabled /> SMS < br />
< input type = " checkbox " name = " frmOptions[alertes][] " value = " fax " disabled /> Fax < br />
< input type = " checkbox " name = " frmOptions[alertes][] " value = " mail " checked disabled /> Mail < br />
</ td >
2009-02-17 13:14:53 +00:00
</ tr >
2009-05-20 15:49:08 +00:00
< ? php
if ( $_SESSION [ 'tabInfo' ][ 'login' ] == 'ylenaour' ) {
$formatMail = $login [ 'formatMail' ];
?>
2009-02-17 13:14:53 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Format des emails </ td >
< td width = " 350 " class = " StyleInfoData " >< select name = " frmOptions[formatMail] " >
< optgroup label = " Sans pi<70> ce jointe " >
< option value = " txt1 " < ? if ( $formatMail == 'txt1' ) echo 'selected' ; ?> >1 annonce/mail en texte</option>
< option value = " txt2 " < ? if ( $formatMail == 'txt2' ) echo 'selected' ; ?> >1 mail/jour en texte</option>
<!--< option value = " htm1 " < ? if ( $formatMail == 'htm1' ) echo 'selected' ; ?> >Mail format Html</option>-->
</ optgroup >
< optgroup label = " Avec pi<70> ce jointe " >
<!--< option value = " pdf " < ? if ( $formatMail == 'pdf' ) echo 'selected' ; ?> >Pdf en pi<70> ce jointe</option>-->
< option value = " pdf1 " < ? if ( $formatMail == 'pdf1' ) echo 'selected' ; ?> >Pdf (1 annonce/page)</option>
<!--< option value = " csv " < ? if ( $formatMail == 'csv' ) echo 'selected' ; ?> >Pi<50> ce jointe CSV</option>-->
< option value = " xls " < ? if ( $formatMail == 'xls' ) echo 'selected' ; ?> >Pi<50> ce jointe Excel</option>
</ optgroup >
</ select >
</ td >
</ tr >
2009-05-20 15:49:08 +00:00
< ? php
//print_r($_SESSION['tabInfo']);die();
} ?>
2009-02-17 13:14:53 +00:00
< tr >
< td colspan = " 3 " >& nbsp ; </ td >
</ tr >
< tr >
< td colspan = " 3 " >< img src = " ./img/srub_droits.png " width = " 576 " height = " 27 " ></ td >
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Type de profil </ td >
< td width = " 350 " class = " StyleInfoData " >< ? = $login [ 'profil' ] ?> </td>
</ tr >
2009-05-20 15:49:08 +00:00
< tr class = " bottom " >
2009-02-17 13:14:53 +00:00
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Pr & eacute ; f & eacute ; rences </ td >
2009-05-20 15:49:08 +00:00
< ? php
2009-02-17 13:14:53 +00:00
$tabPref = array ( 'naf4' => '' ,
'news' => '' ,
'mappy' => '' ,
'cartes' => '' ,
2009-05-20 15:49:08 +00:00
'voirsurv' => '' ,
2009-02-17 13:14:53 +00:00
);
if ( preg_match ( '/NAF4/i' , $login [ 'pref' ])) $tabPref [ 'naf4' ] = 'checked' ;
if ( preg_match ( '/MAPPY/i' , $login [ 'pref' ])) $tabPref [ 'mappy' ] = 'checked' ;
if ( preg_match ( '/NEWS/i' , $login [ 'pref' ])) $tabPref [ 'news' ] = 'checked' ;
if ( preg_match ( '/CARTES/i' , $login [ 'pref' ])) $tabPref [ 'cartes' ] = 'checked' ;
2009-05-20 15:49:08 +00:00
if ( preg_match ( '/VOIRSURV/i' , $login [ 'pref' ])) $tabPref [ 'voirsurv' ] = 'checked' ;
2009-02-17 13:14:53 +00:00
?>
< td width = " 350 " class = " StyleInfoData " >< input type = " checkbox " name = " frmOptions[pref][] " value = " naf4 " < ? = $tabPref [ 'naf4' ] ?> /> Afficher les anciens NAF<br/>
< input type = " checkbox " name = " frmOptions[pref][] " value = " mappy " < ? = $tabPref [ 'mappy' ] ?> /> Afficher les façades d'immeubles<br/>
< input type = " checkbox " name = " frmOptions[pref][] " value = " cartes " < ? = $tabPref [ 'cartes' ] ?> /> Afficher les cartes et les plans<br/>
< input type = " checkbox " name = " frmOptions[pref][] " value = " news " < ? = $tabPref [ 'news' ] ?> /> Afficher les news Google©<br/>
2009-05-20 15:49:08 +00:00
< input type = " checkbox " name = " frmOptions[pref][] " value = " voirsurv " < ? = $tabPref [ 'voirsurv' ] ?> /> Afficher et V<> rifier les surveillances<br/>
2009-02-17 13:14:53 +00:00
</ td >
</ tr >
2009-05-20 15:49:08 +00:00
< tr class = " bottom " >
2009-02-17 13:14:53 +00:00
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Droits d ' acc & egrave ; s </ td >
2009-05-20 15:49:08 +00:00
< ? php
2009-02-17 13:14:53 +00:00
/* $init = 'disabled ' ;
if ( $_SESSION [ 'tabInfo' ][ 'login' ] == 'ylenaour' ||
$_SESSION [ 'tabInfo' ][ 'login' ] == 'jmartory' ||
$_SESSION [ 'tabInfo' ][ 'login' ] == 'mheitz' ) */
$init = '' ;
2009-05-20 15:49:08 +00:00
$tabDroits = array (
'kbis' => $init ,
2009-02-17 13:14:53 +00:00
'ipari' => $init ,
'actes' => $init ,
'marques' => $init ,
'indiscore' => $init ,
'scorecsf' => $init ,
'monprofil' => $init ,
'eveninsee' => $init ,
2009-05-20 15:49:08 +00:00
'survinsee' => $init ,
'survannonce' => $init ,
'survbilan' => $init ,
'survscore' => $init ,
2009-02-17 13:14:53 +00:00
);
if ( preg_match ( '/KBIS/i' , $login [ 'droits' ])) $tabDroits [ 'kbis' ] .= 'checked' ;
if ( preg_match ( '/IPARI/i' , $login [ 'droits' ])) $tabDroits [ 'ipari' ] .= 'checked' ;
if ( preg_match ( '/ACTES/i' , $login [ 'droits' ])) $tabDroits [ 'actes' ] .= 'checked' ;
if ( preg_match ( '/MARQUES/i' , $login [ 'droits' ])) $tabDroits [ 'marques' ] .= 'checked' ;
if ( preg_match ( '/INDISCORE/i' , $login [ 'droits' ])) $tabDroits [ 'indiscore' ] .= 'checked' ;
if ( preg_match ( '/SCORECSF/i' , $login [ 'droits' ])) $tabDroits [ 'scorecsf' ] .= 'checked' ;
if ( preg_match ( '/MONPROFIL/i' , $login [ 'droits' ])) $tabDroits [ 'monprofil' ] .= 'checked' ;
2009-05-20 15:49:08 +00:00
if ( preg_match ( '/EVENINSEE/i' , $login [ 'droits' ])) $tabDroits [ 'eveninsee' ] .= 'checked' ;
if ( preg_match ( '/SURVINSEE/i' , $login [ 'droits' ])) $tabDroits [ 'survinsee' ] .= 'checked' ;
2009-05-22 10:35:12 +00:00
if ( preg_match ( '/SURVANNONCE/i' , $login [ 'droits' ])) $tabDroits [ 'survannonce' ] .= 'checked' ;
2009-05-20 15:49:08 +00:00
if ( preg_match ( '/SURVBILAN/i' , $login [ 'droits' ])) $tabDroits [ 'survbilan' ] .= 'checked' ;
if ( preg_match ( '/SURVSCORE/i' , $login [ 'droits' ])) $tabDroits [ 'survscore' ] .= 'checked' ;
?>
2009-02-17 13:14:53 +00:00
< td width = " 350 " class = " StyleInfoData " >
2009-05-20 15:49:08 +00:00
< ?
if ( $_SESSION [ 'tabInfo' ][ 'login' ] == 'ylenaour' ||
$_SESSION [ 'tabInfo' ][ 'login' ] == 'jmartory' ||
$_SESSION [ 'tabInfo' ][ 'login' ] == 'mheitz' ) { ?>
2009-02-17 13:14:53 +00:00
< input type = " checkbox " name = " frmOptions[droits][] " value = " kbis " < ? = $tabDroits [ 'kbis' ] ?> <?if (!$admin) echo 'disabled';?> /> Extrait RCS<br/>
2009-05-20 15:49:08 +00:00
< ? php
}
2009-02-17 13:14:53 +00:00
if ( $_SESSION [ 'tabInfo' ][ 'idClient' ] <> 18 ) { ?>
< input type = " checkbox " name = " frmOptions[droits][] " value = " actes " < ? = $tabDroits [ 'actes' ] ?> <?if (!$admin) echo 'disabled';?> /> Pièces officielles<br/>
< input type = " checkbox " name = " frmOptions[droits][] " value = " ipari " < ? = $tabDroits [ 'ipari' ] ?> <?if (!$admin) echo 'disabled';?> /> Investigation par l'image IparI©<br/>
< input type = " checkbox " name = " frmOptions[droits][] " value = " marques " < ? = $tabDroits [ 'marques' ] ?> <?if (!$admin) echo 'disabled';?> /> Marques déposées<br/>
2009-05-20 15:49:08 +00:00
< ? php } ?>
2009-02-17 13:14:53 +00:00
< input type = " checkbox " name = " frmOptions[droits][] " value = " indiscore " < ? = $tabDroits [ 'indiscore' ] ?> <?if (!$admin) echo 'disabled';?> /> indiScore©<br/>
< input type = " checkbox " name = " frmOptions[droits][] " value = " eveninsee " < ? = $tabDroits [ 'eveninsee' ] ?> <?if (!$admin) echo 'disabled';?> /> Évènements INSEE<br/>
2009-05-20 15:49:08 +00:00
< ? php
if ( $_SESSION [ 'tabInfo' ][ 'idClient' ] <> 18 ) { ?>
2009-02-17 13:14:53 +00:00
< input type = " checkbox " name = " frmOptions[droits][] " value = " scorecsf " < ? = $tabDroits [ 'scorecsf' ] ?> <?if (!$admin) echo 'disabled';?> /> score CSF<br/>
2009-05-20 15:49:08 +00:00
< ? php } ?>
2009-05-22 10:35:12 +00:00
< input type = " checkbox " name = " frmOptions[droits][] " value = " survinsee " < ? = $tabDroits [ 'survinsee' ] ?> <?if (!$admin) echo 'disabled';?> /> Surveillance des annonces l<> gales<br/>
< input type = " checkbox " name = " frmOptions[droits][] " value = " survannonce " < ? = $tabDroits [ 'survannonce' ] ?> <?if (!$admin) echo 'disabled';?> /> Surveillance des <20> v<EFBFBD> nements INSEE<br/>
< input type = " checkbox " name = " frmOptions[droits][] " value = " survbilan " < ? = $tabDroits [ 'survbilan' ] ?> <?if (!$admin) echo 'disabled';?> /> Surveillance des bilans <br/>
< input type = " checkbox " name = " frmOptions[droits][] " value = " survscore " < ? = $tabDroits [ 'survscore' ] ?> <?if (!$admin) echo 'disabled';?> /> Surveillance des <20> v<EFBFBD> nements sur le score<br/>
2009-05-20 15:49:08 +00:00
< input type = " checkbox " name = " frmOptions[droits][] " value = " monprofil " < ? = $tabDroits [ 'monprofil' ] ?> <?if (!$admin) echo 'disabled';?> /> Mon profil
</ td >
</ tr >
2009-02-17 13:14:53 +00:00
< ? php
if ( $loginVu == $_SESSION [ 'tabInfo' ][ 'login' ] &&
( $_SESSION [ 'tabInfo' ][ 'login' ] == 'ylenaour' || $_SESSION [ 'tabInfo' ][ 'login' ] == 'jmartory' || $_SESSION [ 'tabInfo' ][ 'login' ] == 'mheitz' || $_SESSION [ 'tabInfo' ][ 'login' ] == 'mpurcarin' || $_SESSION [ 'tabInfo' ][ 'login' ] == 'mcochet' || $_SESSION [ 'tabInfo' ][ 'login' ] == 'aegasse' )
) {
if ( $_SESSION [ 'tabInfo' ][ 'mode_edition' ] == 1 ) $strMode = 'checked' ; else $strMode = '' ;
?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Mode actuel </ td >
< td width = " 350 " class = " StyleInfoData " >< input type = " checkbox " name = " frmOptions[mode_edition] " value = " 1 " < ? = $strMode ?> /> Edition</td>
</ tr >
< ? php
}
?>
< tr >
< td colspan = " 3 " >& nbsp ; </ td >
</ tr >
< tr >
< td colspan = " 3 " align = " center " >< input type = " submit " value = " Sauver " /></ td >
</ tr >
</ table >
</ form >
2009-05-20 15:49:08 +00:00
< ? php
2009-02-17 13:14:53 +00:00
}
2009-05-20 15:49:08 +00:00
?>