shish 2 years ago
parent
commit
dfa44e39c7
1 changed files with 15 additions and 0 deletions
  1. 15 0
      app-ghs/controllers/StatBookController.php

+ 15 - 0
app-ghs/controllers/StatBookController.php

@@ -45,6 +45,21 @@ class StatBookController extends BaseController
         if (empty($list)) {
             util::fail('没有花材需要打印');
         }
+        $num = count($list);
+        $pageSize = 16;
+        $ratio = ceil($num / $pageSize);
+
+        $content = "<CB>预订汇总</CB><BR><BR>";
+        if ($ratio > 1) {
+            for ($i = 1; $i <= $ratio; $i++) {
+
+                $offset = ($i - 1) * $pageSize;
+                $current = array_slice($list, $offset, $pageSize);
+                print_r($current);
+            }
+        } else {
+
+        }
     }
 
 }