get_js_set_focus superseded by js setFocus() and php set_focus()
[fa-stable.git] / includes / page / footer.inc
1 <?php
2
3 include_once($path_to_root . "/includes/date_functions.inc");
4
5 function page_footer($no_menu=false, $is_index=false)
6 {
7         global $version, $allow_demo_mode;
8         global $app_title, $power_url, $power_by;
9
10         if (isset($_GET['ajax'])) return;
11
12         echo set_js_focus();    // set focus on input (if $focus_on exists)
13         if (function_exists('hyperlink_back'))
14                 hyperlink_back();
15         if ($no_menu == false) 
16         {
17         if ($is_index)
18                 echo "<table class=bottomBar>\n";
19         else
20                 echo "<table class=bottomBar2>\n";
21         echo "<tr>";
22         if (isset($_SESSION['wa_current_user']))
23                 echo "<td class=bottomBarCell>" . Today() . " | " . Now() . "</td>\n";
24         echo "</tr></table>\n";
25         }
26         echo "</td></tr></table></td>\n";
27     echo "</table>\n";
28     if ($no_menu == false) 
29     {
30         echo "<table align='center' id='footer'>\n";
31         echo "<tr>\n";
32         echo "<td align='center' class='footer'><a target='_blank' href='$power_url'><font color='#ffffff'>$app_title $version - " . _("Theme:") . " " . user_theme() . "</font></a></td>\n";
33         echo "</tr>\n";
34         echo "<tr>\n";
35         echo "<td align='center' class='footer'><a target='_blank' href='$power_url'><font color='#ffff00'>$power_by</font></a></td>\n";
36         echo "</tr>\n";
37         if ($allow_demo_mode==true)
38         {
39                 echo "<tr>\n";
40             //echo "<td><br><div align='center'><a href='http://sourceforge.net'><img src='http://sourceforge.net/sflogo.php?group_id=89967&amp;type=5' alt='SourceForge.net Logo' width='210' height='62' border='0' align='middle' /></a></div></td>\n";
41                 echo "</tr>\n";
42         }
43         echo "</table><br><br>\n";
44     }
45     echo "</body></html>\n";
46 }
47
48 ?>