正在显示
2 个修改的文件
包含
33 行增加
和
6 行删除
@@ -116,6 +116,8 @@ class GoodsController extends AdminBaseController{ | @@ -116,6 +116,8 @@ class GoodsController extends AdminBaseController{ | ||
116 | $data['more'][$key]['name'] = $data['det_name'][$key]; | 116 | $data['more'][$key]['name'] = $data['det_name'][$key]; |
117 | } | 117 | } |
118 | } | 118 | } |
119 | + $data_gradeall = Db::name('gradeall ') -> select(); | ||
120 | + $this -> assign('data_gradeall',$data_gradeall); | ||
119 | $this -> assign('data',$data); | 121 | $this -> assign('data',$data); |
120 | } | 122 | } |
121 | 123 |
@@ -98,6 +98,28 @@ | @@ -98,6 +98,28 @@ | ||
98 | <td><input class="form-control" type="text" name="book_number" value="{$data.book_number}" | 98 | <td><input class="form-control" type="text" name="book_number" value="{$data.book_number}" |
99 | placeholder="请输入书号"></td> | 99 | placeholder="请输入书号"></td> |
100 | </tr> | 100 | </tr> |
101 | + | ||
102 | + <tr> | ||
103 | + <th>开本</th> | ||
104 | + <td><input class="form-control" type="text" name="book_size" value="{$data.book_size}" | ||
105 | + placeholder="请输入开本"></td> | ||
106 | + </tr> | ||
107 | + <tr> | ||
108 | + <th>纸张</th> | ||
109 | + <td><input class="form-control" type="text" name="paper" value="{$data.paper}" | ||
110 | + placeholder="请输入纸张"></td> | ||
111 | + </tr> | ||
112 | + <tr> | ||
113 | + <th>印刷</th> | ||
114 | + <td><input class="form-control" type="text" name="printing" value="{$data.printing}" | ||
115 | + placeholder="请输入印刷"></td> | ||
116 | + </tr> | ||
117 | + <tr> | ||
118 | + <th>装订</th> | ||
119 | + <td><input class="form-control" type="text" name="binding" value="{$data.binding}" | ||
120 | + placeholder="请输入装订"></td> | ||
121 | + </tr> | ||
122 | + | ||
101 | <tr> | 123 | <tr> |
102 | <th>作者</th> | 124 | <th>作者</th> |
103 | <td><input class="form-control" type="text" name="author" value="{$data.author}" | 125 | <td><input class="form-control" type="text" name="author" value="{$data.author}" |
@@ -115,17 +137,20 @@ | @@ -115,17 +137,20 @@ | ||
115 | </tr> | 137 | </tr> |
116 | <tr> | 138 | <tr> |
117 | <th>套装</th> | 139 | <th>套装</th> |
118 | - <td> | ||
119 | - <select name="suit" class="form-control"> | ||
120 | - <option value="0">全部</option> | ||
121 | - </select> | ||
122 | - </td> | 140 | + <td><input class="form-control" type="text" name="suit" value="{$data.suit}" |
141 | + placeholder="请输入套装"></td> | ||
123 | </tr> | 142 | </tr> |
124 | <tr> | 143 | <tr> |
125 | <th>适合年级</th> | 144 | <th>适合年级</th> |
126 | <td> | 145 | <td> |
127 | <select name="grade" class="form-control"> | 146 | <select name="grade" class="form-control"> |
128 | - <option value="0">全部</option> | 147 | + <volist name="data_gradeall" id="vo"> |
148 | + <if condition="$vo.grade_name eq $data.grade"> | ||
149 | + <option value="{$vo.grade_name}" selected>{$vo.grade_name}</option> | ||
150 | + <else/> | ||
151 | + <option value="{$vo.grade_name}">{$vo.grade_name}</option> | ||
152 | + </if> | ||
153 | + </volist> | ||
129 | </select> | 154 | </select> |
130 | </td> | 155 | </td> |
131 | </tr> | 156 | </tr> |
-
请 注册 或 登录 后发表评论