$string['forumtype'] = "Forum type";
$string['generalforum'] = "Standard forum for general use";
$string['generalforums'] = "General forums";
+$string['helpreading'] = "Read carefully";
+$string['generalforums'] = "General forums";
$string['inforum'] = "in \$a";
$string['intronews'] = "General news and announcements";
$string['introsocial'] = "An open forum for chatting about anything you want to";
$string['postmailinfo'] = "This is a copy of a message posted on the \$a website.
To add your reply via the website, click on this link:";
-$string['postingtip'] = "<B>Posting tips:</B>
+$string['postingtip'] = "<b>Posting tips:</b><br \>
When replying:
-<UL>
-<LI>read their post carefully and empathically
-<LI>look for things you can comment on
-</UL>
+<ul>
+<li>read their post carefully and empathically
+<li>look for things you can comment on
+</ul>
While writing:
-<UL>
-<LI>keep your posts short and on-topic
-<LI>explain your own ideas clearly
-<LI>think of questions you can ask
-</UL>";
+<ul>
+<li>keep your posts short and on-topic
+<li>explain your own ideas clearly
+<li>think of questions you can ask
+</ul>";
$string['postrating1'] = "Shows mostly SEPARATE knowing";
$string['postrating2'] = "Equally separate and connected";
$string['help'] = "Help";
$string['helphtml'] = "How to write html";
$string['helppicture'] = "How to upload a picture";
+$string['helpreading'] = "Read carefully";
$string['helptext'] = "How to write text";
$string['helprichtext'] = "About the Richtext HTML editor";
-$string['helpquestions'] = "How to ask questions";
+$string['helpquestions'] = "Ask good questions";
+$string['helpwriting'] = "Write carefully";
$string['hide'] = "Hide";
$string['hits'] = "Hits";
$string['hitsoncourse'] = "Hits on \$a->coursename by \$a->username";
die;
}
-function helpbutton ($page, $title="", $module="moodle", $image=true, $text="") {
+function helpbutton ($page, $title="", $module="moodle", $image=true, $linktext=false, $text="") {
// $page = the keyword that defines a help page
// $title = the title of links, rollover tips, alt tags etc
// $module = which module is the page defined in
- // $image = use a help image for the link? (otherwise uses text)
+ // $image = use a help image for the link? (true/false/"both")
// $text = if defined then this text is used in the page, and
// the $page variable is ignored.
global $CFG;
if ($module == "") {
$module = "moodle";
}
+
if ($image) {
- $linkobject = "<IMG BORDER=0 HEIGHT=17 WIDTH=22 ALT=\"$title\" SRC=\"$CFG->wwwroot/pix/help.gif\">";
+ if ($linktext) {
+ $linkobject = "$title<IMG align=\"absmiddle\" BORDER=0 HEIGHT=17 WIDTH=22 ALT=\"\" SRC=\"$CFG->wwwroot/pix/help.gif\">";
+ } else {
+ $linkobject = "<IMG align=\"absmiddle\" BORDER=0 HEIGHT=17 WIDTH=22 ALT=\"$title\" SRC=\"$CFG->wwwroot/pix/help.gif\">";
+ }
} else {
$linkobject = $title;
}
if ($text) {
- $url = "/help.php?module=$module&text=$text";
+ $url = "/help.php?module=$module&text=".htmlentities(urlencode($text));
} else {
$url = "/help.php?module=$module&file=$page.html";
}
</td>
</tr>
<tr valign=top>
- <td align=right><P><B><? print_string("description", "assignment") ?>:</B></P></TD>
+ <td align=right><P><B><? print_string("description", "assignment") ?>:</B></P>
+ <font SIZE="1">
+ <? helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br \>
+ <? helpbutton("questions", get_string("helpquestions"), "moodle", true, true) ?><br \>
+ <? if ($usehtmleditor) { ?>
+ <? helpbutton("richtext", get_string("helprichtext"), "moodle", true, true) ?>
+ <? } else { ?>
+ <? helpbutton("text", get_string("helptext"), "moodle", true, true) ?>
+ <? } ?><br \>
+ </font>
+ </td>
<td>
<?
print_textarea($usehtmleditor, 20, 60, 595, 400, "description", $form->description);
- if ($usehtmleditor) {
- helpbutton("richtext", get_string("helprichtext"));
- } else {
- helpbutton("text", get_string("helptext"));
- }
echo "<P align=right>";
print_string("formattexttype");
echo ": ";
</tr>
<tr valign=top>
- <td align=right><P><B><? print_string("choicetext","choice") ?>:</B></P></TD>
+ <td align=right><P><B><? print_string("choicetext","choice") ?>:</B></P>
+ <font SIZE="1">
+ <? helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br \>
+ <? helpbutton("questions", get_string("helpquestions"), "moodle", true, true) ?><br \>
+ <? helpbutton("text", get_string("helptext"), "moodle", true, true) ?><br \>
+ </font>
+ </td>
<td>
<textarea name="text" rows=20 cols=40 wrap="virtual"><? p($form->text) ?></textarea>
- <? helpbutton("text", get_string("helptext")); ?>
</td>
</tr>
</td>
</tr>
<tr valign=top>
- <td align=right><P><B><? print_string("forumintro", "forum")?>:</B></P></TD>
+ <td align=right><P><B><? print_string("forumintro", "forum")?>:</B></P>
+ <font SIZE="1">
+ <? helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br \>
+ <? helpbutton("questions", get_string("helpquestions"), "moodle", true, true) ?><br \>
+ <? helpbutton("text", get_string("helptext"), "moodle", true, true) ?><br \>
+ </font>
+ </td>
<td>
<textarea name="intro" rows=4 cols=50 wrap="virtual"><? p($form->intro) ?></textarea>
- <? helpbutton("text", get_string("helptext")); ?>
</td>
</tr>
<form name="theform" method="post" action="post.php" <?=$onsubmit ?> enctype="multipart/form-data">
-<table cellpadding=5>
-<tr valign=top>
- <td align=right><P><B><? print_string("subject", "forum"); ?>:</B></P></TD>
+<table border="0" cellpadding="5">
+<tr valign="top">
+ <td align=right><p><b><? print_string("subject", "forum"); ?>:</b></p></td>
<td>
<input type="text" name="subject" size=60 value="<? p($post->subject) ?>">
</td>
- <td>
-
+</tr>
+<tr valign="top">
+ <td align=right><p><b>
+ <? print_string("message", "forum"); ?>:
+ </b></p></td>
+ <td align=left rowspan=2>
+ <? print_textarea($usehtmleditor, 15, 50, 595, 400, "message", $post->message); ?>
</td>
</tr>
-<tr valign=top>
- <td align=right><P><B><? print_string("message", "forum"); ?>:</B>
+<tr valign="top">
+ <td align="right" valign="center" nowrap>
+
+ <font SIZE="1">
+ <? helpbutton("reading", get_string("helpreading"), "moodle", true, true) ?><br \>
+ <? helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br \>
+ <? helpbutton("questions", get_string("helpquestions"), "moodle", true, true) ?><br \>
<? if ($usehtmleditor) { ?>
- <BR><BR><? helpbutton("richtext", get_string("helprichtext")) ?></P>
+ <? helpbutton("richtext", get_string("helprichtext"), "moodle", true, true) ?>
<? } else { ?>
- <BR><BR><? helpbutton("text", get_string("helptext")) ?></P>
- <? } ?>
- </TD>
- <td>
- <? print_textarea($usehtmleditor, 15, 50, 595, 400, "message", $post->message); ?>
- </td>
- <td rowspan=2>
- <FONT SIZE=1>
- <? print_string("postingtip", "forum"); ?>
- <DIV ALIGN=RIGHT><? helpbutton("questions", get_string("helpquestions"), "moodle", false) ?></DIV>
- </FONT>
+ <? helpbutton("text", get_string("helptext"), "moodle", true, true) ?>
+ <? } ?><br \>
+ </font>
+
</td>
</tr>
<tr valign=top>
- <td align=right><P><B><? print_string("formattexttype"); ?>:</B></P></TD>
+ <td align=right><p><b><? print_string("formattexttype"); ?>:</b></p></td>
<td>
<? choose_from_menu(format_text_menu(), "format", $post->format, ""); ?>
<? helpbutton("textformat", get_string("formattexttype")) ?>
- </td>
- <td>
-
+
</td>
</tr>
<tr valign=top>
- <td><P><B><? print_string("attachment", "forum") ?>:<BR>(<? print_string("optional") ?>)</B></P></td>
- <td>
- <INPUT type="hidden" name="MAX_FILE_SIZE" value="<? echo get_max_upload_file_size() ?>">
+ <td align=right><p><b><? print_string("attachment", "forum") ?><br \>(<? print_string("optional") ?>):</b></p></td>
+ <td>
+ <input type="hidden" name="MAX_FILE_SIZE" value="<? echo get_max_upload_file_size() ?>">
<input type="file" name="attachment" size=40>
- <? helpbutton("attachment", get_string("attachment", "forum"), "forum" );
+ <? helpbutton("attachment", get_string("attachment", "forum"), "forum");
print_string("maxsize", "", display_size(get_max_upload_file_size()));
?>
- <BR><BR>
- <input type="hidden" name=course value="<? p($post->course) ?>">
- <input type="hidden" name=forum value="<? p($post->forum) ?>">
- <input type="hidden" name=discussion value="<? p($post->discussion) ?>">
- <input type="hidden" name=parent value="<? p($post->parent) ?>">
- <input type="hidden" name=user value="<? p($post->user) ?>">
- <input type="hidden" name=edit value="<? p($post->edit) ?>">
+ </td>
+
+</tr>
+<tr>
+ <td align=center colspan=2>
+ <input type="hidden" name=course value="<? p($post->course) ?>">
+ <input type="hidden" name=forum value="<? p($post->forum) ?>">
+ <input type="hidden" name=discussion value="<? p($post->discussion) ?>">
+ <input type="hidden" name=parent value="<? p($post->parent) ?>">
+ <input type="hidden" name=user value="<? p($post->user) ?>">
+ <input type="hidden" name=edit value="<? p($post->edit) ?>">
<input type="submit" value="<? print_string("savechanges"); ?>">
- </td>
+ </td>
+
</tr>
-<tr valign=top>
</table>
-</FORM>
+</form>
<?
if ($usehtmleditor) {
<FORM name="theform" method="post" <?=$onsubmit ?> action="edit.php">
- <? print_textarea($usehtmleditor, 20, 60, 595, 400, "text", $entry->text); ?>
+<table><tr>
+ <td align=right>
+ <font SIZE="1">
+ <? helpbutton("reading", get_string("helpreading"), "moodle", true, true) ?><br \>
+ <? helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br \>
+ <? if ($usehtmleditor) { ?>
+ <? helpbutton("richtext", get_string("helprichtext"), "moodle", true, true) ?>
+ <? } else { ?>
+ <? helpbutton("text", get_string("helptext"), "moodle", true, true) ?>
+ <? } ?><br \>
+ </font>
+ </td>
+</tr></table>
-<? if ($usehtmleditor) {
- helpbutton("richtext", get_string("helprichtext"));
- } else {
- helpbutton("text", get_string("helptext"));
- }
-?>
+<? print_textarea($usehtmleditor, 20, 60, 595, 400, "text", $entry->text); ?>
<P align=center>
<? print_string("formattexttype");
}
print_header("$course->shortname: $journal->name", "$course->fullname",
- "<A HREF=/course/view.php?id=$course->id>$course->shortname</A> ->
- <A HREF=/mod/journal/index.php?id=$course->id>$strjournals</A> ->
+ "<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> ->
+ <A HREF=\"index.php?id=$course->id\">$strjournals</A> ->
<A HREF=\"view.php?id=$cm->id\">$journal->name</A> -> $stredit", "form.text",
"", true, "", navmenu($course, $cm));
</td>
</tr>
<tr valign=top>
- <td align=right><P><B><? print_string("journalquestion", "journal") ?>:</B></P></TD>
+ <td align=right><P><B><? print_string("journalquestion", "journal") ?>:</B></P>
+ <font SIZE="1">
+ <? helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br \>
+ <? helpbutton("questions", get_string("helpquestions"), "moodle", true, true) ?><br \>
+ </font>
+
+ </TD>
<td>
<textarea name="intro" rows=15 cols=30 wrap="virtual"><? p($form->intro) ?></textarea>
</td>
?>
<TR VALIGN=top>
<TD ALIGN=right NOWRAP>
- <P><B><?=$strfulltext?>:</B></P>
- <BR><? helpbutton("text", get_string("helptext")) ?>
+ <P><B><?=$strfulltext?>:</B></P><br \>
+ <font SIZE="1">
+ <? helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br \>
+ <? helpbutton("text", get_string("helptext"), "moodle", true, true) ?> <br \>
+ </font>
</TD>
<TD>
<TEXTAREA NAME="alltext" ROWS=20 COLS=50 WRAP="virtual"><? p($form->alltext) ?></TEXTAREA>
?>
<TR VALIGN=top>
<TD ALIGN=right NOWRAP>
- <P><B><?=$strhtmlfragment?>:</B></P>
- <? if ($usehtmleditor) { ?>
- <BR><? helpbutton("richtext", get_string("helprichtext")) ?>
- <? } else { ?>
- <BR><? helpbutton("html", get_string("helphtml")) ?>
- <? } ?>
+ <P><B><?=$strhtmlfragment?>:</B></P><br \>
+ <font SIZE="1">
+ <? helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br \>
+ <? if ($usehtmleditor) {
+ helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
+ } else {
+ helpbutton("html", get_string("helphtml"), "moodle", true, true);
+ } ?><br \>
+ </font>
</TD>
<TD>
<? print_textarea($usehtmleditor, 20, 50, 680, 400, "alltext", $form->alltext); ?>
</td>
</tr>
<tr valign=top>
- <td align=right><P><B><? print_string("summary") ?>:</B></P></TD>
+ <td align=right><P><B><? print_string("summary") ?>:</B></P>
+ <font SIZE="1">
+ <? helpbutton("summary", get_string("summary"), "resource", true, true); ?><br \>
+ <? helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br \>
+ <? helpbutton("text", get_string("helptext"), "moodle", true, true) ?><br \>
+ </font>
+ </td>
<td>
<textarea name="summary" rows=5 cols=50 wrap="virtual"><? p($form->summary) ?></textarea>
- <? helpbutton("summary", get_string("summary"), "resource"); ?>
</td>
</tr>
</table>