如何在此下拉列表中添加一些文本框,这些文本框将显示有关所选记录的信息?
<div class="control-group">
<label class="control-label" id="customer_l"><?php echo $this->lang->line("customer"); ?></label>
<div class="controls"> <?php
$cu[""] = "";
foreach ($customers as $customer) {
if ($customer->company == "-" || !$customer->company) {
$cu[$customer->id] = $customer->name . " (P)";
} else {
$cu[$customer->id] = $customer->company . " (C)";
}
}
echo form_dropdown('customer', $cu, (isset($_POST['customer']) ? $_POST['customer'] : ""), 'id="customer_s" data-placeholder="' . $this->lang->line("select") . ' ' . $this->lang->line("customer") . '" required="required" data-error="' . $this->lang->line("customer") . ' ' . $this->lang->line("is_required") . '"');
?> </div>
</div>
任何消化? 谢谢!