【发布时间】:2011-04-18 16:13:55
【问题描述】:
好的,所以我有一个表格,我需要找到一种将产品添加到系统的好方法。
<form action="create.php" method="post" id="form">
<table class="form">
<tr>
<td><span class="required">*</span> System Name:</td>
<td><input name="name" value="" size="100" />
</td>
</tr>
<tr>
<td>Sort Order:<br/><span class="help">Set to -1 to hide from listing</span></td>
<td><input name="sort_order" value="" size="1" /></td>
</tr>
</table>
</form>
所以问题是一个系统有多种产品,而每一种产品都有自己的数量。所以我正在寻找一种用户友好的方式来展示产品。这是我所有产品的阵列。我在考虑一个复选框,但由于数据库中有 200 种产品,它可能会持续很长时间。我真的想要某种可拖动的 jquery 或能让用户轻松使用的东西....我正在寻找任何好的建议....再次感谢
<?php foreach ($products as $product) { ?>
<!-- make the checkbox or something to all the user to pick the product and quantity -->
<?php } ?>
【问题讨论】:
标签: php jquery jquery-ui forms multidimensional-array