Location: PHPKode > projects > Course-manager > courseman-0.1.1/template-set-option.php
<?php
  $choices = $presented['choices'];
  $value = $presented['value'];
  $name = $presented['name'];
  $configurator = $presented['configurator'];
  $variable = $presented['variable'];
  if ($presented['error'] != "") {
    $error = $presented['error'];
    $error = "<span class='error'>$error</span>";
  }
  header("Content-type: text/html; charset=utf-8");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?=ucfirst(ling_choose($language,$name))?></title>
<?=$javascript?>
<link rel="stylesheet"
      href="local.css"
      type="text/css">
<style type="text/css">
td
{
  font-size: 85%;
}
</style><?=$local_stylesheets?>
</head>
<body>
<?=conditional_layout_before_content(ucfirst(ling_choose($language,$name)))?>
<?=$error?>
<form method="GET" action="<?=$configurator?>">
<?=value_pass('continuation')?>
<select name="<?=$variable?>">
<?php foreach ($choices as $choice) { ?>
<option value="<?=$choice['id']?>"<?=($value == $choice['id'])
	? ' selected'
	: ''?>><?=$choice['description']?></option>
<?php } ?>
</select>
<input type="SUBMIT" value="<?=ling_set($language,$name)?>" />
</form>
<table width='100%'>
<td align="right">
<a href="http://sf.net/projects/courseman">Support</a>
</td>
</table>
<?=conditional_layout_after_content()?>
</body>
</html>
Return current item: Course-manager