remove old readme
[atutor.git] / themes / default / images / editor / edit_content_folder.tmpl.php
1 <?php\r
2 /************************************************************************/\r
3 /* ATutor                                                                                                                               */\r
4 /************************************************************************/\r
5 /* Copyright (c) 2002-2010                                              */\r
6 /* Inclusive Design Institute                                           */\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 if (!defined('AT_INCLUDE_PATH')) { exit; } \r
14 \r
15 global $onload;\r
16 $onload = 'document.form.title.focus();';\r
17 ?>\r
18 <form action="<?php echo $_SERVER['PHP_SELF']; if ($this->cid > 0) echo '?cid='.$this->cid; else if ($this->pid > 0) echo '?pid='.$this->pid;?>" method="post" name="form"> \r
19 <div class="input-form" style="width:95%;margin-left:1.5em;">\r
20 <!-- <?php\r
21 if ($this->shortcuts): \r
22 ?>\r
23  <fieldset id="shortcuts" style="margin-top:1em;float:right;clear:right;"><legend><?php echo _AT('shortcuts'); ?></legend>\r
24         <ul>\r
25                 <?php foreach ($this->shortcuts as $link): ?>\r
26                         <li><a href="<?php echo $link['url']; ?>"><?php echo $link['title']; ?></a></li>\r
27                 <?php endforeach; ?>\r
28         </ul>\r
29 </fieldset>\r
30 <?php endif; ?> -->\r
31         <div class="row">\r
32                 <div style="font-weight:bold;"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ftitle"><?php echo _AT('content_folder_title');  ?></label></div>\r
33                 <input type="text" name="title" id="ftitle" size="70" class="formfield" value="<?php echo ContentManager::cleanOutput($this->ftitle); ?>" />\r
34         </div>\r
35         \r
36         <div class="row">\r
37                 <div style="font-weight:bold;"><?php echo _AT('release_date');  ?></div>\r
38                 <?php if ($_POST['day']) { ?>\r
39                         <?php\r
40                                 $today_day   = $_POST['day'];\r
41                                 $today_mon   = $_POST['month'];\r
42                                 $today_year  = $_POST['year'];\r
43 \r
44                                 $today_hour  = $_POST['hour'];\r
45                                 $today_min   = $_POST['min'];           \r
46                 }?>\r
47                 <?php require(AT_INCLUDE_PATH.'html/release_date.inc.php');     ?>\r
48         </div>\r
49 \r
50         <?php if (isset($this->pretests)) {?>\r
51         <div class="row">\r
52                 <div style="font-weight:bold;"><?php echo _AT('define_pretest'); ?></div>\r
53                 <p><?php echo _AT('about_pretest'); ?></p>\r
54         </div>\r
55 \r
56         <div class="row">\r
57         <table class="data" summary="" style="width: 98%" rules="cols">\r
58         <thead>\r
59         <tr>\r
60                 <th scope="col">&nbsp;</th>\r
61                 <th scope="col"><?php echo _AT('title');          ?></th>\r
62                 <th scope="col"><?php echo _AT('status');         ?></th>\r
63                 <th scope="col"><?php echo _AT('result_release'); ?></th>\r
64                 <th scope="col"><?php echo _AT('pass_score');     ?></th>\r
65                 <th scope="col"><?php echo _AT('assigned_to');    ?></th>\r
66         </tr>\r
67         </thead>\r
68         <tbody>\r
69         <?php foreach ($this->pretests as $row) { ?>\r
70         <?php\r
71                 $checkMe = '';\r
72                 if (is_array($_POST['pre_tid']) && in_array($row['test_id'], $_POST['pre_tid'])){\r
73                         $checkMe = ' checked="checked"';\r
74                 } \r
75         ?>\r
76         <tr onmousedown="toggleTestSelect('r_<?php echo $row['test_id']; ?>');rowselect(this);" id="r_<?php echo $row['test_id']; ?>">\r
77                 <td><input type="checkbox" name="tid[]" value="<?php echo $row['test_id']; ?>" id="t<?php echo $row['test_id']; ?>" <?php echo $checkMe; ?> onmouseup="this.checked=!this.checked" /></td>\r
78                 <td><?php echo $row['title']; ?></td>\r
79                 <td><?php echo $row['status']; ?></td>\r
80                 <!-- <td><?php echo $row['availability']; ?></td> -->\r
81                 <td><?php echo $row['result_release']; ?></td>\r
82                 <td><?php echo $row['pass_score']; ?></td>\r
83                 <td><?php echo $row['assign_to']; ?></td>\r
84         </tr>\r
85         <?php } ?>\r
86         </tbody>\r
87         </table>\r
88         </div>\r
89 <?php }?>\r
90 \r
91         <div class="row buttons">\r
92                 <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" title="<?php echo _AT('save_changes'); ?> alt-s" accesskey="s" />\r
93         </div>\r
94 </div>\r
95 </form>\r
96 \r
97 <script language="javascript" type="text/javascript">\r
98         function toggleTestSelect(r_id){\r
99                 var row = document.getElementById(r_id);\r
100                 var checkBox = row.cells[0].firstChild;\r
101 \r
102                 if (checkBox.checked == true){\r
103                         checkBox.checked = false;\r
104                 } else {\r
105                         checkBox.checked = true;\r
106                 }\r
107         }\r
108 </script>