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

Trad : include/staff/category.inc.php

parent fd134973
<?php
if(!defined('OSTSCPINC') || !$thisstaff || !$thisstaff->canManageFAQ()) die('Access Denied');
if(!defined('OSTSCPINC') || !$thisstaff || !$thisstaff->canManageFAQ()) die('Accès refusé');
$info=array();
$qstr='';
if($category && $_REQUEST['a']!='add'){
$title='Update Category: '.$category->getName();
$action='update';
$submit_text='Save Changes';
$title='Mettre à jour la catégorie&nbps;: '.$category->getName();
$action='Mettre à jour';
$submit_text='Sauvegarder les modifications';
$info=$category->getHashtable();
$info['id']=$category->getId();
$info['notes'] = Format::viewableImages($category->getNotes());
$qstr.='&id='.$category->getId();
}else {
$title='Add New Category';
$action='create';
$submit_text='Add';
$title='Ajouter une catégorie';
$action='Créer';
$submit_text='Ajouter';
$qstr.='&a='.$_REQUEST['a'];
}
$info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
......@@ -24,7 +24,7 @@ $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>FAQ Category</h2>
<h2>Catégorie de la FAQ</h2>
<table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2">
<thead>
<tr>
......@@ -36,26 +36,26 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<tbody>
<tr>
<th colspan="2">
<em>Category information&nbsp;<i class="help-tip icon-question-sign" href="#category_information"></i></em>
<em>Informations sur la catégorie&nbsp;<i class="help-tip icon-question-sign" href="#category_information"></i></em>
</th>
</tr>
<tr>
<td width="180" class="required">Category Type:</td>
<td width="180" class="required">Type de catégorie</td>
<td>
<input type="radio" name="ispublic" value="1" <?php echo $info['ispublic']?'checked="checked"':''; ?>><b>Public</b> (publish)
<input type="radio" name="ispublic" value="1" <?php echo $info['ispublic']?'checked="checked"':''; ?>><b>Publique</b> (publiée)
&nbsp;&nbsp;&nbsp;&nbsp;
<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ée (interne)
&nbsp;<span class="error">*&nbsp;<?php echo $errors['ispublic']; ?></span>
</td>
</tr>
<tr>
<td colspan=2>
<div style="padding-top:3px;"><b>Category Name</b>:&nbsp;<span class="faded">Short descriptive name.</span></div>
<div style="padding-top:3px;"><b>Category Name</b>:&nbsp;<span class="faded">Nom descriptif court.</span></div>
<input type="text" size="70" name="name" value="<?php echo $info['name']; ?>">
&nbsp;<span class="error">*&nbsp;<?php echo $errors['name']; ?></span>
<br>
<div style="padding-top:5px;">
<b>Category Description</b>:&nbsp;<span class="faded">Summary of the category.</span>
<b>Category Description</b>:&nbsp;<span class="faded">Résumé de la catégorie</span>
&nbsp;
<font class="error">*&nbsp;<?php echo $errors['description']; ?></font></div>
<textarea class="richtext" name="description" cols="21" rows="12" style="width:98%;"><?php echo $info['description']; ?></textarea>
......@@ -63,7 +63,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<th colspan="2">
<em>Internal Notes&nbsp;</em>
<em>Notes internes&nbsp;</em>
</th>
</tr>
<tr>
......@@ -76,7 +76,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="categories.php"'>
<input type="reset" name="reset" value="Réinitialiser">
<input type="button" name="cancel" value="Annuler" onclick='window.location.href="categories.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