后端:
model:
public static $PROGRERSS = [
1 => 'xxx',
2 => 'xxx',
3 => 'xxx',
4 => 'xxx',
5 => 'xxx',
];
controller:
$this->assign('progress',Orders::$PROGRERSS);
前端:
<select name="progress" class="jd">
<option value="0">订单进度</option>
{volist name="progress" key="k" id="po"}
<option value="{$k}" {if isset($info.progress) && $info.progress==$k} selected="selected"{/if}>{$po}</option>
{/volist}
</select>