%PDF- %PDF-
Direktori : /home/tjamichg/portal.tjamich.gob.mx/view-box_2021/ |
Current File : /home/tjamichg/portal.tjamich.gob.mx/view-box_2021/index.php |
<?php /*** Plantilla View-Box David Calderón González M.C. Eric Iturbide Diaz L.I.S.I. David Alexandro Rodríguez Suárez ****/ if(!include_once("conn.php")) { echo "Existe un problema en la conexión; Favor de reportarlo a su administrador del sistema."; } else { require("conn.php"); if(isset($_GET['action'])) { if($_GET['action'] == "ver") { $nart = $_GET['a']; $na = $_GET['na']; ?> <script> $( function() { $( "#accordion<?php echo $na; ?>" ).accordion( { collapsible: true, heightStyle: "content" }); }); </script> <div id="accordion<?php echo $_GET['na']; ?>"> <?php $and_condition=""; if ($nart=="35-S") $and_condition=" and s=1"; if(substr($nart, 0, 2)=="39") { $nart_39 = explode("-", $nart); $and_condition="and SUBSTR(nform, locate('-',nform,1)+1,locate('-',nform,4)-4)='$nart_39[1]'"; } mysqli_query($db,"SET NAMES 'utf8'"); $sqlFrac = mysqli_query($db,"SELECT idform, SUBSTRING_INDEX(nform,'-', -1) AS tfr, SUBSTR(nform,1,2) AS nart, SUBSTR(nform, locate('-',nform,1)+1,locate('-',nform,4)-4) AS nfr, tabla, tempo, tempo2, s FROM nformatos WHERE SUBSTR(nform,1,2)='".substr($nart, 0, 2)."' $and_condition"); while($f = mysqli_fetch_array($sqlFrac)){ echo "<h3><b>".$f['nfr'].".</b> ".$f['tfr']."</h3>"; echo "<div id='art'>"; if($f['s'] == 0 || $f['s'] == 1) { echo "<p>Periodos</p>"; $sqlY = mysqli_query($db,"SELECT * FROM nyears ORDER BY year DESC"); } if($f['s'] == 2) { //formatos nuevos $sqlY = mysqli_query($db,"SELECT * FROM nyears ORDER BY year DESC Limit 1"); } while($y = mysqli_fetch_array($sqlY)){ if($y['year'] == 2021 && $f['s'] == 1){ ?> <input type="button" value="<?php echo $y['year']; ?>" onclick="abrir_ventana_total('contenidos.php?ta=<?php echo $f['tabla']; ?>&te=<?php echo $f['tempo2']; ?>&year=<?php echo $y['year']; ?>')" class='ui-button ui-widget ui-corner-all'/> <?php } else { ?> <input type="button" value="<?php echo $y['year']; ?>" onclick="abrir_ventana_total('contenidos.php?ta=<?php echo $f['tabla']; ?>&te=<?php echo $f['tempo']; ?>&year=<?php echo $y['year']; ?>')" class='ui-button ui-widget ui-corner-all'/> <?php } } echo "</div>"; } ?> </div> <?php } } else { ?> <!DOCTYPE HTML> <html lang="es"> <head> <meta charset="utf-8" /> <meta name="author" content="David Calderón González | gnius.inc@gmail.com" /> <link rel="stylesheet" type="text/css" href="css/style.css" /> <link rel="stylesheet" type="text/css" href="css/jquery-ui.css" /> <script src="js/jquery.js"></script> <script src="js/jquery-ui.js"></script> <script> $( function() { $( "#articulos" ).tabs( { beforeLoad: function( event, ui ) { ui.jqXHR.fail(function() { ui.panel.html( "No se encuentra el documento fuente. " + "Favor de notificarlo al administrador del sistema." ); }); } }); }); </script> <script type="text/javascript"> <!-- function abrir_ventana_total(x) { y = screen.availWidth; z = screen.availHeight; var ventana = window.open(x+"&full", x, "width="+y+", height="+z+", status=no, toolbar=no, menubar=no, location=no, directories=no, titlebar=no, scrollbars=1"); ventana.moveTo(0,0); } //--> </script> </head> <body> <div style="text-align: center"><h2>En cumplimiento a los criterios generales para la publicación, homologación, estandarización y verificación de las obligaciones de transparencia en los portales de internet y en la Plataforma Nacional de Transparencia</h2></div> <div id="articulos"> <ul> <?php $sqlArt = mysqli_query($db,"SELECT a.* FROM (select * from ncat_so where activo=1) as s inner join nrel_cat_so_artitculo as r on r.id_cat_so=s.id_cat_so inner join narticulos as a on a.id_articulo=r.id_articulo"); $na = 1; while($art = mysqli_fetch_array($sqlArt)) { //echo "<li><a href='articulos.php?a=".$art['nart']."&na=".$na."'>Artículo ".$art['nart']."</a></li>"; echo "<li><a href='index.php?action=ver&a=".$art['nart']."&na=".$na."'>Artículo ".$art['nart']."</a></li>"; $na++; } ?> </ul> </div> </body> </html> <?php } } ?>