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

Trad : include/staff/filter.inc.php

parent f67f9d46
<?php
if(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin()) die('Access Denied');
if(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin()) die('Accès refusé');
$matches=Filter::getSupportedMatches();
$match_types=Filter::getSupportedMatchTypes();
......@@ -7,16 +7,16 @@ $match_types=Filter::getSupportedMatchTypes();
$info=array();
$qstr='';
if($filter && $_REQUEST['a']!='add'){
$title='Update Filter';
$action='update';
$submit_text='Save Changes';
$title='Mettre à jour le filtre';
$action='update'; /*toujours la même question*/
Please register or sign in to reply
$submit_text='Sauvegarder les modifications';
$info=array_merge($filter->getInfo(),$filter->getFlatRules());
$info['id']=$filter->getId();
$qstr.='&id='.$filter->getId();
}else {
$title='Add New Filter';
$action='add';
$submit_text='Add Filter';
$title='Ajouter un filtre';
$action='ajouter'; /* ici aussi ?*/
Please register or sign in to reply
$submit_text='Ajouter un filtre';
$info['isactive']=isset($info['isactive'])?$info['isactive']:0;
$qstr.='&a='.urlencode($_REQUEST['a']);
}
......@@ -27,20 +27,20 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<input type="hidden" name="do" value="<?php echo $action; ?>">
<input type="hidden" name="a" value="<?php echo Format::htmlchars($_REQUEST['a']); ?>">
<input type="hidden" name="id" value="<?php echo $info['id']; ?>">
<h2>Ticket Filter</h2>
<h2>Filtres sur les tickets</h2>
<table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2">
<thead>
<tr>
<th colspan="2">
<h4><?php echo $title; ?></h4>
<em>Filters are executed based on execution order. Filter can target specific ticket source.</em>
<em>Les filtres sont exécutés selon l’ordre d’exécution. Un filtre peut cibler spécifiquement la source d’un ticket.</em>
</th>
</tr>
</thead>
<tbody>
<tr>
<td width="180" class="required">
Filter Name:
Nom du filtre
</td>
<td>
<input type="text" size="30" name="name" value="<?php echo $info['name']; ?>">
......@@ -49,7 +49,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td width="180" class="required">
Execution Order:
Ordre d’exécution
</td>
<td>
<input type="text" size="6" name="execorder" value="<?php echo $info['execorder']; ?>">
......@@ -57,27 +57,27 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
&nbsp;<span class="error">*&nbsp;<?php echo $errors['execorder']; ?></span>
&nbsp;&nbsp;&nbsp;
<input type="checkbox" name="stop_onmatch" value="1" <?php echo $info['stop_onmatch']?'checked="checked"':''; ?> >
<strong>Stop</strong> processing further on match!&nbsp;<i class="help-tip icon-question-sign" href="#execution_order"></i>
<strong>Interrompre</strong> le traitement lorsqu’une correspondance est trouvée&nbsp;!&nbsp;<i class="help-tip icon-question-sign" href="#execution_order"></i>
</td>
</tr>
<tr>
<td width="180" class="required">
Filter Status:
Statut du filtre
</td>
<td>
<input type="radio" name="isactive" value="1" <?php echo
$info['isactive']?'checked="checked"':''; ?>> Active
<input type="radio" name="isactive" value="0" <?php echo !$info['isactive']?'checked="checked"':''; ?>> Disabled
$info['isactive']?'checked="checked"':''; ?>> Activé
<input type="radio" name="isactive" value="0" <?php echo !$info['isactive']?'checked="checked"':''; ?>> Désactivé
&nbsp;<span class="error">*&nbsp;</span>
</td>
</tr>
<tr>
<td width="180" class="required">
Target Channel:
Canal de la cible <!-- 'Target Channel' ? je ne sais pas à quoi ça correspond, donc pas sûre -->
  • Pour le coup, je ne sais pas non plus ce que ça peut représenter :(

  • Prenons ta trad' comme base quand on le recroisera

Please register or sign in to reply
</td>
<td>
<select name="target">
<option value="">&mdash; Select a Channel &dash;</option>
<option value="">&mdash; Sélectionner un canal &dash;</option>
<?php
foreach(Filter::getTargets() as $k => $v) {
echo sprintf('<option value="%s" %s>%s</option>',
......@@ -85,7 +85,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
}
$sql='SELECT email_id,email,name FROM '.EMAIL_TABLE.' email ORDER by name';
if(($res=db_query($sql)) && db_num_rows($res)) {
echo '<OPTGROUP label="Specific System Email">';
echo '<OPTGROUP label="Système spécifique de courriel">';
while(list($id,$email,$name)=db_fetch_row($res)) {
$selected=($info['email_id'] && $id==$info['email_id'])?'selected="selected"':'';
if($name)
......@@ -103,19 +103,19 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<th colspan="2">
<em><strong>Filter Rules</strong>: Rules are applied based on the criteria.&nbsp;<span class="error">*&nbsp;<?php echo
<em><strong>Règles de filtrage</strong>&nbsp;: des règles sont appliquées suivant les critères définis.&nbsp;<span class="error">*&nbsp;<?php echo
$errors['rules']; ?></span></em>
</th>
</tr>
<tr>
<td colspan=2>
<em>Rules Matching Criteria:</em>
<em>Critères de correspondance des règles</em>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="match_all_rules" value="1" <?php echo $info['match_all_rules']?'checked="checked"':''; ?>>Match All
<input type="radio" name="match_all_rules" value="1" <?php echo $info['match_all_rules']?'checked="checked"':''; ?>>Correspondance sur tout
&nbsp;&nbsp;&nbsp;
<input type="radio" name="match_all_rules" value="0" <?php echo !$info['match_all_rules']?'checked="checked"':''; ?>>Match Any
<input type="radio" name="match_all_rules" value="0" <?php echo !$info['match_all_rules']?'checked="checked"':''; ?>>Correspondance sur l’un au moins
&nbsp;<span class="error">*&nbsp;</span>
<em>(case-insensitive comparison)</em>&nbsp;<i class="help-tip icon-question-sign" href="#rules_matching_criteria"></i>
<em>(comparaison insensible à la casse)</em>&nbsp;<i class="help-tip icon-question-sign" href="#rules_matching_criteria"></i>
</td>
</tr>
......@@ -126,7 +126,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<td colspan="2">
<div>
<select style="max-width: 200px;" name="rule_w<?php echo $i; ?>">
<option value="">&mdash; Select One &dash;</option>
<option value="">&mdash; Sélectionner un élément &dash;</option>
<?php
foreach ($matches as $group=>$ms) { ?>
<optgroup label="<?php echo $group; ?>"><?php
......@@ -138,7 +138,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<?php } ?>
</select>
<select name="rule_h<?php echo $i; ?>">
<option value="0">&mdash; Select One &dash;</option>
<option value="0">&mdash; Sélectionner un élément &dash;</option>
<?php
foreach($match_types as $k=>$v){
$sel=($info["rule_h$i"]==$k)?'selected="selected"':'';
......@@ -162,43 +162,43 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
} ?>
<tr>
<th colspan="2">
<em><strong>Filter Actions</strong>: Can be overridden by other filters depending on processing order.&nbsp;</em>
<em><strong>Actions des filtres/strong>&nbsp;: peuvent être remplacées par d’autres filtres en fonction de l’ordre de traitement.&nbsp;</em>
</th>
</tr>
<tr>
<td width="180">
Reject Ticket:
Rejeter le ticket
</td>
<td>
<input type="checkbox" name="reject_ticket" value="1" <?php echo $info['reject_ticket']?'checked="checked"':''; ?> >
<strong><font class="error">Reject Ticket</font></strong>&nbsp;<i class="help-tip icon-question-sign" href="#reject_ticket"></i>
<strong><font class="error">Rejeter le ticket</font></strong>&nbsp;<i class="help-tip icon-question-sign" href="#reject_ticket"></i>
</td>
</tr>
<tr>
<td width="180">
Reply-To Email:
Répondre au courriel
</td>
<td>
<input type="checkbox" name="use_replyto_email" value="1" <?php echo $info['use_replyto_email']?'checked="checked"':''; ?> >
<strong>Use</strong> Reply-To Email <em>(if available)&nbsp;<i class="help-tip icon-question-sign" href="#reply_to_email"></i></em>
<strong>Utiliser</strong> la réponse au courriel <em>(if available)&nbsp;<i class="help-tip icon-question-sign" href="#reply_to_email"></i></em>
</td>
</tr>
<tr>
<td width="180">
Ticket auto-response:
Réponse automatique au ticket
</td>
<td>
<input type="checkbox" name="disable_autoresponder" value="1" <?php echo $info['disable_autoresponder']?'checked="checked"':''; ?> >
<strong>Disable</strong> auto-response.&nbsp;<i class="help-tip icon-question-sign" href="#ticket_auto_response"></i>
<strong>Désactiver</strong> la réponse automatique&nbsp;<i class="help-tip icon-question-sign" href="#ticket_auto_response"></i>
</td>
</tr>
<tr>
<td width="180">
Canned Response:
Réponse prédéfinie
</td>
<td>
<select name="canned_response_id">
<option value="">&mdash; None &mdash;</option>
<option value="">&mdash; Aucune &mdash;</option>
<?php
$sql='SELECT canned_id, title, isenabled FROM '.CANNED_TABLE .' ORDER by title';
if ($res=db_query($sql)) {
......@@ -221,11 +221,11 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td width="180">
Department:
Département
</td>
<td>
<select name="dept_id">
<option value="">&mdash; Default &mdash;</option>
<option value="">&mdash; par défaut &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)){
......@@ -241,11 +241,11 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td width="180">
Priority:
Priorité
</td>
<td>
<select name="priority_id">
<option value="">&mdash; Default &mdash;</option>
<option value="">&mdash; par défaut &mdash;</option>
<?php
$sql='SELECT priority_id,priority_desc FROM '.PRIORITY_TABLE.' pri ORDER by priority_urgency DESC';
if(($res=db_query($sql)) && db_num_rows($res)){
......@@ -262,11 +262,11 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td width="180">
SLA Plan:
Plan pour la convention de service (SLA)
</td>
<td>
<select name="sla_id">
<option value="0">&mdash; System Default &mdash;</option>
<option value="0">&mdash; Valeurs par défaut du système &mdash;</option>
<?php
if($slas=SLA::getSLAs()) {
foreach($slas as $id =>$name) {
......@@ -282,11 +282,11 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td width="180">
Auto-assign To:
Attribution automatique à
</td>
<td>
<select name="assign">
<option value="0">&mdash; Unassigned &mdash;</option>
<option value="0">&mdash; Non attribué &mdash;</option>
<?php
if (($users=Staff::getStaffMembers())) {
echo '<OPTGROUP label="Staff Members">';
......@@ -302,7 +302,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
}
$sql='SELECT team_id, isenabled, name FROM '.TEAM_TABLE .' ORDER BY name';
if(($res=db_query($sql)) && db_num_rows($res)){
echo '<OPTGROUP label="Teams">';
echo '<OPTGROUP label="Équipes">';
while (list($id, $isenabled, $name) = db_fetch_row($res)){
$k="t$id";
$selected = ($info['assign']==$k || $info['team_id']==$id)?'selected="selected"':'';
......@@ -322,11 +322,11 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td width="180">
Help Topic
Rubrique d’aide
</td>
<td>
<select name="topic_id">
<option value="0" selected="selected">&mdash; Unchanged &mdash;</option>
<option value="0" selected="selected">&mdash; Inchangé &mdash;</option>
<?php
$sql='SELECT topic_id, topic FROM '.TOPIC_TABLE.' T ORDER by topic';
if(($res=db_query($sql)) && db_num_rows($res)){
......@@ -342,7 +342,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<th colspan="2">
<em><strong>Admin Notes</strong>: Internal notes.</em>
<em><strong>Notes de l’admin</strong>&nbsp;: notes internes.</em>
</th>
</tr>
<tr>
......@@ -355,7 +355,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</table>
<p style="padding-left:225px;">
<input type="submit" name="submit" value="<?php echo $submit_text; ?>">
<input type="reset" name="reset" value="Reset">
<input type="button" name="cancel" value="Cancel" onclick='window.location.href="filters.php"'>
<input type="reset" name="reset" value="Réinitialiser">
<input type="button" name="cancel" value="Annuler" onclick='window.location.href="filters.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