function menu_footer($no_menu, $is_index) { global $version, $allow_demo_mode, $app_title, $power_url, $power_by, $path_to_root, $Pagehelp, $Ajax; include_once $path_to_root . "/includes/date_functions.inc"; echo "</td></tr></table>\n"; // 'main_page' if ($no_menu == false) { if ($is_index) { echo "<table class='bottomBar'>\n"; } else { echo "<table class='bottomBar2'>\n"; } echo "<tr>"; if (isset($_SESSION['wa_current_user'])) { $phelp = implode('; ', $Pagehelp); echo "<td class='bottomBarCell'>" . TodayTimeZone() . "</td>\n"; $Ajax->addUpdate(true, 'hotkeyshelp', $phelp); echo "<td id='hotkeyshelp'>" . $phelp . "</td>"; } echo "</tr></table>\n"; } echo "</td></tr> </table>\n"; // 'callout_main' if ($no_menu == false) { echo "<table align='center' id='footer'>\n"; echo "<tr>\n"; echo "<td align='center' class='footer'><a target='_blank' href='{$power_url}' tabindex='-1'><font color='#ffffff'>{$app_title} {$version} - " . _("Theme:") . " " . user_theme() . " - " . show_users_online() . "</font></a></td>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td align='center' class='footer'><a target='_blank' href='{$power_url}' tabindex='-1'><font color='#ffff00'>{$power_by}</font></a></td>\n"; echo "</tr>\n"; if ($allow_demo_mode == true) { echo "<tr>\n"; //echo "<td><br><div align='center'><a href='http://sourceforge.net'><img src='http://sourceforge.net/sflogo.php?group_id=89967&type=5' alt='SourceForge.net Logo' width='210' height='62' border='0' align='center' /></a></div></td>\n"; echo "</tr>\n"; } echo "</table><br><br>\n"; } }
echo "<center><input type='submit' value=' " . _("Login -->") . " ' name='SubmitUser'" . ($login_timeout ? '' : " onclick='set_fullmode();'") . (isset($blocked_msg) ? " disabled" : '') . " ></center>\n"; foreach ($_SESSION['timeout']['post'] as $p => $val) { // add all request variables to be resend together with login data if (!in_array($p, array('ui_mode', 'user_name_entry_field', 'password', 'SubmitUser', 'company_login_name'))) { if (!is_array($val)) { echo "<input type='hidden' name='{$p}' value='{$val}'>"; } else { foreach ($val as $i => $v) { echo "<input type='hidden' name='{$p}[{$i}]' value='{$v}'>"; } } } } end_form(1); $Ajax->addScript(true, "document.forms[0].password.focus();"); echo "<script language='JavaScript' type='text/javascript'>\n //<![CDATA[\n <!--\n document.forms[0].user_name_entry_field.select();\n document.forms[0].user_name_entry_field.focus();\n //-->\n //]]>\n </script>"; div_end(); echo "<table class='bottomBar'>\n"; echo "<tr>"; $date = TodayTimeZone(); echo "<td class='bottomBarCell'>{$date}</td>\n"; echo "</tr></table>\n"; echo "<table class='footer'>\n"; echo "<tr>\n"; echo "<td><a target='_blank' href='{$power_url}' tabindex='-1'>{$app_title} {$version} - " . _("Theme:") . " " . $def_theme . "</a></td>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td><a target='_blank' href='{$power_url}' tabindex='-1'>{$power_by}</a></td>\n"; echo "</tr>\n"; echo "</table><br><br>\n"; echo "</body></html>\n";