|
@@ -182,25 +182,20 @@ class Manage
|
|
|
$head .= '</tr></thead>';
|
|
|
|
|
|
if ($option) {
|
|
|
- $option = Dever::cartesian($option, function($option, $index)
|
|
|
- {
|
|
|
- print_r($option);die;
|
|
|
- $html = '<tr data-row="' .($index+1). '">';
|
|
|
+ $option = Dever::cartesian($option);
|
|
|
|
|
|
- foreach ($option['name'] as $k => $v) {
|
|
|
+ foreach ($option as $k => $v) {
|
|
|
+ $body .= '<tr data-row="' .($k+1). '">';
|
|
|
+
|
|
|
+ foreach ($v['name'] as $k => $v) {
|
|
|
$rows = 1;
|
|
|
- $html .= '<td width="50" rowspan="'.$rows.'">'.$v.'</td>';
|
|
|
+ $body .= '<td width="50" rowspan="'.$rows.'">'.$v.'</td>';
|
|
|
}
|
|
|
- $html .= '<td width="30"><input type="text" class="layui-input" name="price[]" /></td>';
|
|
|
- $html .= '<td width="30"><input type="text" class="layui-input" name="price[]" /></td>';
|
|
|
- $html .= '<td width="30"><input type="text" class="layui-input" name="price[]" /></td>';
|
|
|
- $html .= '</tr>';
|
|
|
- return $html;
|
|
|
- });
|
|
|
-
|
|
|
- print_r($option);die;
|
|
|
-
|
|
|
- $body .= implode('', $option);
|
|
|
+ $body .= '<td width="30"><input type="text" class="layui-input" name="price[]" /></td>';
|
|
|
+ $body .= '<td width="30"><input type="text" class="layui-input" name="price[]" /></td>';
|
|
|
+ $body .= '<td width="30"><input type="text" class="layui-input" name="price[]" /></td>';
|
|
|
+ $body .= '</tr>';
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$body .= '</tbody>';
|