23if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
24require_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
25require_once NOALYSS_INCLUDE.
'/lib/user_menu.php';
29$uid =
$http->request(
'use_id');
30}
catch (Exception
$ex) {
45$it_pass->javascript=
'onkeyup="check_password_strength(\'password\',\'password_info\',1)"';
48<FORM
id=
"user_detail_frm" METHOD=
"POST">
55<?php printf(
'<td>login</td><td> %s</td>',
$UserChange->login); ?>
60 <?php printf(
'Nom de famille </TD><td><INPUT class="input_text" type="text" NAME="lname" value="%s"> ',
$UserChange->name); ?>
64 <?php printf(
'<td>prénom</td><td>
65 <INPUT class="input_text" type="text" NAME="fname" value="%s"> ',
$UserChange->first_name);
76 <INPUT
class=
"input_text" type=
"text" NAME=
"email" value=
"<?php echo $UserChange->email;?>">
81 Mot de passe :<
span class=
"info">Laisser à VIDE pour ne PAS le changer</
span>
85 <
span id=
"password_info" style=
"background-color: rgba(255,160,122,0.58);color:orangered;position:absolute"></
span>
90 <?php echo _(
'Actif');?>
96 array(
'value'=>0,
'label'=>_(
'Non')),
97 array(
'value'=>1,
'label'=>_(
'Oui'))
106 <?php echo _(
'Type');?>
112 array(
'value'=>0,
'label'=>_(
'Utilisateur normal')),
113 array(
'value'=>1,
'label'=>_(
'Administrateur'))
122 <input
type=
"hidden" name=
"sbaction" id=
"sbaction" value=
"save">
124 <input
type=
"Submit" class=
"button" NAME=
"SAVE" VALUE=
"<?=('Sauver les changements')?>" onclick=
"return confirm_box('user_detail_frm','<?=_('Confirmer')?>');">
126 <input
type=
"button" class=
"button" NAME=
"DELETE" VALUE=
"<?=('Effacer')?>" onclick=
"$('delete_user_div').show();" >
129<div
id=
"delete_user_div" class=
"inner_box" style=
"display: none">
131<FORM
id=
"user_detail_frm" METHOD=
"POST">
137 <
p class=
"info" id=
"codedel_div">
139 echo _(
"Pour effacer , confirmez en retapant le code");
144 <ul
class=
"aligned-block">
146 <input
type=
"Submit" class=
"button" NAME=
"DELETE" VALUE=
"<?=_("Confirmer
")?>">
158 <!-- Show all database and rights -->
159 <H2
class=
"info"> Accès aux dossiers</H2>
161 Les autres droits doivent être réglés dans les dossiers (paramètre->sécurité), le fait de changer un utilisateur d
'administrateur à utilisateur
162 normal ne change pas le profil administrateur dans les dossiers.
163 Il faut aller dans CFGSECURITY pour diminuer ses privilèges.
168 array('value' => 'X
', 'label' => 'Aucun Accès
'),
169 array('value' => 'R
', 'label' => 'Utilisateur normal
')
171$repo = new Dossier(0);
172if ( $repo->count() == 0)
179$Dossier = $repo->show_dossier('R
',$UserChange->login);
181$mod_user = new Noalyss_user(new Database(), $uid);
183 <TABLE id="database_list" class="result">
186// Display all the granted folders
189foreach ($Dossier as $rDossier):
191$class=($i%2==0)?' even
':'odd
';
193 <tr id="row<?php echo $rDossier['dos_id
']?>" class="<?php echo $class;?>">
195 <?php echo h($rDossier['dos_name
']); ?>
198 <?php echo h($rDossier['dos_description
']); ?>
201 <?php echo HtmlInput::anchor(_('Enleve
'),"",
202 " onclick=\"folder_remove({$mod_user->id},{$rDossier['dos_id
']});\"");?>
211 echo HtmlInput::button("database_add_button",_('Ajout
'),
212 " onclick=\"folder_display({$mod_user->id});\"");
215 // If UserChange->admin==1 it means he can access all databases
confirm_with_string($p_ctl_name, $p_car)
generate a string of p_car character and a input text with name p_ctl_name work like a kind of captch...
span($p_string, $p_extra='')
echo_error($p_log, $p_line="", $p_message="")
log error into the /tmp/noalyss_error.log it doesn't work on windows
tr($p_string, $p_extra='')
td($p_string='', $p_extra='')
surround the string with td
contains the class for connecting to Noalyss
manage the current dossier, everywhere we need to know to which folder we are connected,...
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
catch(Exception $ex) $UserChange