echo $value->mat_expdate; ?> </label> </td> <td><?php echo $value->type_name; ?> </td> <td> <h4> <label class="label label-<?php echo getDataListByKey($value->mat_status, listMaterialStatus(), 'BGCOLOR'); ?> "> <?php echo getDataListByKey($value->mat_status, listMaterialStatus(), 'NAME'); ?> </label> </h4> </td> </tr> <?php } ?> </tbody> </table> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">ปิด</button> </div> </div>
<div class="col-md-6"> <label for="price" class="col-sm-4 control-label">ราคา</label> <div class="col-sm-6"> <input type="text" class="form-control" name="price" placeholder="ราคา" required data-bv-notempty-message="กรุณากรอก ราคา" value="<?php echo $price; ?> "/> </div> </div> <div class="col-md-6"> <label for="status" class="col-sm-4 control-label">สถานะ</label> <div class="col-sm-4"> <?php $status = listMaterialStatus(); ?> <select class="form-control" name="status" required data-bv-notempty-message="กรุณาเลือกสถานะ"> <?php foreach ($status as $key => $data) { ?> <?php if ($status == $key) { ?> <option value="<?php echo $key; ?> " selected><?php echo $data; ?> </option>