Browse Source

Fixe jsonTarget

stany.ferer 1 year ago
parent
commit
6b8bb8d147

+ 3 - 3
core/views/pages/cms.compte-historique-csv.php

@@ -1,7 +1,7 @@
 <?php
-    $json = "/json.php?file=banque-csv";
+    $jsonTarget = "/json.php?file=banque-csv";
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     }
 ?>
 <header class="d-flex flex-column flex-md-row align-items-md-center p-3 bg-light ">
@@ -31,7 +31,7 @@
         data-flat="true"
         data-sort-name="cree"
         data-sort-order="desc"
-        data-url="<?php echo $json ?>">
+        data-url="<?php echo $jsonTarget ?>">
         <thead>
             <tr>
                 <th data-sortable="true" data-field="creer" data-filter-control="input" data-width="160">Charger le</th>

+ 3 - 3
core/views/pages/cms.compte.php

@@ -1,7 +1,7 @@
 <?php
-    $json = "/json.php?file=banque-lignes-".core::getGet("id");
+    $jsonTarget = "/json.php?file=banque-lignes-".core::getGet("id");
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     }
 ?>
 <header class="d-flex flex-column flex-md-row align-items-md-center p-3 bg-light ">
@@ -40,7 +40,7 @@
         data-flat="true"
         data-sort-name="num"
         data-sort-order="desc"
-        data-url="<?php echo $json ?>">
+        data-url="<?php echo $jsonTarget ?>">
         <thead>
             <tr>
                 <th data-sortable="true" data-field="num" data-width="20">#</th>

+ 3 - 3
core/views/pages/cms.evenement-inscrits.php

@@ -1,7 +1,7 @@
 <?php
-    $json = "/json.php?jsonData=event-inscrits&id=".core::getGet("id");
+    $jsonTarget = "/json.php?jsonData=event-inscrits&id=".core::getGet("id");
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
 ?>
 <div style="float:right; margin-top: -60px;">
@@ -24,7 +24,7 @@
     data-pagination="true"
     data-filter-control="true"
     data-flat="true"
-    data-url="<?php echo $json ?>">
+    data-url="<?php echo $jsonTarget ?>">
     <thead>
         <tr>
             <th data-sortable="true" data-field="idLocal" data-filter-control="input" data-width="100">Matricule</th>

+ 3 - 3
core/views/pages/cms.evenement-salaries.php

@@ -3,9 +3,9 @@
         $event = event::getFiche(core::getGet("id"));
     }
 
-    $json = "/json.php?jsonData=event-salaries&id=".core::getGet("id");
+    $jsonTarget = "/json.php?jsonData=event-salaries&id=".core::getGet("id");
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
 ?>
 
@@ -20,7 +20,7 @@
     data-pagination="true"
     data-filter-control="true"
     data-flat="true"
-    data-url="<?php echo $json ?>">
+    data-url="<?php echo $jsonTarget ?>">
     <thead>
         <tr>
             <th data-sortable="true" data-field="idLocal" data-filter-control="input" data-width="100">Matricule</th>

+ 3 - 3
core/views/pages/cms.evenements.php

@@ -1,9 +1,9 @@
 <?php
     json::create("events");
 
-    $json = "/json.php?file=events";
+    $jsonTarget = "/json.php?file=events";
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
 ?>
 
@@ -39,7 +39,7 @@
         data-flat="true"
         data-sort-name="cree"
         data-sort-order="desc"
-        data-url="<?php echo $json ?>">
+        data-url="<?php echo $jsonTarget ?>">
         <thead>
             <tr>
                 <th data-sortable="true" data-field="id" data-filter-control="input" data-width="15">#</th>

+ 3 - 3
core/views/pages/cms.lottery-inscrits.php

@@ -2,9 +2,9 @@
     $lottery = lottery::getFiche(core::getGet("id"));
     $dataLottery = lottery::getInscriptionData(core::getGet("id"));
 
-    $json = "/json.php?jsonData=lottery-inscrits&id=" . core::getGet("id");
+    $jsonTarget = "/json.php?jsonData=lottery-inscrits&id=" . core::getGet("id");
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
 ?>
 <div style="float:right; margin-top: -60px;">
@@ -60,7 +60,7 @@
     </div>
     <div class="card-body">
 
-        <table id="table" class="table-striped table-hover table-sm" data-page-size="25" data-toggle="table" data-show-columns="true" data-search="true" data-buttons-align="left" data-pagination="true" data-filter-control="true" data-flat="true" data-url="<?php echo $json ?>">
+        <table id="table" class="table-striped table-hover table-sm" data-page-size="25" data-toggle="table" data-show-columns="true" data-search="true" data-buttons-align="left" data-pagination="true" data-filter-control="true" data-flat="true" data-url="<?php echo $jsonTarget ?>">
             <thead>
                 <tr>
                     <th data-sortable="true" data-field="id_presta" data-width="50" data-formatter="selectPrestation">Prestation</th>

+ 3 - 3
core/views/pages/cms.lottery-winners.php

@@ -2,9 +2,9 @@
     $sortLottery = lottery::getCloture(core::getGet("id"));
 
 
-    $json = "/json.php?jsonData=lottery-winners&id=" . core::getGet("id");
+    $jsonTarget = "/json.php?jsonData=lottery-winners&id=" . core::getGet("id");
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
 
 if($sortLottery["sortDate"] == NULL) {
@@ -76,7 +76,7 @@ if($sortLottery["sortDate"] == NULL) {
             data-pagination="true"
             data-filter-control="true"
             data-flat="true"
-            data-url="<?php echo $json ?>">
+            data-url="<?php echo $jsonTarget ?>">
             <thead>
                 <tr>
                     <th data-sortable="true" data-field="id_dossier" data-filter-control="input" data-width="50" data-formatter="selectDossier">Id Dossier</th>

+ 3 - 3
core/views/pages/cms.lotterys.php

@@ -1,9 +1,9 @@
 <?php
     json::create("lotterys");
 
-    $json = "/json.php?file=lotterys";
+    $jsonTarget = "/json.php?file=lotterys";
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
 ?>
 
@@ -39,7 +39,7 @@
         data-flat="true"
         data-sort-name="cree"
         data-sort-order="desc"
-        data-url="<?php echo $json ?>">
+        data-url="<?php echo $jsonTarget ?>">
         <thead>
             <tr>
                 <th data-sortable="true" data-field="id" data-filter-control="input" data-width="15">#</th>

+ 3 - 3
core/views/pages/cms.parametre-teams.php

@@ -1,7 +1,7 @@
 <?php
-    $json = "/json.php?jsonData=parametre-access";
+    $jsonTarget = "/json.php?jsonData=parametre-access";
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
 ?>
 <header class="d-flex flex-column flex-md-row align-items-md-center p-3 bg-light ">
@@ -24,7 +24,7 @@ echo core::filAriane(array(
             class="table-striped table-hover table-sm" 
             data-toggle="table" 
             data-flat="true" 
-            data-url="<?php echo $json ?>">
+            data-url="<?php echo $jsonTarget ?>">
         <thead>
             <tr>
                 <th data-sortable="true" data-field="access">Accès</th>

+ 3 - 3
core/views/pages/cms.parametre-users.php

@@ -1,7 +1,7 @@
 <?php
-    $json = "/json.php?file=users";
+    $jsonTarget = "/json.php?file=users";
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
 ?>
 <header class="d-flex flex-column flex-md-row align-items-md-center p-3 bg-light ">
@@ -36,7 +36,7 @@ echo core::filAriane(array(
             data-toggle="table"
             data-buttons-align="left"
             data-flat="true"
-            data-url="<?php echo $json ?>">
+            data-url="<?php echo $jsonTarget ?>">
             <thead>
                 <tr>
                     <th data-sortable="true" data-field="id" data-filter-control="input">#</th>

+ 3 - 3
core/views/pages/cms.parametres-restore.php

@@ -1,7 +1,7 @@
 <?php
-    $json = "/json.php?jsonData=parametres-restore";
+    $jsonTarget = "/json.php?jsonData=parametres-restore";
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
 ?>
 <div style="margin-top:20px;">
@@ -18,7 +18,7 @@
         data-toggle="table" 
         data-sort-name="date" 
         data-sort-order="desc" 
-        data-url="<?php echo $json ?>">
+        data-url="<?php echo $jsonTarget ?>">
         <thead>
             <tr>
                 <th data-formatter="downloadFile" data-field="file" data-filter-control="input" data-align="left">Nom</th>

+ 6 - 6
core/views/pages/cms.proweb-export-csv.php

@@ -6,11 +6,11 @@ if ($lastExcelForSFTP = salaries::lastExcelForSFTP()) {
 }
 json::create("host");
 
-    $json1 = "/json.php?jsonData=proweb-transfert-sftp";
-    $json2 = "/json.php?jsonData=proweb-transfert-local";
+    $jsonTarget1 = "/json.php?jsonData=proweb-transfert-sftp";
+    $jsonTarget2 = "/json.php?jsonData=proweb-transfert-local";
     if(core::isDebug()){
-        debug::log(debug::getBadge($json1, "OUVRIR LE JSON : ".$json1), "JSON chargé en arrière plan");
-        debug::log(debug::getBadge($json2, "OUVRIR LE JSON : ".$json2), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget1, "OUVRIR LE JSON : ".$jsonTarget1), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget2, "OUVRIR LE JSON : ".$jsonTarget2), "JSON chargé en arrière plan");
     } 
 ?>
 
@@ -68,7 +68,7 @@ echo core::filAriane(array(
             <div class="col m-3">
                 <label style="color: gray;">Fichiers présents sur le serveur</label>
 
-                <table id="table" class="table-striped table-hover table-sm" data-toggle="table" data-sort-name="date" data-sort-order="desc" data-url="<?php echo $json1 ?>">
+                <table id="table" class="table-striped table-hover table-sm" data-toggle="table" data-sort-name="date" data-sort-order="desc" data-url="<?php echo $jsonTarget1 ?>">
                     <thead>
                         <tr>
                             <th data-formatter="downloadFileRemote" data-sortable="true" data-field="file" data-filter-control="input" data-align="left">Nom</th>
@@ -120,7 +120,7 @@ echo core::filAriane(array(
             <div class="col m-3">
                 <label style="color: gray;">Fichiers présents dans le dossier du CSE</label>
 
-                <table id="table" class="table-striped table-hover table-sm" data-toggle="table" data-sort-name="date" data-sort-order="desc" data-url="<?php echo $json2 ?>">
+                <table id="table" class="table-striped table-hover table-sm" data-toggle="table" data-sort-name="date" data-sort-order="desc" data-url="<?php echo $jsonTarget2 ?>">
                     <thead>
                         <tr>
                             <th data-formatter="downloadFileLocal" data-sortable="true" data-field="file" data-filter-control="input" data-align="left">Nom</th>

+ 3 - 3
core/views/pages/cms.proweb-historique-excel.php

@@ -1,7 +1,7 @@
 <?php
-    $json = "/json.php?file=excel-proweb";
+    $jsonTarget = "/json.php?file=excel-proweb";
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
 ?>
 <header class="d-flex flex-column flex-md-row align-items-md-center p-3 bg-light ">
@@ -35,7 +35,7 @@
         data-flat="true"
         data-sort-name="cree"
         data-sort-order="desc"
-        data-url="<?php echo $json ?>">
+        data-url="<?php echo $jsonTarget ?>">
         <thead>
             <tr>
                 <th data-sortable="true" data-field="cree" data-filter-control="input" data-width="160">Charger le</th>

+ 3 - 3
core/views/pages/cms.proweb-salaries.php

@@ -2,9 +2,9 @@
 $dateData = get::jsonDateDataExcelProweb();
 $date = ($dateData != NULL) ? " (au " . core::convertDate($dateData, FALSE) . ")" : "";
 
-    $json = "/json.php?file=salaries-proweb";
+    $jsonTarget = "/json.php?file=salaries-proweb";
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
 ?>
 <header class="d-flex flex-column flex-md-row align-items-md-center p-3 bg-light ">
@@ -42,7 +42,7 @@ echo core::filAriane(array(
             <option value="errorAbsent">Filtre : Problème car le salarié n'est plus présent et aucune date de sortie sur Proweb</option>
         </select>
     </div>
-    <table id="ProWebSalary" class="table-striped table-hover table-sm" data-page-size="25" data-toggle="table" data-buttons-align="left" data-pagination="true" data-filter-control="true" data-flat="true" data-show-columns-toggle-all="true" data-url="<?php echo $json ?>">
+    <table id="ProWebSalary" class="table-striped table-hover table-sm" data-page-size="25" data-toggle="table" data-buttons-align="left" data-pagination="true" data-filter-control="true" data-flat="true" data-show-columns-toggle-all="true" data-url="<?php echo $jsonTarget ?>">
         <thead>
             <tr>
                 <th data-sortable="true" data-field="idProweb" data-filter-control="input" data-formatter="selectFicheProweb" data-width="35">#</th>

+ 3 - 3
core/views/pages/cms.rh-historique-excel.php

@@ -2,9 +2,9 @@
     $inProgress = salaries::excelGetInProgress();
     json::create("excel");
 
-    $json = "/json.php?file=excel";
+    $jsonTarget = "/json.php?file=excel";
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
 ?>
 
@@ -38,7 +38,7 @@
         data-flat="true"
         data-sort-name="cree"
         data-sort-order="desc"
-        data-url="<?php echo $json ?>">
+        data-url="<?php echo $jsonTarget ?>">
         <thead>
             <tr>
                 <th data-sortable="true" data-field="cree" data-filter-control="input" data-width="160">Charger le</th>

+ 3 - 3
core/views/pages/cms.rh-import-to-temp.php

@@ -33,9 +33,9 @@ if(empty($json["excel"])){
 }
 else {
 
-    $json = "/json.php?file=tmp_salaries";
+    $jsonTarget = "/json.php?file=tmp_salaries";
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
 ?>
 
@@ -74,7 +74,7 @@ else {
         data-search="true"
         data-sort-name="cree"
         data-sort-order="desc"
-        data-url="<?php echo $json ?>">
+        data-url="<?php echo $jsonTarget ?>">
         <thead>
             <tr>
                 <th data-sortable="true" data-field="action" data-filter-control="select">Action</th>

+ 3 - 3
core/views/pages/cms.rh-liste-salaries.php

@@ -2,9 +2,9 @@
     $dateData = get::jsonDateDataExcel();
     $date = ($dateData != NULL) ? " (au " . core::convertDate($dateData, FALSE) . ")" : "";
 
-    $json = "/json.php?file=salaries";
+    $jsonTarget = "/json.php?file=salaries";
     if(core::isDebug()){
-        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
+        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
 ?>
 <header class="d-flex flex-column flex-md-row align-items-md-center p-3 bg-light ">
@@ -37,7 +37,7 @@
         data-pagination="true"
         data-filter-control="true"
         data-flat="true"
-        data-url="<?php echo $json ?>">
+        data-url="<?php echo $jsonTarget ?>">
         <thead>
             <tr>
                 <th data-sortable="true" data-field="idLocal" data-filter-control="input">Id Capgemini</th>