Guest User

Untitled

a guest
Jan 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. case 'showall':
  2. require_once('dbfunctions.php');
  3.  
  4. $result = get_individuo_all() or die(mysql_error()) ;
  5. if (!$result) {
  6. echo "No hay individuos que mostrar";
  7. } else {
  8. $especie = mysql_fetch_object($result);
  9. ?>
  10. <script type="text/javascript">
  11. $(function(){
  12. alert("hola");
  13. var newl = new OpenLayers.Layer.Text(
  14. '<?php echo htmlentities($especie->NombreComun) ?>',
  15. { location:'_list_individuos.php?Especie=<?php echo $especie->ID ?>'
  16. }
  17. );
  18.  
  19. map.addLayer(newl),
  20. map.addLayer(new OpenLayers.Control.Permalink('permalink'));
  21.  
  22. });
  23. </script>
  24. <?php
  25. }
  26. break;
Add Comment
Please, Sign In to add comment