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
b88531b3
Commit
b88531b3
authored
Sep 20, 2014
by
peupleLà
Browse files
Trad : include/staff/category.inc.php
parent
fd134973
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/staff/category.inc.php
View file @
b88531b3
<?php
if
(
!
defined
(
'OSTSCPINC'
)
||
!
$thisstaff
||
!
$thisstaff
->
canManageFAQ
())
die
(
'Acc
ess Denied
'
);
if
(
!
defined
(
'OSTSCPINC'
)
||
!
$thisstaff
||
!
$thisstaff
->
canManageFAQ
())
die
(
'Acc
ès refusé
'
);
$info
=
array
();
$qstr
=
''
;
if
(
$category
&&
$_REQUEST
[
'a'
]
!=
'add'
){
$title
=
'
Update C
at
e
gor
y
: '
.
$category
->
getName
();
$action
=
'
update
'
;
$submit_text
=
'Save
Change
s'
;
$title
=
'
Mettre à jour la c
at
é
gor
ie&nbps;
: '
.
$category
->
getName
();
$action
=
'
Mettre à jour
'
;
$submit_text
=
'Sa
u
ve
garder les modification
s'
;
$info
=
$category
->
getHashtable
();
$info
[
'id'
]
=
$category
->
getId
();
$info
[
'notes'
]
=
Format
::
viewableImages
(
$category
->
getNotes
());
$qstr
.
=
'&id='
.
$category
->
getId
();
}
else
{
$title
=
'A
dd New C
at
e
gor
y
'
;
$action
=
'
create
'
;
$submit_text
=
'A
dd
'
;
$title
=
'A
jouter une c
at
é
gor
ie
'
;
$action
=
'
Créer
'
;
$submit_text
=
'A
jouter
'
;
$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
Cat
e
gor
y
</h2>
<h2>
Cat
é
gor
ie 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
<i
class=
"help-tip icon-question-sign"
href=
"#category_information"
></i></em>
<em>
Informations sur la catégorie
<i
class=
"help-tip icon-question-sign"
href=
"#category_information"
></i></em>
</th>
</tr>
<tr>
<td
width=
"180"
class=
"required"
>
C
at
e
gor
y Type:
</td>
<td
width=
"180"
class=
"required"
>
Type de c
at
é
gor
ie
</td>
<td>
<input
type=
"radio"
name=
"ispublic"
value=
"1"
<?php
echo
$info
[
'ispublic'
]
?
'checked="checked"'
:
''
;
?>
><b>
Publi
c
</b>
(publi
sh
)
<input
type=
"radio"
name=
"ispublic"
value=
"1"
<?php
echo
$info
[
'ispublic'
]
?
'checked="checked"'
:
''
;
?>
><b>
Publi
que
</b>
(publi
ée
)
<input
type=
"radio"
name=
"ispublic"
value=
"0"
<?php
echo
!
$info
[
'ispublic'
]
?
'checked="checked"'
:
''
;
?>
>
Priv
at
e (intern
al
)
<input
type=
"radio"
name=
"ispublic"
value=
"0"
<?php
echo
!
$info
[
'ispublic'
]
?
'checked="checked"'
:
''
;
?>
>
Priv
é
e (intern
e
)
<span
class=
"error"
>
*
<?php
echo
$errors
[
'ispublic'
];
?>
</span>
</td>
</tr>
<tr>
<td
colspan=
2
>
<div
style=
"padding-top:3px;"
><b>
Category Name
</b>
:
<span
class=
"faded"
>
Short
descripti
ve name
.
</span></div>
<div
style=
"padding-top:3px;"
><b>
Category Name
</b>
:
<span
class=
"faded"
>
Nom
descripti
f court
.
</span></div>
<input
type=
"text"
size=
"70"
name=
"name"
value=
"
<?php
echo
$info
[
'name'
];
?>
"
>
<span
class=
"error"
>
*
<?php
echo
$errors
[
'name'
];
?>
</span>
<br>
<div
style=
"padding-top:5px;"
>
<b>
Category Description
</b>
:
<span
class=
"faded"
>
Summary of the
cat
e
gor
y.
</span>
<b>
Category Description
</b>
:
<span
class=
"faded"
>
Résumé de la
cat
é
gor
ie
</span>
<font
class=
"error"
>
*
<?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 Not
es
</em>
<em>
Notes intern
es
</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=
"R
e
se
t
"
>
<input
type=
"button"
name=
"cancel"
value=
"
Cancel
"
onclick=
'window.location.href="categories.php"'
>
<input
type=
"reset"
name=
"reset"
value=
"R
éinitiali
se
r
"
>
<input
type=
"button"
name=
"cancel"
value=
"
Annuler
"
onclick=
'window.location.href="categories.php"'
>
</p>
</form>
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