- Доп. сервисы:
- Маршрут
global $lan, $tr_code, $tr_num, $stfrom_name, $stto_name; require_once("engine/yt_sql.php"); if(!isset($_GET['titleval']) || !isset($_GET['titleval'][0]) || !isset($_GET['titleval'][1]) || !isset($_GET['titleval'][2]) ) { if(isset($tr_num) && isset($stfrom_name) && isset($stto_name)) { $_GET['titleval'][0]=$tr_code; $_GET['titleval'][1]=$stfrom_name; $_GET['titleval'][2]=$stto_name; } else { $conn = sqlGetGlobalConnection(); $data = sqlGetTrainData($tr_code, $conn); $_GET['titleval'][0]=$data[0]['TRAINNUMBER']; $_GET['titleval'][1]=pretty_name($data[0]['STFROMNAME'], '-'); $_GET['titleval'][2]=pretty_name($data[0]['STTONAME'], '-'); } } ?>