Location: PHPKode > projects > L-Forum > l-forum/inc/langs.inc
<form method=get action="<? echo $PHP_SELF?>">
<? 
if(!empty($t))
   echo "<input type=hidden name=t value=$t>\n";
if(isset($f))
   echo "<input type=hidden name=f value=".$f.">\n";

if( isset( $xtra_form_vars ) ) {
    foreach ( $xtra_form_vars as $name => $value ) {
        echo "<input type=hidden name=\"$name\" value=\"$value\">\n";
    }
}

echo "<span class=readhead>";
echo $lang['ch_lang']
?></span>
<select name=lng>
<? 
while(list($k, $v) = each($langlist)){
   echo "<option value=\"$k\"";
   if((empty($lng)&&$lang_d==$k)||(!empty($lng)&&$k == $lng)) echo " selected";
   echo ">$v\n";
}
?>
</select>
<input type=submit value="<?echo $lang['change']?>">
Return current item: L-Forum