开发者

checkbox group decorator using zend

开发者 https://www.devze.com 2023-03-23 12:14 出处:网络
I wnat to display checkbox group using zend form multicheckbox but not getting the use of decorators. i am bringing the array list from the database in an key value pair array..

I wnat to display checkbox group using zend form multicheckbox but not getting the use of decorators. i am bringing the array list from the database in an key value pair array..

<td><table width="100%" cellspacing="0" cellpadding="0" border="0">
                            <tbody><tr>
                              <td width="25" align="center" height="22">                            <input type="checkbox" id="checkbox27" name="group[]">            </td>
                              <td>Pharmaceutical</td>
                              <td width="25" align="center"><input type="checkbox" id="checkbox34" name="group[]"></td>
                              <td>Biotechnology</td>
                            </tr>
        开发者_如何学C                    <tr>
                              <td align="center" height="22"><input type="checkbox" id="checkbox28" name="group[]"></td>
                              <td>Environmental/Agro  Chemical</td>
                              <td align="center"><input type="checkbox" id="checkbox35" name="group[]"></td>
                              <td>Medical  Device</td>
                            </tr>
                          </tbody></table></td>

how can i set this using decorators..


I'm not sure if this is possible with ZF decorators. If it is, it will be an overkill solution. So maybe you could just play a bit with css?! Cause I don't see any other difficulties but the styling. Or am I missing something?

A normal multicheckbox is listed as labels. You can float these labels to the left and give them a width that equals the width of your placeholder divided by 2. And so on for other styling.

0

精彩评论

暂无评论...
验证码 换一张
取 消