Hello Lauber, I'm trying to show values like you say, $row->cells[0] but don't show values, I try to modify the table like this<br><br>{foreach from=$tables item=group}<br> <br>{foreach from=$group->tables item=table}<br>
{if $table->numRows > 0}<br> <br>{if $table->tableTitle eq my_table_name}<br>{foreach from=$table->rows item=row}<br> <table class="cw3table"><br> <caption>{t}Tablename{/t}</caption><br>
<tr><br> <th align="left">{t}First Attribute{/t}</th><br> <th align="left">{t}Second Attribute{/t}</th><br> </tr><br> <tr><br> {$ban=true}<br>
{foreach from=$row->cells item=value}<br> {if $ban}<br> <td>{$value}</td><br> {$ban=false}<br> {/if}<br> {if !$ban}<br> <td><a href="localhost://images/{$value}"></a></td><br>
{$ban=true}<br> {/if}<br> {/foreach}<br><br> </tr><br> </table><br>{/foreach}<br>{/if}<br><br>The table only have two values and it work, in the first column are values only, and in the second column are links that go to other window, my problem is that show both columns like links, is like the value is united with the last one, my question is, why both columns show links, exist any way to show this values separately? and why this $row->cells[0] don't show values.<br>
<br>Thanks and regards,<br><font color="#888888"><font style="color: rgb(0, 0, 0);" color="#888888">Karol</font></font><br><br><div class="gmail_quote">2008/12/15 Karol Briones <span dir="ltr"><<a href="mailto:karolitab@gmail.com">karolitab@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks for your help, is true but I need something like this solution because only need some parameters, Thanks again.<br>
<br>Thanks and regards,<br><font color="#888888"><font style="color: rgb(0, 0, 0);" color="#888888">Karol</font></font><br>
<br><div class="gmail_quote">2008/12/15 Lauber Christoph <span dir="ltr"><ch.lauber@geo-thun.ch></span><div><div></div><div class="Wj3C7c"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div><font color="#0000ff" size="2" face="Arial">
<div><font color="#0000ff" size="2" face="Arial"><span>Hello
Karol</span></font></div>
<div><font color="#0000ff" size="2" face="Arial"><span></span></font> </div>
<div><font color="#0000ff" size="2" face="Arial"><span>We
solved this in our projects like this:</span></font></div>
<div><font color="#0000ff" size="2" face="Arial"><span></span></font> </div>
<div><font color="#0000ff" size="2" face="Arial"></font> </div>
<div><font color="#0000ff" size="2" face="Arial">{foreach from=$tables
item=group}</font></div>
<div><font color="#0000ff"></font> </div>
<div><font color="#0000ff" size="2" face="Arial">{foreach from=$group->tables
item=table}<br>{if $table->numRows > 0}</font></div>
<div><font color="#0000ff"></font> </div>
<div><font color="#0000ff"><font size="2" face="Arial">{if $table->tableTitle
eq <span>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>Tablename</span>{/t}</h3></th><br>
</tr><br>
<tr><br> <th
align="left">{t}<span>First
Attribute</span>{/t}</th><br>
<td
align="left">{$row->cells[0]}</td><br>
</tr><br>
<tr><br> <th
align="left">{t}<span>Second
Attribute</span>{/t}</th><br>
<td align="left"><a href="</font>localhost://images/</font><font color="#0000ff" size="2" face="Arial">"|cat:$row->cells[<span>1</span>]>{t}<span>my
Image</span>{/t}</a></td><br>
</tr><br> </table></font></div>
<div><font color="#0000ff">{/foreach}<br>{/if}</font></div>
<div><span><font color="#0000ff" size="2" face="Arial">...</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">As you
see, you have to define every query by itself. Maybe not the best solution. But
it works.</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div><span><font color="#0000ff" size="2" face="Arial">Regards,</font></span></div>
<div><span><font color="#0000ff" size="2" face="Arial">Christoph</font></span></div>
<div><span></span> </div></font></div>
<blockquote style="margin-right: 0px;">
<div></div>
<div dir="ltr" align="left" lang="de"><font size="2" face="Tahoma">-----Ursprüngliche Nachricht-----<br><b>Von:</b> Karol Briones
[mailto:<a href="mailto:karolitab@gmail.com" target="_blank">karolitab@gmail.com</a>] <br><b>Gesendet:</b> Montag, 15. Dezember 2008
15:32<br><b>An:</b> <a href="mailto:cartoweb-users@lists.maptools.org" target="_blank">cartoweb-users@lists.maptools.org</a><br><b>Betreff:</b> Re:
[Cartoweb-users] How to create requests variables<br><br></font></div><div><div></div><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></div></div></blockquote></div>
</blockquote></div></div></div><br>
</blockquote></div><br>