color: white; font-bold: weigth; background: black; color-backgroudn: black; -webkit-print-color-adjust:black; } .none{ color: black; font-bold: weigth; background: white; color-backgroudn: white; -webkit-print-color-adjust:white; } .par{ color: black; font-bold: weigth; background: #E6E6E6; color-backgroudn: #E6E6E6; -webkit-print-color-adjust:#E6E6E6; } </style> </head> <body> <?php //print_r($_REQUEST); $archivo = $_GET["xml"]; $ruta = str_replace('"', '', $archivo); leeXML($ruta); ?> </body> </html>
$conexion->get_rows(); if ($conexion->get_rows() > 0) { echo mensaje("Esta factura ya ha sido registrada anteriormente."); exit; } $fechaLimite = strtotime(date("Y-m-d", strtotime('+345 day', strtotime($response->receptor->fecha)))); $fechaActual = strtotime(date("Y-m-d")); if ($fechaActual > $fechaLimite) { echo mensaje("Esta factura ha excedido el límite permitido de 45 dias para ser comprobada. "); exit; } if (!is_array($_FILES["myfile"]["name"])) { $fileName = $_FILES["myfile"]["name"]; move_uploaded_file($_FILES["myfile"]["tmp_name"], $output_dir . $fileName); $ret[] = $fileName; leeXML($uuid, $arraycontenidoXML); } } } else { $fileCount = count($_FILES["myfile"]["name"]); for ($i = 0; $i < $fileCount; $i++) { $fileName = $_FILES["myfile"]["name"][$i]; move_uploaded_file($_FILES["myfile"]["tmp_name"][$i], $output_dir . $fileName); $ret[] = $fileName; } } json_encode($ret); } function mensaje($msj, $contenidoXml) { $msj = array("msj" => "{$msj}");