<div class="row"> </div>
$row['icon'] = isset($row['icon']) ? $row['icon']: "fa-facebook";
<div class="col-sm-3"> <div class="form-group"> <label for="icon">圖示</label> <div class="input-group iconpicker-container"> <input type="text" data-placement="bottomRight" class="form-control icp icp-auto iconpicker-element iconpicker-input" id="icon" name="icon" value="<{$row.icon}>"> <span class="input-group-addon"><i class="fa <{$row.icon}>"></i></span> </div> </div> </div>
<div class="col-sm-3"> <div class="form-group"> <label for="pic">圖片<span>(800x449)</span></label> <input type="file" name="pic" accept="image/*" class="form-control"> </div> </div>
一、PHP上傳
二、表單