remove old readme
[atutor.git] / docs / themes / mobile / 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" >\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="40" 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         <div class="table-surround">\r
58         <table class="data" summary="Title, status, release results, and pass score of available tests">\r
59         <thead>\r
60         <tr>\r
61                 <th scope="col">&nbsp;</th>\r
62                 <th scope="col"><?php echo _AT('title');          ?></th>\r
63                 <th scope="col"><?php echo _AT('status');         ?></th>\r
64                 <th scope="col"><?php echo _AT('result_release'); ?></th>\r
65                 <th scope="col"><?php echo _AT('pass_score');     ?></th>\r
66                 <!-- REMOVED FOR MOBILE <th scope="col"><?php// echo _AT('assigned_to');          ?></th>-->\r
67         </tr>\r
68         </thead>\r
69         <tbody>\r
70         <?php foreach ($this->pretests as $row) { ?>\r
71         <?php\r
72                 $checkMe = '';\r
73                 if (is_array($_POST['pre_tid']) && in_array($row['test_id'], $_POST['pre_tid'])){\r
74                         $checkMe = ' checked="checked"';\r
75                 } \r
76         ?>\r
77         <tr onmousedown="toggleTestSelect('r_<?php echo $row['test_id']; ?>');rowselect(this);" id="r_<?php echo $row['test_id']; ?>">\r
78                 <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
79                 <td><?php echo $row['title']; ?></td>\r
80                 <td><?php echo $row['status']; ?></td>\r
81                 <!-- <td><?php echo $row['availability']; ?></td> -->\r
82                 <td><?php echo $row['result_release']; ?></td>\r
83                 <td><?php echo $row['pass_score']; ?></td>\r
84                 <!-- REMOVED FOR MOBILE <td><?php echo $row['assign_to']; ?></td>-->\r
85         </tr>\r
86         <?php } ?>\r
87         </tbody>\r
88         </table>\r
89         </div>\r
90         </div>\r
91 <?php }?>\r
92 \r
93         <div class="row buttons">\r
94                 <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" title="<?php echo _AT('save_changes'); ?> alt-s" accesskey="s" />\r
95         </div>\r
96 </div>\r
97 </form>\r
98 \r
99 <script language="javascript" type="text/javascript">\r
100         function toggleTestSelect(r_id){\r
101                 var row = document.getElementById(r_id);\r
102                 var checkBox = row.cells[0].firstChild;\r
103 \r
104                 if (checkBox.checked == true){\r
105                         checkBox.checked = false;\r
106                 } else {\r
107                         checkBox.checked = true;\r
108                 }\r
109         }\r
110 </script>