Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
K
kiosqueip
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza Arfaoui
kiosqueip
Commits
27b3e334
Commit
27b3e334
authored
Jun 04, 2024
by
Hamza Arfaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
profile DA
parent
4e4f6b91
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
admNew.php
admin/admNew.php
+1
-1
admUpd.php
admin/admUpd.php
+1
-1
index.php
admin/permissions/index.php
+1
-1
No files found.
admin/admNew.php
View file @
27b3e334
...
...
@@ -28,7 +28,7 @@ while($o = $r->fetchObject()) {
}
$q
=
"SELECT profil, nom FROM ca_profils ORDER BY id_profil ASC"
;
$q
=
"SELECT profil, nom FROM ca_profils
WHERE profil IN (1, 100)
ORDER BY id_profil ASC"
;
$result
=
excuteQuery
(
$q
);
$r
=
$result
[
'stmt'
];
while
(
$o
=
$r
->
fetchObject
())
{
...
...
admin/admUpd.php
View file @
27b3e334
...
...
@@ -37,7 +37,7 @@ if($r->rowCount()== 0) {
}
$q1
=
"SELECT profil, nom FROM ca_profils ORDER BY id_profil ASC"
;
$q1
=
"SELECT profil, nom FROM ca_profils
WHERE profil IN (1, 100)
ORDER BY id_profil ASC"
;
$r1
=
$GLOBALS
[
'cnx'
]
->
query
(
$q1
);
while
(
$o1
=
$r1
->
fetchObject
())
{
if
(
$o1
->
profil
==
90
||
$o1
->
profil
==
15
||
$o1
->
nom
==
"Stats BO"
||
$o1
->
nom
==
"Agence"
||
$o1
->
nom
==
"Stats"
||
$o1
->
profil
==
2
||
$o1
->
nom
==
"DA"
||
$o1
->
nom
==
"Caisse"
||
(
$o1
->
nom
==
"Admin"
&&
$_SESSION
[
"profil"
]
&&
$_SESSION
[
"profil"
]
==
100
)){
...
...
admin/permissions/index.php
View file @
27b3e334
...
...
@@ -7,7 +7,7 @@ if(!isset($_SESSION['auth'])) {
require_once
(
"../../inc/confNetisse.php"
);
$profile_header
=
""
;
$phq
=
"SELECT * from ca_profils"
;
$phq
=
"SELECT * from ca_profils
WHERE profil IN (1, 100)
"
;
$phr
=
$GLOBALS
[
'cnx'
]
->
query
(
$phq
);
$nb_profiles
=
$phr
->
rowCount
();
$profiles
=
array
();
...
...
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