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.<BR><BR>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. <BR>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.<BR> <BR>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, <BR><BR>Bye<BR> <BR><BR>
<BLOCKQUOTE dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">--------- Original Message --------<BR>Da: giuseppe.derossi@email.it<BR>To: "cartoweb-users@lists.maptools.org" <cartoweb-users@lists.maptools.org><BR>Oggetto: Re: [Cartoweb-users] writing new plugin<BR>Data: 05/03/06 18:46<BR><BR>Hi guys,<BR>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 ?<BR><BR>My code :<BR><BR>in php i've $coordinates[][] <BR><BR>and in drawUserForm I set:<BR><BR>$smarty->assign('coordinates',this->coordinates);<BR><BR>in the template, I've to modify the following piece of code which works for a simple array:<BR><BR>{foreach from=$coordinates item=xp1}<BR> x: {$xp1} <br><BR>{/foreach}<BR><BR>Thanks in advantage and best regards<BR><BR>
<BLOCKQUOTE dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> </BLOCKQUOTE><BR>
<P><FONT face=Verdana,Arial size=2>----<BR>Email.it, the professional e-mail, gratis per te: <A href="http://www.email.it/cgi-bin/start?sid=3" target=_blank>clicca qui</A> <BR><BR>Sponsor:<BR>Problemi di Liquidità? Con Logos Finanziaria 30.000 € in 24 ore a dipendenti e lavoratori autonomi con rimborsi fino a 120 mesi clicca qui <BR><A href="http://adv.email.it/cgi-bin/foclick.cgi?mid=2907&d=20060305" target=_blank>Clicca qui</A> </FONT><BR><BR><BR>
<HR>
<BR><FONT face="Courier New" size=2>_______________________________________________<BR>Cartoweb-users mailing list<BR><A class=autolink href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</A><BR><A class=autolink href="http://lists.maptools.org/mailman/listinfo/cartoweb-users" target=_blank>http://lists.maptools.org/mailman/listinfo/cartoweb-users</A><BR></FONT></DIV></BLOCKQUOTE><br><p><font face=Verdana,Arial size=2>----<br>
Email.it, the professional e-mail, gratis per te: <a href="http://www.email.it/cgi-bin/start?sid=3"
target="_blank" >clicca qui</a> <br>
<br>
Sponsor:<br>
Gioca con la DOG-MACHINE e premia il tuo amico a 4 zampe!<br>
<a href="http://adv.email.it/cgi-bin/foclick.cgi?mid=4879&d=20060305" target="_blank" >Clicca qui</a> </font><br>