%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/portal.tjamich.gob.mx/
Upload File :
Create Path :
Current File : /home/tjamichg/portal.tjamich.gob.mx/noticiasEquidad.php

<?php 
//$con = db_connect2();
require("conn.php");
$error = "";
?>			
					<?php 

					   $noti_id = $_GET['idnoti'];
					   
					   $sql = "SELECT * from noticias WHERE id_noticia = $noti_id";
                       $resnoticia = mysqli_query($db, $sql);
                       
                        while($repnoticia = mysqli_fetch_array($resnoticia))
                       {
                      // $web_id_noticia = $repnoticia[id_noticia];
                       $web_titulo = $repnoticia['titulo'];
                       $web_fecha = $repnoticia['fecha'];
                       $web_categoria = $repnoticia['categoria'];
                       $web_etiquetas = $repnoticia['etiquetas'];
                       $web_imagen1 = $repnoticia['imagen1'];
                       $web_contenido = $repnoticia['contenido'];
                       }
                            if ($web_categoria == "Noticia") {
                                $classtag = "success";
                            }
                            if ($web_categoria == "Comunicado de Prensa") {
                                $classtag = "info";
                            }
                            if ($web_categoria == "Nota Rápida") {
                                $classtag = "primary";
                            }
                    ?>

		<meta property="og:title" content="Título de la Noticia"/>
		<meta property="og:image" content="img/Logo-TJAM.png"/>
		<meta property="og:site_name" content="Tribunal de Justicia Administrativa de Michoacán"/>
		<meta property="og:description" content="Somos un órgano autónomo que juzga la legalidad de la actuación de las autoridades estatales y municipales. Somos competentes para resolver en forma definitiva las controversias que se promuevan en contra de actos o resoluciones definitivos, dictado, ordenados, ejecutados o que se pretendan ejecutar según correspondan, por el Poder Ejecutivo, de la Auditoría Superior de Michoacán, por los ayuntamientos, por los organismos autónomos, las entidades u organismos descentralizados o desconcentrados, estatales o municipales. "/>


				<section class="page-header">
					<div class="container">
					<!--	<div class="row">
							<div class="col">
								<ul class="breadcrumb">
									<li><a href="Tribunal-de-Justicia-Administrativa-de-Michoacan-de-Ocampo">Inicio</a></li>
									<li class="active"><?php echo "$web_categoria"; ?></li>
								</ul>
							</div>
						</div> -->
						<div class="row">
							<div class="col">
								<h1><?php echo "$web_titulo"; ?></h1>
							</div>
						</div>
					</div>
				</section>

				<div class="container">
					
					<div class="row">
						<div class="col-lg-12 text-center">
							
						<!--<h2 class="word-rotator-title mb-4">								
								<strong class="inverted inverted-primary">
									<span class="word-rotator" data-plugin-ptions="{'delay': 2000, 'animDelay': 300}">
										<span class="word-rotator-items"> 
											<span><?php // echo "Publicado el $web_fecha"; ?></span>
											<span><?php // echo "Categoría $web_categoria"; ?></span>
											<span><?php // echo "Etiquetas $web_etiquetas"; ?></span>
										</span>
									</span>				
								</strong>
							</h2>-->
							
							<img src="img/noticias/<?php echo "$web_imagen1"; ?>" data-thumb="img/noticias/<?php echo "$web_imagen1"; ?>" alt="<?php echo "$web_titulo"; ?>" class="img-fluid"/>
						</div>
					</div>

					
					<div class="row mt-4">
					
						<div class="col-lg-7 col-xl-8">
							<!-- CONTENIDO -->

									<?php
									//setlocale(LC_ALL,"es_ES@euro","es_ES","esp");
									setlocale(LC_ALL,"es_ES");

									$ad = "$web_fecha";
									$adia = strftime("%d", strtotime($ad));

									$am = "$web_fecha";
									$ames = strftime("%B", strtotime($am));

									$aa = "$web_fecha";
									$aanio = strftime("%Y", strtotime($aa));

										$a1dia=substr($adia, 0, 2); //limitamos caracteres en el día
										$a1mes=substr($ames, 0, 3); //limitamos caracteres en el MES
										
									?>

							<article class="post post-large">
								<div class="blog-posts">
									<div class="post-date">
										<span class="day"><?php echo "$a1mes $a1dia"; ?></span>
										<span class="month"><?php echo "$aanio"; ?></span>
									</div>
								</div>
							</article>

							<h4 class="mb-0"><strong><?php echo "$web_titulo"; ?></strong></h4>
							<?php
							 $bb = "$web_fecha";
							 $web_fecha2 = utf8_encode(strftime("%A %d de %B del %Y", strtotime($bb))); 
							 ?>
							<h6 class="heading-primary"><?php echo "$web_categoria, Morelia Mich. $web_fecha2"; ?></h6>
							<p class="lead" align="justify"><?php echo "$web_contenido"; ?></p>
							<p class="lead" align="left"><?php echo "<strong>Etiquetas:</strong> $web_etiquetas"; ?></p>
							<!-- CONTENIDO -->
						</div>

						<div class="col-lg-5 col-xl-4">
							<!-- GALERIA -->
									<div class="thumb-gallery">
										<div class="owl-carousel owl-theme manual thumb-gallery-detail show-nav-hover" id="thumbGalleryDetail">
											<?php 
					   					   		
					  							 $sql = "SELECT id_noticia, imagen2, imagen3, imagen4 from noticias WHERE id_noticia = '$noti_id'";
                      							 $resgaleria = mysqli_query($db, $sql);
                       
                        							while($repgaleria = mysqli_fetch_array($resgaleria))
                       								{
                       								$gal_imagen2 = $repgaleria['imagen2'];
                       								$gal_imagen3 = $repgaleria['imagen3'];
                       								$gal_imagen4 = $repgaleria['imagen4'];
                       							    }
                       								
                       									if (empty($gal_imagen2)) {
                       									echo "";
                       									}
                       									else {
                       									echo "
														<div><span class=\"img-thumbnail d-block\">
                       									<img alt=\"$web_titulo\" src=\"img/noticias/$gal_imagen2\" class=\"img-fluid\">
														</span></div>";
                       									}

                       									if (empty($gal_imagen3)) {
                       									echo "";
                       									}
                       									else {
                       									echo "
														<div><span class=\"img-thumbnail d-block\">
                       									<img alt=\"$web_titulo\" src=\"img/noticias/$gal_imagen3\" class=\"img-fluid\">
														</span></div>";
                       									}

                       									if (empty($gal_imagen4)) {
                       									echo "";
                       									}
                       									else {
                       									echo "
														<div><span class=\"img-thumbnail d-block\">
                       									<img alt=\"$web_titulo\" src=\"img/noticias/$gal_imagen4\" class=\"img-fluid\">
														</span></div>";
                       									}
                       									
                    						?>
										</div>
										
										<div class="owl-carousel owl-theme manual thumb-gallery-thumbs mt" id="thumbGalleryThumbs">
											<?php 
					   					   
					  							 $sql = "SELECT imagen2, imagen3, imagen4 from noticias WHERE id_noticia = '$noti_id'";
                      							 $resgaleria = mysqli_query($db, $sql);
                       
                        							while($repgaleria = mysqli_fetch_array($resgaleria))
                       								{
                       								$gal_imagen2 = $repgaleria['imagen2'];
                       								$gal_imagen3 = $repgaleria['imagen3'];
                       								$gal_imagen4 = $repgaleria['imagen4'];
                       								}

                       									if (empty($gal_imagen2)) {
                       									echo "";
                       									}
                       									else {
                       									echo "
														<div><span class=\"img-thumbnail d-block cur-pointer\">
														<img alt=\"$web_titulo\" src=\"img/noticias/$gal_imagen2\" class=\"img-fluid\">
														</span></div>";
                       									}
                       									if (empty($gal_imagen3)) {
                       									echo "";
                       									}
                       									else {
                       									echo "
														<div><span class=\"img-thumbnail d-block cur-pointer\">
														<img alt=\"$web_titulo\" src=\"img/noticias/$gal_imagen3\" class=\"img-fluid\">
														</span></div>";
                       									}
                       									if (empty($gal_imagen4)) {
                       									echo "";
                       									}
                       									else {
                       									echo "
														<div><span class=\"img-thumbnail d-block cur-pointer\">
														<img alt=\"$web_titulo\" src=\"img/noticias/$gal_imagen4\" class=\"img-fluid\">
														</span></div>";
                       									}	
                    						?>
										</div>
									</div>
							<!-- FIN GALERIA -->
							
						</div>
					</div>
							
	<!-- 	<hr class="tall"> -->
						
				</div>
				<!-- FIN CONTAINER -->

<?php 
//mysql_close();
?>

				<section class="call-to-action call-to-action-default with-button-arrow content-align-center call-to-action-in-footer">
					<div class="container">
						<div class="row">
							<div class="col-md-9 col-lg-9">
								<div class="call-to-action-content">
									<h3>Conoce cual es el <strong>Tribunal de Justicia Administrativa</strong> más cercano...</h3>
								</div>
							</div>
							<div class="col-md-3 col-lg-3">
								<div class="call-to-action-btn">
									<a href="#" target="_self" class="btn btn-lg btn-primary">ver mapa</a>
								</div>
							</div>
						</div>
					</div>
				</section>

Zerion Mini Shell 1.0