<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Nachricht</TITLE>
<META content="MSHTML 6.00.2800.1555" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=700151215-15122008>Hello
Karol</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=700151215-15122008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=700151215-15122008>We
solved this in our projects like this:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=700151215-15122008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>{foreach from=$tables
item=group}</FONT></DIV>
<DIV><FONT color=#0000ff></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>{foreach from=$group->tables
item=table}<BR>{if $table->numRows > 0}</FONT></DIV>
<DIV><FONT color=#0000ff></FONT> </DIV>
<DIV><FONT color=#0000ff><FONT face=Arial size=2>{if $table->tableTitle
eq <SPAN class=700151215-15122008>my_table_name</SPAN>'}<BR>{foreach
from=$table->rows item=row}<BR> <table
class="cw3table"><BR>
<tr><BR> <th
align="left" colspan="2"><h3>{t}<SPAN
class=700151215-15122008>Tablename</SPAN>{/t}</h3></th><BR>
</tr><BR>
<tr><BR> <th
align="left">{t}<SPAN class=700151215-15122008>First
Attribute</SPAN>{/t}</th><BR>
<td
align="left">{$row->cells[0]}</td><BR>
</tr><BR>
<tr><BR> <th
align="left">{t}<SPAN class=700151215-15122008>Second
Attribute</SPAN>{/t}</th><BR>
<td align="left"><a href="</FONT>localhost://images/</FONT><FONT
face=Arial color=#0000ff size=2>"|cat:$row->cells[<SPAN
class=700151215-15122008>1</SPAN>]>{t}<SPAN class=700151215-15122008>my
Image</SPAN>{/t}</a></td><BR>
</tr><BR> </table></FONT></DIV>
<DIV><FONT color=#0000ff>{/foreach}<BR>{/if}</FONT></DIV>
<DIV><SPAN class=700151215-15122008><FONT face=Arial color=#0000ff
size=2>...</FONT></SPAN></DIV>
<DIV><SPAN class=700151215-15122008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=700151215-15122008><FONT face=Arial color=#0000ff size=2>As you
see, you have to define every query by itself. Maybe not the best solution. But
it works.</FONT></SPAN></DIV>
<DIV><SPAN class=700151215-15122008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=700151215-15122008><FONT face=Arial color=#0000ff
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=700151215-15122008><FONT face=Arial color=#0000ff
size=2>Christoph</FONT></SPAN></DIV>
<DIV><SPAN class=700151215-15122008></SPAN> </DIV></FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left><FONT face=Tahoma
size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B> Karol Briones
[mailto:karolitab@gmail.com] <BR><B>Gesendet:</B> Montag, 15. Dezember 2008
15:32<BR><B>An:</B> cartoweb-users@lists.maptools.org<BR><B>Betreff:</B> Re:
[Cartoweb-users] How to create requests variables<BR><BR></FONT></DIV>Hello
List, I have a problem with the table plugin, I need to get a specific
parameter from the database for show an image, for example <BR>...<BR>{foreach
from=$row->cells item=value}<BR>
<td><a
href="localhost://images/{$value}"></a></td><BR>{/foreach}<BR>...<BR><BR>but
I don't know how to get a specific parameter from the array of the table
plugin, please help me.<BR><BR clear=all>Thanks and regards,<BR><FONT
color=#888888><FONT style="COLOR: rgb(0,0,0)"
color=#888888>Karol</FONT></FONT><BR></BLOCKQUOTE></BODY></HTML>