[Cartoweb-users] writing new plugin

giuseppe.derossi at email.it giuseppe.derossi at email.it
Sun Mar 5 13:03:16 EST 2006


Forget my last post please, I\'ve just solved it by creating the list of
links in php code so I need only a mono dimensional vector.

My plugin is now quite ready: I can read the user\'s input who looks for a
buillding, by inserting a name such as \'hospital\', \'church\' and so on...
my plug  gathers the data and, in the same folder,  displays a list of
results from the db. Now the user, by clicking one of them (if there are)
makes the map to be recentered. I\'ve used the recenter_bbox=x1,y1,x2,y2 in
the links. 
This way works but there is an issue: after the right recentering , the main
folrder (themes) is opened and if I come back to my new forlder I \'ve lost
the results; beyond of that.
   
Second , I\'d like to diplay a long text of info about the building if there
is, in this case I\'d like to see it  under the map, 

Bye
 


--------- Original Message --------
Da: giuseppe.derossi at email.it
To: \"cartoweb-users at lists.maptools.org\"
<cartoweb-users at lists.maptools.org>
Oggetto: Re: [Cartoweb-users] writing new plugin
Data: 05/03/06 18:46

Hi guys,
I\'ve to pass a bidimensional numeric array to the template in a foreach
cycle. In this way I want to list the possible couple of coordinates to
recenter the map, I\'m able to pass a monodimensional array, but It\'s not
enogh. Could you please   suggest me anything ?

My code :

in php i\'ve $coordinates[][] 

and in drawUserForm I set:

$smarty->assign(\'coordinates\',this->coordinates);

in the template, I\'ve to modify the following piece of code which works for
a simple array:

{foreach from=$coordinates item=xp1}
  x: {$xp1} <br>
{/foreach}

Thanks in advantage and best regards





----
Email.it, the professional e-mail, gratis per te: clicca qui 

Sponsor:
Problemi di Liquidità? Con Logos Finanziaria 30.000 € in 24 ore a dipendenti
e lavoratori autonomi con rimborsi fino a 120 mesi clicca qui 
Clicca qui 






_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Gioca con la DOG-MACHINE e premia il tuo amico a 4 zampe!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=4879&d=20060305

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20060305/39da9da7/attachment.html


More information about the Cartoweb-users mailing list