Horarios hash actualizado
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once "/usr/share/nginx/html/paad/vendor/autoload.php";
|
print_r ($_SERVER);
|
||||||
|
require_once "/saa_dsk/www/vendor/autoload.php";
|
||||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
||||||
$dotenv->load();
|
$dotenv->load();
|
||||||
use \SeinopSys\PostgresDb;
|
use \SeinopSys\PostgresDb;
|
||||||
|
|||||||
@@ -197,9 +197,9 @@ if($user->periodo_id!= ""){
|
|||||||
<button type="button" class="btn btn-outline-danger" onclick="window.location.href = window.location.href"><span class="ing-borrar ing-fw"></span> Limpiar</button>
|
<button type="button" class="btn btn-outline-danger" onclick="window.location.href = window.location.href"><span class="ing-borrar ing-fw"></span> Limpiar</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="text-right">
|
<!--<p class="text-right">
|
||||||
<button class="btn btn-secondary" id="exportar"><span class="ing-descargar"></span>Descargar xls</button>
|
<button class="btn btn-secondary" id="exportar"><span class="ing-descargar"></span>Descargar xls</button>
|
||||||
</p>
|
</p>-->
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -283,7 +283,6 @@ try{
|
|||||||
$hashes_no_en_sgu = array_udiff($hashes_bd, $hashes_sgu, function($a, $b){
|
$hashes_no_en_sgu = array_udiff($hashes_bd, $hashes_sgu, function($a, $b){
|
||||||
return strcasecmp(quitaAcentos($a), quitaAcentos($b));
|
return strcasecmp(quitaAcentos($a), quitaAcentos($b));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
if($debug) echo "hashes_no_en_sgu ".count($hashes_no_en_sgu)."<br>";
|
if($debug) echo "hashes_no_en_sgu ".count($hashes_no_en_sgu)."<br>";
|
||||||
|
|
||||||
@@ -319,12 +318,10 @@ try{
|
|||||||
|
|
||||||
// Encontrar los "hash" que están en $sgu pero no están en $bd
|
// Encontrar los "hash" que están en $sgu pero no están en $bd
|
||||||
//$hashes_no_en_bd = array_udiff($hashes_sgu, $hashes_bd, 'strcasecmp');
|
//$hashes_no_en_bd = array_udiff($hashes_sgu, $hashes_bd, 'strcasecmp');
|
||||||
//comparar $hashes_sgu y $hashes_bd sin importar las maypusculas, minúsculas incluyendo acentos y ñ
|
|
||||||
$hashes_no_en_bd = array_udiff($hashes_sgu, $hashes_bd, function($a, $b){
|
$hashes_no_en_bd = array_udiff($hashes_sgu, $hashes_bd, function($a, $b){
|
||||||
return strcasecmp(quitaAcentos($a), quitaAcentos($b));
|
return strcasecmp(quitaAcentos($a), quitaAcentos($b));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
//echo "hashes_no_en_bd ".count($hashes_no_en_bd)."<br>";
|
//echo "hashes_no_en_bd ".count($hashes_no_en_bd)."<br>";
|
||||||
|
|
||||||
|
|
||||||
@@ -445,4 +442,4 @@ try{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -815,4 +815,4 @@
|
|||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user