Commit e1a9509c authored by peupleLà's avatar peupleLà
Browse files

Trad : include/staff/profile.inc.php

parent 45172412
<?php
if(!defined('OSTSTAFFINC') || !$staff || !$thisstaff) die('Access Denied');
if(!defined('OSTSTAFFINC') || !$staff || !$thisstaff) die('Accès refusé');
$info=$staff->getInfo();
$info['signature'] = Format::viewableImages($info['signature']);
......@@ -15,22 +15,22 @@ $info['id']=$staff->getId();
<thead>
<tr>
<th colspan="2">
<h4>Account Information</h4>
<em>Contact information.</em>
<h4>Information sur le compte</h4>
<em>Information des contacts</em>
</th>
</tr>
</thead>
<tbody>
<tr>
<td width="180" class="required">
Username:
Nom d’utilisateur
</td>
<td><b><?php echo $staff->getUserName(); ?></b>&nbsp;<i class="help-tip icon-question-sign" href="#username"></i></td>
</tr>
<tr>
<td width="180" class="required">
First Name:
Prénom
</td>
<td>
<input type="text" size="34" name="firstname" value="<?php echo $info['firstname']; ?>">
......@@ -39,7 +39,7 @@ $info['id']=$staff->getId();
</tr>
<tr>
<td width="180" class="required">
Last Name:
Nom de famille
</td>
<td>
<input type="text" size="34" name="lastname" value="<?php echo $info['lastname']; ?>">
......@@ -48,7 +48,7 @@ $info['id']=$staff->getId();
</tr>
<tr>
<td width="180" class="required">
Email Address:
Adresse courriel
</td>
<td>
<input type="text" size="34" name="email" value="<?php echo $info['email']; ?>">
......@@ -57,7 +57,7 @@ $info['id']=$staff->getId();
</tr>
<tr>
<td width="180">
Phone Number:
Numéro de téléphone (fixe)
</td>
<td>
<input type="text" size="22" name="phone" value="<?php echo $info['phone']; ?>">
......@@ -68,7 +68,7 @@ $info['id']=$staff->getId();
</tr>
<tr>
<td width="180">
Mobile Number:
Numéro de téléphone (mobile)
</td>
<td>
<input type="text" size="22" name="mobile" value="<?php echo $info['mobile']; ?>">
......@@ -77,16 +77,16 @@ $info['id']=$staff->getId();
</tr>
<tr>
<th colspan="2">
<em><strong>Preferences</strong>: Profile preferences and settings.</em>
<em><strong>Préférences</strong>&nbsp;: préférences et paramétrage du profil</em>
</th>
</tr>
<tr>
<td width="180" class="required">
Time Zone:
Fuseau horaire
</td>
<td>
<select name="timezone_id" id="timezone_id">
<option value="0">&mdash; Select Time Zone &mdash;</option>
<option value="0">&mdash; Sélectionner un fuseau horaire &mdash;</option>
<?php
$sql='SELECT id, offset,timezone FROM '.TIMEZONE_TABLE.' ORDER BY id';
if(($res=db_query($sql)) && db_num_rows($res)){
......@@ -102,13 +102,13 @@ $info['id']=$staff->getId();
</tr>
<tr>
<td width="180">
Preferred Language:
Choix du langage
</td>
<td>
<?php
$langs = Internationalization::availableLanguages(); ?>
<select name="lang">
<option value="">&mdash; Use Browser Preference &mdash;</option>
<option value="">&mdash; Utiliser les préférences du navigateur &mdash;</option>
<?php foreach($langs as $l) {
$selected = ($info['lang'] == $l['code']) ? 'selected="selected"' : ''; ?>
<option value="<?php echo $l['code']; ?>" <?php echo $selected;
......@@ -120,33 +120,33 @@ $info['id']=$staff->getId();
</tr>
<tr>
<td width="180">
Daylight Saving:
Heure d’été
</td>
<td>
<input type="checkbox" name="daylight_saving" value="1" <?php echo $info['daylight_saving']?'checked="checked"':''; ?>>
Observe daylight saving
Respecter l’heure d’été
<em>(Current Time: <strong><?php echo Format::date($cfg->getDateTimeFormat(),Misc::gmtime(),$info['tz_offset'],$info['daylight_saving']); ?></strong>)</em>
</td>
</tr>
<tr>
<td width="180">Maximum Page size:</td>
<td width="180">Taille maximale de la page</td>
<td>
<select name="max_page_size">
<option value="0">&mdash; system default &mdash;</option>
<option value="0">&mdash; Valeurs par défaut du système &mdash;</option>
<?php
$pagelimit=$info['max_page_size']?$info['max_page_size']:$cfg->getPageSize();
for ($i = 5; $i <= 50; $i += 5) {
$sel=($pagelimit==$i)?'selected="selected"':'';
echo sprintf('<option value="%d" %s>show %s records</option>',$i,$sel,$i);
} ?>
</select> per page.
</select> par page
</td>
</tr>
<tr>
<td width="180">Auto Refresh Rate:</td>
<td width="180">Taux de rafraîchissement automatique</td>
<td>
<select name="auto_refresh_rate">
<option value="0">&mdash; disable &mdash;</option>
<option value="0">&mdash; Désactiver &mdash;</option>
<?php
$y=1;
for($i=1; $i <=30; $i+=$y) {
......@@ -156,31 +156,31 @@ $info['id']=$staff->getId();
$y=2;
} ?>
</select>
<em>(Tickets page refresh rate in minutes.)</em>
<em>(Taux de rafraîchissement des pages de tickets, en minutes.)</em>
</td>
</tr>
<tr>
<td width="180">Default Signature:</td>
<td width="180">Signature par défaut</td>
<td>
<select name="default_signature_type">
<option value="none" selected="selected">&mdash; None &mdash;</option>
<option value="none" selected="selected">&mdash; Aucune &mdash;</option>
<?php
$options=array('mine'=>'My Signature','dept'=>'Dept. Signature (if set)');
$options=array('mine'=>'My Signature','dept'=>'Signature du département (si paramétrée)');
foreach($options as $k=>$v) {
echo sprintf('<option value="%s" %s>%s</option>',
$k,($info['default_signature_type']==$k)?'selected="selected"':'',$v);
}
?>
</select>
<em>(You can change selection on ticket page)</em>
<em>(Vous pouvez changer la sélection sur la page du ticket)</em>
&nbsp;<span class="error">&nbsp;<?php echo $errors['default_signature_type']; ?></span>
</td>
</tr>
<tr>
<td width="180">Default Paper Size:</td>
<td width="180">Taille par défaut du papier</td>
<td>
<select name="default_paper_size">
<option value="none" selected="selected">&mdash; None &mdash;</option>
<option value="none" selected="selected">&mdash; Aucun &mdash;</option>
<?php
$options=array('Letter', 'Legal', 'A4', 'A3');
foreach($options as $v) {
......@@ -189,26 +189,26 @@ $info['id']=$staff->getId();
}
?>
</select>
<em>Paper size used when printing tickets to PDF</em>
<em>La taille du papier est utilisér pour l’impression des tickets en PDF</em>
&nbsp;<span class="error">&nbsp;<?php echo $errors['default_paper_size']; ?></span>
</td>
</tr>
<tr>
<td>Show Assigned Tickets:</td>
<td>Afficher les tickets attribués</td>
<td>
<input type="checkbox" name="show_assigned_tickets" <?php echo $info['show_assigned_tickets']?'checked="checked"':''; ?>>
<em>Show assigned tickets on open queue.&nbsp;<i class="help-tip icon-question-sign" href="#show_assigned_tickets"></i></em>
<em>Afficher les tickets attribués dans la file d’attente ouverte.&nbsp;<i class="help-tip icon-question-sign" href="#show_assigned_tickets"></i></em>
</td>
</tr>
<tr>
<th colspan="2">
<em><strong>Password</strong>: To reset your password, provide your current password and a new password below.&nbsp;<span class="error">&nbsp;<?php echo $errors['passwd']; ?></span></em>
<em><strong>Mot de passe</strong>&nbsp;: pour réinitialiser votre mot de passe, indiquez votre mot de passe actuel et le nouveau mot de passe en-dessous.&nbsp;<span class="error">&nbsp;<?php echo $errors['passwd']; ?></span></em>
</th>
</tr>
<?php if (!isset($_SESSION['_staff']['reset-token'])) { ?>
<tr>
<td width="180">
Current Password:
Mot de passe actuel
</td>
<td>
<input type="password" size="18" name="cpasswd" value="<?php echo $info['cpasswd']; ?>">
......@@ -218,7 +218,7 @@ $info['id']=$staff->getId();
<?php } ?>
<tr>
<td width="180">
New Password:
Nouveau mot de passe
</td>
<td>
<input type="password" size="18" name="passwd1" value="<?php echo $info['passwd1']; ?>">
......@@ -227,7 +227,7 @@ $info['id']=$staff->getId();
</tr>
<tr>
<td width="180">
Confirm New Password:
Confirmer le nouveau mot de passe
</td>
<td>
<input type="password" size="18" name="passwd2" value="<?php echo $info['passwd2']; ?>">
......@@ -236,7 +236,7 @@ $info['id']=$staff->getId();
</tr>
<tr>
<th colspan="2">
<em><strong>Signature</strong>: Optional signature used on outgoing emails.
<em><strong>Signature</strong>&nbsp;: signature optionnelle utilisée pour les courriels sortants.
&nbsp;<span class="error">&nbsp;<?php echo $errors['signature']; ?></span>&nbsp;<i class="help-tip icon-question-sign" href="#signature"></i></em>
</th>
</tr>
......@@ -244,14 +244,14 @@ $info['id']=$staff->getId();
<td colspan=2>
<textarea class="richtext no-bar" name="signature" cols="21"
rows="5" style="width: 60%;"><?php echo $info['signature']; ?></textarea>
<br><em>Signature is made available as a choice, on ticket reply.</em>
<br><em>La signature est proposée en option, pour les réponses aux tickets.</em>
</td>
</tr>
</tbody>
</table>
<p style="padding-left:200px;">
<input type="submit" name="submit" value="Save Changes">
<input type="reset" name="reset" value="Reset Changes">
<input type="button" name="cancel" value="Cancel Changes" onclick='window.location.href="index.php"'>
<input type="submit" name="submit" value="Sauvegarder les modifications">
<input type="reset" name="reset" value="Reinitialiser">
<input type="button" name="cancel" value="Annuler les modifications" onclick='window.location.href="index.php"'>
</p>
</form>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment