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'], '-');
}
}
?>
График поезда [0] [1] - [2] на сайте Poezda.net
global $lan, $tr_code, $dateDay, $dateMonth, $dateYear, $cur, $st_from, $st_to;
$cur = ($cur) ? $cur : 'uah';
$conn = sqlGetGlobalConnection();
$data = sqlGetTrainData($tr_code, $conn);
//sqlCloseConnection($conn);
?>
Годовой график курсирования поезда
????? ?????
global $action;
// Get link to go back
$n = strpos($action, '_print');
if($n) {
$new_act = substr($action, 0, $n);
} else {
$new_act = $action;
}
?>