0bee40a72418dc45ec4518387e1077eb213ae2b3
[acontent.git] / docs / themes / default / tests / create_edit_test.tmpl.php
1 <?php\r
2 /************************************************************************/\r
3 /* AContent                                                             */\r
4 /************************************************************************/\r
5 /* Copyright (c) 2010                                                   */\r
6 /* Inclusive Design Institute                                           */\r
7 /*                                                                      */\r
8 /* This program is free software. You can redistribute it and/or        */\r
9 /* modify it under the terms of the GNU General Public License          */\r
10 /* as published by the Free Software Foundation.                        */\r
11 /************************************************************************/\r
12 ?>\r
13 \r
14 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">\r
15 <?php if (isset($this->tid)) { ?><input type="hidden" name="tid" value="<?php echo $this->tid; ?>" /> <?php }?>\r
16 <input type="hidden" name="_course_id" value="<?php echo $this->course_id; ?>" />\r
17 \r
18 <div class="input-form">\r
19         <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit_test'); ?></legend>\r
20         <div class="row">\r
21                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />\r
22                 <input type="text" name="title" id="title" size="40" value="<?php if (isset($_POST['title'])) echo stripslashes(htmlspecialchars($_POST['title'])); else echo AT_print($this->row['title'], 'input.text'); ?>" />\r
23         </div>\r
24         \r
25         <div class="row">\r
26                 <label for="description"><?php echo _AT('test_description'); ?></label><br />\r
27                 <textarea name="description" cols="35" rows="3" id="description"><?php if (isset($_POST['description'])) echo htmlspecialchars($_POST['description']); else echo $this->row['description']; ?></textarea>\r
28         </div>\r
29 \r
30         <div class="row buttons">\r
31                 <input type="submit" value="<?php echo _AT('save');  ?>"  name="submit" accesskey="s" />\r
32                 <input type="submit" value="<?php echo _AT('cancel'); ?>" name="cancel" />\r
33         </div>\r
34         </fieldset>\r
35 </div>\r
36 </form>\r