我希望一旦用户想要编辑组合显示其值而不是选择提供者,但是如果我打开组合框然后显示所有记录以将其更改为其他...
我的html看起来像这样
<div class="col-md-8">
<label for="provider">Provider: </label>
<select name="select_provider" id="select_provider" class="form-control" required>
<option value="">Select a provider</option>
<?php foreach ($data as $value): ?>
<option value="<?php echo $value['id']; ?>">
<?php echo $value['first_name'].' '.$value['last_name'] ?>
</option>
<?php endforeach ?>
</select>
</div>
模型
public function get_product($id) {
$this->db->select('code,description,purchase_price,sale_price,wholesale_price,min_stock,stock,max_stock,provider_id');
$this->db->from('storelte_products');
$this->db->where('hash_id', $id);
$query = $this->db->get();
return $query->row();
}
controller view_update
public function getViewProductUpdate($id){
$data['data'] = $this->providers->datatable();
$data['product'] = $this->products->get_product($id);
$this->load->view('inventory/get_view_product_update', $data);
}
数据值
Array
(
[0] => Array
(
[id] => 1005
[hash_id] => 2387337ba1e0b0249ba90f55b2ba2521
[first_name] => Luis
[last_name] => Fernando
[phone] => 6691234763
[email] => ajdjh159@gmail.com
[address] => 9267 3rd Terrace
[status] => 1
)
[1] => Array
(
[id] => 1006
[hash_id] => 9246444d94f081e3549803b928260f56
[first_name] => Aaron
[last_name] => Imperial
[phone] => 6691297463
[email] => 2014030391@gmail.com
[address] => 95657 Dayton Drive
[status] => 1
)
[2] => Array
(
[id] => 1007
[hash_id] => d7322ed717dedf1eb4e6e52a37ea7bcd
[first_name] => Vaclav
[last_name] => Welchman
[phone] => 1-(717)350-7799
[email] => vwelchman0@cam.ac.uk
[address] => 2 Bunting Lane
[status] => 1
)
[3] => Array
(
[id] => 1008
[hash_id] => 1587965fb4d4b5afe8428a4a024feb0d
[first_name] => Priscella
[last_name] => Berard
[phone] => 51-(666)428-0803
[email] => pberard1@deviantart.com
[address] => 95657 Dayton Drive
[status] => 1
)
[4] => Array
(
[id] => 1009
[hash_id] => 31b3b31a1c2f8a370206f111127c0dbd
[first_name] => Conan
[last_name] => Reeder
[phone] => 380-(625)153-0067
[email] => creeder2@canalblog.com
[address] => 3 Saint Paul Alley
[status] => 1
)
[5] => Array
(
[id] => 1010
[hash_id] => 1e48c4420b7073bc11916c6c1de226bb
[first_name] => Moira
[last_name] => MacDiarmond
[phone] => 86-(208)522-9926
[email] => mmacdiarmond3@free.fr
[address] => 85060 Magdeline Park
[status] => 1
)
[6] => Array
(
[id] => 1011
[hash_id] => 23a1b15a787f353467b4c05ae4a6294d
[first_name] => Tirrell
[last_name] => Jiruca
[phone] => 375-(602)707-0372
[email] => tjiruca4@ibm.com
[address] => 797 Barnett Court
[status] => 1
)
[7] => Array
(
[id] => 1012
[hash_id] => 7f975a56c761db6506eca0b37ce6ec87
[first_name] => Ardelle
[last_name] => O'Neal
[phone] => 351-(768)327-9216
[email] => aoneal5@issuu.com
[address] => 835 Clarendon Court
[status] => 1
)
[8] => Array
(
[id] => 1013
[hash_id] => 6b180037abbebea991d8b1232f8a8ca9
[first_name] => Traci
[last_name] => Brounsell
[phone] => 357-(827)196-0058
[email] => tbrounsell6@twitpic.com
[address] => 5367 Aberg Avenue
[status] => 1
)
[9] => Array
(
[id] => 1014
[hash_id] => 766d856ef1a6b02f93d894415e6bfa0e
[first_name] => Giusto
[last_name] => Cullen
[phone] => 216-(774)653-7737
[email] => gcullen7@upenn.edu
[address] => 9267 3rd Terrace
[status] => 1
)
[10] => Array
(
[id] => 1015
[hash_id] => 298923c8190045e91288b430794814c4
[first_name] => Lyon
[last_name] => Espadero
[phone] => 62-(243)456-0782
[email] => lespadero8@eventbrite.com
[address] => 94183 Daystar Road
[status] => 1
)
[11] => Array
(
[id] => 1016
[hash_id] => 08fe2621d8e716b02ec0da35256a998d
[first_name] => Consuela
[last_name] => Tschirschky
[phone] => 7-(194)509-2878
[email] => ctschirschky9@abc.net.au
[address] => 4628 Buell Court
[status] => 1
)
)
https://developer.android.com/reference/android/hardware/camera2/CaptureRequest.Builder.html dropdown