|
|
|
@ -80,6 +80,21 @@ class BIZ_intel_train_model extends CI_Model {
|
|
|
|
|
return $query->row();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function get_allinteltrain(){
|
|
|
|
|
$sql = "
|
|
|
|
|
SELECT
|
|
|
|
|
*
|
|
|
|
|
FROM
|
|
|
|
|
TrainStation_intel
|
|
|
|
|
LEFT JOIN
|
|
|
|
|
trainlist
|
|
|
|
|
ON
|
|
|
|
|
s_code = trainFromCode
|
|
|
|
|
";
|
|
|
|
|
$query = $this->HT->query($sql);
|
|
|
|
|
return $query->result();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function get_seat_info($seat_code){
|
|
|
|
|
$sql = "SELECT Seat_CName,Seat_EName1 FROM TrainSeat_Intel WHERE Seat_Code = '{$seat_code}'";
|
|
|
|
|
$query = $this->HT->query($sql);
|
|
|
|
|