|
@@ -134,7 +134,7 @@
|
|
|
|
|
|
<tbody class="tbody">
|
|
|
<?php foreach ($prices as $k => $price) { ?>
|
|
|
- <tr class="w500">
|
|
|
+ <tr class="w500 trFlex-<?php echo $card_type ?>">
|
|
|
<td class="w150 align-center">
|
|
|
<?php echo $card_type; ?>
|
|
|
</td>
|
|
@@ -143,7 +143,7 @@
|
|
|
</td>
|
|
|
<td class="w150 align-center tdVal">
|
|
|
|
|
|
- <input type="checkbox" class="cellCheckBox cellCheckBox-<?php echo $k ?>" id="checkBoxList" name="items[<?php echo $card_type;?>][]" value="<?php echo "{$price}"; ?>"
|
|
|
+ <input type="checkbox" class="cellCheckBox-<?php echo $card_type ?>" id="checkBoxList" name="items[<?php echo $card_type;?>][]" value="<?php echo "{$price}"; ?>"
|
|
|
<?php if(array_key_exists($card_type, $output['goods'])) {
|
|
|
if(in_array($price, $output['goods'][$card_type])) {
|
|
|
echo 'checked';
|
|
@@ -179,5 +179,16 @@
|
|
|
$("#submitBtn").click(function() {
|
|
|
$("#price_form").submit();
|
|
|
});
|
|
|
+
|
|
|
+ $('.checkAllCol').click(function() {
|
|
|
+ const card_type = $(this).attr('data-index');
|
|
|
+
|
|
|
+ if ($(this).is(':checked')) {
|
|
|
+ $('.trFlex-'+card_type).find("input[type='checkbox']").attr('checked', true)
|
|
|
+ } else {
|
|
|
+ $('.trFlex-'+card_type).find("input[type='checkbox']").attr('checked', false)
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
});
|
|
|
</script>
|