Commit 3908c89c authored by peupleLà's avatar peupleLà
Browse files

Trad : include/staff/helptopics.inc.php

parent aeb3871a
<?php
if(!defined('OSTADMININC') || !$thisstaff->isAdmin()) die('Access Denied');
if(!defined('OSTADMININC') || !$thisstaff->isAdmin()) die('Accès refusé');
$sql='SELECT topic.* '
.', dept.dept_name as department '
......@@ -17,7 +17,7 @@ $res=db_query($query);
if($res && ($num=db_num_rows($res)))
$showing="Showing $num help topics";
else
$showing='No help topic found!';
$showing='Aucune rubrique d’aide n’a été trouvée';
// Get the full names and filter for this page
$topics = array();
......@@ -32,10 +32,10 @@ if ($cfg->getTopicSortMode() == 'a')
?>
<div style="width:700px;padding-top:5px; float:left;">
<h2>Help Topics</h2>
<h2>Rubriques d’aide</h2>
</div>
<div style="float:right;text-align:right;padding-top:5px;padding-right:5px;">
<b><a href="helptopics.php?a=add" class="Icon newHelpTopic">Add New Help Topic</a></b></div>
<b><a href="helptopics.php?a=add" class="Icon newHelpTopic">Ajouter une rubrique d’aide</a></b></div>
<div class="clear"></div>
<form action="helptopics.php" method="POST" name="topics">
<?php csrf_token(); ?>
......@@ -44,7 +44,7 @@ if ($cfg->getTopicSortMode() == 'a')
<table class="list" border="0" cellspacing="1" cellpadding="0" width="940">
<caption><span style="display:inline-block;vertical-align:middle"><?php
echo $showing; ?></span>
<div class="pull-right">Sorting Mode:
<div class="pull-right">Modalités de tri&nbsp;:
<select name="help_topic_sort_mode" onchange="javascript:
var $form = $(this).closest('form');
$form.find('input[name=a]').val('sort');
......@@ -59,12 +59,12 @@ if ($cfg->getTopicSortMode() == 'a')
<thead>
<tr>
<th width="7" style="height:20px;">&nbsp;</th>
<th style="padding-left:4px;vertical-align:middle" width="360">Help Topic</th>
<th style="padding-left:4px;vertical-align:middle" width="80">Status</th>
<th style="padding-left:4px;vertical-align:middle" width="360">Rubrique d’aide</th>
<th style="padding-left:4px;vertical-align:middle" width="80">Statut</th>
<th style="padding-left:4px;vertical-align:middle" width="100">Type</th>
<th style="padding-left:4px;vertical-align:middle" width="100">Priority</th>
<th style="padding-left:4px;vertical-align:middle" width="160">Department</th>
<th style="padding-left:4px;vertical-align:middle" width="150" nowrap>Last Updated</th>
<th style="padding-left:4px;vertical-align:middle" width="100">Priorité</th>
<th style="padding-left:4px;vertical-align:middle" width="160">Département</th>
<th style="padding-left:4px;vertical-align:middle" width="150" nowrap>Dernière mise à jour</th>
</tr>
</thead>
<tbody class="<?php if ($cfg->getTopicSortMode() == 'm') echo 'sortable-rows'; ?>"
......@@ -103,8 +103,8 @@ if ($cfg->getTopicSortMode() == 'a')
<i class="icon-sort"></i>
<?php } ?>
<a href="helptopics.php?id=<?php echo $row['topic_id']; ?>"><?php echo $row['name']; ?></a>&nbsp;</td>
<td><?php echo $row['isactive']?'Active':'<b>Disabled</b>'; ?></td>
<td><?php echo $row['ispublic']?'Public':'<b>Private</b>'; ?></td>
<td><?php echo $row['isactive']?'Active':'<b>Désactivé</b>'; ?></td>
<td><?php echo $row['ispublic']?'Public':'<b>Privé</b>'; ?></td>
<td><?php echo $row['priority']; ?></td>
<td><a href="departments.php?id=<?php echo $row['dept_id']; ?>"><?php echo $row['department']; ?></a></td>
<td>&nbsp;<?php echo Format::db_datetime($row['updated']); ?></td>
......@@ -116,12 +116,12 @@ if ($cfg->getTopicSortMode() == 'a')
<tr>
<td colspan="7">
<?php if($res && $num){ ?>
Select:&nbsp;
<a id="selectAll" href="#ckb">All</a>&nbsp;&nbsp;
<a id="selectNone" href="#ckb">None</a>&nbsp;&nbsp;
<a id="selectToggle" href="#ckb">Toggle</a>&nbsp;&nbsp;
Sélectionner
<a id="selectAll" href="#ckb">Tout</a>&nbsp;&nbsp;
<a id="selectNone" href="#ckb">Aucun</a>&nbsp;&nbsp;
<a id="selectToggle" href="#ckb">Basculer</a>&nbsp;&nbsp;
<?php }else{
echo 'No help topics found';
echo 'Aucune rubrique d’aide n’a été trouvée&nbsp;!';
} ?>
</td>
</tr>
......@@ -132,11 +132,11 @@ if($res && $num): //Show options..
?>
<p class="centered" id="actions">
<?php if ($cfg->getTopicSortMode() != 'a') { ?>
<input class="button no-confirm" type="submit" name="sort" value="Save"/>
<input class="button no-confirm" type="submit" name="sort" value="Sauvegarder"/>
<?php } ?>
<button class="button" type="submit" name="enable" value="Enable" >Enable</button>
<button class="button" type="submit" name="disable" value="Disable">Disable</button>
<button class="button" type="submit" name="delete" value="Delete">Delete</button>
<button class="button" type="submit" name="enable" value="Activer" >Activer</button>
<button class="button" type="submit" name="disable" value="Désactiver">Désactiver</button>
<button class="button" type="submit" name="delete" value="Supprimer">Supprimer</button>
</p>
<?php
endif;
......@@ -144,27 +144,27 @@ endif;
</form>
<div style="display:none;" class="dialog" id="confirm-action">
<h3>Please Confirm</h3>
<h3>Veuillez confirmer</h3>
<a class="close" href=""><i class="icon-remove-circle"></i></a>
<hr/>
<p class="confirm-action" style="display:none;" id="enable-confirm">
Are you sure want to <b>enable</b> selected help topics?
Êtes-vous sûr.e de vouloir <b>activer</b> les rubriques d’aide sélectionnées&nbsp;?
</p>
<p class="confirm-action" style="display:none;" id="disable-confirm">
Are you sure want to <b>disable</b> selected help topics?
Êtes-vous sûr.e de vouloir <b>désactiver</b> les rubriques d’aide sélectionnées&nbsp;?
</p>
<p class="confirm-action" style="display:none;" id="delete-confirm">
<font color="red"><strong>Are you sure you want to DELETE selected help topics?</strong></font>
<br><br>Deleted topics CANNOT be recovered.
<font color="red"><strong>Êtes-vous sûr.e de vouloir SUPPRIMER les rubriques d’aide sélectionnées&nbsp;?</strong></font>
<br><br>Les rubriques supprimées ne POURRONT PAS être récupérées.
</p>
<div>Please confirm to continue.</div>
<div>Veuillez confirmer pour continuer</div>
<hr style="margin-top:1em"/>
<p class="full-width">
<span class="buttons" style="float:left">
<input type="button" value="No, Cancel" class="close">
<input type="button" value="Non, annuler" class="close">
</span>
<span class="buttons" style="float:right">
<input type="button" value="Yes, Do it!" class="confirm">
<input type="button" value="Oui, je confirme&nbsp;!" class="confirm">
</span>
</p>
<div class="clear"></div>
......
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