$zag"; function sootv($temp) { $file= "prtn/link_sootv.csv"; $lines = file("$file");//чтение файла for ($i = 0; $i < count($lines); $i++) { list($name1,$name2) = split (";",$lines[$i]); if ($name1==$temp) {$temp=$name2; break;} } $temp=trim($temp); return $temp; } if ($category!=""){ include("prtn/config_links.php"); echo "

<< оглавление"; $f=file("prtn/links.csv") or die("файл не найден"); $kol_vo=0; //кол-во ссылок в группе for ($i=1; $i$kol_vo)) $kol_vo=$a[1]; } $menu_str=""; //меню страниц if ($kol_vo>1) { for ($i2=1; $i2<$kol_vo+1; $i2++){ if ($i2!=$str) {$nom_str=$i2; if ($nom_str==1) $nom_str=""; else $nom_str="$nom_str"; $menu_str.= "$i2 ";} else $menu_str.= "[$i2] ";} echo "    $menu_str

"; } else echo "

"; $position=0; $konets=$str*$output; $nachalo=$konets-$output+1; $temp="link_haract"; for ($i=1; $i "; // // // echo "

"; } } echo "
$menu_str
"; } //от if else { echo ""; $file= "prtn/link_sootv.csv"; $lines = file("$file");//чтение файла for ($i = 0; $i < count($lines); $i=$i+2) { list($name1,$name2) = split (";",$lines[$i]); list($name11,$name12) = split (";",$lines[$i+1]); $name2 = ucfirst($name2); $name12 = ucfirst($name12); echo ""; } echo "
$name2$name12
"; } include 'shab2.html'; ?>