Ignore:
Timestamp:
2009/05/15 16:30:40 (15 years ago)
Author:
kajiwara
Message:

2.4.0 正式版のコミット。コミット内容の詳細はこちら(http://svn.ec-cube.net/open_trac/query?status=closed&milestone=EC-CUBE2.4.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/admin/order/LC_Page_Admin_Order_Pdf.php

    r17234 r18007  
    1 <?php 
     1<?php 
    22/* 
    33 * This file is part of EC-CUBE 
     
    5151        $this->tpl_subtitle = '帳票出力'; 
    5252 
    53             $this->SHORTTEXT_MAX = STEXT_LEN; 
    54             $this->MIDDLETEXT_MAX = MTEXT_LEN; 
    55             $this->LONGTEXT_MAX = LTEXT_LEN; 
     53        $this->SHORTTEXT_MAX = STEXT_LEN; 
     54        $this->MIDDLETEXT_MAX = MTEXT_LEN; 
     55        $this->LONGTEXT_MAX = LTEXT_LEN; 
    5656 
    57             $this->arrType[0]  = "納品書"; 
     57        $this->arrType[0]  = "納品書"; 
    5858 
    59             $this->arrDownload[0] = "ブラウザに開く"; 
    60             $this->arrDownload[1] = "ファイルに保存"; 
     59        $this->arrDownload[0] = "ブラウザに開く"; 
     60        $this->arrDownload[1] = "ファイルに保存"; 
    6161    } 
    6262 
     
    102102            // エラー入力なし 
    103103            if (count($this->arrErr) == 0) { 
    104                 $objFpdf = new SC_Fpdf($arrRet); 
     104                $i = 0; 
     105                $objFpdf = new SC_Fpdf($arrRet['download'], $arrRet['title']); 
     106                foreach ( $arrRet['order_id'] AS $key=>$val ) { 
     107                    $arrPdfData = $arrRet; 
     108                    $arrPdfData['order_id'] = $val; 
     109                    $objFpdf->setData($arrPdfData); 
     110                    ++$i; 
     111                } 
     112                $objFpdf->createPdf(); 
    105113            } 
    106114            break; 
     
    121129            // 受注番号があったら、セットする 
    122130            if(SC_Utils_Ex::sfIsInt($_GET['order_id'])) { 
    123                   $arrForm['order_id'] = $_GET['order_id']; 
     131                  $arrForm['order_id'][0] = $_GET['order_id']; 
     132            } elseif (is_array($_POST['pdf_order_id'])) { 
     133                    sort($_POST['pdf_order_id']); 
     134                    foreach ($_POST['pdf_order_id'] AS $key=>$val) { 
     135                          $arrForm['order_id'][] = $val; 
     136                    } 
    124137            } 
    125138 
Note: See TracChangeset for help on using the changeset viewer.