source: branches/version-1/html/admin/pdf.d/input.php @ 17235

Revision 17235, 2.0 KB checked in by satou, 16 years ago (diff)

納品書発行機能 by homan (merge r17113)

Line 
1<?php
2/*
3 * Copyright(c) 2000-2008 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7require_once("../require.php");
8
9class LC_Page {
10    var $arrErr;        // ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸½ÐÎÏÍÑ
11    var $tpl_recv;      // ÆþÎϾðÊóPOSTÀè
12    var $arrForm;       // ¥Õ¥©¡¼¥à½ÐÎÏÍÑ
13    function LC_Page() {
14        $this->tpl_recv =  'index.php';
15        $this->SHORTTEXT_MAX = STEXT_LEN;
16        $this->MIDDLETEXT_MAX = MTEXT_LEN;
17        $this->LONGTEXT_MAX = LTEXT_LEN;
18       
19        $this->arrYear  = array(2007=>"2007",2008=>"2008",2009=>"2009",2010=>"2010",2011=>"2011",2012=>"2012");
20        $this->arrMonth = array("01"=>"01","02"=>"02","03"=>"03","04"=>"04","05"=>"05","06"=>"06","07"=>"07","08"=>"08","09"=>"09","10"=>"10","11"=>"11","12"=>"12");
21        $this->arrDay   = array("01"=>"01","02"=>"02","03"=>"03","04"=>"04","05"=>"05","06"=>"06","07"=>"07","08"=>"08","09"=>"09","10"=>"10","11"=>"11","12"=>"12","13"=>"13","14"=>"14","15"=>"15","16"=>"16","17"=>"17","18"=>"18","19"=>"19","20"=>"20","21"=>"21","22"=>"22","23"=>"23","24"=>"24","25"=>"25","26"=>"26","27"=>"27","28"=>"28","29"=>"29","30"=>"30","31"=>"31");
22        $this->arrMode  = array("ǼÉʽñ");
23        $this->arrDownload = array("¥Ö¥é¥¦¥¶¤Ë³«¤¯","¥Õ¥¡¥¤¥ë¤ËÊݸ");
24    }
25}
26
27$conn = new SC_DbConn();
28$objPage = new LC_Page();
29$objView = new SC_AdminView();
30
31// ǧ¾Ú²ÄÈݤÎȽÄê
32$objSess = new SC_Session();
33sfIsSuccess($objSess);
34
35
36// ¼õÃíÈֹ椬¤¢¤Ã¤¿¤é¡¢¥»¥Ã¥È¤¹¤ë
37if(sfIsInt($_GET['order_id'])) {
38    $objPage->tpl_order_id = $_GET['order_id'];
39}
40
41// ¥¿¥¤¥È¥ë¤ò¥»¥Ã¥È
42$arrForm['chohyo_title'] = "¤ªÇã¾å¤²ÌÀºÙ½ñ(ǼÉʽñ)";
43
44// º£Æü¤ÎÆüÉÕ¤ò¥»¥Ã¥È
45$arrForm['year']  = date("Y");
46$arrForm['month'] = date("m");
47$arrForm['day']   = date("d");
48
49// ¥á¥Ã¥»¡¼¥¸
50$arrForm['chohyo_msg1'] = '¤³¤Î¤¿¤Ó¤Ï¤ªÇã¾å¤²¤¤¤¿¤À¤­¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£';
51$arrForm['chohyo_msg2'] = '²¼µ­¤ÎÆâÍƤˤÆǼÉʤµ¤»¤Æ¤¤¤¿¤À¤­¤Þ¤¹¡£';
52$arrForm['chohyo_msg3'] = '¤´³Îǧ¤¤¤¿¤À¤­¤Þ¤¹¤è¤¦¡¢¤ª´ê¤¤¤¤¤¿¤·¤Þ¤¹¡£';
53
54$objPage->arrForm = $arrForm;
55
56// ²èÌÌÁ«°Ü¤ÎÀµÅöÀ­¥Á¥§¥Ã¥¯ÍѤËuniqid¤òËä¤á¹þ¤à
57$objPage->tpl_uniqid = $objSess->getUniqId();
58
59// ¥Æ¥ó¥×¥ì¡¼¥ÈÍÑÊÑ¿ô¤Î³ä¤êÅö¤Æ
60$objView->assignobj($objPage);
61$objView->display('pdf.d/input.tpl');
62?>
Note: See TracBrowser for help on using the repository browser.