You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
information-system/webht/third_party/vendorPlanSync/libraries/trippest.php

64 lines
1.6 KiB
PHTML

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Trippest
{
protected $ci;
public function __construct()
{
$this->ci =& get_instance();
}
public function tour_name($pag_code)
{
$name = "";
switch ($pag_code) {
case 'BJSIC-41':
$name = "One Day Beijing Highlights Tour";
break;
case 'BJSIC-42':
$name = "Two-Day Beijing Boutique Small Group Tour";
break;
case 'BJSIC-43':
$name = "Three-Day Beijing Discovery Tour";
break;
default:
break;
}
return $name;
}
public $special_route = array(
"BJSIC-42" => array(
"code" => array('BJSIC-41','BJSIC-42')
,"name" => "北京精品两日游目的地BJSIC-42"
,"day" => 2
)
,"BJSIC-43" => array(
"code" => array('BJSIC-41','BJSIC-42','BJSIC-43')
,"name" => "北京精品三日游目的地BJSIC-43"
,"day" => 3
)
,"XASIC-42" => array(
"code" => array('XASIC-41','XASIC-42')
,"name" => "西安精品两日游目的地XASIC-42"
,"day" => 2
)
);
public function tour_code($pag_code)
{
$ret = array($pag_code);
if (isset($this->special_route[$pag_code])) {
$ret = $this->special_route[$pag_code]["code"];
}
return $ret;
}
}
/* End of file trippest.php */
/* Location: ./third_party/vendorPlanSync/libraries/trippest.php */