Changeset 22567 for branches/version-2_12-dev/data/class/SC_Fpdf.php
- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Fpdf.php
r22250 r22567 30 30 define('PDF_TEMPLATE_REALDIR', TEMPLATE_ADMIN_REALDIR . 'pdf/'); 31 31 32 class SC_Fpdf extends SC_Helper_FPDI { 33 function __construct($download, $title, $tpl_pdf = 'nouhinsyo1.pdf') { 32 class SC_Fpdf extends SC_Helper_FPDI 33 { 34 function __construct($download, $title, $tpl_pdf = 'nouhinsyo1.pdf') 35 { 34 36 $this->FPDF(); 35 37 // デフォルトの設定 … … 67 69 } 68 70 69 function setData($arrData) { 71 function setData($arrData) 72 { 70 73 $this->arrData = $arrData; 71 74 … … 93 96 } 94 97 95 function setShopData() { 98 function setShopData() 99 { 96 100 // ショップ情報 97 101 … … 130 134 } 131 135 132 function setMessageData() { 136 function setMessageData() 137 { 133 138 // メッセージ 134 139 $this->lfText(27, 70, $this->arrData['msg1'], 8); //メッセージ1 … … 139 144 } 140 145 141 function setOrderData() { 146 function setOrderData() 147 { 142 148 $arrOrder = array(); 143 149 // DBから受注情報を読み込む … … 264 270 * @return string 変更後の文字列 265 271 */ 266 function setEtcData() { 272 function setEtcData() 273 { 267 274 $this->Cell(0, 10, '', 0, 1, 'C', 0, ''); 268 275 $this->SetFont('Gothic', 'B', 9); … … 273 280 } 274 281 275 function createPdf() { 282 function createPdf() 283 { 276 284 // PDFをブラウザに送信 277 285 ob_clean(); … … 292 300 293 301 // PDF_Japanese::Text へのパーサー 294 function lfText($x, $y, $text, $size = 0, $style = '') { 302 function lfText($x, $y, $text, $size = 0, $style = '') 303 { 295 304 // 退避 296 305 $bak_font_style = $this->FontStyle; … … 305 314 306 315 // 受注データの取得 307 function lfGetOrderData($order_id) { 316 function lfGetOrderData($order_id) 317 { 308 318 if (SC_Utils_Ex::sfIsInt($order_id)) { 309 319 // DBから受注情報を読み込む … … 329 339 330 340 // 受注詳細データの取得 331 function lfGetOrderDetail($order_id) { 341 function lfGetOrderDetail($order_id) 342 { 332 343 $objQuery =& SC_Query_Ex::getSingletonInstance(); 333 344 $col = 'product_id, product_class_id, product_code, product_name, classcategory_name1, classcategory_name2, price, quantity, point_rate, tax_rate, tax_rule';
Note: See TracChangeset
for help on using the changeset viewer.