作者 何书鹏

问题代码修改

<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="form-group">
<label for="c-pid" class="control-label col-xs-12 col-sm-2">{:__('Is_index')}:</label>
<label for="c-is_index" class="control-label col-xs-12 col-sm-2">{:__('Is_index')}:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-pid" data-rule="required" class="form-control selectpicker" name="row[pid]">
<select id="c-is_index" data-rule="required" class="form-control selectpicker" name="row[is_index]">
{foreach name="isindexList" item="vo"}
<option data-type="{$vo}" value="{$key}" {in name="key" value="$row.pid"}selected{/in}>{$vo}</option>
<option data-type="{$vo}" value="{$key}" {in name="key" value="$row.is_index"}selected{/in}>{$vo}</option>
{/foreach}
</select>
... ...