templateName = "./templatepage.html"; $master->content["Menu"] = $menu; $master->content["Lang_Bar"] = $lang_bar; $master->content["Lang"] = $lang; $master->content["Description"] = $text_title[28]; $master->content["Keywords"] = $text_title[29]; $master->content["Charset"] = get_charset($lang); // ======================================== $master->content["Sign"] = "sign_".$lang."_revival"; $master->title = $text_title[16]; if ($translation == 1) // TITLE $a = $a."Page title: ".$text_title[16]."


"; $a = $a."
"; $ftype[] = ""; $ftype[] = ""; $ftype[] = ""; $ftype[] = ""; $ftype[] = ""; $x=0; $query = "SELECT Name,File_Name,File_Type,OrderNum FROM Revival WHERE ID_Language=".$id_lang." ORDER BY OrderNum ASC"; $result = mysqli_query ($query) or die ("Ошибка выполнения запроса: ".mysqli_error()); while ($row = mysqli_fetch_array ($result)) { $x++; $blank = ""; $cn = htmlspecialchars_decode($row ['Name']); $fn = htmlspecialchars_decode($row ['File_Name']); $ft = $row ['File_Type']; $on = $row ['OrderNum']; if ($ft==4) $blank = " TARGET='_BLANK'"; $a=$a.""; } $a = $a."
".$ftype[$ft-1]."".$cn."
"; if ($x<1) $a = $a."
".$text[0].""; // пока ещё ни один документ не переведён на ваш язык if ($translation==1) { $a = $a." "; } // выводим результат $master->content["Content"] = $a; $master->Fill(); ?>