291 lines
8.5 KiB
PHTML
291 lines
8.5 KiB
PHTML
<div id="center">
|
|
|
|
<?php if (!empty($this->message)) { ?>
|
|
<div style="margin:5px; padding: 5pt 0.7em;" class="ui-state-highlight ui-corner-all">
|
|
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
|
|
<?=$this->message?>
|
|
</p></div>
|
|
<?php } ?>
|
|
|
|
<h1 class="titre">PROFIL UTILISATEUR</h1>
|
|
|
|
<form id="moncompte" name="moncompte" action="/dashboard/user/op/save" method="post">
|
|
|
|
<div class="paragraph">
|
|
|
|
<input type="hidden" name="frmOptions[idClient]" value="<?=$this->options['idClient']?>"/>
|
|
<input type="hidden" name="frmOptions[action]" value="<?=$this->action?>"/>
|
|
|
|
<div class="infoTitle StyleInfoLib">Identifiant utilisateur</div>
|
|
<div class="infoData">
|
|
<?php
|
|
if ($this->action == 'new') {
|
|
?>
|
|
<input type="text" size="20" maxlength="80" name="frmOptions[login]" value="<?=$this->loginNew?>"/>
|
|
<?php
|
|
} else {
|
|
?>
|
|
<input type="text" size="20" maxlength="80" name="frmOptions[login]" value="<?=$this->options['login']?>"/>
|
|
<?php } ?>
|
|
</div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Identité (NOM/Prénom)</div>
|
|
<div class="infoData">
|
|
<input type="text" size="20" maxlength="80" name="frmOptions[nom]" value="<?=$this->options['nom']?>"/>
|
|
<input type="text" size="20" maxlength="80" name="frmOptions[prenom]" value="<?=$this->options['prenom']?>"/>
|
|
</div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Réf. facturation (service, etc...)</div>
|
|
<div class="infoData">
|
|
<input type="text" size="20" maxlength="80" name="frmOptions[reference]" value="<?=$this->options['referenceParDefaut']?>"/>
|
|
</div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Adresse e-mail</div>
|
|
<div class="infoData">
|
|
<input type="text" size="30" maxlength="80" name="frmOptions[email]" value="<?=$this->options['email']?>"/>
|
|
</div>
|
|
|
|
<div class="infoTitle StyleInfoLib">
|
|
Numéros de téléphone<br/><i>(Fixe, Fax, Mobile)</i>
|
|
</div>
|
|
<div class="infoData">
|
|
<input type="text" size="10" maxlength="15" name="frmOptions[tel_fix]" value="<?=$this->options['tel']?>"/>
|
|
<input type="text" size="10" maxlength="15" name="frmOptions[tel_fax]" value="<?=$this->options['fax']?>"/>
|
|
<input type="text" size="10" maxlength="15" name="frmOptions[tel_mob]" value="<?=$this->options['mobile']?>"/>
|
|
</div>
|
|
<br/>
|
|
|
|
<div class="infoTitle StyleInfoLib">Mot de passe</div>
|
|
<div class="infoData last">
|
|
<?php
|
|
if ($this->action=='new') {
|
|
$typeChamp = 'text';
|
|
$changePassword = 1;
|
|
?>
|
|
<input type="<?=$typeChamp?>" name="frmOptions[password]" value="<?=$this->password?>"/>
|
|
<input type="hidden" name="frmOptions[changepwd]" value="<?=$changePassword?>"/>
|
|
<?php
|
|
} else {
|
|
$typeChamp = 'hidden';
|
|
$changePassword = 0;
|
|
?>
|
|
<a href="#" id="password">Modifier le mot de passe.</a>
|
|
<input type="<?=$typeChamp?>" name="frmOptions[password]" value="<?=$this->options['password']?>"/>
|
|
<input type="hidden" name="frmOptions[changepwd]" value="<?=$changePassword?>"/>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
|
|
<h2>Paramètres spécifiques</h2>
|
|
<div class="paragraph">
|
|
|
|
<div class="infoTitle StyleInfoLib">Résultats par page</div>
|
|
<div class="infoData">
|
|
<select name="frmOptions[nbReponses]">
|
|
<?php
|
|
$opts = array(10, 20, 30, 40, 50, 100, 150, 200);
|
|
foreach($opts as $opt)
|
|
{
|
|
$selected = '';
|
|
if($opt == $this->options['nbReponses']) $selected = 'selected';
|
|
?><option value="<?=$opt?>" <?=$selected?>><?=$opt?></option><?php
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Type de Compte</div>
|
|
<div class="infoData">
|
|
<select name="frmOptions[typeCompte]">
|
|
<?php
|
|
$opts = array('PROD', 'TEST');
|
|
foreach($opts as $opt)
|
|
{
|
|
$selected = '';
|
|
if($opt == $this->options['typeCompte']) $selected = 'selected';
|
|
?><option value="<?=$opt?>" <?=$selected?>><?=$opt?></option><?php
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Format mail</div>
|
|
<div class="infoData">
|
|
<select name="frmOptions[formatMail]">
|
|
<?php
|
|
$opts = array(
|
|
'txt1'=> 'Une annonce par mail',
|
|
'txt2' => 'Toutes les annonces dans un mail',
|
|
'csv' => 'Toutes les annonces dans un mail, fichier csv joint',
|
|
'pdf' => 'Une annonce par mail, fichier pdf joint',
|
|
'pdf1' => 'Toutes les annonces dans un mail, fichier pdf joint',
|
|
'xls' => 'XLS',
|
|
'htm'=> 'HTML');
|
|
foreach($opts as $opt => $lib)
|
|
{
|
|
$selected = '';
|
|
if($opt == $this->options['formatMail']) $selected = 'selected';
|
|
?><option value="<?=$opt?>" <?=$selected?>><?=$lib?></option><?php
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Lien vers annonces légales dans mail</div>
|
|
<div class="infoData">
|
|
<select name="frmOptions[lienExtranetMail]">
|
|
<?php
|
|
$opts = array( '0'=> 'Non', '1' => 'Oui');
|
|
foreach($opts as $opt => $lib)
|
|
{
|
|
$selected = '';
|
|
if($opt == $this->options['lienExtranetMail']) $selected = 'selected';
|
|
?><option value="<?=$opt?>" <?=$selected?>><?=$lib?></option><?php
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Liste Evenement</div>
|
|
<div class="infoData">
|
|
<textarea name="frmOptions[listeEven]">
|
|
<?=$this->options['listeEven']?>
|
|
</textarea>
|
|
<br/><span>Liste de code évenements séparés par des ;</span>
|
|
</div>
|
|
|
|
|
|
<div class="infoTitle StyleInfoLib">Date de debut de compte</div>
|
|
<div class="infoData">
|
|
<input type="text" name="frmOptions[dateDebutCompte]" value="<?=$this->options['dateDebutCompte']?>"/>
|
|
<br/><span>Format AAAA-MM-JJ</span>
|
|
</div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Date de fin de compte</div>
|
|
<div class="infoData">
|
|
<input type="text" name="frmOptions[dateFinCompte]" value="<?=$this->options['dateFinCompte']?>"/>
|
|
<br/><span>Format AAAA-MM-JJ</span>
|
|
</div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Appliquer le Filtre IP du compte Client</div>
|
|
<div class="infoData">
|
|
<select name="frmOptions[ip]">
|
|
<?php
|
|
$opts = array( 1 => 'Oui', 0 => 'Non');
|
|
foreach($opts as $opt)
|
|
{
|
|
$selected = '';
|
|
if($this->options['filtre_ip'] == $this->options['filtreIpClient']) $selected = 'selected';
|
|
?><option value="<?=$opt?>" <?=$selected?>><?=$opt?></option><?php
|
|
}
|
|
?>
|
|
</select>
|
|
<br/><span><?=$this->options['filtre_ip']?></span>
|
|
</div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Type de recherche par référence</div>
|
|
<div class="infoData">
|
|
<select name="frmOptions[rechRefType]">
|
|
<?php
|
|
$opts = array('UTI', 'CLI');
|
|
foreach($opts as $opt)
|
|
{
|
|
$selected = '';
|
|
if($opt == $this->options['rechRefType']) $selected = 'selected';
|
|
?><option value="<?=$opt?>" <?=$selected?>><?=$opt?></option><?php
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
|
|
|
|
<div class="infoTitle StyleInfoLib">Accès WebService</div>
|
|
<div class="infoData">
|
|
<select name="frmOptions[accesWS]">
|
|
<?php
|
|
$opts = array(0 =>'Non', 1=>'Oui');
|
|
foreach($opts as $opt => $lib)
|
|
{
|
|
$selected = '';
|
|
if($opt == $this->options['accesWS']) $selected = 'selected';
|
|
?><option value="<?=$opt?>" <?=$selected?>><?=$lib?></option><?php
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h2>Gestion des droits</h2>
|
|
<div class="paragraph">
|
|
|
|
<div class="infoTitle StyleInfoLib">Type de profil</div>
|
|
<div class="infoData">
|
|
|
|
<select name="frmOptions[profil]">
|
|
<?php
|
|
$profil = array('Utilisateur', 'Administrateur', 'SuperAdministrateur');
|
|
foreach ($profil as $item){
|
|
$select = '';
|
|
if ($this->options['profil'] == $item) {
|
|
$select = ' selected';
|
|
}
|
|
?>
|
|
<option value="<?=$item?>"<?=$select?>><?=$item?></option>
|
|
<?php }?>
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Droits d'accès</div>
|
|
<div class="infoData">
|
|
<?php foreach($this->wscategory as $category) {?>
|
|
<fieldset>
|
|
<legend><?=$category->desc?></legend>
|
|
<?php
|
|
foreach($category->droits->item as $droit) {
|
|
$droit = strtolower($droit);
|
|
if (in_array($droit, $this->droitsClients)) {
|
|
$check = '';
|
|
if ( count($this->droits)>0 && in_array($droit, $this->droits) ) {
|
|
$check = ' checked';
|
|
}
|
|
?>
|
|
<input type="checkbox" name="frmOptions[droits][]" value="<?=$droit?>"<?=$check?> class="noborder"/>
|
|
<?=$this->droitsLib[strtoupper($droit)]?><br/>
|
|
<?php } ?>
|
|
<?php } ?>
|
|
</fieldset>
|
|
<?php }?>
|
|
</div>
|
|
|
|
<div class="infoTitle StyleInfoLib">Préférences</div>
|
|
<div class="infoData last">
|
|
<?php
|
|
foreach ($this->prefsLib as $code => $lib) {
|
|
$check = '';
|
|
if ($this->prefs && in_array(strtolower($code), $this->prefs)) {
|
|
$check = ' checked';
|
|
}
|
|
?>
|
|
<input type="checkbox" name="frmOptions[pref][]" value="<?=strtolower($code)?>"<?=$check?> class="noborder"/>
|
|
<?=$lib?><br/>
|
|
<?php }?>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="submit"><p class="submit-button"><input type="submit" class="button" value="Sauver"/></p></div>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<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épéter le nouveau mot de passe</label><br/>
|
|
<input type="password" name="npass2" size="15" maxlength="32"/><br/>
|
|
<span id="form-message"></span>
|
|
</form>
|
|
</div>
|