Location: PHPKode > projects > Community Learning Network > cln/lib/CLN/interfaces/Room/langController.html
<?php
/*
 * Language Controller Select Form
 *
 * This form is used by every KO.
 *
 * Copyright (c) 2003-4 St. Christopher House
 *
 * Developed by The Working Group Inc.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.  
 *
 * @version $Id: langController.html,v 1.11 2004/11/01 20:04:44 derekbrooks Exp $
 *
 */

?>

<!-- START LANGUAGE CONTROLLER -->
<div class="languageController">
<form name="languageSelection" action="<?php echo 
$_SERVER['REQUEST_URI']; ?>" method="post">

<label for="setLanguage"><b>Languages:</b></label>
<br /> <?php

if(!isset($_SESSION['User']->lang)) {
	$lang = $_SESSION['User']->preferredLanguages[0];
} else {
	$lang = $_SESSION['User']->lang;
}

require_once "HTML/Form.php";
$form = new HTML_Form('');
$form->displaySelect("setLanguage", $GLOBALS['languages'], $lang, '1', '', FALSE, 'id="setLanguage"');
						
?>
<input type="submit" name="submitLanguage" value="Go" />
</form>
</div>
<!-- END LANGUAGE CONTROLLER -->
Return current item: Community Learning Network