Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
peupleLà
osTicket-1.8
Commits
fd134973
Commit
fd134973
authored
Sep 20, 2014
by
peupleLà
Browse files
Trad : include/staff/categories.inc.php
parent
2c104b9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/staff/categories.inc.php
View file @
fd134973
<?php
if
(
!
defined
(
'OSTSCPINC'
)
||
!
$thisstaff
)
die
(
'Acc
ess Denied
'
);
if
(
!
defined
(
'OSTSCPINC'
)
||
!
$thisstaff
)
die
(
'Acc
ès refusé
'
);
$qstr
=
''
;
$sql
=
'SELECT cat.category_id, cat.name, cat.ispublic, cat.updated, count(faq.faq_id) as faqs '
.
...
...
@@ -35,16 +35,16 @@ $qstr.='&order='.($order=='DESC'?'ASC':'DESC');
$query
=
"
$sql
GROUP BY cat.category_id ORDER BY
$order_by
LIMIT "
.
$pageNav
->
getStart
()
.
","
.
$pageNav
->
getLimit
();
$res
=
db_query
(
$query
);
if
(
$res
&&
(
$num
=
db_num_rows
(
$res
)))
$showing
=
$pageNav
->
showing
()
.
' cat
e
gories'
;
$showing
=
$pageNav
->
showing
()
.
' cat
é
gories'
;
else
$showing
=
'
No FAQ categories found!'
;
$showing
=
'
Aucune catégorie de la FAQ n’a été trouvée !'
;
<!--
pas
terrible
,
mais
encore
une
fois
,
il
me
manque
du
contexte
-->
?>
<div
style=
"width:700px;padding-top:5px; float:left;"
>
<h2>
FAQ
Cat
e
gories
<i
class=
"help-tip icon-question-sign"
href=
"#faq_categories"
></i></h2>
<h2>
Cat
é
gories
de la FAQ
<i
class=
"help-tip icon-question-sign"
href=
"#faq_categories"
></i></h2>
</div>
<div
style=
"float:right;text-align:right;padding-top:5px;padding-right:5px;"
>
<b><a
href=
"categories.php?a=add"
class=
"Icon newCategory"
>
A
dd New C
at
e
gor
y
</a></b></div>
<b><a
href=
"categories.php?a=add"
class=
"Icon newCategory"
>
A
jouter une c
at
é
gor
ie
</a></b></div>
<div
class=
"clear"
></div>
<form
action=
"categories.php"
method=
"POST"
name=
"cat"
>
<?php
csrf_token
();
?>
...
...
@@ -55,10 +55,10 @@ else
<thead>
<tr>
<th
width=
"7"
>
</th>
<th
width=
"500"
><a
<?php
echo
$name_sort
;
?>
href=
"categories.php?
<?php
echo
$qstr
;
?>
&sort=name"
>
N
ame
</a></th>
<th
width=
"500"
><a
<?php
echo
$name_sort
;
?>
href=
"categories.php?
<?php
echo
$qstr
;
?>
&sort=name"
>
N
om
</a></th>
<th
width=
"150"
><a
<?php
echo
$type_sort
;
?>
href=
"categories.php?
<?php
echo
$qstr
;
?>
&sort=type"
>
Type
</a></th>
<th
width=
"80"
><a
<?php
echo
$faqs_sort
;
?>
href=
"categories.php?
<?php
echo
$qstr
;
?>
&sort=faqs"
>
FAQs
</a></th>
<th
width=
"150"
nowrap
><a
<?php
echo
$updated_sort
;
?>
href=
"categories.php?
<?php
echo
$qstr
;
?>
&sort=updated"
>
Last Updated
</a></th>
<th
width=
"150"
nowrap
><a
<?php
echo
$updated_sort
;
?>
href=
"categories.php?
<?php
echo
$qstr
;
?>
&sort=updated"
>
Dernière mise à jour
</a></th>
</tr>
</thead>
<tbody>
...
...
@@ -93,11 +93,11 @@ else
<td
colspan=
"5"
>
<?php
if
(
$res
&&
$num
){
?>
Select:
<a
id=
"selectAll"
href=
"#ckb"
>
All
</a>
<a
id=
"selectNone"
href=
"#ckb"
>
None
</a>
<a
id=
"selectToggle"
href=
"#ckb"
>
Togg
le
</a>
<a
id=
"selectAll"
href=
"#ckb"
>
Tout
</a>
<a
id=
"selectNone"
href=
"#ckb"
>
Aucun
</a>
<a
id=
"selectToggle"
href=
"#ckb"
>
Bascu
le
r
</a>
<?php
}
else
{
echo
'
No FAQ
cat
e
gorie
s found
.'
;
echo
'
Aucune
cat
é
gorie
de la FAQ n’a été trouvée
.'
;
}
?>
</td>
</tr>
...
...
@@ -108,36 +108,36 @@ if($res && $num): //Show options..
echo
'<div> Page:'
.
$pageNav
->
getPageLinks
()
.
' </div>'
;
?>
<p
class=
"centered"
id=
"actions"
>
<input
class=
"button"
type=
"submit"
name=
"make_public"
value=
"
Make P
ublic"
>
<input
class=
"button"
type=
"submit"
name=
"make_private"
value=
"
Make I
ntern
al
"
>
<input
class=
"button"
type=
"submit"
name=
"delete"
value=
"
Delete
"
>
<input
class=
"button"
type=
"submit"
name=
"make_public"
value=
"
Passer en statut p
ublic"
>
<input
class=
"button"
type=
"submit"
name=
"make_private"
value=
"
Passer en statut i
ntern
e
"
>
<input
class=
"button"
type=
"submit"
name=
"delete"
value=
"
Supprimer
"
>
</p>
<?php
endif
;
?>
</form>
<div
style=
"display:none;"
class=
"dialog"
id=
"confirm-action"
>
<h3>
Please C
onfirm
</h3>
<h3>
Veuillez c
onfirm
er
</h3>
<a
class=
"close"
href=
""
><i
class=
"icon-remove-circle"
></i></a>
<hr/>
<p
class=
"confirm-action"
style=
"display:none;"
id=
"make_public-confirm"
>
Are y
ou s
ure want to make selected
cat
e
gories
<b>
public
</b>
?
Êtes-v
ou
s
s
ûr.e de vouloir passer les
cat
é
gories
sélectionnées en statut
<b>
public
</b>
?
</p>
<p
class=
"confirm-action"
style=
"display:none;"
id=
"make_private-confirm"
>
Are y
ou s
ure want to make selected
cat
e
gories
<b>
priv
ate
</b>
(intern
al)
?
Êtes-v
ou
s
s
ûr.e de vouloir passer les
cat
é
gories
sélectionnées en statut
<b>
priv
é
</b>
(intern
e)
?
</p>
<p
class=
"confirm-action"
style=
"display:none;"
id=
"delete-confirm"
>
<font
color=
"red"
><strong>
Are y
ou s
ure you want to DELETE selected
cat
e
gories?
</strong></font>
<br><br>
Deleted entries CANNOT be recovered, including any associated FAQ
s.
<font
color=
"red"
><strong>
Êtes-v
ou
s
s
ûr.e de vouloir SUPPRIMER les
cat
é
gories
sélectionnées
?
</strong></font>
<br><br>
Les entrées supprimées ne POURRONT PAS être récupérées, y compris les éventuelles FAQ associée
s.
</p>
<div>
Please
confirm
to
continue.
</div>
<div>
Veuillez
confirm
er pour
continue
r
.
</div>
<hr
style=
"margin-top:1em"
/>
<p
class=
"full-width"
>
<span
class=
"buttons"
style=
"float:left"
>
<input
type=
"button"
value=
"No,
C
an
cel
"
class=
"close"
>
<input
type=
"button"
value=
"No
n
, an
nuler
"
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
!"
class=
"confirm"
>
</span>
</p>
<div
class=
"clear"
></div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment