Browse Source

provider_ctl

xiaoyu 2 years ago
parent
commit
535c9531e4

File diff suppressed because it is too large
+ 5 - 0
admin/control/provider_ctl.php


+ 14 - 0
admin/templates/default/provider.amount.control.php

@@ -185,6 +185,9 @@
                                 <th class="align-center w120 mw120" style="height:16px">类目</td>
                                     <?php foreach ($output['providers'] as $provider) { ?>
                                 <th class="batch-td">
+                                    <div class="priority">
+                                        当前单量
+                                    </div>
                                     <div class="listNum">
                                         单量
                                         <div class="batch" style="display: inline-block"><i class="icon-edit" title="批量操作"></i>
@@ -223,6 +226,17 @@
                                         <input type="hidden" name="str[]" value="<?php echo "{$provider['provider_id']}-{$amount['type']}-{$amount['amount']}-{$output['datas'][$provider['provider_id']][$key]['has']}"; ?>">
 
                                         <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;
+                                                    }
+                                                ?>
+                                            </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]['speed'] ?>" <?php if ($output['datas'][$provider['provider_id']][$key]['has'] == 0) { ?> readOnly style="background-color:#eaeaea;" <?php } ?>>
                                             </div>