Horarios hash actualizado
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?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->load();
|
||||
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>
|
||||
</div>
|
||||
|
||||
<p class="text-right">
|
||||
<!--<p class="text-right">
|
||||
<button class="btn btn-secondary" id="exportar"><span class="ing-descargar"></span>Descargar xls</button>
|
||||
</p>
|
||||
</p>-->
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
@@ -284,7 +284,6 @@ try{
|
||||
return strcasecmp(quitaAcentos($a), quitaAcentos($b));
|
||||
});
|
||||
|
||||
|
||||
if($debug) echo "hashes_no_en_sgu ".count($hashes_no_en_sgu)."<br>";
|
||||
|
||||
if(count($hashes_no_en_sgu)>0){
|
||||
@@ -319,12 +318,10 @@ try{
|
||||
|
||||
// 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');
|
||||
//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){
|
||||
return strcasecmp(quitaAcentos($a), quitaAcentos($b));
|
||||
});
|
||||
|
||||
|
||||
//echo "hashes_no_en_bd ".count($hashes_no_en_bd)."<br>";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user