blob: 0531d8b3193e693cd4580cd831d491156ce90a18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<? if (!empty($supplied_parts)): ?>
<select name="part_supplier[<?=$part->id?>]" class="supplier_select">
<? foreach ($supplied_parts AS $row): ?>
<? $supplier = $row['Supplier']; ?>
<? $spart = $row['SupplierPart']; ?>
<option id="supplier_<?=$supplier->id?>" value="<?=$spart->id?>"><?=$supplier->get('name')?></option>
<? endforeach ?>
</select>
<? else: ?>
<input type="hidden" name="no_suppliers[]" value="<?=$part->id?>" />
<b>No Suppliers!</b>
<? endif ?>
|