51 lines
1.5 KiB
PHP
51 lines
1.5 KiB
PHP
<?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);
|
|
$consulta = $mysqli->query($sql);
|
|
#$num_resultados = mysql_num_rows($consulta);
|
|
$num_resultados = $consulta->num_rows;
|
|
|
|
if ( $num_resultados>0) :
|
|
while($fila = $consulta->fetch_array()) :
|
|
#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>
|