作者 anyv
1 个管道 的构建 通过 耗费 0 秒

商品编辑

... ... @@ -63,6 +63,8 @@ class SalesmangoodsController extends AdminBaseController{
$data['more'][$key]['name'] = $data['det_name'][$key];
}
}
$data_gradeall = Db::name('gradeall ') -> select();
$this -> assign('data_gradeall',$data_gradeall);
$this -> assign('data',$data);
return $this -> fetch();
}
... ...
... ... @@ -71,6 +71,29 @@
<td><input class="form-control" type="text" name="book_number" value="{$data.book_number}"
placeholder="请输入书号"></td>
</tr>
<tr>
<th>开本</th>
<td><input class="form-control" type="text" name="book_size" value="{$data.book_size}"
placeholder="请输入开本"></td>
</tr>
<tr>
<th>纸张</th>
<td><input class="form-control" type="text" name="paper" value="{$data.paper}"
placeholder="请输入纸张"></td>
</tr>
<tr>
<th>印刷</th>
<td><input class="form-control" type="text" name="printing" value="{$data.printing}"
placeholder="请输入印刷"></td>
</tr>
<tr>
<th>装订</th>
<td><input class="form-control" type="text" name="binding" value="{$data.binding}"
placeholder="请输入装订"></td>
</tr>
<tr>
<th>作者</th>
<td><input class="form-control" type="text" name="author" value="{$data.author}"
... ... @@ -88,17 +111,20 @@
</tr>
<tr>
<th>套装</th>
<td>
<select name="suit" class="form-control">
<option value="0">全部</option>
</select>
</td>
<td><input class="form-control" type="text" name="suit" value="{$data.suit}"
placeholder="请输入套装"></td>
</tr>
<tr>
<th>适合年级</th>
<td>
<select name="grade" class="form-control">
<option value="0">全部</option>
<volist name="data_gradeall" id="vo">
<if condition="$vo.grade_name eq $data.grade">
<option value="{$vo.grade_name}" selected>{$vo.grade_name}</option>
<else/>
<option value="{$vo.grade_name}">{$vo.grade_name}</option>
</if>
</volist>
</select>
</td>
</tr>
... ...