File manager - Edit - /home/cuautla1/dif.cuautlajalisco.gob.mx/Fraccion1/F5h.php.tar
Back
home/cuautla1/dif.cuautlajalisco.gob.mx/Fraccion5/F5h.php 0000644 00000004317 15117337746 0017137 0 ustar 00 <!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8" /> <title>Fracción V - Inciso h)</title> <link rel="stylesheet" href="../menu.css" /> <style> @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap'); body { font-family: 'Poppins', sans-serif; margin: 0; padding: 0; } main { padding: 90px 20px 40px; max-width: 1100px; margin: 0 auto; } h1, h2 { color: #2b3e5c; } table { width: 100%; border-collapse: collapse; margin-top: 20px; } th, td { border: 1px solid #ccc; padding: 10px; text-align: left; } th { background-color: #f0f0f0; } tr:hover { background-color: #f9f9f9; } a { color: #0066cc; text-decoration: none; } a:hover { text-decoration: underline; } </style> </head> <body> <?php include("../menu.php"); ?> <main> <h1>Fracción V - Información financiera, patrimonial y administrativa</h1> <h2>Inciso h) El listado de jubilados y pensionados y el monto que reciben</h2> <table> <thead> <tr> <th>Documento</th> <th>Enlace</th> </tr> </thead> <tbody> <?php $ruta = "../Transparencia/Fraccion5/h/"; if (is_dir($ruta)) { $archivos = scandir($ruta); foreach ($archivos as $archivo) { $ext = strtolower(pathinfo($archivo, PATHINFO_EXTENSION)); if ($archivo !== "." && $archivo !== ".." && in_array($ext, ['pdf', 'docx', 'doc', 'xls', 'xlsx'])) { $nombre = pathinfo($archivo, PATHINFO_FILENAME); $nombre_legible = ucwords(str_replace(['-', '_'], ' ', $nombre)); echo "<tr> <td>" . htmlspecialchars($nombre_legible) . "</td> <td><a href='$ruta$archivo' target='_blank'>Ver documento</a></td> </tr>"; } } } else { echo "<tr><td colspan='2'>No se encontró la carpeta correspondiente.</td></tr>"; } ?> </tbody> </table> </main> </body> </html> home/cuautla1/dif.cuautlajalisco.gob.mx/Fraccion5/Fraccion2/F5h.php 0000644 00000004317 15117426547 0020743 0 ustar 00 <!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8" /> <title>Fracción V - Inciso h)</title> <link rel="stylesheet" href="../menu.css" /> <style> @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap'); body { font-family: 'Poppins', sans-serif; margin: 0; padding: 0; } main { padding: 90px 20px 40px; max-width: 1100px; margin: 0 auto; } h1, h2 { color: #2b3e5c; } table { width: 100%; border-collapse: collapse; margin-top: 20px; } th, td { border: 1px solid #ccc; padding: 10px; text-align: left; } th { background-color: #f0f0f0; } tr:hover { background-color: #f9f9f9; } a { color: #0066cc; text-decoration: none; } a:hover { text-decoration: underline; } </style> </head> <body> <?php include("../menu.php"); ?> <main> <h1>Fracción V - Información financiera, patrimonial y administrativa</h1> <h2>Inciso h) El listado de jubilados y pensionados y el monto que reciben</h2> <table> <thead> <tr> <th>Documento</th> <th>Enlace</th> </tr> </thead> <tbody> <?php $ruta = "../Transparencia/Fraccion5/h/"; if (is_dir($ruta)) { $archivos = scandir($ruta); foreach ($archivos as $archivo) { $ext = strtolower(pathinfo($archivo, PATHINFO_EXTENSION)); if ($archivo !== "." && $archivo !== ".." && in_array($ext, ['pdf', 'docx', 'doc', 'xls', 'xlsx'])) { $nombre = pathinfo($archivo, PATHINFO_FILENAME); $nombre_legible = ucwords(str_replace(['-', '_'], ' ', $nombre)); echo "<tr> <td>" . htmlspecialchars($nombre_legible) . "</td> <td><a href='$ruta$archivo' target='_blank'>Ver documento</a></td> </tr>"; } } } else { echo "<tr><td colspan='2'>No se encontró la carpeta correspondiente.</td></tr>"; } ?> </tbody> </table> </main> </body> </html> home/cuautla1/public_html/F8/Fraccion5/F5h.php 0000644 00000004764 15117434144 0014755 0 ustar 00 <?php $folder = '../../transparencia_files/Articulo_8/Fraccion_V/h/'; $urlPath = '/transparencia_files/Articulo_8/Fraccion_V/h/'; if (!is_dir($folder)) { die("<strong style='color:red;'>Error:</strong> La ruta no existe: <code>$folder</code>"); } $files = array_diff(scandir($folder), ['.', '..']); function getFileIcon($filename) { $ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION)); return match ($ext) { 'pdf' => '📄', 'doc', 'docx' => '📝', 'xls', 'xlsx' => '📊', default => '📁', }; } function shouldDownload($filename) { $ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION)); return in_array($ext, ['doc', 'docx', 'xls', 'xlsx']); } ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Fraccion V, inciso h)</title> <link rel="stylesheet" href="../../index.css"> <link rel="stylesheet" href="../../menu.css"> <style> body { font-family: Arial, sans-serif; background: #fff; color: #333; } main { max-width: 900px; margin: 40px auto; padding: 20px; } h1 { color: #006837; margin-bottom: 20px; } table { width: 100%; border-collapse: collapse; margin-top: 20px; } th, td { padding: 12px; border-bottom: 1px solid #ccc; text-align: left; } th { background-color: #78BE20; color: white; } tr:hover { background-color: #f4f4f4; } a { color: #006837; text-decoration: none; } a:hover { text-decoration: underline; } </style> </head> <body> <?php include '../../menu.php'; ?> <main> <h1>Fraccion V inciso h) - Listado de jubilados y pensionados</h1> <table> <thead> <tr> <th>Documento</th> <th>Fecha</th> </tr> </thead> <tbody> <?php foreach ($files as $file): ?> <tr> <td> <a href="<?= $urlPath . rawurlencode($file) ?>" target="_blank" <?= shouldDownload($file) ? 'download' : '' ?>> <?= htmlspecialchars($file) ?> </a> </td> <td><?= date("d/m/Y H:i", filemtime($folder . $file)) ?></td> </tr> <?php endforeach; ?> </tbody> </table> </main> <script src="../../menu.js"></script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings