Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 'showall':
- require_once('dbfunctions.php');
- $result = get_individuo_all() or die(mysql_error()) ;
- if (!$result) {
- echo "No hay individuos que mostrar";
- } else {
- $especie = mysql_fetch_object($result);
- ?>
- <script type="text/javascript">
- $(function(){
- alert("hola");
- var newl = new OpenLayers.Layer.Text(
- '<?php echo htmlentities($especie->NombreComun) ?>',
- { location:'_list_individuos.php?Especie=<?php echo $especie->ID ?>'
- }
- );
- map.addLayer(newl),
- map.addLayer(new OpenLayers.Control.Permalink('permalink'));
- });
- </script>
- <?php
- }
- break;
Add Comment
Please, Sign In to add comment