MDL-9628 When a timestamp is selected for locktime or hiddenuntil, the grader report...
[moodle-pu.git] / user / message.html
blobab51aa0da4e737756854075a842d08930877daef
1 <form id="theform" method="post" action="messageselect.php">
2 <input type="hidden" name="id" value="<?php p($id) ?>" />
3 <input type="hidden" name="returnto" value="<?php p($returnto) ?>" />
4 <input type="hidden" name="deluser" value="" />
5 <?php print_simple_box_start("center", ""); ?>
6 <table border="0" cellpadding="5">
7 <tr valign="top">
8 <td align="right"><b>
9 <?php print_string("messagebody"); ?>:
10 </b></td>
11 <td align="left" rowspan="2">
12 <?php print_textarea($usehtmleditor, 25, 65, 630, 400, "messagebody", $messagebody); ?>
13 </td>
14 </tr>
15 <tr valign="top">
16 <td align="right" valign="middle" nowrap="nowrap">
17 <?php
18 helpbutton("reading", get_string("helpreading"), "moodle", true, true);
19 echo "<br />";
20 helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
21 echo "<br />";
22 helpbutton("questions", get_string("helpquestions"), "moodle", true, true);
23 echo "<br />";
24 if ($usehtmleditor) {
25 helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
26 } else {
27 emoticonhelpbutton("theform", "message");
30 <br />
31 </td>
32 </tr>
34 <tr valign="top">
35 <td align="right"><b><?php print_string("formattexttype"); ?>:</b></td>
36 <td>
37 <?php
38 if ($usehtmleditor) { /// Trying this out for a while
39 print_string('formathtml');
40 echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'" />';
41 } else {
42 choose_from_menu(format_text_menu(), "format", $format, "");
44 helpbutton("textformat", get_string("helpformatting"));
46 </td>
47 </tr>
49 <tr><td align="center" colspan="2"><input type="submit" name="preview" value="<?php print_string('preview'); ?>" /></td></tr>
50 </table>
51 <?php print_simple_box_end(); ?>
52 <table align="center"><tr><th colspan="4" scope="row"><?php print_string('currentlyselectedusers'); ?></th></tr>
53 <?php
54 if (count($SESSION->emailto[$id])) {
55 if (!$course->teacher) {
56 $course->teacher = get_string('defaultcourseteacher');
58 foreach ($SESSION->emailto[$id] as $user) {
59 echo '<tr><td>'.fullname($user,true).'</td><td>'.$user->email.'</td><td>';
60 if ($user->teacher) {
61 echo '<img src="'.$CFG->pixpath.'/t/user.gif" alt="'.$course->teacher.'" title="'.$course->teacher.'"/>';
63 if ($user->emailstop) {
64 $error = get_string('emaildisable');
65 } elseif (empty($user->email)) {
66 $error = get_string('emailempty');
68 if (!empty($error)) {
69 echo '<img src="'.$CFG->pixpath.'/t/emailno.gif" alt="'.$error.'" title="'.$error.'"/>';
70 unset($error);
72 echo '</td><td><input type="submit" onClick="this.form.deluser.value='.$user->id.';" value="' . get_string('remove') . '" /></td></tr>';
75 else {
76 echo '<tr><td colspan="3" align="center">'.get_string('nousersyet').'</td></tr>';
79 </table>
80 </form>