loreakasmatzen_docker/data/web/habitat.php

47 lines
1.4 KiB
PHP
Raw Normal View History

2022-11-09 20:19:30 +01:00
<?php require_once("../inc/includes.php");?>
<?php
$head_title = _HABITAT_TITLE;
$head_description = _HABITAT_DESCRIPTION;
$head_keywords = _HABITAT_KEYWORDS;
require("../inc/head.php");
?>
<body>
<div id="mother">
<?php require('../inc/header.php');?><!-- /container_head -->
<div id="container">
<div id="wrapper">
<?php require('../inc/menu.php');?>
<div id="main">
<div id="main_in_top"><h2><?php echo _MENU462?></h2></div>
<div id="main_in">
<?php
$sql = "select * from habitats order by nombre_$idioma";
$consulta = mysql_query($sql, $link);
$num_resultados = mysql_num_rows($consulta);
if ( $num_resultados>0) :
while($fila = mysql_fetch_array($consulta)) : ?>
<h3><strong><?=$fila["nombre_$idioma"]?></strong></h3>
<p><?=$fila["descripcion_$idioma"]?><br /><a href="habitat-listado.php?h=<?=$fila["id"]?>" title="<?php echo _MAS?>"><?php echo _MAS?></a></p>
<?php
endwhile;
endif;
?>
</div>
<div id="main_in_bottom"></div>
</div>
</div><!-- /wrapper -->
</div><!-- /container -->
<?php require('../inc/footer.php');?><!-- /footer -->
</div>
<?php require('../inc/analytics.php');?>
</body>
</html>