131 lines
5.0 KiB
PHP
131 lines
5.0 KiB
PHP
|
<?php require_once("../inc/includes.php");?>
|
||
|
<?php
|
||
|
|
||
|
$id = $_GET["id"];
|
||
|
if (!$id){
|
||
|
header("Location: index.php");
|
||
|
exit();
|
||
|
}
|
||
|
|
||
|
$sql = "select * from plantas where id=$id";
|
||
|
$consulta = mysql_query($sql, $link);
|
||
|
$num_resultados = mysql_num_rows($consulta);
|
||
|
|
||
|
if ( $num_resultados==0){
|
||
|
header("Location: index.php");
|
||
|
exit();
|
||
|
}
|
||
|
|
||
|
$fila = mysql_fetch_array($consulta);
|
||
|
|
||
|
$nombre = $fila["nombre_$idioma"];
|
||
|
$nombre_latin = $fila["nombre_latin"];
|
||
|
$nombre_bubani = $fila["nombre_bubani"];
|
||
|
$otro_nombre = $fila["otro_nombre_$idioma"];
|
||
|
$descripcion = str_replace("\n","<br />",$fila["descripcion_$idioma"]);
|
||
|
|
||
|
$imagen = $fila["imagen_portada"];
|
||
|
$imagen1 = $fila["imagen1"];
|
||
|
$imagen2 = $fila["imagen2"];
|
||
|
|
||
|
$enlace_album = $fila["enlace_album_$idioma"];
|
||
|
$enlace_bib_digital = $fila["enlace_bib_digital"];
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
$head_title = _DETP_TITLE;
|
||
|
$head_description = _DETP_DESCRIPTION;
|
||
|
$head_keywords = _DETP_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><em><?=$nombre_latin?></em>, <?=$nombre?></h2></div>
|
||
|
<div id="main_in">
|
||
|
<div class="frame"><img src="../images/loreak/<?=$imagen?>" alt="<?=$nombre_latin?>" width="279" height="356" /><span><em><?=$nombre_latin?></em>, <?=$nombre?></span></div>
|
||
|
|
||
|
<p><span lang="la"><em><?=$nombre_latin?></em></span><br />
|
||
|
<?=$nombre?><br />
|
||
|
<strong><?php echo _FICHA_NAME2?></strong>: <?=$nombre_bubani?></p>
|
||
|
|
||
|
<p>
|
||
|
<?php if ($otro_nombre){?>
|
||
|
<strong><?php echo _FICHA_NAME4?></strong>: <?=$otro_nombre?>.
|
||
|
<?php }?>
|
||
|
</p>
|
||
|
|
||
|
<h3 class="planta"><?php echo _INFO?>:</h3>
|
||
|
<ul class="detail">
|
||
|
<li><a href="<?=$enlace_album?>" title="<?php echo _ALBUM?>" target="_blank"><?php echo _ALBUM?></a></li>
|
||
|
<li><a href="<?=$enlace_bib_digital?>" title="Biblioteca Digital" target="_blank">Biblioteca Digital</a></li>
|
||
|
</ul>
|
||
|
|
||
|
<div class="separador"></div>
|
||
|
|
||
|
|
||
|
<?php if ($imagen1 || $imagen2){?>
|
||
|
<h3><?php echo _FICHA_OTRAS?></h3>
|
||
|
<ul class="photos2">
|
||
|
<?php if ($imagen1){?>
|
||
|
<li class="vertical"><a href="../images/loreak/<?=$imagen1?>" title="<?=$imagen1?>" target="_blank"><img src="../images/loreak/txiki_otras/<?=$imagen1?>" alt="<?=$imagen1?>" width="84" height="122" /></a></li>
|
||
|
<?php }?>
|
||
|
<?php if ($imagen2){?>
|
||
|
<li><a href="../images/loreak/<?=$imagen2?>" title="<?=$imagen2?>" target="_blank"><img src="../images/loreak/txiki_otras/<?=$imagen2?>" alt="<?=$imagen2?>" width="196" height="69" /></a></li>
|
||
|
<?php }?>
|
||
|
</ul>
|
||
|
<?php }?>
|
||
|
|
||
|
<h3><?php echo _FICHA_DES?></h3>
|
||
|
<p><?=$descripcion?></p>
|
||
|
|
||
|
<h3><?php echo _FICHA_HABIT?></h3>
|
||
|
|
||
|
<?php
|
||
|
$sql = "select *
|
||
|
from habitats_plantas hp, habitats
|
||
|
where hp.id_habitat = habitats.id and
|
||
|
id_planta = $id";
|
||
|
$consulta = mysql_query($sql, $link);
|
||
|
$num_resultados = mysql_num_rows($consulta);
|
||
|
|
||
|
if ( $num_resultados>0){
|
||
|
while($fila = mysql_fetch_array($consulta))
|
||
|
{ ?>
|
||
|
<p><strong><u><?=$fila["nombre_$idioma"]?>:</u></strong> <?=$fila["descripcion_$idioma"]?><br />
|
||
|
<a href="<?=$fila["enlace_$idioma"]?>" title="<?=$fila["nombre_$idioma"]?>" target="_blank"><?php echo _INFO?></a></p>
|
||
|
|
||
|
<?php
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
if ($_GET["v"]==1)
|
||
|
$volver = "descripcion-plantas.php";
|
||
|
else
|
||
|
$volver = "habitat-listado.php?h=".$_GET["h"];
|
||
|
?>
|
||
|
|
||
|
<p style="text-align:right;"><a href="<?=$volver?>" title="<?php echo _VOLVER?>"><?php echo _VOLVER?></a></p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div><!-- /main -->
|
||
|
<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>
|