88054d4cdc895e3dca4d59a8e9752fa43363c8f1
[atutor.git] / docs / themes / mobile / instructor / course_email / course_email.tmpl.php
1 <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
2 <input type="hidden" name="course" value="<?php echo $course; ?>" />
3
4 <div class="input-form">
5         <fieldset class="group_form"><legend class="group_form"><?php echo _AT('course_email'); ?></legend>
6         <div class="row">
7                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
8                 <?php echo  _AT('to'); ?><br />
9                 <input type="checkbox" name="to_assistants" value="1" id="assistants" <?php if ($_POST['to_assistants']=='1') { echo 'checked="checked"'; } ?> /><label for="assistants"><?php echo  _AT('assistants'); ?></label>
10                 <input type="checkbox" name="to_enrolled" value="1" id="enrolled" <?php if ($_POST['to_enrolled']=='1') { echo 'checked="checked"'; } else { echo 'checked="checked"'; } ?> /><label for="enrolled"><?php echo  _AT('enrolled'); ?></label>
11                 <input type="checkbox" name="to_unenrolled" value="1" id="unenrolled" <?php if ($_POST['to_unenrolled']=='1') { echo 'checked="checked"'; } ?> /><label for="unenrolled"><?php echo  _AT('unenrolled'); ?></label>
12                 <input type="checkbox" name="to_alumni" value="1" id="alumni" <?php if ($_POST['to_alumni']=='1') { echo 'checked="checked"'; } ?> /><label for="alumni"><?php echo  _AT('alumni'); ?></label>
13
14                 <?php if (!empty($this->group_type_rows)): ?>
15                         <br /><br />
16                         <?php echo _AT('or_groups'); ?>:<br />
17                         <select name="groups[]" multiple="multiple" size="10" style="padding-right: 5px">
18                                 <?php foreach ($this->group_type_rows as $type_id => $row): ?>
19                                         <optgroup label="<?php echo $row['title']; ?>">
20                                                 <?php foreach ($row['group_type_row'] as $group_row): ?>
21                                                         <option value="<?php echo $group_row['group_id']; ?>"><?php echo $group_row['title']; ?></option>
22                                                 <?php endforeach; ?>
23                                         </optgroup>
24                                 <?php endforeach; ?>
25                         </select>
26                 <?php endif; ?>
27         </div>
28
29         <div class="row">
30                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="subject"><?php echo _AT('subject'); ?></label><br />
31                 <input type="text" name="subject" size="40" id="subject" value="<?php echo $_POST['subject']; ?>" />
32         </div>
33
34         <div class="row">
35                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('body'); ?></label><br />
36                 <textarea cols="40" rows="18" name="body" id="body"><?php echo $_POST['body']; ?></textarea>
37         </div>
38
39         <div class="row buttons">
40                 <input type="submit" name="submit" value="<?php echo _AT('send'); ?>" accesskey="s" /> 
41                 <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
42         </div>
43         </fieldset>
44 </div>
45 </form>