<?php
// Add javaScript if we are on the notification page.
switch($section) {
case "notification":
echo <<<EOT
<script language="javascript">
<!--
function changeLang() {
location="{$options['baseURL']}?area=admin&action=oedit§ion=notification&templateLanguage=" + document.list.templateLanguage.options[document.list.templateLanguage.selectedIndex].value;
}
//-->
</script>
EOT;
default:
break;
}
// Begin normal hidden values
echo <<<EOT
<form method="{$options['formMethod']}" action="{$options['baseURL']}{$options['formSubmitTo']}" name="list">
<input type="hidden" name="area" value="admin" />
<input type="hidden" name="section" value="{$section}" />
<input type="hidden" name="action" value="oedit" />
<input type="hidden" name="update" value="1" />
<table class="main">
<tr>
EOT;
$menuCs = count($menuItems);
while (list($key, $value) = each($menuItems)) {
if ($key != $section) {
echo <<<EOT
<td align="center">
<a href="{$options['baseURL']}{$options['formSubmitTo']}?area=admin&action=oedit§ion={$key}">{$value}</a>
</td>
EOT;
}
else {
echo <<<EOT
<td bgcolor="{$options['colorTableHeaderBg']}" align="center">
<font color="{$options['colorTableHeaderText']}">{$value}</font><img src="gfx/down.png" />
</td>
EOT;
}
}
echo <<<EOT
</tr>
<tr>
<td colspan="{$menuCs}">
EOT;
$f = "{$options['buginIncBase']}admin/oedit/{$section}.inc.php";
if (file_exists($f)) {
require_once($f);
}
echo <<<EOT
</tr>
<tr>
<td colspan="{$menuCs}">
<input type="submit" value="{$verbage['update']}" />
</td>
</tr>
</table>
</form>
EOT;
?>