Skip to content

Commit

Permalink
Fixed some PHP short_tags
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Sep 9, 2003
1 parent c225103 commit c559bcf
Show file tree
Hide file tree
Showing 30 changed files with 383 additions and 383 deletions.
18 changes: 9 additions & 9 deletions mod/chat/mod.html
Expand Up @@ -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>
18 changes: 9 additions & 9 deletions mod/forum/mod.html
Expand Up @@ -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>
10 changes: 5 additions & 5 deletions mod/journal/edit.html
@@ -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">
Expand All @@ -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
Expand All @@ -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>

Expand Down
28 changes: 14 additions & 14 deletions mod/quiz/description.html
@@ -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 \>";
}
Expand All @@ -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"),"","");
Expand All @@ -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");
}
Expand Down
8 changes: 4 additions & 4 deletions mod/quiz/edit.php
Expand Up @@ -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>
<?
Expand Down
30 changes: 15 additions & 15 deletions mod/quiz/editmultianswer.php
Expand Up @@ -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"]);

Expand Down Expand Up @@ -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");

Expand All @@ -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) {

Expand Down
40 changes: 20 additions & 20 deletions mod/quiz/match.html
@@ -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 \>";
}
Expand All @@ -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"),"","");
Expand All @@ -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>

Expand All @@ -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>

Expand All @@ -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");
}
Expand Down

0 comments on commit c559bcf

Please sign in to comment.