gang.huang il y a 2 ans
Parent
commit
94015de1f3
1 fichiers modifiés avec 10 ajouts et 10 suppressions
  1. 10 10
      admin/templates/default/provider.amount.control.php

+ 10 - 10
admin/templates/default/provider.amount.control.php

@@ -228,22 +228,22 @@
                                         <td class="batch-td" data-color="<?php echo $amount['type']; ?>">
                                             <div class="priority">
                                                 <?php
-                                                $key = "{$provider['name']}-{$amount['amount']}-{$amount['type']}";
-                                                if (array_key_exists($key, $output['channel_ctl_model'])) {
-                                                    echo ceil($output['channel_ctl_model'][$key][0]);
-                                                } else {
-                                                    echo 0;
-                                                }
+                                                // $key = "{$provider['name']}-{$amount['amount']}-{$amount['type']}";
+                                                // if (array_key_exists($key, $output['channel_ctl_model'])) {
+                                                //     echo ceil($output['channel_ctl_model'][$key][0]);
+                                                // } else {
+                                                //     echo 0;
+                                                // }
                                                 ?>
                                             </div>
                                             <div class="listNum">
-                                                <input type="text" class="input-one styleOne w46" name="speed[]" autocomplete="off" value="<?php echo $output['datas'][$provider['provider_id']][$key + 1]['speed'] ?>" <?php if ($output['datas'][$provider['provider_id']][$key + 1]['has'] == 0) { ?> readOnly style="background-color:#eaeaea;" <?php } ?>>
+                                                <input type="text" class="input-one styleOne w46" name="speed[]" autocomplete="off" value="<?php echo $output['datas'][$provider['provider_id']][$key]['speed'] ?>" <?php if ($output['datas'][$provider['provider_id']][$key]['has'] == 0) { ?> readOnly style="background-color:#eaeaea;" <?php } ?>>
                                             </div>
                                             <div class="priority">
-                                                <input type="text" class="input-tow styleTow w32" name="sort[]" autocomplete="off" value="<?php echo $output['datas'][$provider['provider_id']][$key + 1]['sort'] ?>" <?php if ($output['datas'][$provider['provider_id']][$key + 1]['has'] == 0) { ?> readOnly style="background-color:#eaeaea;" <?php } ?>>
+                                                <input type="text" class="input-tow styleTow w32" name="sort[]" autocomplete="off" value="<?php echo $output['datas'][$provider['provider_id']][$key]['sort'] ?>" <?php if ($output['datas'][$provider['provider_id']][$key]['has'] == 0) { ?> readOnly style="background-color:#eaeaea;" <?php } ?>>
                                             </div>
                                             <div class="priority">
-                                                <input type="text" class="input-three styleTow w32" name="opened[]" autocomplete="off" value="<?php echo $output['datas'][$provider['provider_id']][$key + 1]['opened'] ?>" <?php if ($output['datas'][$provider['provider_id']][$key + 1]['has'] == 0) { ?> readOnly style="background-color:#eaeaea;" <?php } ?>>
+                                                <input type="text" class="input-three styleTow w32" name="opened[]" autocomplete="off" value="<?php echo $output['datas'][$provider['provider_id']][$key]['opened'] ?>" <?php if ($output['datas'][$provider['provider_id']][$key]['has'] == 0) { ?> readOnly style="background-color:#eaeaea;" <?php } ?>>
                                             </div>
 
                                         </td>
@@ -271,7 +271,7 @@
 <script type="text/javascript">
     $(function() {
 
-        console.log("$output['datas']", <?php echo json_encode($output['datas']) ?>, <?php echo json_encode($output['providers']) ?>);
+        // console.log("$output['datas']", <?php echo json_encode($output['datas']) ?>, <?php echo json_encode($output['providers']) ?>);
 
         // $(window).scroll(function() {
         //     let toLeft = document.documentElement.scrollLeft || document.body.scrollLeft;