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

Revision 15080, 1.5 KB checked in by nanasess, 15 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/delivery.tpl';
14        $this->tpl_subnavi = 'basis/subnavi.tpl';
15        $this->tpl_subno = 'delivery';
16        $this->tpl_mainno = 'basis';
17        global $arrPref;
18        $this->arrPref = $arrPref;
19        global $arrTAXRULE;
20        $this->arrTAXRULE = $arrTAXRULE;
21        $this->tpl_subtitle = '配送業者設定';
22
23    }
24}
25
26$conn = new SC_DBConn();
27$objPage = new LC_Page();
28$objView = new SC_AdminView();
29$objSess = new SC_Session();
30$objQuery = new SC_Query();
31
32// 認証可否の判定
33sfIsSuccess($objSess);
34
35switch($_POST['mode']) {
36case 'delete':
37    // ランク付きレコードの削除
38    sfDeleteRankRecord("dtb_deliv", "deliv_id", $_POST['deliv_id']);
39    // 再表示
40    sfReload();
41    break;
42case 'up':
43    sfRankUp("dtb_deliv", "deliv_id", $_POST['deliv_id']);
44    // 再表示
45    sfReload();
46    break;
47case 'down':
48    sfRankDown("dtb_deliv", "deliv_id", $_POST['deliv_id']);
49    // 再表示
50    sfReload();
51    break;
52default:
53    break;
54}
55
56// 配送業者一覧の取得
57$col = "deliv_id, name, service_name";
58$where = "del_flg = 0";
59$table = "dtb_deliv";
60$objQuery->setorder("rank DESC");
61$objPage->arrDelivList = $objQuery->select($col, $table, $where);
62
63$objView->assignobj($objPage);
64$objView->display(MAIN_FRAME);
65//--------------------------------------------------------------------------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.