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
ce19a9b0
Commit
ce19a9b0
authored
May 31, 2024
by
Hamza Arfaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CAFI171 CAFI172
parent
02e6f819
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
cnsTrfTable.php
admin/cnsTrfTable.php
+9
-9
No files found.
admin/cnsTrfTable.php
View file @
ce19a9b0
...
@@ -77,8 +77,8 @@ if ($SUB != "") {
...
@@ -77,8 +77,8 @@ if ($SUB != "") {
$NOMC
=
$o
->
nom
.
" "
.
$o
->
prenom
;
$NOMC
=
$o
->
nom
.
" "
.
$o
->
prenom
;
$ENTITE
=
$o
->
libelle
;
$ENTITE
=
$o
->
libelle
;
$NOMCONSEILLER
=
str_replace
(
"'"
,
' '
,
$NOMC
);
$NOMCONSEILLER
=
str_replace
(
"'"
,
' '
,
$NOMC
);
$CONSLINK
=
(
$o
->
agence_affectation
&&
$ISADMIN
)
?
"<a target='_blank' href='
/
admin/cnsUpd.php?aid="
.
$o
->
id_agence
.
"&cid="
.
$o
->
id_conseiller
.
"'>"
.
$o
->
nom
.
" "
.
$o
->
prenom
.
"</a>"
:
$o
->
nom
.
" "
.
$o
->
prenom
;
$CONSLINK
=
(
$o
->
agence_affectation
&&
$ISADMIN
)
?
"<a target='_blank' href='
"
.
$SERVER
.
"
admin/cnsUpd.php?aid="
.
$o
->
id_agence
.
"&cid="
.
$o
->
id_conseiller
.
"'>"
.
$o
->
nom
.
" "
.
$o
->
prenom
.
"</a>"
:
$o
->
nom
.
" "
.
$o
->
prenom
;
$CONSMAT
=
(
$o
->
agence_affectation
&&
$ISADMIN
)
?
"<a target='_blank' href='
/
admin/cnsUpd.php?aid="
.
$o
->
id_agence
.
"&cid="
.
$o
->
id_conseiller
.
"'>"
.
$o
->
id_agent
.
"</a>"
:
$o
->
id_agent
;
$CONSMAT
=
(
$o
->
agence_affectation
&&
$ISADMIN
)
?
"<a target='_blank' href='
"
.
$SERVER
.
"
admin/cnsUpd.php?aid="
.
$o
->
id_agence
.
"&cid="
.
$o
->
id_conseiller
.
"'>"
.
$o
->
id_agent
.
"</a>"
:
$o
->
id_agent
;
$PROFIL
=
$o
->
profil
?
$o
->
profil
:
null
;
$PROFIL
=
$o
->
profil
?
$o
->
profil
:
null
;
//echo "<li>NOMC=".$NOMC." | NOMCONSEILLER=".$NOMCONSEILLER;
//echo "<li>NOMC=".$NOMC." | NOMCONSEILLER=".$NOMCONSEILLER;
// if ($TempFilter == "" && (($o->status == -1 && $o->agence_affectation == 0) || ($o->status == -1 && $o->agence_affectation))) {
// if ($TempFilter == "" && (($o->status == -1 && $o->agence_affectation == 0) || ($o->status == -1 && $o->agence_affectation))) {
...
@@ -288,7 +288,7 @@ if ($SUB != "") {
...
@@ -288,7 +288,7 @@ if ($SUB != "") {
function
getTransfertEntities
(
elem
)
{
function
getTransfertEntities
(
elem
)
{
$
(
"#entite-transfert-container"
).
remove
();
$
(
"#entite-transfert-container"
).
remove
();
$
.
post
(
'
/admin/
ajax/cnsTrfActions.php'
,
{
action
:
'entitesAgence'
,
aid
:
$
(
elem
).
val
()},
getTransfertEntitiesCB
,
'json'
);
$
.
post
(
'ajax/cnsTrfActions.php'
,
{
action
:
'entitesAgence'
,
aid
:
$
(
elem
).
val
()},
getTransfertEntitiesCB
,
'json'
);
}
}
function
getTransfertEntitiesCB
(
response
)
{
function
getTransfertEntitiesCB
(
response
)
{
...
@@ -297,7 +297,7 @@ if ($SUB != "") {
...
@@ -297,7 +297,7 @@ if ($SUB != "") {
function
transfert
(
mat
,
cid
,
cn
,
aid
,
an
,
fn
,
pr
)
{
function
transfert
(
mat
,
cid
,
cn
,
aid
,
an
,
fn
,
pr
)
{
//alert('TRANSFERT : '+cid+" | "+cn+" | "+aid+" | "+an);
//alert('TRANSFERT : '+cid+" | "+cn+" | "+aid+" | "+an);
$
.
post
(
'
/admin/
ajax/cnsTrfActions.php'
,
{
action
:
'transfertAgence'
,
mat
:
mat
,
cid
:
cid
,
cn
:
cn
,
aid
:
aid
,
an
:
an
,
fn
:
fn
,
pr
:
pr
},
transfertCB
,
'json'
);
$
.
post
(
'ajax/cnsTrfActions.php'
,
{
action
:
'transfertAgence'
,
mat
:
mat
,
cid
:
cid
,
cn
:
cn
,
aid
:
aid
,
an
:
an
,
fn
:
fn
,
pr
:
pr
},
transfertCB
,
'json'
);
}
}
function
transfertCB
(
response
)
{
function
transfertCB
(
response
)
{
//alert('TRANSFERT CB');
//alert('TRANSFERT CB');
...
@@ -310,13 +310,13 @@ if ($SUB != "") {
...
@@ -310,13 +310,13 @@ if ($SUB != "") {
function
transfertGo
(
mat
,
aid
,
cid
,
cn
,
newaid
,
fn
,
pr
)
{
function
transfertGo
(
mat
,
aid
,
cid
,
cn
,
newaid
,
fn
,
pr
)
{
//alert("TRANSFERTGO : cid="+cid+" | newaid="+newaid);
//alert("TRANSFERTGO : cid="+cid+" | newaid="+newaid);
var
eid
=
$
(
"#entite-transfert"
).
val
();
var
eid
=
$
(
"#entite-transfert"
).
val
();
$
.
post
(
'
/admin/
ajax/cnsTrfActions.php'
,
{
action
:
'transfert'
,
mat
:
mat
,
aid
:
aid
,
eid
:
eid
,
cid
:
cid
,
cn
:
cn
,
newaid
:
newaid
,
fn
:
fn
,
pr
:
pr
},
reload
,
'json'
);
$
.
post
(
'ajax/cnsTrfActions.php'
,
{
action
:
'transfert'
,
mat
:
mat
,
aid
:
aid
,
eid
:
eid
,
cid
:
cid
,
cn
:
cn
,
newaid
:
newaid
,
fn
:
fn
,
pr
:
pr
},
reload
,
'json'
);
closeClosestPopup
(
$
(
"#move-trf-btn"
));
closeClosestPopup
(
$
(
"#move-trf-btn"
));
}
}
//################################@
//################################@
function
ajout
(
mat
,
cid
,
cn
,
aid
,
an
,
fn
,
pr
)
{
function
ajout
(
mat
,
cid
,
cn
,
aid
,
an
,
fn
,
pr
)
{
//alert('TRANSFERT : '+cid+" | "+cn+" | "+aid+" | "+an);
//alert('TRANSFERT : '+cid+" | "+cn+" | "+aid+" | "+an);
$
.
post
(
'
/admin/
ajax/cnsTrfActions.php'
,
{
action
:
'ajoutAgence'
,
mat
:
mat
,
cid
:
cid
,
cn
:
cn
,
aid
:
aid
,
an
:
an
,
fn
:
fn
,
pr
:
pr
,
pa
:
<?php
echo
(
$forPile
?
"$('#IDAGENCE').val()"
:
0
);
?>
},
ajoutCB
,
'json'
);
$
.
post
(
'ajax/cnsTrfActions.php'
,
{
action
:
'ajoutAgence'
,
mat
:
mat
,
cid
:
cid
,
cn
:
cn
,
aid
:
aid
,
an
:
an
,
fn
:
fn
,
pr
:
pr
,
pa
:
<?php
echo
(
$forPile
?
"$('#IDAGENCE').val()"
:
0
);
?>
},
ajoutCB
,
'json'
);
}
}
function
ajoutCB
(
response
)
{
function
ajoutCB
(
response
)
{
//alert("AJOUT CB");
//alert("AJOUT CB");
...
@@ -329,13 +329,13 @@ if ($SUB != "") {
...
@@ -329,13 +329,13 @@ if ($SUB != "") {
function
ajoutGo
(
mat
,
cid
,
cn
,
newaid
,
fn
,
pr
)
{
function
ajoutGo
(
mat
,
cid
,
cn
,
newaid
,
fn
,
pr
)
{
var
eid
=
$
(
"#entite-transfert"
).
val
();
var
eid
=
$
(
"#entite-transfert"
).
val
();
//console.log(newaid,$(".add-trf-agencies").val());//var newid = $("#newaid").val();
//console.log(newaid,$(".add-trf-agencies").val());//var newid = $("#newaid").val();
$
.
post
(
'
/admin/
ajax/cnsTrfActions.php'
,
{
action
:
'ajout'
,
mat
:
mat
,
cid
:
cid
,
cn
:
cn
,
newaid
:
newaid
,
eid
:
eid
,
fn
:
fn
,
pr
:
pr
},
reload
,
'json'
);
$
.
post
(
'ajax/cnsTrfActions.php'
,
{
action
:
'ajout'
,
mat
:
mat
,
cid
:
cid
,
cn
:
cn
,
newaid
:
newaid
,
eid
:
eid
,
fn
:
fn
,
pr
:
pr
},
reload
,
'json'
);
closeClosestPopup
(
$
(
"#add-trf-btn"
));
closeClosestPopup
(
$
(
"#add-trf-btn"
));
}
}
//################################@
//################################@
function
suppression
(
mat
,
cid
,
cn
,
aid
,
an
)
{
function
suppression
(
mat
,
cid
,
cn
,
aid
,
an
)
{
//alert('TRANSFERT : '+cid+" | "+cn+" | "+aid+" | "+an);
//alert('TRANSFERT : '+cid+" | "+cn+" | "+aid+" | "+an);
$
.
post
(
'
/admin/
ajax/cnsTrfActions.php'
,
{
action
:
'suppConfirmation'
,
mat
:
mat
,
cid
:
cid
,
cn
:
cn
,
aid
:
aid
,
an
:
an
},
suppressionCB
,
'json'
);
$
.
post
(
'ajax/cnsTrfActions.php'
,
{
action
:
'suppConfirmation'
,
mat
:
mat
,
cid
:
cid
,
cn
:
cn
,
aid
:
aid
,
an
:
an
},
suppressionCB
,
'json'
);
}
}
function
suppressionCB
(
response
)
{
function
suppressionCB
(
response
)
{
if
(
response
.
online
)
{
if
(
response
.
online
)
{
...
@@ -351,7 +351,7 @@ if ($SUB != "") {
...
@@ -351,7 +351,7 @@ if ($SUB != "") {
}
}
function
suppressionGo
(
mat
,
aid
,
cid
,
cn
)
{
function
suppressionGo
(
mat
,
aid
,
cid
,
cn
)
{
//alert("AJOUTGO : cid="+cid+" | newaid="+newaid);
//alert("AJOUTGO : cid="+cid+" | newaid="+newaid);
$
.
post
(
'
/admin/
ajax/cnsTrfActions.php'
,
{
action
:
'suppConfirmee'
,
mat
:
mat
,
aid
:
aid
,
cid
:
cid
,
cn
:
cn
},
reload
,
'json'
);
$
.
post
(
'ajax/cnsTrfActions.php'
,
{
action
:
'suppConfirmee'
,
mat
:
mat
,
aid
:
aid
,
cid
:
cid
,
cn
:
cn
},
reload
,
'json'
);
closeClosestPopup
(
$
(
"#delete-trf-btn"
));
closeClosestPopup
(
$
(
"#delete-trf-btn"
));
}
}
//################################@
//################################@
...
...
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