mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
75 lines
2.9 KiB
HTML
75 lines
2.9 KiB
HTML
<form id="theform" method="post" action="messageselect.php">
|
|
<input type="hidden" name="id" value="<?php p($id) ?>" />
|
|
<input type="hidden" name="returnto" value="<?php p($returnto) ?>" />
|
|
<input type="hidden" name="deluser" value="" />
|
|
<?php echo $OUTPUT->box_start(); ?>
|
|
<table border="0" cellpadding="5">
|
|
<tr valign="top">
|
|
<td align="right"><b>
|
|
<?php print_string("messagebody"); ?>:
|
|
</b></td>
|
|
<td align="left" rowspan="2">
|
|
<?php print_textarea($usehtmleditor, 25, 65, 630, 400, "messagebody", $messagebody); ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right" valign="middle" nowrap="nowrap">
|
|
<?php
|
|
echo $OUTPUT->help_icon(moodle_help_icon::make("reading", get_string("helpreading"), "moodle", true));
|
|
echo "<br />";
|
|
echo $OUTPUT->help_icon(moodle_help_icon::make("writing", get_string("helpwriting"), "moodle", true));
|
|
echo "<br />";
|
|
echo $OUTPUT->help_icon(moodle_help_icon::make("questions", get_string("helpquestions"), "moodle", true));
|
|
echo "<br />";
|
|
if ($usehtmleditor) {
|
|
echo $OUTPUT->help_icon(moodle_help_icon::make("richtext2", get_string("helprichtext"), "moodle", true));
|
|
} else {
|
|
emoticonhelpbutton("theform", "message");
|
|
}
|
|
?>
|
|
<br />
|
|
</td>
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
<td align="right"><b><?php print_string("formattexttype"); ?>:</b></td>
|
|
<td>
|
|
<?php
|
|
if ($usehtmleditor) { /// Trying this out for a while
|
|
print_string('formathtml');
|
|
echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'" />';
|
|
} else {
|
|
choose_from_menu(format_text_menu(), "format", $format, "");
|
|
}
|
|
echo $OUTPUT->help_icon(moodle_help_icon::make("textformat", get_string("helpformatting")));
|
|
?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr><td align="center" colspan="2"><input type="submit" name="preview" value="<?php print_string('preview'); ?>" /></td></tr>
|
|
</table>
|
|
<?php echo $OUTPUT->box_end(); ?>
|
|
<table align="center"><tr><th colspan="4" scope="row"><?php print_string('currentlyselectedusers'); ?></th></tr>
|
|
<?php
|
|
if (count($SESSION->emailto[$id])) {
|
|
foreach ($SESSION->emailto[$id] as $user) {
|
|
echo '<tr><td>'.fullname($user,true).'</td><td>'.$user->email.'</td><td>';
|
|
if ($user->emailstop) {
|
|
$error = get_string('emaildisable');
|
|
} elseif (empty($user->email)) {
|
|
$error = get_string('emailempty');
|
|
}
|
|
if (!empty($error)) {
|
|
echo '<img src="'.$OUTPUT->pix_url('t/emailno') . '" alt="'.$error.'" title="'.$error.'"/>';
|
|
unset($error);
|
|
}
|
|
echo '</td><td><input type="submit" onClick="this.form.deluser.value='.$user->id.';" value="' . get_string('remove') . '" /></td></tr>';
|
|
}
|
|
}
|
|
else {
|
|
echo '<tr><td colspan="3" align="center">'.get_string('nousersyet').'</td></tr>';
|
|
}
|
|
?>
|
|
</table>
|
|
</form>
|