Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

kolorowanie niektórych rzędów

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish
View previous topic :: View next topic  
Author Message
jaczes
Smarty n00b


Joined: 12 Feb 2009
Posts: 2

PostPosted: Thu Feb 12, 2009 3:54 pm    Post subject: kolorowanie niektórych rzędów Reply with quote

Witam! mam problem - potrzebuję pokolorować parę konkretnych rzędów z wyników mysql'a (id,imie) gdzie np. imie == Jan

Code:
 {foreach item=data from=$e}
<td>{$data}</td>
{/foreach
Back to top
View user's profile Send private message
fornve
Smarty Rookie


Joined: 25 Apr 2008
Posts: 29
Location: Sheffield, UK

PostPosted: Tue Feb 17, 2009 9:41 am    Post subject: Reply with quote

Taki przyklad... gdzie $data jest oczywiscie tablica

Code:

{foreach item=data from=$e}
<tr {if $data.imie=='Jan'}style="color: red;"{/if}>
<td>{$data.id}</td>
<td>{$data.imie}</td>
<td>{$data.nazwisko}</td>
<td>{$data.telefon}</td>
</tr>
{/foreach}


Pozdrawiam
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP