
$plant = "Železárny Hrádek";
$path = "data/zh/overrollings-zh";
if (file_exists($path . ".xls") OR file_exists($path . ".xlsx")) {
if (file_exists($path . ".xls")) $pathXLS = $path . ".xls";
else if (file_exists($path . ".xlsx")) $pathXLS = $path . ".xlsx";
$pathZIP = $path . ".zip";
$search = array ("%plant%", "%date-public%", "%path-xls%", "%path-zip%", "%file-size-xls%", "%file-size-zip%");
$replace = array ($plant, date ("d. m. Y", filemtime($pathXLS)), $pathXLS, $pathZIP, number_format(filesize($pathXLS)/1024, 0, "", " "), number_format(filesize($pathZIP)/1024, 0, "", " "));
echo str_replace($search, $replace, $lang['exist']);
echo "
";
echo str_replace("%plant%", ", " . $langr['division'] . " " . $plant . " ", $langr['law-wording']);
}
else echo str_replace("%plant%", $plant, $lang['no-exist']);
?>

$plant = "Válcovny trub Chomutov";
$path = "data/vtch/overrollings-vtch";
if (file_exists($path . ".xls") OR file_exists($path . ".xlsx")) {
if (file_exists($path . ".xls")) $pathXLS = $path . ".xls";
else if (file_exists($path . ".xlsx")) $pathXLS = $path . ".xlsx";
$pathZIP = $path . ".zip";
$search = array ("%plant%", "%date-public%", "%path-xls%", "%path-zip%", "%file-size-xls%", "%file-size-zip%");
$replace = array ($plant, date ("d. m. Y", filemtime($pathXLS)), $pathXLS, $pathZIP, number_format(filesize($pathXLS)/1024, 0, "", " "), number_format(filesize($pathZIP)/1024, 0, "", " "));
echo str_replace($search, $replace, $lang['exist']);
echo "
";
echo str_replace("%plant%", ", " . $langr['division'] . " " . $plant . " ", $langr['law-wording']);
}
else echo str_replace("%plant%", $plant, $lang['no-exist']);
/*?>

$plant = "Železárny Chomutov";
$path = "data/zch/overrollings-zch";
if (file_exists($path . ".xls") OR file_exists($path . ".xlsx")) {
if (file_exists($path . ".xls")) $pathXLS = $path . ".xls";
else if (file_exists($path . ".xlsx")) $pathXLS = $path . ".xlsx";
$pathZIP = $path . ".zip";
$search = array ("%plant%", "%date-public%", "%path-xls%", "%path-zip%", "%file-size-xls%", "%file-size-zip%");
$replace = array ($plant, date ("d. m. Y", filemtime($pathXLS)), $pathXLS, $pathZIP, number_format(filesize($pathXLS)/1024, 0, "", " "), number_format(filesize($pathZIP)/1024, 0, "", " "));
echo str_replace($search, $replace, $lang['exist']);
echo "
";
echo str_replace("%plant%", ", " . $langr['division'] . " " . $plant . " ", $langr['law-wording']);
}
else echo str_replace("%plant%", $plant, $lang['no-exist']);
*/
?>

$plant = "Železárny Veselí";
$path = "data/zv/overrollings-zv";
if (file_exists($path . ".xls") OR file_exists($path . ".xlsx")) {
if (file_exists($path . ".xls")) $pathXLS = $path . ".xls";
else if (file_exists($path . ".xlsx")) $pathXLS = $path . ".xlsx";
$pathZIP = $path . ".zip";
$search = array ("%plant%", "%date-public%", "%path-xls%", "%path-zip%", "%file-size-xls%", "%file-size-zip%");
$replace = array ($plant, date ("d. m. Y", filemtime($pathXLS)), $pathXLS, $pathZIP, number_format(filesize($pathXLS)/1024, 0, "", " "), number_format(filesize($pathZIP)/1024, 0, "", " "));
echo str_replace($search, $replace, $lang['exist']);
echo "
";
echo str_replace("%plant%", "", $langr['law-wording']);
}
else echo str_replace("%plant%", $plant, $lang['no-exist']);
?>
require_once "../page-foot.php";
?>