Commit ce19a9b0 authored by Hamza Arfaoui's avatar Hamza Arfaoui

CAFI171 CAFI172

parent 02e6f819
......@@ -77,8 +77,8 @@ if ($SUB != "") {
$NOMC = $o->nom . " " . $o->prenom;
$ENTITE = $o->libelle;
$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;
$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;
$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='".$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;
//echo "<li>NOMC=".$NOMC." | NOMCONSEILLER=".$NOMCONSEILLER;
// if ($TempFilter == "" && (($o->status == -1 && $o->agence_affectation == 0) || ($o->status == -1 && $o->agence_affectation))) {
......@@ -288,7 +288,7 @@ if ($SUB != "") {
function getTransfertEntities(elem) {
$("#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) {
......@@ -297,7 +297,7 @@ if ($SUB != "") {
function transfert(mat, cid, cn, aid, an, fn , pr) {
//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) {
//alert('TRANSFERT CB');
......@@ -310,13 +310,13 @@ if ($SUB != "") {
function transfertGo(mat, aid, cid, cn, newaid, fn , pr) {
//alert("TRANSFERTGO : cid="+cid+" | newaid="+newaid);
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"));
}
//################################@
function ajout(mat, cid, cn, aid, an, fn, pr) {
//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) {
//alert("AJOUT CB");
......@@ -329,13 +329,13 @@ if ($SUB != "") {
function ajoutGo(mat, cid, cn, newaid, fn, pr) {
var eid = $("#entite-transfert").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"));
}
//################################@
function suppression(mat, 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) {
if (response.online) {
......@@ -351,7 +351,7 @@ if ($SUB != "") {
}
function suppressionGo(mat, aid, cid, cn) {
//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"));
}
//################################@
......
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