<select class="form-control" id="good_enabled" name="good_enabled"> <option value="1" <?=$data['enabled'] ==1 ? 'selected' : ''?> >启用</option> <option value="0" <?=$data['enabled'] !=1 ? 'selected' : ''?> >禁用</option> </select>
PHP遍历select
最新推荐文章于 2021-03-29 10:53:53 发布