|
|
@@ -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 {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|