made a copy
[atutor.git] / tools / groups / create.php
1 <?php\r
2 /************************************************************************/\r
3 /* ATutor                                                                                                                               */\r
4 /************************************************************************/\r
5 /* Copyright (c) 2002-2008 by Greg Gay, Joel Kronenberg & Heidi Hazelton*/\r
6 /* Adaptive Technology Resource Centre / University of Toronto                  */\r
7 /* http://atutor.ca                                                                                                             */\r
8 /*                                                                                                                                              */\r
9 /* This program is free software. You can redistribute it and/or                */\r
10 /* modify it under the terms of the GNU General Public License                  */\r
11 /* as published by the Free Software Foundation.                                                */\r
12 /************************************************************************/\r
13 // $Id$\r
14 \r
15 define('AT_INCLUDE_PATH', '../../include/');\r
16 require(AT_INCLUDE_PATH.'vitals.inc.php');\r
17 authenticate(AT_PRIV_GROUPS);\r
18 \r
19 if (isset($_GET['submit'], $_GET['create']) && ($_GET['create'] == 'automatic')) {\r
20         header('Location: create_automatic.php');\r
21         exit;\r
22 } else if (isset($_GET['submit'], $_GET['create']) && ($_GET['create'] == 'manual')) {\r
23         header('Location: create_manual.php');\r
24         exit;\r
25 }\r
26 \r
27 require(AT_INCLUDE_PATH.'header.inc.php');\r
28 ?>\r
29 <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
30 <div class="input-form">\r
31         <fieldset class="group_form"><legend class="group_form"><?php echo _AT('create_groups'); ?></legend>\r
32         <div class="row">\r
33                 <input type="radio" name="create" value="automatic" id="automatic" checked="checked" /><label for="automatic"><?php echo _AT('groups_create_automatic'); ?></label>\r
34         </div>\r
35 \r
36         <div class="row">\r
37                 <input type="radio" name="create" value="manual" id="manual" /><label for="manual"><?php echo _AT('groups_create_manual'); ?></label>\r
38         </div>\r
39 \r
40         <div class="row buttons">\r
41                 <input type="submit" name="submit" value="<?php echo _AT('continue'); ?>" />\r
42         </div>\r
43         </fieldset>\r
44 </div>\r
45 </form>\r
46 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>