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

Trad : include/staff/helptopic.inc.php

parent c33f6da6
<?php
if(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin()) die('Access Denied');
if(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin()) die('Accès refusé');
$info=array();
$qstr='';
if($topic && $_REQUEST['a']!='add') {
$title='Update Help Topic';
$action='update';
$submit_text='Save Changes';
$title='Mettre à jour les rubriques d’aidee';
$action='update'; /*même question again and again*/
$submit_text='Sauvegarder les modifications';
$info=$topic->getInfo();
$info['id']=$topic->getId();
$info['pid']=$topic->getPid();
$qstr.='&id='.$topic->getId();
} else {
$title='Add New Help Topic';
$action='create';
$submit_text='Add Topic';
$title='Ajouter une rubrique d’aide';
$action='create'; /*and again and again ^^*/
$submit_text='Ajouter une rubrique';
$info['isactive']=isset($info['isactive'])?$info['isactive']:1;
$info['ispublic']=isset($info['ispublic'])?$info['ispublic']:1;
$info['form_id'] = Topic::FORM_USE_PARENT;
......@@ -32,14 +32,14 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<tr>
<th colspan="2">
<h4><?php echo $title; ?></h4>
<em>Help Topic Information&nbsp;<i class="help-tip icon-question-sign" href="#help_topic_information"></i></em>
<em>Informations sur les rubriques d’aide&nbsp;<i class="help-tip icon-question-sign" href="#help_topic_information"></i></em>
</th>
</tr>
</thead>
<tbody>
<tr>
<td width="180" class="required">
Topic:
Rubrique
</td>
<td>
<input type="text" size="30" name="topic" value="<?php echo $info['topic']; ?>">
......@@ -48,31 +48,31 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td width="180" class="required">
Status:
Statut
</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
<input type="radio" name="isactive" value="1" <?php echo $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> <i class="help-tip icon-question-sign" href="#status"></i>
</td>
</tr>
<tr>
<td width="180" class="required">
Type:
Type
</td>
<td>
<input type="radio" name="ispublic" value="1" <?php echo $info['ispublic']?'checked="checked"':''; ?>>Public
<input type="radio" name="ispublic" value="0" <?php echo !$info['ispublic']?'checked="checked"':''; ?>>Private/Internal
<input type="radio" name="ispublic" value="0" <?php echo !$info['ispublic']?'checked="checked"':''; ?>>Privé/Interne
&nbsp;<span class="error">*&nbsp;</span> <i class="help-tip icon-question-sign" href="#type"></i>
</td>
</tr>
<tr>
<td width="180">
Parent Topic:
Rubrique parente
</td>
<td>
<select name="topic_pid">
<option value="">&mdash; Top-Level Topic &mdash;</option><?php
<option value="">&mdash; Rubrique de premier niveau &mdash;</option><?php
$topics = Topic::getAllHelpTopics();
while (list($id,$topic) = each($topics)) {
if ($id == $info['topic_id'])
......@@ -85,16 +85,16 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</td>
</tr>
<tr><th colspan="2"><em>New ticket options</em></th></tr>
<tr><th colspan="2"><em>Ajout d’options de tickets</em></th></tr>
<tr>
<td><strong>Custom Form</strong>:</td>
<td><strong>Formulaire personnalisé</strong>:</td>
<td><select name="form_id">
<option value="0" <?php
if ($info['form_id'] == '0') echo 'selected="selected"';
?>>&mdash; None &mdash;</option>
?>>&mdash; Aucune &mdash;</option>
<option value="<?php echo Topic::FORM_USE_PARENT; ?>" <?php
if ($info['form_id'] == Topic::FORM_USE_PARENT) echo 'selected="selected"';
?>>&mdash; Use Parent Form &mdash;</option>
?>>&mdash; Utiliser le formulaire parent &mdash;</option>
<?php foreach (DynamicForm::objects()->filter(array('type'=>'G')) as $group) { ?>
<option value="<?php echo $group->get('id'); ?>"
<?php if ($group->get('id') == $info['form_id'])
......@@ -109,11 +109,11 @@ if ($info['form_id'] == Topic::FORM_USE_PARENT) echo 'selected="selected"';
</tr>
<tr>
<td width="180" class="required">
Department:
Département
</td>
<td>
<select name="dept_id">
<option value="0">&mdash; System Default &mdash;</option>
<option value="0">&mdash; Valeurs par défaut du système &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)){
......@@ -130,11 +130,11 @@ if ($info['form_id'] == Topic::FORM_USE_PARENT) echo 'selected="selected"';
</tr>
<tr>
<td width="180">
Priority:
Priorité
</td>
<td>
<select name="priority_id">
<option value="">&mdash; System Default &mdash;</option>
<option value="">&mdash; Valeurs par défaut du système &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)){
......@@ -151,11 +151,11 @@ if ($info['form_id'] == Topic::FORM_USE_PARENT) echo 'selected="selected"';
</tr>
<tr>
<td width="180">
SLA Plan:
Plan de convention de service (SLA)
</td>
<td>
<select name="sla_id">
<option value="0">&mdash; Department's Default &mdash;</option>
<option value="0">&mdash; Valeurs par défaut du département &mdash;</option>
<?php
if($slas=SLA::getSLAs()) {
foreach($slas as $id =>$name) {
......@@ -173,7 +173,7 @@ if ($info['form_id'] == Topic::FORM_USE_PARENT) echo 'selected="selected"';
<td width="180">Thank-you Page:</td>
<td>
<select name="page_id">
<option value="">&mdash; System Default &mdash;</option>
<option value="">&mdash; Valeurs par défaut du système &mdash;</option>
<?php
if(($pages = Page::getActiveThankYouPages())) {
foreach($pages as $page) {
......@@ -191,14 +191,14 @@ if ($info['form_id'] == Topic::FORM_USE_PARENT) echo 'selected="selected"';
</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">';
echo '<OPTGROUP label="Membres de l’équipe">';
foreach ($users as $id => $name) {
$name = new PersonsName($name);
$k="s$id";
......@@ -212,7 +212,7 @@ if ($info['form_id'] == Topic::FORM_USE_PARENT) echo 'selected="selected"';
}
$sql='SELECT team_id, name, isenabled 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, $name, $isenabled) = db_fetch_row($res)){
$k="t$id";
$selected = ($info['assign']==$k || $info['team_id']==$id)?'selected="selected"':'';
......@@ -233,17 +233,17 @@ if ($info['form_id'] == Topic::FORM_USE_PARENT) echo 'selected="selected"';
</tr>
<tr>
<td width="180">
Auto-response:
Réponse automatique
</td>
<td>
<input type="checkbox" name="noautoresp" value="1" <?php echo $info['noautoresp']?'checked="checked"':''; ?> >
<strong>Disable</strong> new ticket auto-response
<strong>Désactiver</strong> la réponse automatique sur les tickets
<i class="help-tip icon-question-sign" href="#ticket_auto_response"></i>
</td>
</tr>
<tr>
<th colspan="2">
<em><strong>Admin Notes</strong>: Internal notes about the help topic.</em>
<em><strong>Remarques de l’admin/strong>&nbsp;: notes internes au sujet de la rubrique d’aide.</em>
</th>
</tr>
<tr>
......@@ -256,7 +256,7 @@ if ($info['form_id'] == Topic::FORM_USE_PARENT) echo 'selected="selected"';
</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="helptopics.php"'>
<input type="reset" name="reset" value="Réinitialiser">
<input type="button" name="cancel" value="Annuler" onclick='window.location.href="helptopics.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