PHP Classes

Missing features

Recommend this page to a friend!

      TM::Apeform  >  All threads  >  Missing features  >  (Un) Subscribe thread alerts  
Subject:Missing features
Summary:add an css class to a object, add different colors for 2 rows
Date:2006-05-14 22:44:02
Update:2006-06-09 07:23:15

  1. Missing features   Reply   Report abuse  
Picture of Martin Martin - 2006-05-14 22:44:02
This class are almost perfect! Really nice thank you.

Some features are missing imo.

I cant find any way to add an css class on a object. Fx <input type="text" class="????"> this isnt possible.

Sometimes designers want different colors on 2 rows.
First row:
<td style="background-color:blue;">{label}</td>
<td style="background-color:blue;">{input}</td>
Second row:
<td style="background-color:yellow;">{label}</td>
<td style="background-color:yellow;">{input}</td>

This would be a really nice addiction for the almost perfect form generator.

  2. Re: Missing features   Reply   Report abuse  
Picture of Thiemo Kreuz Thiemo Kreuz - 2006-06-09 07:23:15 - In reply to message 1 from Martin
It's possible to change the template to set some style or a class:

$form->templates['input'] = "<tr><td>{label}</td><td class="cell">{input}</td></tr>";

And then use a CSS selector like this:

.cell input[type=text] { background-color: red; }

Of course this will be the same for all rows. Different styles per row are possible in the professional version (not published yet).