Commit ce19a9b0 authored by Hamza Arfaoui's avatar Hamza Arfaoui

CAFI171 CAFI172

parent 02e6f819
...@@ -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"));
} }
//################################@ //################################@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment