|
@@ -647,12 +647,16 @@ class Input
|
|
|
|
|
|
if ($state == 2) {
|
|
|
$parent_check = '';
|
|
|
+
|
|
|
if (isset($param['value']) && isset($param['value'][$v['id']])) {
|
|
|
- $parent_check = 'checked';
|
|
|
+ $vt = implode(',', $param['value'][$v['id']]);
|
|
|
+ if ($vt != -1) {
|
|
|
+ $parent_check = 'checked';
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$name = $name . '['.$v['id'].']';
|
|
|
- $html .= '<input update_type="checked" class="update_value checkbox-checkall ' . (isset($param['valid']) ? $param['valid'] : '') . '" type="' . $input_type . '" name="temp[]" value="'.$param['name'] . '-' . $k . '" ' . $parent_check . '/> -----【' . $v['name'] . '】----- <br />';
|
|
|
+ $html .= '<input type="hidden" name="'.$name.'[]" value="-1" /><input update_type="checked" class="update_value checkbox-checkall ' . (isset($param['valid']) ? $param['valid'] : '') . '" type="' . $input_type . '" name="temp[]" value="'.$param['name'] . '-' . $k . '" ' . $parent_check . '/> -----【' . $v['name'] . '】----- <br />';
|
|
|
} else {
|
|
|
$html .= '<input update_type="checked" class="update_value checkbox-checkall ' . (isset($param['valid']) ? $param['valid'] : '') . '" type="' . $input_type . '" name="temp[]" value="'.$param['name'] . '-' . $k . '"/> -----【' . $v['name'] . '】----- <br />';
|
|
|
}
|