作者 何书鹏

问题代码修改

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