Categories > Your tips & tricks >

Help me checkbox

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: thuc
Date: 2005-10-30
Time: 13:55

Help me checkbox

Hi, Mr Skrol29
How can I show check box in the table?
ex:
$List_working[]=array('work'=>'aaaaaaaa','fisnish'=>'1');
$List_working[]=array('work'=>'bbbbbbbb','fisnish'=>'0');
$List_working[]=array('work'=>'ccccccccccc','fisnish'=>'0');
$List_working[]=array('work'=>'dddddddd','fisnish'=>'1');

How can I do with TBS

<table>
<tr>
<td>[blk1.work]</td><td>{How about the check box}</td>
</tr>
</table>

with 1===>checked 0 no checked
Help me!
By: Skrol29
Date: 2005-10-31
Time: 01:03

Re: Help me checkbox

Hello,

<input
   name="work"
   type="checkbox"
   value="1"
   [blk1.work;if [val]=1; then 'checked="checked"' else '']
/>
By: thuc
Date: 2005-11-07
Time: 08:07

Re: Help me checkbox

thank you very much!