From 1f0f2acd176a7371f597c82efa8fd257b748d4f1 Mon Sep 17 00:00:00 2001 From: 10994015 Date: Thu, 9 Nov 2023 09:14:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=90=88=E7=B4=84=E6=9B=B8?= =?UTF-8?q?=E4=B8=8B=E8=BC=89=E8=A8=BB=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/contract/export-pdf.php | 7 +++---- wms/contract/prviewPdf.php | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/wms/contract/export-pdf.php b/wms/contract/export-pdf.php index 6f15ada1..daa46e54 100644 --- a/wms/contract/export-pdf.php +++ b/wms/contract/export-pdf.php @@ -71,9 +71,9 @@ if(isset($_POST['html'])){ $this->Cell(0, 10, $pageNumText, 0, false, 'C', 0, '', 0, false, 'T', 'M'); $this->SetTextColor(225, 225, 225); - $this->SetY(-23); // 设置Y坐标到页面底部 + $this->SetY(-23); // 設定Y座標在頁面底部 $this->SetFont($customFont, '', 12); - $this->Cell(0, 10, $token, 0, 0, 'R'); // 在右下角添加浮水印文本 + $this->Cell(0, 10, $token, 0, 0, 'R'); // 在右下角添加浮水印 } } @@ -100,7 +100,6 @@ if(isset($_POST['html'])){ // 加入 HTML 和 CSS $html = $_POST['css'] . $_POST['html']; - // 使用正則表達式找到 xxxx $footer = $_POST['footer']; @@ -168,7 +167,7 @@ if(isset($_POST['html'])){ $width = $pdf->getPageWidth(); $height = $pdf->getPageHeight(); - // 加入 HTML 和 CSS + // 加入footer $footer = $_POST['footer']; // 寫入 HTML 到 PDF diff --git a/wms/contract/prviewPdf.php b/wms/contract/prviewPdf.php index a2e03041..807d09e1 100644 --- a/wms/contract/prviewPdf.php +++ b/wms/contract/prviewPdf.php @@ -61,7 +61,7 @@ function numberToChinese($num) { } elseif ($num < 100) { return $chineseNumbers[intval($num / 10)] . $units[1] . ($num % 10 > 0 ? $chineseNumbers[$num % 10] : ''); } else { - // 处理大于 99 的数字 + // 處理大於 99 的数字 $result = ''; $strNum = strval($num); $length = strlen($strNum); @@ -77,7 +77,7 @@ function numberToChinese($num) { } } function removeTrailingBr($string) { - //使用正則表達式刪除字串尾巴的

+ //刪除字串尾巴的

return preg_replace('/()+$/', '', $string); }