File size: 1.11Kb
<?php
/* Coding by Studentsov :)
Site: http://v-core.ru
ICQ: 518-940 */
$file_navigation=file(BASEDIR."local/headlines.dat");
$file_navigation=array_reverse($file_navigation);
$navigation_count=count($file_navigation);
if($navigation_count>0){
if($config_themes!="wml"){
echo'<form action="'.$config_home.'/go.php?'.SID.'" method="post">';
echo'<select name="navigation">';
echo'<option value="no">Навигация</option>';
for ($i=0; $i<$navigation_count; $i++){
$datanavigation=explode("|", $file_navigation[$i]);
echo'<option value="'.$i.'">'.$datanavigation[2].'</option>';}
echo'</select><br>';
echo'<input type="submit" value="Go!"/></form><br><br>';
}else{
echo'<select name="navigation">';
echo'<option value="no">Навигация</option>';
for ($i=0; $i<$navigation_count; $i++){
$datanavigation=explode("|", $file_navigation[$i]);
echo'<option value="'.$i.'">'.$datanavigation[2].'</option>';}
echo'</select><br>';
echo'<anchor>Go!';
echo'<go href="'.$config_home.'/go.php?'.SID.'" method="post">';
echo'<postfield name="navigation" value="$(navigation)"/>';
echo'</go></anchor><br>';}}
?>