Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

short php tags - Bug #1956

  • Loading branch information...
commit d1a6dd2716753710db90bd0fb52528e3ea31f740 1 parent 201764c
skodak authored
View
2  mod/quiz/jstimer.php
@@ -13,7 +13,7 @@ function send_data() {
var timesup = "<?php print_string("timesup","quiz");?>";
var quizclose = <?php echo ($quiz->timeclose - time()) - $timerstartvalue; ?>; // in seconds
-var quizTimerValue = <? echo $timerstartvalue; ?>; // in seconds
+var quizTimerValue = <?php echo $timerstartvalue; ?>; // in seconds
parseInt(quizTimerValue);
// -->
</script>
View
14 mod/wiki/checklinks.html
@@ -3,14 +3,14 @@
?>
<FORM ACTION="admin.php" METHOD="POST" ENCTYPE="multipart/form-data">
-<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<? print $userid; ?>" />
-<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<? print $groupid ?>" />
-<INPUT TYPE="HIDDEN" NAME="action" VALUE="<? print $action; ?>" />
-<INPUT TYPE="HIDDEN" NAME="id" VALUE="<? print $cm->id ?>" />
-<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<? print $wikipage?>" />
-<?
+<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<?php print $userid; ?>" />
+<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<?php print $groupid ?>" />
+<INPUT TYPE="HIDDEN" NAME="action" VALUE="<?php print $action; ?>" />
+<INPUT TYPE="HIDDEN" NAME="id" VALUE="<?php print $cm->id ?>" />
+<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<?php print $wikipage?>" />
+<?php
$pagelist=wiki_admin_checklinks_list();
choose_from_menu($pagelist, "pagetocheck", $wikipage, "");
?>
- <input type="submit" name="proceed" value="<? print get_string("checklinks","wiki"); ?>" />
+ <input type="submit" name="proceed" value="<?php print get_string("checklinks","wiki"); ?>" />
</center>
View
26 mod/wiki/removepages.html
@@ -6,27 +6,27 @@
?>
<FORM ACTION="admin.php" METHOD="POST" ENCTYPE="multipart/form-data">
-<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<? print $userid; ?>" />
-<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<? print $groupid ?>" />
-<INPUT TYPE="HIDDEN" NAME="action" VALUE="<? print $action; ?>" />
-<INPUT TYPE="HIDDEN" NAME="id" VALUE="<? print $cm->id ?>" />
-<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<? print $wikipage?>" />
-<?
- $remove_table=wiki_admin_remove_list($form->listall);
+<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<?php print $userid; ?>" />
+<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<?php print $groupid ?>" />
+<INPUT TYPE="HIDDEN" NAME="action" VALUE="<?php print $action; ?>" />
+<INPUT TYPE="HIDDEN" NAME="id" VALUE="<?php print $cm->id ?>" />
+<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<?php print $wikipage?>" />
+<?php
+ $remove_table=wiki_admin_remove_list($form->listall);
print_table($remove_table);
?>
<center>
-<?
+<?php
if(!count($remove_table->data)) {
print get_string("nocandidatestoremove","wiki",get_string("listall","wiki"))."<br /><br />";
}
?>
-<?
+<?php
if($form->listall) {
- print ' <input type="submit" name="listcandidates" value="'.get_string("listcandidates","wiki").'" />'."\n";
+ print ' <input type="submit" name="listcandidates" value="'.get_string("listcandidates","wiki").'" />'."\n";
} else {
- print ' <input type="submit" name="listall" value="'.get_string("listall","wiki").'" />'."\n";
+ print ' <input type="submit" name="listall" value="'.get_string("listall","wiki").'" />'."\n";
}
-?>
- <input type="submit" name="proceed" value="<? print get_string("removeselectedpages","wiki"); ?>" />
+?>
+ <input type="submit" name="proceed" value="<?php print get_string("removeselectedpages","wiki"); ?>" />
</center>
View
24 mod/wiki/revertpages.html
@@ -9,14 +9,14 @@
?>
<FORM ACTION="admin.php" METHOD="POST" ENCTYPE="multipart/form-data">
-<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<? print $userid; ?>" />
-<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<? print $groupid ?>" />
-<INPUT TYPE="HIDDEN" NAME="action" VALUE="<? print $action; ?>" />
-<INPUT TYPE="HIDDEN" NAME="id" VALUE="<? print $cm->id ?>" />
-<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<? print $wikipage?>" />
+<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<?php print $userid; ?>" />
+<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<?php print $groupid ?>" />
+<INPUT TYPE="HIDDEN" NAME="action" VALUE="<?php print $action; ?>" />
+<INPUT TYPE="HIDDEN" NAME="id" VALUE="<?php print $cm->id ?>" />
+<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<?php print $wikipage?>" />
<CENTER>
-<?
+<?php
if($err->remark) {
formerr($err->remark);
}
@@ -29,22 +29,22 @@
<?php
helpbutton('revertauthorfieldpattern', get_string('authorfieldpattern', 'wiki'), 'wiki');
if (!empty($err->authorfieldpattern)) { formerr($err->authorfieldpattern); }
-?>
+?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string('changesfield','wiki') ?>:</B></P></TD>
<TD>
<INPUT type="text" name="changesfield" size=30 value="<?php p($form->changesfield) ?>" />
- <? if (!empty($err->changesfield)) { formerr($err->changesfield); } ?>
+ <?php if (!empty($err->changesfield)) { formerr($err->changesfield); } ?>
</TD>
</TR>
<TR valign=top>
<TD align=right><P><B><?php print_string('howtooperate', 'wiki') ?>:</B></P></TD>
<TD>
<?php
- $operations=array( "lastonly" => get_string("revertlastonly","wiki"),
- "allsince" => get_string("revertallsince","wiki"),
+ $operations=array( "lastonly" => get_string("revertlastonly","wiki"),
+ "allsince" => get_string("revertallsince","wiki"),
"the" => get_string("revertthe","wiki"));
choose_from_menu($operations, "howtooperate", $form->howtooperate, "");
?>
@@ -54,9 +54,9 @@
<TD align=right><P><B><?php print_string('deleteversions','wiki') ?>:</B></P></TD>
<TD>
<INPUT type="text" name="deleteversions" size=2 value="<?php p($form->deleteversions) ?>" />
- <? if (!empty($err->deleteversions)) { formerr($err->deleteversions); } ?>
+ <?php if (!empty($err->deleteversions)) { formerr($err->deleteversions); } ?>
</TD>
</TR>
</TABLE>
- <input type="submit" name="proceed" value="<? print get_string("revertchanges","wiki"); ?>" />
+ <input type="submit" name="proceed" value="<?php print get_string("revertchanges","wiki"); ?>" />
</center>
View
16 mod/wiki/setpageflags.html
@@ -3,16 +3,16 @@
?>
<FORM ACTION="admin.php" METHOD="POST" ENCTYPE="multipart/form-data">
-<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<? print $userid; ?>" />
-<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<? print $groupid ?>" />
-<INPUT TYPE="HIDDEN" NAME="action" VALUE="<? print $action; ?>" />
-<INPUT TYPE="HIDDEN" NAME="id" VALUE="<? print $cm->id ?>" />
-<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<? print $wikipage?>" />
-<?
- $pageflags_table=wiki_admin_setpageflags_list($pageflagstatus);
+<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<?php print $userid; ?>" />
+<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<?php print $groupid ?>" />
+<INPUT TYPE="HIDDEN" NAME="action" VALUE="<?php print $action; ?>" />
+<INPUT TYPE="HIDDEN" NAME="id" VALUE="<?php print $cm->id ?>" />
+<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<?php print $wikipage?>" />
+<?php
+ $pageflags_table=wiki_admin_setpageflags_list($pageflagstatus);
print_table($pageflags_table);
?>
<br />
<center>
- <input type="submit" name="proceed" value="<? print get_string("setpageflags","wiki"); ?>" />
+ <input type="submit" name="proceed" value="<?php print get_string("setpageflags","wiki"); ?>" />
</center>
View
20 mod/wiki/strippages.html
@@ -3,20 +3,20 @@
?>
<FORM ACTION="admin.php" METHOD="POST" ENCTYPE="multipart/form-data">
-<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<? print $userid; ?>" />
-<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<? print $groupid ?>" />
-<INPUT TYPE="HIDDEN" NAME="action" VALUE="<? print $action; ?>" />
-<INPUT TYPE="HIDDEN" NAME="id" VALUE="<? print $cm->id ?>" />
-<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<? print $wikipage?>" />
-<?
- $strip_table=wiki_admin_strip_list($form->pagestostrip, $form->version, $err);
+<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<?php print $userid; ?>" />
+<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<?php print $groupid ?>" />
+<INPUT TYPE="HIDDEN" NAME="action" VALUE="<?php print $action; ?>" />
+<INPUT TYPE="HIDDEN" NAME="id" VALUE="<?php print $cm->id ?>" />
+<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<?php print $wikipage?>" />
+<?php
+ $strip_table=wiki_admin_strip_list($form->pagestostrip, $form->version, $err);
print_table($strip_table);
?>
<center>
-<?
+<?php
if(!count($strip_table->data)) {
print get_string("nothingtostrip","wiki")."<br /><br />";
}
-?>
- <input type="submit" name="proceed" value="<? print get_string("strippages","wiki"); ?>" />
+?>
+ <input type="submit" name="proceed" value="<?php print get_string("strippages","wiki"); ?>" />
</center>
View
18 mod/workshop/mod.html
@@ -84,14 +84,14 @@
echo "<br />";
emoticonhelpbutton("form", "description", "moodle", true, true);
echo "<br />";
- }
+ }
?>
<br />
</font>
<td>
- <?php
+ <?php
print_textarea($usehtmleditor, 20, 60, 595, 400, "description", $form->description);
-
+
if ($usehtmleditor) {
echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'" />';
} else {
@@ -102,7 +102,7 @@
if (!$form->format) {
$form->format = $defaultformat;
}
- choose_from_menu(format_text_menu(), "format", $form->format, "");
+ choose_from_menu(format_text_menu(), "format", $form->format, "");
echo '</p>';
}
?>
@@ -158,7 +158,7 @@
<tr>
<td align="right"><p><b><?php print_string("allowresubmit", "workshop") ?>:</b></p></td>
<td>
- <?php
+ <?php
$options[0] = get_string("no"); $options[1] = get_string("yes");
choose_from_menu($options, "resubmit", $form->resubmit, "");
helpbutton("resubmit", get_string("allowresubmit", "workshop"), "workshop");
@@ -239,7 +239,7 @@
<tr>
<td align="right"><p><b><?php print_string("selfassessment", "workshop") ?>:</b></p></td>
<td>
- <?php
+ <?php
$options[0] = get_string("no"); $options[1] = get_string("yes");
choose_from_menu($options, "includeself", $form->includeself, "");
helpbutton("selfassessment", get_string("selfassessment", "workshop"), "workshop");
@@ -250,7 +250,7 @@
<tr>
<td align="right"><p><b><?php print_string("assessmentsmustbeagreed", "workshop") ?>:</b></p></td>
<td>
- <?php
+ <?php
choose_from_menu($options, "agreeassessments", $form->agreeassessments, "");
helpbutton("agreeassessments", get_string("assessmentsmustbeagreed", "workshop"), "workshop");
?>
@@ -260,7 +260,7 @@
<tr>
<td align="right"><p><b><?php print_string("hidegradesbeforeagreement", "workshop") ?>:</b></p></td>
<td>
- <?php
+ <?php
choose_from_menu($options, "hidegrades", $form->hidegrades, "");
helpbutton("showinggrades", get_string("hidegradesbeforeagreement", "workshop"), "workshop");
?>
@@ -284,7 +284,7 @@
</tr>
<tr>
- <td align="right"><p><b><? print_string("hidenamesfromstudents", "workshop", $course->students) ?>:</b></p></td>
+ <td align="right"><p><b><?php print_string("hidenamesfromstudents", "workshop", $course->students) ?>:</b></p></td>
<td>
<?php
choose_from_menu($options, "anonymous", $form->anonymous, "");
Please sign in to comment.
Something went wrong with that request. Please try again.