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

Trad : include/staff/page.inc.php

parent 612a9678
<?php
if(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin()) die('Access Denied');
if(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin()) die('Accès refusé');
$pageTypes = array(
'landing' => 'Landing page',
'offline' => 'Offline page',
......@@ -9,18 +9,18 @@ $pageTypes = array(
$info=array();
$qstr='';
if($page && $_REQUEST['a']!='add'){
$title='Update Page';
$action='update';
$submit_text='Save Changes';
$title='Mettre à jour la page';
$action='update'; /* question again and again*/
$submit_text='Sauvegarder les modifications';
$info=$page->getHashtable();
$info['body'] = Format::viewableImages($page->getBody());
$info['notes'] = Format::viewableImages($info['notes']);
$slug = Format::slugify($info['name']);
$qstr.='&id='.$page->getId();
}else {
$title='Add New Page';
$action='add';
$submit_text='Add Page';
$title='Ajouter une page';
$action='add'; /*and again and again*/
$submit_text='Ajouter une page';
$info['isactive']=isset($info['isactive'])?$info['isactive']:0;
$qstr.='&a='.urlencode($_REQUEST['a']);
}
......@@ -31,7 +31,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>Site Pages
<h2>Pages du site
<i class="help-tip icon-question-sign" href="#site_pages"></i>
</h2>
<table class="form_table fixed" width="940" border="0" cellspacing="0" cellpadding="2">
......@@ -40,14 +40,14 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<tr>
<th colspan="2">
<h4><?php echo $title; ?></h4>
<em>Page information.</em>
<em>Informations sur la page</em>
</th>
</tr>
</thead>
<tbody>
<tr>
<td width="180" class="required">
Name:
Nom
</td>
<td>
<input type="text" size="40" name="name" value="<?php echo $info['name']; ?>">
......@@ -56,12 +56,12 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td width="180" class="required">
Type:
Type
</td>
<td>
<span>
<select name="type">
<option value="" selected="selected">&mdash; Select Page Type &mdash;</option>
<option value="" selected="selected">&mdash; Sélectionner le type de page &mdash;</option>
<?php
foreach($pageTypes as $k => $v)
echo sprintf('<option value="%s" %s>%s</option>',
......@@ -76,7 +76,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<?php if ($info['name'] && $info['type'] == 'other') { ?>
<tr>
<td width="180" class="required">
Public URL:
URL publique
</td>
<td><a href="<?php echo sprintf("%s/pages/%s",
$ost->getConfig()->getBaseUrl(), urlencode($slug));
......@@ -86,7 +86,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<?php } ?>
<tr>
<td width="180" class="required">
Status:
Statut
</td>
<td>
<input type="radio" name="isactive" value="1" <?php echo $info['isactive']?'checked="checked"':''; ?>><strong>Active</strong>
......@@ -96,7 +96,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<th colspan="2">
<em><b>Page body</b>: Ticket variables are only supported in thank-you pages.<font class="error">*&nbsp;<?php echo $errors['body']; ?></font></em>
<em><b>Corps de la page body</b>&nbsp;: seules les pages de remerciements supportent les variables de ticket.<font class="error">*&nbsp;<?php echo $errors['body']; ?></font></em>
</th>
</tr>
<tr>
......@@ -108,7 +108,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<th colspan="2">
<em><strong>Admin Notes</strong>: Internal notes.&nbsp;</em>
<em><strong>Remarques de l’admin</strong>&nbsp;: notes internes.&nbsp;</em>
</th>
</tr>
<tr>
......@@ -121,7 +121,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="pages.php"'>
<input type="reset" name="reset" value="Réinitialiser">
<input type="button" name="cancel" value="Annuler" onclick='window.location.href="pages.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