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); }