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
37c769b1
Commit
37c769b1
authored
Sep 20, 2014
by
peupleLà
Browse files
Trad : include/staff/departments.inc.php
parent
9c504d6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/staff/departments.inc.php
View file @
37c769b1
<?php
if
(
!
defined
(
'OSTADMININC'
)
||
!
$thisstaff
->
isAdmin
())
die
(
'Acc
ess Denied
'
);
if
(
!
defined
(
'OSTADMININC'
)
||
!
$thisstaff
->
isAdmin
())
die
(
'Acc
ès refusé
'
);
$qstr
=
''
;
$sql
=
'SELECT dept.dept_id,dept_name,email.email_id,email.email,email.name as email_name,ispublic,count(staff.staff_id) as users '
.
...
...
@@ -37,14 +37,14 @@ $res=db_query($query);
if
(
$res
&&
(
$num
=
db_num_rows
(
$res
)))
$showing
=
"Showing 1-
$num
of
$num
departments"
;
else
$showing
=
'
No departments found
!'
;
$showing
=
'
Aucune section n’a été trouvée
!'
;
?>
<div
style=
"width:700px;padding-top:5px; float:left;"
>
<h2>
Department
s
</h2>
<h2>
Section
s
</h2>
</div>
<div
style=
"float:right;text-align:right;padding-top:5px;padding-right:5px;"
>
<b><a
href=
"departments.php?a=add"
class=
"Icon newDepartment"
>
A
dd New Department
</a></b></div>
<b><a
href=
"departments.php?a=add"
class=
"Icon newDepartment"
>
A
jouter une section
</a></b></div>
<div
class=
"clear"
></div>
<form
action=
"departments.php"
method=
"POST"
name=
"depts"
>
<?php
csrf_token
();
?>
...
...
@@ -55,11 +55,11 @@ else
<thead>
<tr>
<th
width=
"7px"
>
</th>
<th
width=
"180"
><a
<?php
echo
$name_sort
;
?>
href=
"departments.php?
<?php
echo
$qstr
;
?>
&sort=name"
>
N
ame
</a></th>
<th
width=
"180"
><a
<?php
echo
$name_sort
;
?>
href=
"departments.php?
<?php
echo
$qstr
;
?>
&sort=name"
>
N
om
</a></th>
<th
width=
"80"
><a
<?php
echo
$type_sort
;
?>
href=
"departments.php?
<?php
echo
$qstr
;
?>
&sort=type"
>
Type
</a></th>
<th
width=
"70"
><a
<?php
echo
$users_sort
;
?>
href=
"departments.php?
<?php
echo
$qstr
;
?>
&sort=users"
>
U
se
rs
</a></th>
<th
width=
"300"
><a
<?php
echo
$email_sort
;
?>
href=
"departments.php?
<?php
echo
$qstr
;
?>
&sort=email"
>
Email Address
</a></th>
<th
width=
"200"
><a
<?php
echo
$manager_sort
;
?>
href=
"departments.php?
<?php
echo
$qstr
;
?>
&sort=manager"
>
Dept. Manager
<
/a></th>
<th
width=
"70"
><a
<?php
echo
$users_sort
;
?>
href=
"departments.php?
<?php
echo
$qstr
;
?>
&sort=users"
>
U
tilisateu
rs
</a></th>
<th
width=
"300"
><a
<?php
echo
$email_sort
;
?>
href=
"departments.php?
<?php
echo
$qstr
;
?>
&sort=email"
>
Adresse courriel
</a></th>
<th
width=
"200"
><a
<?php
echo
$manager_sort
;
?>
href=
"departments.php?
<?php
echo
$qstr
;
?>
&sort=manager"
>
Responsable de la section
/a>
</th>
</tr>
</thead>
<tbody>
...
...
@@ -90,7 +90,7 @@ else
<?php
echo
$sel
?
'checked="checked"'
:
''
;
?>
<?php
echo
$default
?
'disabled="disabled"'
:
''
;
?>
>
</td>
<td><a
href=
"departments.php?id=
<?php
echo
$row
[
'dept_id'
];
?>
"
>
<?php
echo
$row
[
'dept_name'
];
?>
</a>
<?php
echo
$default
;
?>
</td>
<td>
<?php
echo
$row
[
'ispublic'
]
?
'Public'
:
'<b>Priv
ate
</b>'
;
?>
</td>
<td>
<?php
echo
$row
[
'ispublic'
]
?
'Public'
:
'<b>Priv
é
</b>'
;
?>
</td>
<td>
<b>
<?php
if
(
$row
[
'users'
]
>
0
)
{
?>
...
...
@@ -111,11 +111,11 @@ else
<td
colspan=
"6"
>
<?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 department found
'
;
echo
'
Aucune section n’a été trouvée
'
;
}
?>
</td>
</tr>
...
...
@@ -125,9 +125,9 @@ else
if
(
$res
&&
$num
)
:
//Show options..
?>
<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 Private
"
>
<input
class=
"button"
type=
"submit"
name=
"delete"
value=
"
Delete Dept
(s)"
>
<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 privé
"
>
<input
class=
"button"
type=
"submit"
name=
"delete"
value=
"
Supprimer la(les) section
(s)"
>
</p>
<?php
endif
;
...
...
@@ -135,27 +135,27 @@ 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 departments
<b>
public
</b>
?
Êtes-v
ou
s
s
ûr.e de vouloir passer les sections 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 departments
<b>
priv
ate
</b>
?
Êtes-v
ou
s
s
ûr.e de vouloir passer les sections sélectionnées en statut
<b>
priv
é
</b>
?
</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 departments
?
</strong></font>
<br><br>
Deleted departments CANNOT be recovered
.
<font
color=
"red"
><strong>
Êtes-v
ou
s
s
ûr.e de vouloir SUPRRIMER les sections sélectionnées
?
</strong></font>
<br><br>
Les sections supprimées ne POURRONT PAS être récupérées
.
</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