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 ;
2010-03-25 11:25:18 +00:00
require_once 'user/user.php' ;
2009-03-25 14:38:22 +00:00
2009-02-17 13:14:53 +00:00
if ( ! $_SESSION [ 'connected' ])
2010-02-10 17:27:03 +00:00
echo ( 'Vous devez être connecté afin de pouvoir utiliser cette fonctionnalité' );
2010-03-25 11:25:18 +00:00
elseif ( $_SESSION [ 'tabInfo' ][ 'profil' ] != 'Administrateur' &&
$_SESSION [ 'tabInfo' ][ 'profil' ] != 'SuperAdministrateur' &&
! hasRight ( 'monprofil' )) {
2010-02-10 17:27:03 +00:00
echo ( 'Vous n\'avez pas les droits nécessaires pour utiliser cette fonctionnalité (' . $_SESSION [ 'tabInfo' ][ 'profil' ] . ' ' . $_SESSION [ 'tabInfo' ][ 'droits' ] . ')' );
2009-02-17 13:14:53 +00:00
}
else {
2010-03-25 11:25:18 +00:00
2009-04-01 12:45:45 +00:00
$tabInfo = $_SESSION [ 'tabInfo' ];
2009-08-11 12:02:05 +00:00
$message = '' ;
2009-06-17 12:13:33 +00:00
2010-03-25 11:25:18 +00:00
if ( isset ( $_REQUEST [ 'login' ]) && $_REQUEST [ 'login' ] != '' &&
$_REQUEST [ 'login' ] != $_SESSION [ 'tabInfo' ][ 'login' ] &&
( $_SESSION [ 'tabInfo' ][ 'profil' ] == 'Administrateur' ||
$_SESSION [ 'tabInfo' ][ 'profil' ] == 'SuperAdministrateur' ) ){
$loginVu = $_REQUEST [ 'login' ];
} elseif ( isset ( $tabOptions ) && $tabOptions [ 'action' ] == 'new' ){
2009-02-17 13:14:53 +00:00
$loginVu = $tabOptions [ 'login' ];
2010-03-25 11:25:18 +00:00
} else {
2009-02-17 13:14:53 +00:00
$loginVu = $_SESSION [ 'tabInfo' ][ 'login' ];
2010-02-10 17:27:03 +00:00
//On affecte la valeur en session de mode edition d'après le résultat du formulaire
2010-03-25 11:25:18 +00:00
if ( isset ( $tabOptions ) && ! isset ( $tabOptions [ 'mode_edition' ]) && $tabOptions [ 'action' ] == 'save' ){
$_SESSION [ 'tabInfo' ][ 'mode_edition' ] = 0 ;
}
2009-08-11 12:02:05 +00:00
}
2010-03-25 11:25:18 +00:00
if ( isset ( $tabOptions ) &&
( $tabOptions [ 'action' ] == 'save' || $tabOptions [ 'action' ] == 'new' )){
2010-02-10 17:27:03 +00:00
$message = 'Erreur lors de la mise à jour du compte !' ;
2009-06-17 12:13:33 +00:00
2010-02-10 17:27:03 +00:00
$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' )));
2010-03-25 11:25:18 +00:00
2009-09-18 17:09:22 +00:00
$firephp -> log ( $loginVu , 'loginVu' );
$firephp -> log ( $tabOptions , 'tabOptions' );
2009-02-17 13:14:53 +00:00
try {
$O = $client -> setInfosLogin ( $loginVu , $tabOptions );
2010-02-10 17:27:03 +00:00
if ( $O [ 'result' ] == 1 ) $message = 'Compte mis à jour !' ;
2009-02-17 13:14:53 +00:00
} catch ( SoapFault $fault ) {
2009-06-30 15:18:12 +00:00
require_once 'soaperror.php' ;
processSoapFault ( $client , $fault , $tabInfo );
2010-02-10 17:27:03 +00:00
$message = 'Erreur SOAP lors de la mise à jour du compte !' ;
2009-02-17 13:14:53 +00:00
}
2009-06-17 12:13:33 +00:00
2009-02-17 13:14:53 +00:00
if ( $_REQUEST [ 'referer' ] == 'administration' ) {
2009-05-20 15:49:08 +00:00
?>
< script language = " javascript " >
2010-02-17 14:44:28 +00:00
$ ( document ) . ready ( function (){
2010-02-10 17:27:03 +00:00
alert ( " Le profil <?= $loginVu ?> a été mis à jour ! " );
2010-02-17 14:44:28 +00:00
$ ( location ) . attr ( 'href' , '/?page=administration&id=<?=$idEntreprise?>&siret=<?=$siret?>' );
});
</ script >
2009-06-17 12:13:33 +00:00
< ? php
2009-02-17 13:14:53 +00:00
}
2009-06-17 12:13:33 +00:00
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 " >
2010-02-17 14:44:28 +00:00
$ ( document ) . ready ( function (){
2010-02-10 17:27:03 +00:00
alert ( " La modification de votre mot de passe nécessite votre déconnexion ! " );
2010-02-17 14:44:28 +00:00
$ ( location ) . attr ( 'href' , '/?page=main&action=logout' );
2010-03-25 11:25:18 +00:00
});
2009-05-20 15:49:08 +00:00
</ script >
2009-06-17 12:13:33 +00:00
< ? php
2009-02-17 13:14:53 +00:00
}
}
2009-06-17 12:13:33 +00:00
2009-07-01 09:31:15 +00:00
/** Utilisation du WS **/
try {
2010-03-25 11:25:18 +00:00
if ( ! isset ( $_REQUEST [ 'action' ]) || $_REQUEST [ 'action' ] != 'new' ) {
2009-07-01 09:31:15 +00:00
$O = $client -> getInfosLogin ( $loginVu );
$login = $O [ 'result' ];
} else {
$O = $client -> getNextLogin ( $loginVu );
$loginNew = $O [ 'result' ][ 'racine' ];
$idClient = $O [ 'result' ][ 'idClient' ];
}
} catch ( SoapFault $fault ) {
require_once 'soaperror.php' ;
processSoapFault ( $client , $fault , $tabInfo );
die ();
2009-02-17 13:14:53 +00:00
}
2009-07-01 09:31:15 +00:00
$admin = false ;
2009-09-10 15:31:37 +00:00
if ( $_SESSION [ 'tabInfo' ][ 'profil' ] == 'Administrateur' || $_SESSION [ 'tabInfo' ][ 'profil' ] == 'SuperAdministrateur' ) $admin = true ;
2009-07-01 09:31:15 +00:00
2009-02-17 13:14:53 +00:00
?>
2009-05-20 15:49:08 +00:00
< style type = " text/css " >
2009-07-17 13:16:09 +00:00
#center p { margin:5px; padding:5px;}
div . submit { margin - left : 200 px ; padding - left : 0 px ; margin - top : 1 em ; }
div . submit p . submit - button { margin - top : 0 ;}
div . submit p . details { font - size : 85 % ; color : #666;margin:0;}
div . submit p . required - note { margin - top : 1 em ;}
div . submit p . required - note span { color : #4B911C;_color:#666;font-size:170%;vertical-align:top;}
. noborder { border : none ;}
2010-02-17 14:44:28 +00:00
. infoTitle { clear : both ; float : left ; width : 180 px ; margin - left : 30 px ; padding : 0 10 px 5 px 0 ;}
2009-07-17 13:16:09 +00:00
. infoData { float : left ; width : 320 px ; margin : 2 px 0 ;}
. last { margin - bottom : 10 px ;}
#message {margin-left:30px;}
2010-02-17 14:44:28 +00:00
#dialog { display:none; }
2009-05-20 15:49:08 +00:00
</ style >
2009-07-17 13:16:09 +00:00
< script type = " text/javascript " >
$ ( document ) . ready ( function (){
var holdTheInterval ;
2009-11-05 13:55:40 +00:00
var nbEssai = 25 ;
2009-07-17 13:16:09 +00:00
var essai = 0 ;
var login ;
var date ;
var url ;
2009-09-14 10:15:56 +00:00
var details = false ;
var all = false ;
var dl = false ;
2009-11-05 13:55:40 +00:00
//$.ajaxSetup({timeout: 4001});
2009-09-14 10:15:56 +00:00
$ ( '#submitmois' ) . click ( function (){
//On disable tout les champs
$ ( 'input[name=details]:checkbox' ) . attr ( 'disabled' , true );
$ ( 'select[name=mois]' ) . attr ( 'disabled' , true );
$ ( 'input[name=all]:checkbox' ) . attr ( 'disabled' , true );
//Valeur de la date
date = $ ( 'select[name=mois]' ) . val ();
2010-02-10 17:27:03 +00:00
//Vérification
2009-09-14 10:15:56 +00:00
if ( date != '' && date != '-' ){
login = $ ( 'input[name=utilisateur]' ) . val ();
details = $ ( 'input[name=details]' ) . attr ( 'checked' ) ? true : false ;
all = $ ( 'input[name=all]' ) . attr ( 'checked' ) ? true : false ;
checkFile ();
holdTheInterval = setInterval ( checkFile , 4000 );
}
2009-07-17 13:16:09 +00:00
});
2009-09-14 10:15:56 +00:00
2009-07-17 13:16:09 +00:00
function checkFile (){
essai ++ ;
if ( essai > nbEssai ){
essai = 0 ;
2010-02-10 17:27:03 +00:00
updateInfo ( 'Le temps maximum d\'attente a été atteint. Merci de rééssayez.' );
2009-09-14 10:15:56 +00:00
$ ( 'input[name=details]:checkbox' ) . removeAttr ( 'disabled' );
$ ( 'select[name=mois]' ) . removeAttr ( 'disabled' );
$ ( 'input[name=all]:checkbox' ) . removeAttr ( 'disabled' );
2009-07-17 13:16:09 +00:00
} else if ( essai == 1 ){
$ ( '#message' ) . text ( 'Patientez pendant la construction du fichier (' + essai + ')...' );
$ . post ( 'pages/ajax/conso.php' ,
2009-09-14 10:15:56 +00:00
{ login : login , date : date , details : details , all : all , start : essai },
2009-07-17 13:16:09 +00:00
function ( data , textStatus ) { url = data ; }
);
} else {
$ ( '#message' ) . text ( 'Patientez pendant la construction du fichier (' + essai + ')...' );
$ . post ( 'pages/ajax/conso.php' ,
2009-09-14 10:15:56 +00:00
{ login : login , date : date , details : details , all : all , start : essai , url : url },
2009-07-17 13:16:09 +00:00
function ( data , textStatus ) { if ( data != '' && data != 'FALSE' ){ updateInfo ( data ); } });
}
}
2009-09-14 10:15:56 +00:00
2009-07-17 13:16:09 +00:00
function updateInfo ( data ){
$ ( '#message' ) . html ( data );
clearInterval ( holdTheInterval );
2009-09-14 10:15:56 +00:00
$ ( 'input[name=details]:checkbox' ) . removeAttr ( 'disabled' );
$ ( 'select[name=mois]' ) . removeAttr ( 'disabled' );
$ ( 'input[name=all]:checkbox' ) . removeAttr ( 'disabled' );
2009-07-17 13:16:09 +00:00
essai = 0 ;
}
2010-02-17 14:44:28 +00:00
$ ( " #dialog " ) . dialog ({
bgiframe : true ,
autoOpen : false ,
height : 180 ,
modal : true ,
buttons : {
'Modifier' : function () {
var pass = $ ( 'input[name=npass1]' ) . val ();
if ( pass != $ ( 'input[name=npass2]' ) . val () ){
$ ( '#form-message' ) . html ( 'Mots de passe différents.' );
} else {
$ ( 'input[name=frmOptions[changepwd]]' ) . val ( '1' );
$ ( 'input[name=frmOptions[password]]' ) . val ( pass );
$ ( '#password' ) . html ( 'Sauver pour enregistrer la modification du mot de passe' );
$ ( this ) . dialog ( 'close' );
}
},
'Annuler' : function () {
$ ( this ) . dialog ( 'close' );
}
}
});
$ ( '#password' ) . click ( function (){
2010-03-25 11:25:18 +00:00
$ ( " #dialog " ) . dialog ( 'open' );
2010-02-17 14:44:28 +00:00
});
2010-03-25 11:25:18 +00:00
2009-07-17 13:16:09 +00:00
});
</ script >
< div id = " center " >
2010-02-17 14:44:28 +00:00
< div id = " dialog " title = " Modifier le mot de passe " >
< form >
< label for = " npass1 " > Nouveau mot de passe </ label >< br />
< input type = " password " name = " npass1 " size = " 15 " maxlength = " 32 " />< br />
< label for = " npass2 " > Répeter le nouveau mot de passe </ label >< br />
< input type = " password " name = " npass2 " size = " 15 " maxlength = " 32 " />< br />
< span id = " form-message " ></ span >
</ form >
</ div >
2009-07-17 13:16:09 +00:00
< ?
if ( $message <> '' ) {
?>
< p >< ? = $message ; ?> </p>
< ? php
}
?>
< h1 class = " titre " > PROFIL UTILISATEUR </ h1 >
2009-02-17 13:14:53 +00:00
< form name = " form_moncompte " action = " ./?page=moncompte " method = " POST " enctype = " multipart/form-data " >
2010-03-25 11:25:18 +00:00
< ? php
if ( isset ( $_REQUEST [ 'action' ]) && $_REQUEST [ 'action' ] == 'new' ) {
?>
2009-02-17 13:14:53 +00:00
< input type = " hidden " name = " frmOptions[action] " value = " new " />
2010-03-25 11:25:18 +00:00
< ? php
} else {
?>
2009-02-17 13:14:53 +00:00
< input type = " hidden " name = " frmOptions[action] " value = " save " />
2010-03-25 11:25:18 +00:00
< ? php
}
?>
2009-02-17 13:14:53 +00:00
< 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'] ?> " />
2009-07-17 13:16:09 +00:00
< div class = " infoTitle StyleInfoLib " > Identifiant utilisateur </ div >
< div class = " infoData " >
2010-03-25 11:25:18 +00:00
< ? php
if ( ! isset ( $_REQUEST [ 'action' ]) || $_REQUEST [ 'action' ] != 'new' ){
echo ( isset ( $loginVu ) ? $loginVu : '' );
} else {
2009-12-04 17:17:09 +00:00
?>
2010-03-25 11:25:18 +00:00
< input type = " text " size = " 20 " maxlength = " 80 " name = " frmOptions[login] " value = " <?=isset( $loginNew ) ? $loginNew : '';?> " />
< ? php
}
2009-12-04 17:17:09 +00:00
?>
2009-07-17 13:16:09 +00:00
</ div >
< div class = " infoTitle StyleInfoLib " > Identit & eacute ; ( NOM / Pr & eacute ; nom ) </ div >
< div class = " infoData " >
2009-12-04 17:17:09 +00:00
< ? php
2010-03-25 11:25:18 +00:00
if ( $admin )
{
2009-12-04 17:17:09 +00:00
?>
2010-03-25 11:25:18 +00:00
< input type = " text " size = " 20 " maxlength = " 80 " name = " frmOptions[nom] " value = " <?=(is_array( $login ) && isset( $login['nom'] ))? $login['nom'] : '';?> " />
2009-12-04 17:17:09 +00:00
< input type = " text " size = " 20 " maxlength = " 80 " name = " frmOptions[prenom] " value = " <?=(is_array( $login ) && isset( $login['prenom'] ))? $login['prenom'] : '';?> " />
2010-03-25 11:25:18 +00:00
< ? php
2009-12-04 17:17:09 +00:00
} else { ?> <?=$login['nom'].' '.$login['prenom']?> <? } ?>
2009-07-17 13:16:09 +00:00
</ div >
< div class = " infoTitle StyleInfoLib " > R & eacute ; f . facturation ( service , etc ... ) </ div >
< div class = " infoData " >
2010-03-25 11:25:18 +00:00
< ? php
if ( $admin )
{
2009-12-04 17:17:09 +00:00
?>
< input type = " text " size = " 20 " maxlength = " 80 " name = " frmOptions[reference] " value = " <?=(is_array( $login ) && isset( $login['reference'] ))? $login['reference'] : '';?> " />
< ? } else { ?> <?=$login['reference']?><? } ?>
2009-07-17 13:16:09 +00:00
</ div >
< div class = " infoTitle StyleInfoLib " > Adresse e - mail </ div >
< div class = " infoData " >
2009-12-04 17:17:09 +00:00
< input type = " text " size = " 30 " maxlength = " 80 " name = " frmOptions[email] " value = " <?=(is_array( $login ) && isset( $login['email'] ))? $login['email'] : '';?> " />
2009-07-17 13:16:09 +00:00
</ div >
2009-12-04 17:17:09 +00:00
< div class = " infoTitle StyleInfoLib " >
Num & eacute ; ros de t & eacute ; l & eacute ; phone < br />< i > ( Fixe , Fax , Mobile ) </ i >
</ div >
2009-07-17 13:16:09 +00:00
< div class = " infoData " >
2009-12-04 17:17:09 +00:00
< input type = " text " size = " 10 " maxlength = " 15 " name = " frmOptions[tel_fix] " value = " <?=(is_array( $login ) && isset( $login['tel'] ))? $login['tel'] : '';?> " />
< input type = " text " size = " 10 " maxlength = " 15 " name = " frmOptions[tel_fax] " value = " <?=(is_array( $login ) && isset( $login['fax'] ))? $login['fax'] : '';?> " />
< input type = " text " size = " 10 " maxlength = " 15 " name = " frmOptions[tel_mob] " value = " <?=(is_array( $login ) && isset( $login['mobile'] ))? $login['mobile'] : '';?> " />
<!--< br />< input type = " checkbox " name = " frmOptions[copie_sms] " value = " <?= $_SESSION['tabInfo'] ['copieParSms']?> " /> Recevoir une copie de mes messages de surveillance par SMS -->
2009-07-17 13:16:09 +00:00
</ div >
2010-02-17 14:44:28 +00:00
< br />
2009-07-17 13:16:09 +00:00
< div class = " infoTitle StyleInfoLib " > Mot de passe </ div >
< div class = " infoData last " >
2010-02-17 14:44:28 +00:00
< a href = " # " id = " password " > Modifier le mot de passe .</ a >
< input type = " hidden " name = " frmOptions[changepwd] " value = " 0 " />
< input type = " hidden " name = " frmOptions[password] " value = " oqsrihgwslglm " />
2010-03-25 11:25:18 +00:00
< ? php
2010-02-17 14:44:28 +00:00
/*
2010-03-25 11:25:18 +00:00
< input type = " password " size = " 15 " maxlength = " 32 " name = " frmOptions[password] " value = " oqsrihgwslglm " onkeypress = " document.form_moncompte.changepwd.checked=1 " />
2009-12-04 17:17:09 +00:00
< input name = " frmOptions[changepwd] " id = " changepwd " type = " checkbox " value = " 1 " class = " noborder " /> R & eacute ; initialiser le mot de passe
2010-02-17 14:44:28 +00:00
*/
?>
2009-07-17 13:16:09 +00:00
</ div >
2010-03-25 11:25:18 +00:00
< ? php
if ( $tabInfo [ 'profil' ] == 'Administrateur' ||
2010-02-17 14:44:28 +00:00
$tabInfo [ 'profil' ] == 'SuperAdministrateur' )
2010-03-25 11:25:18 +00:00
{
2009-12-04 17:17:09 +00:00
?>
2010-02-10 17:27:03 +00:00
< div class = " infoTitle StyleInfoLib " > Relevé de consommation </ div >
2009-07-17 13:16:09 +00:00
< div class = " infoData " >
< input type = " hidden " name = " utilisateur " value = " <?= $loginVu ?> " />
2010-02-17 14:44:28 +00:00
< label > Détails </ label >
< input type = " checkbox " name = " details " value = " 1 " class = " noborder " />
2009-09-14 10:15:56 +00:00
< select name = " mois " >
2010-02-10 17:27:03 +00:00
< option value = " - " > Mois / Année </ option >
2009-07-17 13:16:09 +00:00
< ? php
for ( $i = 1 ; $i <= 12 ; $i ++ ){
2010-02-17 14:44:28 +00:00
$date = date ( 'm' , mktime ( 0 , 0 , 0 , date ( " m " ) - $i , date ( " d " ), date ( " Y " ))) . '/' .
date ( 'Y' , mktime ( 0 , 0 , 0 , date ( " m " ) - $i , date ( " d " ), date ( " Y " )));
echo '<option value="' . $date . '">' . $date . '</option>' ;
2009-07-17 13:16:09 +00:00
}
?>
</ select >
2009-09-14 10:15:56 +00:00
< a href = " # " id = " submitmois " > Ok </ a >
2009-07-17 13:16:09 +00:00
</ div >
< div id = " message " class = " infoData last " ></ div >
2009-09-14 10:15:56 +00:00
< ? php
}
?>
2009-07-17 13:16:09 +00:00
< h2 > Moteur de recherche </ h2 >
< div class = " infoTitle StyleInfoLib " > R & eacute ; sultats par page </ div >
< div class = " infoData " >
< select name = " frmOptions[rech_nbrep] " >
2009-02-17 13:14:53 +00:00
< ?
2010-02-17 14:44:28 +00:00
$opts = array ( 10 , 20 , 30 , 40 , 50 , 100 , 150 , 200 );
foreach ( $opts as $opt )
{
$selected = '' ;
if ( $opt == $login [ 'nbReponses' ]) $selected = 'selected' ;
2010-03-25 11:25:18 +00:00
?> <option value="<?=$opt?>" <?=$selected?>><?=$opt?></option><?php
2010-02-17 14:44:28 +00:00
}
?>
</ select >
2009-07-17 13:16:09 +00:00
</ div >
< div class = " infoTitle StyleInfoLib " > Inclure </ div >
< div class = " infoData last " >
< input type = " checkbox " name = " frmOptions[rech_limites][] " value = " assocs " checked disabled class = " noborder " /> les associations < br />
< input type = " checkbox " name = " frmOptions[rech_limites][] " value = " actifs " checked disabled class = " noborder " /> les actifs < br />
< input type = " checkbox " name = " frmOptions[rech_limites][] " value = " radies " checked disabled class = " noborder " /> les radi & eacute ; s < br />
< input type = " checkbox " name = " frmOptions[rech_limites][] " value = " sieges " checked disabled class = " noborder " /> les & eacute ; tablissements secondaires
</ div >
< h2 > Surveillance </ h2 >
< div class = " infoTitle StyleInfoLib " > Supports pour les alertes </ div >
< div class = " infoData last " >
< input type = " checkbox " name = " frmOptions[alertes][] " value = " sms " disabled class = " noborder " /> SMS < br />
< input type = " checkbox " name = " frmOptions[alertes][] " value = " fax " disabled class = " noborder " /> Fax < br />
< input type = " checkbox " name = " frmOptions[alertes][] " value = " mail " checked disabled class = " noborder " /> Mail < br />
</ div >
2009-06-17 12:13:33 +00:00
< ? php
2010-03-25 11:25:18 +00:00
if ( $_SESSION [ 'tabInfo' ][ 'login' ] == 'ylenaour' )
2009-12-04 17:17:09 +00:00
{
2009-05-20 15:49:08 +00:00
$formatMail = $login [ 'formatMail' ];
?>
2009-07-17 13:16:09 +00:00
< div class = " infoTitle StyleInfoLib " > Format des emails </ div >
< div class = " infoData last " >
< select name = " frmOptions[formatMail] " >
2010-02-10 17:27:03 +00:00
< optgroup label = " Sans pièce jointe " >
2009-07-17 13:16:09 +00:00
< 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 >
2010-02-10 17:27:03 +00:00
< optgroup label = " Avec pièce jointe " >
<!--< option value = " pdf " < ? if ( $formatMail == 'pdf' ) echo 'selected' ; ?> >Pdf en pièce jointe</option>-->
2009-07-17 13:16:09 +00:00
< option value = " pdf1 " < ? if ( $formatMail == 'pdf1' ) echo 'selected' ; ?> >Pdf (1 annonce/page)</option>
2010-02-10 17:27:03 +00:00
<!--< option value = " csv " < ? if ( $formatMail == 'csv' ) echo 'selected' ; ?> >Pièce jointe CSV</option>-->
< option value = " xls " < ? if ( $formatMail == 'xls' ) echo 'selected' ; ?> >Pièce jointe Excel</option>
2009-07-17 13:16:09 +00:00
</ optgroup >
</ select >
</ div >
2009-06-17 12:13:33 +00:00
< ? php
2009-07-01 09:31:15 +00:00
}
?>
2009-07-17 13:16:09 +00:00
< h2 > Gestion des droits </ h2 >
< div class = " infoTitle StyleInfoLib " > Type de profil </ div >
2010-02-17 14:44:28 +00:00
< div class = " infoData " >
2010-03-25 11:25:18 +00:00
< ? = ( is_array ( $login ) && isset ( $login [ 'profil' ])) ?
2010-02-17 14:44:28 +00:00
$login [ 'profil' ] : 'Utilisateur' ; ?>
</ div >
2009-07-17 13:16:09 +00:00
< div class = " infoTitle StyleInfoLib " > Droits d ' acc & egrave ; s </ div >
< div class = " infoData " >
2010-02-17 14:44:28 +00:00
< ? = formElementPerm ( $login ); ?>
2009-07-17 13:16:09 +00:00
</ div >
< div class = " infoTitle StyleInfoLib " > Pr & eacute ; f & eacute ; rences </ div >
< div class = " infoData last " >
2010-02-17 14:44:28 +00:00
< ? = formElementPref ( $login ); ?>
2009-07-17 13:16:09 +00:00
</ div >
2009-02-17 13:14:53 +00:00
< ? php
2009-12-04 17:17:09 +00:00
if ( checkModeEdition ( $loginVu ))
{
?>
2009-07-17 13:16:09 +00:00
< h2 > Edition </ h2 >
< div class = " infoTitle StyleInfoLib " > Mode actuel </ div >
< div class = " infoData last " >
< ? print formElementModeEdition (); ?>
</ div >
2010-03-25 11:25:18 +00:00
< ? php
2009-12-04 17:17:09 +00:00
}
?>
2009-07-17 13:16:09 +00:00
< div class = " submit " >< p class = " submit-button " >< input type = " submit " value = " Sauver " /></ p ></ div >
2009-02-17 13:14:53 +00:00
</ form >
2009-07-17 13:16:09 +00:00
</ div >
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
?>