Permalink
Browse files

Fixed some PHP short_tags

  • Loading branch information...
1 parent c225103 commit c559bcf6f0d3c4de6703e4f2d4ba3d50ec1d4498 moodler committed Sep 9, 2003
View
@@ -93,14 +93,14 @@
</table>
<center>
-<input type="hidden" name=course value="<? p($form->course) ?>">
-<input type="hidden" name=coursemodule value="<? p($form->coursemodule) ?>">
-<input type="hidden" name=section value="<? p($form->section) ?>">
-<input type="hidden" name=module value="<? p($form->module) ?>">
-<input type="hidden" name=modulename value="<? p($form->modulename) ?>">
-<input type="hidden" name=instance value="<? p($form->instance) ?>">
-<input type="hidden" name=mode value="<? p($form->mode) ?>">
-<input type="submit" value="<? print_string("savechanges") ?>">
-<input type="submit" name=cancel value="<? print_string("cancel") ?>">
+<input type="hidden" name=course value="<?php p($form->course) ?>">
+<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
+<input type="hidden" name=section value="<?php p($form->section) ?>">
+<input type="hidden" name=module value="<?php p($form->module) ?>">
+<input type="hidden" name=modulename value="<?php p($form->modulename) ?>">
+<input type="hidden" name=instance value="<?php p($form->instance) ?>">
+<input type="hidden" name=mode value="<?php p($form->mode) ?>">
+<input type="submit" value="<?php print_string("savechanges") ?>">
+<input type="submit" name=cancel value="<?php print_string("cancel") ?>">
</center>
</form>
View
@@ -171,14 +171,14 @@
</tr>
</table>
<center>
-<input type="hidden" name=course value="<? p($form->course) ?>">
-<input type="hidden" name=coursemodule value="<? p($form->coursemodule) ?>">
-<input type="hidden" name=section value="<? p($form->section) ?>">
-<input type="hidden" name=module value="<? p($form->module) ?>">
-<input type="hidden" name=modulename value="<? p($form->modulename) ?>">
-<input type="hidden" name=instance value="<? p($form->instance) ?>">
-<input type="hidden" name=mode value="<? p($form->mode) ?>">
-<input type="submit" value="<? print_string("savechanges") ?>">
-<input type="submit" name=cancel value="<? print_string("cancel") ?>">
+<input type="hidden" name=course value="<?php p($form->course) ?>">
+<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
+<input type="hidden" name=section value="<?php p($form->section) ?>">
+<input type="hidden" name=module value="<?php p($form->module) ?>">
+<input type="hidden" name=modulename value="<?php p($form->modulename) ?>">
+<input type="hidden" name=instance value="<?php p($form->instance) ?>">
+<input type="hidden" name=mode value="<?php p($form->mode) ?>">
+<input type="submit" value="<?php print_string("savechanges") ?>">
+<input type="submit" name=cancel value="<?php print_string("cancel") ?>">
</center>
</form>
View
@@ -1,4 +1,4 @@
-<FORM name="theform" method="post" <?=$onsubmit ?> action="edit.php">
+<FORM name="theform" method="post" <?php echo $onsubmit ?> action="edit.php">
<table><tr>
<td align=right>
<font size="1">
@@ -18,7 +18,7 @@
</td>
</tr></table>
-<? print_textarea($usehtmleditor, 20, 60, 630, 400, "text", $entry->text); ?>
+<?php print_textarea($usehtmleditor, 20, 60, 630, 400, "text", $entry->text); ?>
<p align=center>
<?PHP
@@ -32,9 +32,9 @@
</p>
<p align=center>
-<input type="hidden" name=id value="<?=$cm->id ?>">
-<input type="submit" value="<? print_string("savechanges") ?>">
-<input type="reset" value="<? print_string("revert") ?>">
+<input type="hidden" name=id value="<?php echo $cm->id ?>">
+<input type="submit" value="<?php print_string("savechanges") ?>">
+<input type="reset" value="<?php print_string("revert") ?>">
</P>
</form>
View
@@ -1,23 +1,23 @@
-<FORM name="theform" method="post" <?=$onsubmit ?> action="question.php">
+<FORM name="theform" method="post" <?php echo $onsubmit ?> action="question.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
- <TD align=right><P><B><? print_string("category", "quiz") ?>:</B></P></TD>
+ <TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
- <? choose_from_menu($categories, "category", "$question->category", ""); ?>
+ <?php choose_from_menu($categories, "category", "$question->category", ""); ?>
</TD>
</TR>
<TR valign=top>
- <TD align=right><P><B><? print_string("questionname", "quiz") ?>:</B></P></TD>
+ <TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
- <INPUT type="text" name="name" size=40 value="<? p($question->name) ?>">
- <? if (isset($err["name"])) formerr($err["name"]); ?>
+ <INPUT type="text" name="name" size=40 value="<?php p($question->name) ?>">
+ <?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<TR valign=top>
- <TD align=right><P><B><? print_string("question", "quiz") ?>:</B></P></TD>
+ <TD align=right><P><B><?php print_string("question", "quiz") ?>:</B></P></TD>
<TD>
- <? if (isset($err["questiontext"])) {
+ <?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo "<BR \>";
}
@@ -31,9 +31,9 @@
</TD>
</TR>
<TR valign=top>
- <TD align=right><P><B><? print_string("imagedisplay", "quiz") ?>:</B></P></TD>
+ <TD align=right><P><B><?php print_string("imagedisplay", "quiz") ?>:</B></P></TD>
<TD>
- <? if (empty($images)) {
+ <?php if (empty($images)) {
print_string("noimagesyet");
} else {
choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
@@ -43,14 +43,14 @@
</TR>
</TABLE>
-<INPUT type="hidden" name=id value="<? p($question->id) ?>">
-<INPUT type="hidden" name=qtype value="<? p($question->qtype) ?>">
+<INPUT type="hidden" name=id value="<?php p($question->id) ?>">
+<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>">
<INPUT type="hidden" name=defaultgrade value="0">
-<INPUT type="submit" value="<? print_string("savechanges") ?>">
+<INPUT type="submit" value="<?php print_string("savechanges") ?>">
</CENTER>
</FORM>
-<?
+<?php
if ($usehtmleditor) {
print_richedit_javascript("theform", "questiontext", "no");
}
View
@@ -165,10 +165,10 @@
?>
<CENTER>
<P>&nbsp;</P>
- <FORM NAME=theform METHOD=post ACTION=<?=$modform->destination ?>>
- <INPUT TYPE="hidden" NAME=course VALUE="<? p($modform->course) ?>">
- <INPUT TYPE="submit" VALUE="<? print_string("savequiz", "quiz") ?>">
- <INPUT type="submit" name=cancel value="<? print_string("cancel") ?>">
+ <FORM NAME=theform METHOD=post ACTION=<?php echo $modform->destination ?>>
+ <INPUT TYPE="hidden" NAME=course VALUE="<?php p($modform->course) ?>">
+ <INPUT TYPE="submit" VALUE="<?php print_string("savequiz", "quiz") ?>">
+ <INPUT type="submit" name=cancel value="<?php print_string("cancel") ?>">
</FORM>
</CENTER>
<?
@@ -119,45 +119,45 @@
?>
-<FORM name="theform" method="post" <?=$onsubmit ?> action="editmultianswer.php">
+<FORM name="theform" method="post" <?php echo $onsubmit ?> action="editmultianswer.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
- <TD align=right><P><B><? print_string("category", "quiz") ?>:</B></P></TD>
+ <TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
- <? choose_from_menu($categories, "category", "$question->category", ""); ?>
+ <?php choose_from_menu($categories, "category", "$question->category", ""); ?>
</TD>
</TR>
<TR valign=top>
- <TD align=right><P><B><? print_string("questionname", "quiz") ?>:</B></P></TD>
+ <TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
- <INPUT type="text" name="name" size=40 value="<? p($question->name) ?>">
+ <INPUT type="text" name="name" size=40 value="<?php p($question->name) ?>">
- <? if (isset($err["name"])) formerr($err["name"]); ?>
+ <?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<TR valign=top>
- <TD align=right><P><B><? print_string("question", "quiz") ?>:</B></P></TD>
+ <TD align=right><P><B><?php print_string("question", "quiz") ?>:</B></P></TD>
<TD>
- <? if (isset($err["questiontext"])) {
+ <?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
@@ -185,11 +185,11 @@
<TR valign=top>
- <TD align=right><P><B><? print_string("imagedisplay", "quiz") ?>:</B></P></TD>
+ <TD align=right><P><B><?php print_string("imagedisplay", "quiz") ?>:</B></P></TD>
<TD>
- <? if (empty($images)) {
+ <?php if (empty($images)) {
print_string("noimagesyet");
@@ -209,21 +209,21 @@
-<INPUT type="hidden" name=id value="<? p($question->id) ?>">
+<INPUT type="hidden" name=id value="<?php p($question->id) ?>">
-<INPUT type="hidden" name=qtype value="<? p($question->qtype) ?>">
+<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>">
-<INPUT type="hidden" name=defaultgrade value="<? p($question->defaultgrade) ?>">
+<INPUT type="hidden" name=defaultgrade value="<?php p($question->defaultgrade) ?>">
-<INPUT type="submit" value="<? print_string("savechanges") ?>">
+<INPUT type="submit" value="<?php print_string("savechanges") ?>">
</CENTER>
</FORM>
-<?
+<?php
if ($usehtmleditor) {
View
@@ -1,23 +1,23 @@
-<FORM name="theform" method="post" <?=$onsubmit ?> action="question.php">
+<FORM name="theform" method="post" <?php echo $onsubmit ?> action="question.php">
<CENTER>
<TABLE cellpadding=5>
<TR valign=top>
- <TD align=right><P><B><? print_string("category", "quiz") ?>:</B></P></TD>
+ <TD align=right><P><B><?php print_string("category", "quiz") ?>:</B></P></TD>
<TD>
- <? choose_from_menu($categories, "category", "$question->category", ""); ?>
+ <?php choose_from_menu($categories, "category", "$question->category", ""); ?>
</TD>
</TR>
<TR valign=top>
- <TD align=right><P><B><? print_string("questionname", "quiz") ?>:</B></P></TD>
+ <TD align=right><P><B><?php print_string("questionname", "quiz") ?>:</B></P></TD>
<TD>
- <INPUT type="text" name="name" size=40 value="<? p($question->name) ?>">
- <? if (isset($err["name"])) formerr($err["name"]); ?>
+ <INPUT type="text" name="name" size=40 value="<?php p($question->name) ?>">
+ <?php if (isset($err["name"])) formerr($err["name"]); ?>
</TD>
</TR>
<TR valign=top>
- <TD align=right><P><B><? print_string("question", "quiz") ?>:</B></P></TD>
+ <TD align=right><P><B><?php print_string("question", "quiz") ?>:</B></P></TD>
<TD>
- <? if (isset($err["questiontext"])) {
+ <?php if (isset($err["questiontext"])) {
formerr($err["questiontext"]);
echo "<BR \>";
}
@@ -31,9 +31,9 @@
</TD>
</TR>
<TR valign=top>
- <TD align=right><P><B><? print_string("imagedisplay", "quiz") ?>:</B></P></TD>
+ <TD align=right><P><B><?php print_string("imagedisplay", "quiz") ?>:</B></P></TD>
<TD>
- <? if (empty($images)) {
+ <?php if (empty($images)) {
print_string("noimagesyet");
} else {
choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
@@ -43,8 +43,8 @@
</TR>
<TR valign=top>
- <TD align=right><P><B><? print_string("choices", "quiz") ?></B>:</P></TD>
- <TD><P><? print_string("filloutthreequestions", "quiz") ?></P>
+ <TD align=right><P><B><?php print_string("choices", "quiz") ?></B>:</P></TD>
+ <TD><P><?php print_string("filloutthreequestions", "quiz") ?></P>
</TD>
</TR>
@@ -53,12 +53,12 @@
?>
<TR valign=top>
- <TD align=right><P><B><? echo get_string("question", "quiz")." $i"; ?> :</B></P></TD>
+ <TD align=right><P><B><?php echo get_string("question", "quiz")." $i"; ?> :</B></P></TD>
<TD>
- <textarea name="subquestions[]" rows=5 cols=50><? p($subquestions[$i-1]) ?></textarea>
+ <textarea name="subquestions[]" rows=5 cols=50><?php p($subquestions[$i-1]) ?></textarea>
<br \>
- <? echo get_string("matchanswer", "quiz")." $i"; ?>&nbsp;&nbsp;
- <INPUT type="text" name="subanswers[]" size=50 value="<? p($subanswers[$i-1]) ?>">
+ <?php echo get_string("matchanswer", "quiz")." $i"; ?>&nbsp;&nbsp;
+ <INPUT type="text" name="subanswers[]" size=50 value="<?php p($subanswers[$i-1]) ?>">
</TD>
</TR>
@@ -68,13 +68,13 @@
</TABLE>
-<INPUT type="hidden" name=id value="<? p($question->id) ?>">
-<INPUT type="hidden" name=qtype value="<? p($question->qtype) ?>">
-<INPUT type="submit" value="<? print_string("savechanges") ?>">
+<INPUT type="hidden" name=id value="<?php p($question->id) ?>">
+<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>">
+<INPUT type="submit" value="<?php print_string("savechanges") ?>">
</CENTER>
</FORM>
-<?
+<?php
if ($usehtmleditor) {
print_richedit_javascript("theform", "questiontext", "no");
}
Oops, something went wrong.

0 comments on commit c559bcf

Please sign in to comment.