e8c00f530b69ddcb5206eea707ff517f64aa15fd
[atutor.git] / mods / elluminate / side_menu.inc.php
1 <?php \r
2 /* start output buffering: */\r
3 global $savant, $_config;\r
4 ob_start(); ?>\r
5 \r
6 <?php if($_GET['guest'] != '1'){ ?>\r
7                         <form name="loginform" method="post" action="<?php echo $_config['elluminate']; ?>">\r
8                           <label for="userName" class="normalbody"><?php echo _AT('elluminate_name'); ?>:</label><br> <input type="text" name="username"  id="userName" class="fieldOff" onFocus="doBg('username');" onBlur="dontBg('username');"><br>\r
9                           <label for="password" class="normalbody"><?php echo _AT('elluminate_password'); ?>:</label><br> <input type="password" name="password" class="fieldOff" onFocus="doBg('password');" onBlur="dontBg('password');"><br>\r
10                           <br><br>\r
11                           <input button type="submit" name="submit" value="Login" class="button">\r
12                         </form><br />\r
13                         <?php if($_config['elluminate_pw'] != ''){ ?>\r
14                                 <a href="<?php echo $_SERVER['PHP_SELF']; ?>?guest=1">Login as a guest</a>\r
15                         <?php } ?>\r
16 <?php }else { ?>\r
17                         <form name="loginform" method="post" action="<?php echo $_config['elluminate']; ?>">\r
18                           <label for="userName" class="normalbody"><?php echo _AT('elluminate_name'); ?>:</label><br/> \r
19                         <br /> <input type="text" name="username" id="userName" class="fieldOff" onFocus="doBg('username');" onBlur="dontBg('username');"><br>\r
20                           <input type="hidden" name="password" value="<?php echo  $_config['elluminate_pw']; ?>">\r
21                           <br><br>\r
22 \r
23                           <input button type="submit" name="submit" value="Login" class="button">\r
24                         </form>\r
25 <?php } ?>\r
26 \r
27 <?php\r
28 $savant->assign('dropdown_contents', ob_get_contents());\r
29 ob_end_clean();\r
30 \r
31 $savant->assign('title', _AT('elluminate')); // the box title\r
32 $savant->display('include/box.tmpl.php');\r
33 ?>