source: branches/feature-module-update/html/admin/basis/payment.php @ 15080

Revision 15080, 1.7 KB checked in by nanasess, 17 years ago (diff)

svn properties 設定

  • svn:mime-type - application/x-httpd-php; charset=UTF-8
  • svn:keywords - Id
  • Property svn:keywords set to Id
  • Property svn:mime-type set to application/x-httpd-php; charset=UTF-8
Line 
1<?php
2/*
3 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7require_once("../require.php");
8
9class LC_Page {
10    var $arrSession;
11    var $tpl_mode;
12    function LC_Page() {
13        $this->tpl_mainpage = 'basis/payment.tpl';
14        $this->tpl_subnavi = 'basis/subnavi.tpl';
15        $this->tpl_mainno = 'basis';
16        $this->tpl_subno = 'payment';
17        $this->tpl_subtitle = '支払方法設定';
18    }
19}
20$conn = new SC_DBConn();
21$objPage = new LC_Page();
22$objView = new SC_AdminView();
23$objSess = new SC_Session();
24
25// 認証可否の判定
26sfIsSuccess($objSess);
27
28switch($_POST['mode']) {
29    case 'delete':
30    // ランク付きレコードの削除
31    sfDeleteRankRecord("dtb_payment", "payment_id", $_POST['payment_id']);
32    // 再表示
33    sfReload();
34    break;
35case 'up':
36    sfRankUp("dtb_payment", "payment_id", $_POST['payment_id']);
37    // 再表示
38    sfReload();
39    break;
40case 'down':
41    sfRankDown("dtb_payment", "payment_id", $_POST['payment_id']);
42    // 再表示
43    sfReload();
44    break;
45}
46
47$objPage->arrDelivList = sfGetIDValueList("dtb_deliv", "deliv_id", "service_name");
48$objPage->arrPaymentListFree = lfGetPaymentList(2);
49
50$objView->assignobj($objPage);
51$objView->display(MAIN_FRAME);
52//-----------------------------------------------------------------------------------------------------------------------------------
53// 配送業者一覧の取得
54function lfGetPaymentList($fix = 1) {
55    $objQuery = new SC_Query();
56    // 配送業者一覧の取得
57    $col = "payment_id, payment_method, charge, rule, upper_rule, note, deliv_id, fix, charge_flg";
58    $where = "del_flg = 0";
59//  $where .= " AND fix = ?";
60    $table = "dtb_payment";
61    $objQuery->setorder("rank DESC");
62    $arrRet = $objQuery->select($col, $table, $where);
63    return $arrRet;
64}
65
66?>
Note: See TracBrowser for help on using the repository browser.