Commit 60a8d968 authored by peupleLà's avatar peupleLà
Browse files

Trad : include/staff/cannedresponse.inc.php

parent bb0029e9
<?php
if(!defined('OSTSCPINC') || !$thisstaff) die('Access Denied');
if(!defined('OSTSCPINC') || !$thisstaff) die('Accès refusé');
$info=array();
$qstr='';
if($canned && $_REQUEST['a']!='add'){
$title='Update Canned Response';
$action='update';
$submit_text='Save Changes';
$title='Mettre à jour les réponses prédéfinies';
$action='Mettre à jour';
$submit_text='Sauvegarder les modifications';
$info=$canned->getInfo();
$info['id']=$canned->getId();
$qstr.='&id='.$canned->getId();
......@@ -13,9 +13,9 @@ if($canned && $_REQUEST['a']!='add'){
$info['response'] = $canned->getResponseWithImages();
$info['notes'] = Format::viewableImages($info['notes']);
}else {
$title='Add New Canned Response';
$action='create';
$submit_text='Add Response';
$title='Ajouter une réponse prédéfinie';
$action='Créer';
$submit_text='Ajouter une réponse';
$info['isenabled']=isset($info['isenabled'])?$info['isenabled']:1;
$qstr.='&a='.$_REQUEST['a'];
}
......@@ -34,25 +34,25 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<tr>
<th colspan="2">
<h4><?php echo $title; ?></h4>
<em>Canned response settings</em>
<em>Paramètres des réponses prédéfinies</em>
</th>
</tr>
</thead>
<tbody>
<tr>
<td width="180" class="required">Status:</td>
<td width="180" class="required">Statut</td>
<td>
<label><input type="radio" name="isenabled" value="1" <?php echo $info['isenabled']?'checked="checked"':''; ?>>&nbsp;Active&nbsp;</label>
<label><input type="radio" name="isenabled" value="0" <?php echo !$info['isenabled']?'checked="checked"':''; ?>>&nbsp;Disabled&nbsp;</label>
<label><input type="radio" name="isenabled" value="1" <?php echo $info['isenabled']?'checked="checked"':''; ?>>&nbsp;Activé&nbsp;</label>
<label><input type="radio" name="isenabled" value="0" <?php echo !$info['isenabled']?'checked="checked"':''; ?>>&nbsp;Désactivé&nbsp;</label>
&nbsp;<span class="error">*&nbsp;<?php echo $errors['isenabled']; ?></span>
&nbsp;<i class="help-tip icon-question-sign" href="#status"></i>
</td>
</tr>
<tr>
<td width="180" class="required">Department:</td>
<td width="180" class="required">Section</td> <!-- Department => trad: section, un peu au blair, manque du contexte là, je ne sais pas à quoi ça correspond dans la DB -->
<td>
<select name="dept_id">
<option value="0">&mdash; All Departments &mdash;</option>
<option value="0">&mdash; Toutes les sections &mdash;</option>
<?php
$sql='SELECT dept_id, dept_name FROM '.DEPT_TABLE.' dept ORDER by dept_name';
if(($res=db_query($sql)) && db_num_rows($res)) {
......@@ -68,25 +68,25 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<th colspan="2">
<em><strong>Canned Response</strong>: Make the title short and clear.&nbsp;</em>
<em><strong>Réponse prédéfinie</strong>&nbsp;: Choisissez un titre court et clair.&nbsp;</em>
</th>
</tr>
<tr>
<td colspan=2>
<div><b>Title</b><span class="error">*&nbsp;<?php echo $errors['title']; ?></span></div>
<div><b>Titre</b><span class="error">*&nbsp;<?php echo $errors['title']; ?></span></div>
<input type="text" size="70" name="title" value="<?php echo $info['title']; ?>">
<br><br><div style="margin-bottom:0.5em"><b>Canned Response</b> <font class="error">*&nbsp;<?php echo $errors['response']; ?></font>
&nbsp;&nbsp;&nbsp;(<a class="tip" href="#ticket_variables">Supported Variables</a>)
<br><br><div style="margin-bottom:0.5em"><b>Réponse prédéfinie</b> <font class="error">*&nbsp;<?php echo $errors['response']; ?></font>
&nbsp;&nbsp;&nbsp;(<a class="tip" href="#ticket_variables">Variables supportées</a>)
</div>
<textarea name="response" class="richtext draft draft-delete" cols="21" rows="12"
data-draft-namespace="canned"
data-draft-object-id="<?php if (isset($canned)) echo $canned->getId(); ?>"
style="width:98%;" class="richtext draft"><?php
echo $info['response']; ?></textarea>
<br><br><div><b>Canned Attachments</b> (optional) &nbsp;<i class="help-tip icon-question-sign" href="#canned_attachments"></i><font class="error">&nbsp;<?php echo $errors['files']; ?></font></div>
<br><br><div><b>Fichiers joints prédéfinis</b> (optionnel) &nbsp;<i class="help-tip icon-question-sign" href="#canned_attachments"></i><font class="error">&nbsp;<?php echo $errors['files']; ?></font></div>
<?php
if($canned && ($files=$canned->attachments->getSeparates())) {
echo '<div id="canned_attachments"><span class="faded">Uncheck to delete the attachment on submit</span><br>';
echo '<div id="canned_attachments"><span class="faded">Décocher pour supprimer le fichier joint lors de la soumission</span><br>';
foreach($files as $file) {
$hash=$file['key'].md5($file['id'].session_id().strtolower($file['key']));
echo sprintf('<label><input type="checkbox" name="files[]" id="f%d" value="%d" checked="checked">
......@@ -104,12 +104,12 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</div>
<?php
}?>
<div class="faded">You can upload up to 10 attachments per canned response.</div>
<div class="faded">Vous pouvez charger jusqu’à 10&nbsp;fichiersr joints pour chaque réponse prédéfinie.</div>
</td>
</tr>
<tr>
<th colspan="2">
<em><strong>Internal Notes</strong>: Notes about the canned response.&nbsp;</em>
<em><strong>Notes internes</strong>: remarques sur les réponses prédéfinies.&nbsp;</em>
</th>
</tr>
<tr>
......@@ -122,7 +122,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</table>
<?php if ($canned && $canned->getFilters()) { ?>
<br/>
<div id="msg_warning">Canned response is in use by email filter(s): <?php
<div id="msg_warning">Réponse prédéfinie utilisée par le(s) filtre(s) courriel&nbsp;:<?php
echo implode(', ', $canned->getFilters()); ?></div>
<?php } ?>
<p style="padding-left:225px;">
......
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