Zend_Form:数据库记录在带有复选框的HTML表中 [英] Zend_Form: Database records in HTML table with checkboxes

查看:137
本文介绍了Zend_Form:数据库记录在带有复选框的HTML表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图添加一个HTML多列表到Zend_Form。该表将由数据库中的数据填充,每行之前应有一个复选框,如下面的ASCII所示:

I am trying to add a HTML multi-column table to a Zend_Form. The table would be populated by data from the database and each row should be preceded by a checkbox, as shown in the ASCII below:

+-----+-------------------------+-----------------------+--------------+
|     | Column_1                | Column_2              | Column_3     |
+-----+-------------------------+-----------------------+--------------+
| [x] | Row #1                  | Some data             | more data    |
+-----+-------------------------+-----------------------+--------------+
| [x] | Row #2                  | Some data             | more data    |
+-----+-------------------------+-----------------------+--------------+
| [x] | Row #3                  | Some data             | more data    |
+-----+-------------------------+-----------------------+--------------+

表将处理多对多关系。

The table would handle many-to-many relationships. Would anyone happen to know how to implement this?

推荐答案

至少你必须删除 DtDd 装饰器,将 Html 装饰器标记设置为div,并删除标签装饰器。

At the very least you'll have to remove DtDd Decorator, set the Html Decorator tag to div and remove the Label Decorator.

我建议你尽可能制作表格,然后从那里开始工作,至少让它一起去。

I suggest you make the form as best you can then work from that, at least give it a go.

在最坏的情况下,你必须编写自己的表单元素来复制这个HTML。

In the worst situation you will have to write your own form elements to replicate this HTML.

这篇关于Zend_Form:数据库记录在带有复选框的HTML表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆