2 /************************************************************************/
\r
4 /************************************************************************/
\r
5 /* Copyright (c) 2002-2010 */
\r
6 /* Inclusive Design Institute */
\r
7 /* http://atutor.ca */
\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
16 $onload = 'document.form.title.focus();';
\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
21 if ($this->shortcuts):
\r
23 <fieldset id="shortcuts" style="margin-top:1em;float:right;clear:right;"><legend><?php echo _AT('shortcuts'); ?></legend>
\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
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
37 <div style="font-weight:bold;"><?php echo _AT('release_date'); ?></div>
\r
38 <?php if ($_POST['day']) { ?>
\r
40 $today_day = $_POST['day'];
\r
41 $today_mon = $_POST['month'];
\r
42 $today_year = $_POST['year'];
\r
44 $today_hour = $_POST['hour'];
\r
45 $today_min = $_POST['min'];
\r
47 <?php require(AT_INCLUDE_PATH.'html/release_date.inc.php'); ?>
\r
50 <?php if (isset($this->pretests)) {?>
\r
52 <div style="font-weight:bold;"><?php echo _AT('define_pretest'); ?></div>
\r
53 <p><?php echo _AT('about_pretest'); ?></p>
\r
57 <table class="data" summary="" style="width: 98%" rules="cols">
\r
60 <th scope="col"> </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
69 <?php foreach ($this->pretests as $row) { ?>
\r
72 if (is_array($_POST['pre_tid']) && in_array($row['test_id'], $_POST['pre_tid'])){
\r
73 $checkMe = ' checked="checked"';
\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
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
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
102 if (checkBox.checked == true){
\r
103 checkBox.checked = false;
\r
105 checkBox.checked = true;
\r