-<?PHP //$Id$
+<?php //$Id$
//This php script contains all the stuff to backup/restore
//chat mods
echo '<tr><td width="35">';
echo '<a target="_new" onclick="return openpopup('.$popuppar.');" href="'.$CFG->wwwroot.'/user/view.php?id='.$userinfo['chatuser']->id.'&course='.$userinfo['courseid'].'">';
print_user_picture($userinfo['user']->id, 0, $userinfo['user']->picture, false, false, false);
- echo "</a></td><td valign=center>";
- echo "<p><font size=1>";
+ echo "</a></td><td valign=\"center\">";
+ echo "<p><font size=\"1\">";
echo fullname($userinfo['user'])."<br />";
echo "<font color=\"#888888\">$str->idle: ".format_time($lastping, $str)."</font> ";
echo '<a target="empty" href="http://'.$CFG->chat_serverhost.':'.$CFG->chat_serverport.'/?win=beep&beep='.$userinfo['user']->id.
// The refresh value is 2 seconds higher than the configuration variable because we are doing JS refreshes all the time.
// However, if the JS doesn't work for some reason, we still want to refresh once in a while.
- $header .= "Refresh: ".(intval($CFG->chat_refresh_userlist) + 2)."; URL=http://$CFG->chat_serverhost:$CFG->chat_serverport/?win=users&".
+ $header .= "Refresh: ".(intval($CFG->chat_refresh_userlist) + 2)."; url=http://$CFG->chat_serverhost:$CFG->chat_serverport/?win=users&".
"chat_sid=".$sessionid."&groupid=".$this->sets_info[$sessionid]['groupid']."\n";
$header .= "\n";
<form method="post" action="module.php" name="form">
-<table cellpadding=9 cellspacing=0 >
+<table cellpadding="9" cellspacing="0" >
<tr>
- <td colspan=3 align=center>
+ <td colspan="3" align="center">
<div><b><?php print_string('generalconfig', 'chat')?></b></div>
<div style="font-size: 0.8em;">(<?php print_string('explaingeneralconfig', 'chat')?>)</div>
</td>
</tr>
-<tr valign=top>
- <td align=right><p>chat_method:</td>
+<tr valign="top">
+ <td align="right"><p>chat_method:</td>
<td>
<?php
unset($options);
<?php print_string("configmethod", "chat") ?>
</td>
</tr>
-<tr valign=top>
- <td align=right><p>chat_refresh_userlist:</td>
+<tr valign="top">
+ <td align="right"><p>chat_refresh_userlist:</td>
<td>
- <input name=chat_refresh_userlist type=text size=5 value="<?php p($CFG->chat_refresh_userlist) ?>">
+ <input name="chat_refresh_userlist" type="text" size="5" value="<?php p($CFG->chat_refresh_userlist) ?>">
</td>
<td>
<?php print_string("configrefreshuserlist", "chat") ?>
</td>
</tr>
-<tr valign=top>
- <td align=right><p>chat_old_ping:</td>
+<tr valign="top">
+ <td align="right"><p>chat_old_ping:</td>
<td>
- <input name=chat_old_ping type=text size=5 value="<?php p($CFG->chat_old_ping) ?>">
+ <input name="chat_old_ping" type="text" size="5" value="<?php p($CFG->chat_old_ping) ?>">
</td>
<td>
<?php print_string("configoldping", "chat") ?>
</tr>
<tr>
- <td colspan=3 align=center><hr />
+ <td colspan="3" align="center"><hr />
<div><b><?php print_string('methodnormal', 'chat')?></b></div>
<div style="font-size: 0.8em;">(<?php print_string('explainmethodnormal', 'chat')?>)</div>
</td>
</tr>
-<tr valign=top>
- <td align=right><p>chat_refresh_room:</td>
+<tr valign="top">
+ <td align="right"><p>chat_refresh_room:</td>
<td>
- <input name=chat_refresh_room type=text size=5 value="<?php p($CFG->chat_refresh_room) ?>">
+ <input name="chat_refresh_room" type="text" size="5" value="<?php p($CFG->chat_refresh_room) ?>">
</td>
<td>
<?php print_string("configrefreshroom", "chat") ?>
</tr>
<tr>
- <td colspan=3 align=center><hr />
+ <td colspan="3" align="center"><hr />
<div><b><?php print_string('methoddaemon', 'chat')?></b></div>
<div style="font-size: 0.8em;">(<?php print_string('explainmethoddaemon', 'chat')?>)</div>
</td>
</tr>
-<tr valign=top>
- <td align=right><p>chat_serverhost:</td>
+<tr valign="top">
+ <td align="right"><p>chat_serverhost:</td>
<td>
- <input name=chat_serverhost type=text size=20 value="<?php p($CFG->chat_serverhost) ?>">
+ <input name="chat_serverhost" type="text" size="20" value="<?php p($CFG->chat_serverhost) ?>">
</td>
<td>
<?php print_string("configserverhost", "chat") ?>
</td>
</tr>
-<tr valign=top>
- <td align=right><p>chat_serverip:</td>
+<tr valign="top">
+ <td align="right"><p>chat_serverip:</td>
<td>
- <input name=chat_serverip type=text size=16 value="<?php p($CFG->chat_serverip) ?>">
+ <input name="chat_serverip" type="text" size="16" value="<?php p($CFG->chat_serverip) ?>">
</td>
<td>
<?php print_string("configserverip", "chat") ?>
</td>
</tr>
-<tr valign=top>
- <td align=right><p>chat_serverport:</td>
+<tr valign="top">
+ <td align="right"><p>chat_serverport:</td>
<td>
- <input name=chat_serverport type=text size=5 value="<?php p($CFG->chat_serverport) ?>">
+ <input name="chat_serverport" type="text" size="5" value="<?php p($CFG->chat_serverport) ?>">
</td>
<td>
<?php print_string("configserverport", "chat") ?>
</td>
</tr>
-<tr valign=top>
- <td align=right><p>chat_servermax:</td>
+<tr valign="top">
+ <td align="right"><p>chat_servermax:</td>
<td>
- <input name=chat_servermax type=text size=5 value="<?php p($CFG->chat_servermax) ?>">
+ <input name="chat_servermax" type="text" size="5" value="<?php p($CFG->chat_servermax) ?>">
</td>
<td>
<?php print_string("configservermax", "chat") ?>
</tr>
<tr>
- <td colspan=3 align=center>
+ <td colspan="3" align="center">
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
</tr>
</table>
-<?PHP // $Id$
+<?php // $Id$
function chat_upgrade($oldversion) {
// This function does anything necessary to upgrade
-<?PHP
+<?php
function chat_upgrade($oldversion) {
// This function does anything necessary to upgrade
-<?PHP // $Id$
+<?php // $Id$
function chat_upgrade($oldversion) {
// This function does anything necessary to upgrade
</title>
</head>
<body bgcolor="#000000" topmargin="0" leftmargin="0" marginleft="0" margintop="0">
- <APPLET CODE="drawboard/Main.class" WIDTH="<?php echo $arsc_parameters["drawboard_width"]; ?>" HEIGHT="<?php echo $arsc_parameters["drawboard_height"]; ?>">
+ <applet code="drawboard/Main.class" width="<?php echo $arsc_parameters["drawboard_width"]; ?>" height="<?php echo $arsc_parameters["drawboard_height"]; ?>">
<param name="port" value="<?php echo $arsc_parameters["drawboard_port"]; ?>">
<param name="bgcolor" value="FFFFFF">
- <PARAM NAME="menubgcolor" VALUE="FAE6A6">
- <PARAM NAME="emptythumbnailcolor" VALUE="FDF0C6">
- <PARAM NAME="countercolor" VALUE="000000">
+ <param name="menubgcolor" value="FAE6A6">
+ <param name="emptythumbnailcolor" value="FDF0C6">
+ <param name="countercolor" value="000000">
<param name="pencolor" value="0000FF">
- <PARAM NAME="skindef" VALUE="abacho/abacho.def">
+ <param name="skindef" value="abacho/abacho.def">
Unfortunatelly, your browser doesn't support Java applets. You have to use another one.
- </APPLET>
+ </applet>
</body>
</html>
<?php
{
echo $arsc_parameters["htmlhead_msginput"];
?>
- <form action="../shared/chatins.php" METHOD="POST" name="f">
+ <form action="../shared/chatins.php" method="POST" name="f">
<input type="hidden" name="arsc_sid" value="<?php echo $arsc_sid; ?>">
<input type="hidden" name="arsc_chatversion" value="header">
<input type="text" name="arsc_message" size="50" maxlength="<?php echo $arsc_parameters["input_maxsize"]; ?>" value="<?php echo $arsc_pretext; ?>">
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-Type: text/html");
- header("Refresh: 4; URL=chatmsg.php?arsc_sid=".$arsc_sid."&arsc_lastid=".$arsc_lastid."&dummy=".time()."#end");
+ header("Refresh: 4; url=chatmsg.php?arsc_sid=".$arsc_sid."&arsc_lastid=".$arsc_lastid."&dummy=".time()."#end");
echo $arsc_parameters["htmlhead"];
set_magic_quotes_runtime(0);
<frameset cols="193,*,120" border="0" framespacing="no" frameborder="0" marginwidth="2" marginheight="1">
<frame src="../shared/roomlist.php?arsc_sid=<?php echo $arsc_sid; ?>" name="roomlist" scrolling="auto" noresize marginwidth="0" marginheight="0">
<frameset rows="*,40" border="1" framespacing="no" frameborder="0" marginwidth="2" marginheight="1">
- <frame src="chatmsg.php?arsc_sid=<?php echo $arsc_sid; ?>#end" NAME="msg" scrolling="auto" noresize marginwidth="2" marginheight="1">
+ <frame src="chatmsg.php?arsc_sid=<?php echo $arsc_sid; ?>#end" name="msg" scrolling="auto" noresize marginwidth="2" marginheight="1">
<frame src="chatinput.php?arsc_sid=<?php echo $arsc_sid; ?>" name="input" scrolling="no" noresize marginwidth="2" marginheight="1">
</frameset>
<frame src="../shared/userlist.php?arsc_sid=<?php echo $arsc_sid; ?>&arsc_enter=true" name="users" scrolling="auto" noresize marginwidth="5" marginheight="5">
</head>
<frameset cols="*,200" border="5" framespacing="no" frameborder="yes" marginwidth="2" marginheight="1">
<frameset rows="0,0,*,40" border="0" framespacing="no" frameborder="no" marginwidth="2" marginheight="1">
- <frame src="../empty.php" NAME="empty" scrolling="no" marginwidth="0" marginheight="0">
+ <frame src="../empty.php" name="empty" scrolling="no" marginwidth="0" marginheight="0">
<frame src="jsupdate.php?<?php echo $params ?>" scrolling="no" marginwidth="0" marginheight="0">
- <frame src="chatmsg.php" NAME="msg" scrolling="auto" marginwidth="2" marginheight="1">
+ <frame src="chatmsg.php" name="msg" scrolling="auto" marginwidth="2" marginheight="1">
<frame src="chatinput.php?<?php echo $params ?>" name="input" scrolling="no" marginwidth="2" marginheight="1">
</frameset>
<frame src="../users.php?<?php echo $params ?>" name="users" scrolling="auto" marginwidth="5" marginheight="5">
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-Type: text/html");
-header("Refresh: $CFG->chat_refresh_room; URL=jsupdate.php?chat_sid=$chat_sid&chat_lasttime=$chat_newlasttime&groupid=$groupid");
+header("Refresh: $CFG->chat_refresh_room; url=jsupdate.php?chat_sid=$chat_sid&chat_lasttime=$chat_newlasttime&groupid=$groupid");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<frameset cols="193,*,120" border="0" framespacing="no" frameborder="0" marginwidth="2" marginheight="1">
<frame src="../shared/roomlist.php?arsc_sid=<?php echo $arsc_sid; ?>" name="roomlist" scrolling="auto" noresize marginwidth="0" marginheight="0">
<frameset rows="1,*,40" border="1" framespacing="no" frameborder="0" marginwidth="2" marginheight="1">
- <frame src="../shared/empty.php" NAME="empty" scrolling="no" noresize marginwidth="0" marginheight="0">
- <frame src="chatmsg.php?arsc_sid=<?php echo $arsc_sid; ?>" NAME="msg" scrolling="auto" noresize marginwidth="2" marginheight="1">
+ <frame src="../shared/empty.php" name="empty" scrolling="no" noresize marginwidth="0" marginheight="0">
+ <frame src="chatmsg.php?arsc_sid=<?php echo $arsc_sid; ?>" name="msg" scrolling="auto" noresize marginwidth="2" marginheight="1">
<frame src="chatinput.php?arsc_sid=<?php echo $arsc_sid; ?>" name="input" scrolling="no" noresize marginwidth="2" marginheight="1">
</frameset>
<frame src="../shared/userlist.php?arsc_sid=<?php echo $arsc_sid; ?>&arsc_enter=true" name="users" scrolling="auto" noresize marginwidth="5" marginheight="5">
<frameset cols="*,200" border="5" framespacing="no" frameborder="yes" marginwidth="2" marginheight="1">
<frameset rows="0,*,40" border="0" framespacing="no" frameborder="no" marginwidth="2" marginheight="1">
<frame src="empty.php" name="empty" scrolling="auto" noresize marginwidth="2" marginheight="0">
- <frame src="<?php echo "http://$CFG->chat_serverhost:$CFG->chat_serverport?win=chat&$params"; ?>" NAME="msg" scrolling="auto" noresize marginwidth="2" marginheight="0">
+ <frame src="<?php echo "http://$CFG->chat_serverhost:$CFG->chat_serverport?win=chat&$params"; ?>" name="msg" scrolling="auto" noresize marginwidth="2" marginheight="0">
<frame src="chatinput.php?<?php echo $params ?>" name="input" scrolling="no" marginwidth="2" marginheight="1">
</frameset>
<frame src="<?php echo "http://$CFG->chat_serverhost:$CFG->chat_serverport?win=users&$params"; ?>" name="users" scrolling="auto" marginwidth="5" marginheight="5">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<body>
- <?php echo arsc_filter_posting("System", date("H:i:s"), "<font size=4><b>".$arsc_message."</b></font>", $arsc_room, 0); ?>
+ <?php echo arsc_filter_posting("System", date("H:i:s"), "<font size=\"4\"><b>".$arsc_message."</b></font>", $arsc_room, 0); ?>
</body>
</html>
<?php
</title>
</head>
<body>
- <form action="../shared/chatins.php" METHOD="POST">
+ <form action="../shared/chatins.php" method="POST">
<a href="index.php?arsc_sid=<?php echo $arsc_sid; ?>&arsc_lastid=<?php echo $arsc_lastid; ?>"><?php echo $arsc_lang["refreshmessages"]; ?></a>
<input type="hidden" name="arsc_sid" value="<?php echo $arsc_sid; ?>">
<input type="hidden" name="arsc_lastid" value="<?php echo $arsc_lastid; ?>">
-<?PHP // $Id$
+<?php // $Id$
require_once("../../config.php");
require_once("lib.php");
-<?PHP // $Id$
+<?php // $Id$
/// Library of functions and constants for module chat
print_headline(get_string("currentchats", "chat").":");
$outputstarted = true;
}
- echo "<p><font size=1><a href=\"$CFG->wwwroot/mod/chat/view.php?c=$chat->id\">$chat->name</a></font><br />";
+ echo "<p><font size=\"1\"><a href=\"$CFG->wwwroot/mod/chat/view.php?c=$chat->id\">$chat->name</a></font><br />";
}
$current = $chatuser->chatid;
}
$fullname = fullname($chatuser);
- echo " <font size=1>- $fullname</font><br />";
+ echo " <font size=\"1\">- $fullname</font><br />";
}
echo "<br />";
$output->text = strip_tags($outinfo.': '.$outmain);
- $output->html = "<table><tr><td valign=top>$message->picture</td><td><font size=2>";
+ $output->html = "<table><tr><td valign=\"top\">$message->picture</td><td><font size=\"2\">";
$output->html .= "<font color=\"#888888\">$outinfo</font>";
if ($outmain) {
$output->html .= ": $outmain";
}
?>
<form name="form" method="post" action="mod.php">
-<table cellpadding=5>
+<table cellpadding="5">
<tr>
-<tr valign=top>
- <td align=right><p><b><?php print_string("chatname", "chat")?>:</b></p></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("chatname", "chat")?>:</b></p></td>
<td>
- <input type="text" name="name" size=30 value="<?php p($form->name) ?>">
+ <input type="text" name="name" size="30" value="<?php p($form->name) ?>">
</td>
</tr>
-<tr valign=top>
- <td align=right><p><b><?php print_string("chatintro", "chat")?>:</b></p>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("chatintro", "chat")?>:</b></p>
<font size="1">
<?php
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
<?php print_textarea($usehtmleditor, 20, 50, 680, 400, "intro", $form->intro); ?>
</td>
</tr>
-<tr valign=top>
- <td align=right><p><b><?php print_string("chattime", "chat") ?>:</b></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("chattime", "chat") ?>:</b></td>
<td><?php
print_date_selector("chatday", "chatmonth", "chatyear", $form->chattime);
echo " - ";
print_time_selector("chathour", "chatminute", $form->chattime);
?></td>
</tr>
-<tr valign=top>
- <td align=right><p><b><?php print_string("repeattimes", "chat") ?>:</b></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("repeattimes", "chat") ?>:</b></td>
<td><?php
unset($options);
$options[0] = get_string("donotusechattime", "chat");
choose_from_menu ($options, "schedule", $form->schedule, "", "", "");
?></td>
</tr>
-<tr valign=top>
- <td align=right><p><b><?php print_string("savemessages", "chat")?>:</b></p>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("savemessages", "chat")?>:</b></p>
<td>
<?php
unset($options);
?>
</td>
</tr>
-<tr valign=top>
- <td align=right><p><b><?php print_string("studentseereports", "chat")?>:</b></p>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("studentseereports", "chat")?>:</b></p>
<td>
<?php
unset($options);
</table>
<center>
-<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="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") ?>">
+<input type="submit" name="cancel" value="<?php print_string("cancel") ?>">
</center>
</form>
-<?PHP // $Id$
+<?php // $Id$
/// This page prints reports and info about chats
-<?PHP //$Id$
+<?php //$Id$
//This php script contains all the stuff to backup/restore
//chat mods
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-Type: text/html");
-header("Refresh: $CFG->chat_refresh_userlist; URL=users.php?chat_sid=$chat_sid&groupid=$groupid");
+header("Refresh: $CFG->chat_refresh_userlist; url=users.php?chat_sid=$chat_sid&groupid=$groupid");
print_header();
echo "<table width=\"100%\">";
foreach ($chatusers as $chatuser) {
$lastping = $timenow - $chatuser->lastmessageping;
- echo "<tr><td width=35>";
+ echo "<tr><td width=\"35\">";
echo "<a target=\"_new\" onClick=\"return openpopup('/user/view.php?id=$chatuser->id&course=$chat->course','user$chatuser->id','');\" href=\"$CFG->wwwroot/user/view.php?id=$chatuser->id&course=$chat->course\">";
print_user_picture($chatuser->id, 0, $chatuser->picture, false, false, false);
- echo "</a></td><td valign=center>";
- echo "<p><font size=1>";
+ echo "</a></td><td valign=\"center\">";
+ echo "<p><font size=\"1\">";
echo fullname($chatuser)."<br />";
echo "<font color=\"#888888\">$stridle: ".format_time($lastping, $str)."</font>";
echo " <a href=\"users.php?chat_sid=$chat_sid&beep=$chatuser->id&groupid=$groupid\">$strbeep</a>";
-<?PHP // $Id$
+<?php // $Id$
/////////////////////////////////////////////////////////////////////////////////
/// Code fragment to define the version of chat
-<?PHP // $Id$
+<?php // $Id$
/// This page prints a particular instance of chat
$strnextsession = get_string("nextsession", "chat");
print_header_simple("$chat->name", "",
- "<A HREF=index.php?id=$course->id>$strchats</A> -> $chat->name",
+ "<a href=\"index.php?id=$course->id\">$strchats</a> -> $chat->name",
"", "", true, update_module_button($cm->id, $course->id, $strchat),
navmenu($course, $cm));
if (($chat->studentlogs or isteacher($course->id)) and !isguest()) {
- echo "<p align=right><a href=\"report.php?id=$cm->id\">".
+ echo "<p align=\"right\"><a href=\"report.php?id=$cm->id\">".
get_string("viewreport", "chat")."</a></p>";
}
echo "<table width=\"100%\">";
foreach ($chatusers as $chatuser) {
$lastping = $timenow - $chatuser->lastmessageping;
- echo "<tr><td width=35>";
+ echo "<tr><td width=\"35\">";
echo "<a href=\"$CFG->wwwroot/user/view.php?id=$chatuser->id&course=$chat->course\">";
print_user_picture($chatuser->id, 0, $chatuser->picture, false, false, false);
- echo "</a></td><td valign=center>";
- echo "<p><font size=1>";
+ echo "</a></td><td valign=\"center\">";
+ echo "<p><font size=\"1\">";
echo fullname($chatuser).'<br />';
echo "<font color=\"#888888\">$stridle: ".format_time($lastping)."</font>";
echo "</font></p>";
-<?PHP //$Id$
+<?php //$Id$
//This php script contains all the stuff to backup/restore
//choice mods
-<?PHP // $Id$
+<?php // $Id$
function choice_upgrade($oldversion) {
// This function does anything necessary to upgrade
-<?PHP
+<?php
function choice_upgrade($oldversion) {
// This function does anything necessary to upgrade
-<?PHP // $Id$
+<?php // $Id$
function choice_upgrade($oldversion) {
// This function does anything necessary to upgrade
-<?PHP // $Id$
+<?php // $Id$
require_once("../../config.php");
require_once("lib.php");
-<?PHP // $Id$
+<?php // $Id$
$CHOICE_MAX_NUMBER = 6;
?>
<form name="form" method="post" action="mod.php">
-<table cellpadding=5>
+<table cellpadding="5">
-<tr valign=top>
- <td align=right><p><b><?php print_string("choicename","choice") ?>:</b></p></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("choicename","choice") ?>:</b></p></td>
<td>
- <input type="text" name="name" size=30 value="<?php p($form->name) ?>">
+ <input type="text" name="name" size="30" value="<?php p($form->name) ?>">
</td>
</tr>
-<tr valign=top>
- <td align=right><p><b><?php print_string("choicetext","choice") ?>:</b></p>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("choicetext","choice") ?>:</b></p>
<font size="1">
<?php
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
if ($usehtmleditor) {
echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'" />';
} else {
- echo "<p align=right>";
+ echo "<p align=\"right\">";
helpbutton("textformat", get_string("formattexttype"));
print_string("formattexttype");
echo ": ";
</td>
</tr>
-<tr valign=top>
- <td align=right><p><b><?php print_string("choice","choice","1") ?>:</b></p></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("choice","choice","1") ?>:</b></p></td>
<td>
- <input type="text" name="answer1" size=60 value="<?php p($form->answer1) ?>">
+ <input type="text" name="answer1" size="60" value="<?php p($form->answer1) ?>">
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
-<tr valign=top>
- <td align=right><p><b><?php print_string("choice","choice","2") ?>:</b></p></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("choice","choice","2") ?>:</b></p></td>
<td>
- <input type="text" name="answer2" size=60 value="<?php p($form->answer2) ?>">
+ <input type="text" name="answer2" size="60" value="<?php p($form->answer2) ?>">
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
-<tr valign=top>
- <td align=right><p><b><?php print_string("choice","choice","3") ?>:</b></p></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("choice","choice","3") ?>:</b></p></td>
<td>
- <input type="text" name="answer3" size=60 value="<?php p($form->answer3) ?>">
+ <input type="text" name="answer3" size="60" value="<?php p($form->answer3) ?>">
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
-<tr valign=top>
- <td align=right><p><b><?php print_string("choice","choice","4") ?>:</b></p></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("choice","choice","4") ?>:</b></p></td>
<td>
- <input type="text" name="answer4" size=60 value="<?php p($form->answer4) ?>">
+ <input type="text" name="answer4" size="60" value="<?php p($form->answer4) ?>">
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
-<tr valign=top>
- <td align=right><p><b><?php print_string("choice","choice","5") ?>:</b></p></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("choice","choice","5") ?>:</b></p></td>
<td>
- <input type="text" name="answer5" size=60 value="<?php p($form->answer5) ?>">
+ <input type="text" name="answer5" size="60" value="<?php p($form->answer5) ?>">
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
-<tr valign=top>
- <td align=right><p><b><?php print_string("choice","choice","6") ?>:</b></p></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("choice","choice","6") ?>:</b></p></td>
<td>
- <input type="text" name="answer6" size=60 value="<?php p($form->answer6) ?>">
+ <input type="text" name="answer6" size="60" value="<?php p($form->answer6) ?>">
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
-<tr valign=top>
- <td align=right><p><b><?php print_string("timerestrict", "choice") ?>:</b></p></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("timerestrict", "choice") ?>:</b></p></td>
<td>
<script>
var timeitems = ['openday','openmonth','openyear','openhour', 'openminute', 'closeday','closemonth','closeyear','closehour','closeminute'];
?>
</td>
</tr>
-<tr valign=top>
+<tr valign="top">
<td><p> </p></td>
<td>
</td>
</tr>
<tr>
- <td align=right><p><b><?php print_string("choiceclose", "choice") ?>:</b></p></td>
+ <td align="right"><p><b><?php print_string("choiceclose", "choice") ?>:</b></p></td>
<td>
<?php
</td>
</tr>
-<tr valign=top>
- <td align=right><P><B><?php print_string("publish","choice") ?>:</b></p></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("publish","choice") ?>:</b></p></td>
<td>
<?php
require_once("$CFG->dirroot/mod/choice/lib.php");
</td>
</tr>
-<tr valign=top>
- <td align=right><P><B><?php print_string("privacy","choice") ?>:</b></p></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("privacy","choice") ?>:</b></p></td>
<td>
<?php
require_once("$CFG->dirroot/mod/choice/lib.php");
</tr>
-<tr valign=top>
- <td align=right><P><B><?php print_string("allowupdate","choice") ?>:</b></p></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("allowupdate","choice") ?>:</b></p></td>
<td>
<?php
$options[0] = get_string("no");
</tr>
-<tr valign=top>
- <td align=right><P><B><?php print_string("showunanswered","choice") ?>:</b></p></td>
+<tr valign="top">
+ <td align="right"><p><b><?php print_string("showunanswered","choice") ?>:</b></p></td>
<td>
<?php
$options[0] = get_string("no");
</table>
<center>
-<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="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") ?>">
+<input type="submit" name="cancel" value="<?php print_string("cancel") ?>">
</center>
</form>
-<?PHP // $Id$
+<?php // $Id$
require_once("../../config.php");
require_once("lib.php");
foreach ($useranswer as $key => $answer) {
if ($key) {
- echo "<td width=\"$tablewidth%\" valign=top nowrap bgcolor=\"$THEME->cellcontent\">";
+ echo "<td width=\"$tablewidth%\" valign=\"top\" nowrap bgcolor=\"$THEME->cellcontent\">";
} else {
- echo "<td width=\"$tablewidth%\" valign=top nowrap bgcolor=\"$THEME->body\">";
+ echo "<td width=\"$tablewidth%\" valign=\"top\" nowrap bgcolor=\"$THEME->body\">";
}
echo "<table width=\"100%\">";
-<?PHP //$Id$
+<?php //$Id$
//This php script contains all the stuff to backup/restore
//choice mods
-<?PHP // $Id$
+<?php // $Id$
////////////////////////////////////////////////////////////////////////////////
// Code fragment to define the module version etc.
-<?PHP // $Id$
+<?php // $Id$
require_once("../../config.php");
require_once("lib.php");
add_to_log($course->id, "choice", "view", "view.php?id=$cm->id", $choice->id, $cm->id);
print_header_simple("$choice->name", "",
- "<A HREF=index.php?id=$course->id>$strchoices</A> -> $choice->name", "", "", true,
+ "<a href=\"index.php?id=$course->id\">$strchoices</a> -> $choice->name", "", "", true,
update_module_button($cm->id, $course->id, $strchoice), navmenu($course, $cm));
/// Check to see if groups are being used in this choice
} else {
$responsecount = 0;
}
- echo "<P align=right><A HREF=\"report.php?id=$cm->id\">".get_string("viewallresponses", "choice", $responsecount)."</A></P>";
+ echo "<p align=\"right\"><a href=\"report.php?id=$cm->id\">".get_string("viewallresponses", "choice", $responsecount)."</a></p>";
} else if (!$cm->visible) {
notice(get_string("activityiscurrentlyhidden"));
}
if ( (!$current or $choice->allowupdate) and ($choice->timeclose >= time() or $choice->timeclose == 0) ) {
// They haven't made their choice yet or updates allowed and choice is open
- echo "<CENTER><P><FORM name=\"form\" method=\"post\" action=\"view.php\">";
- echo "<TABLE CELLPADDING=20 CELLSPACING=20><TR>";
+ echo "<center><p><form name=\"form\" method=\"post\" action=\"view.php\">";
+ echo "<table cellpadding=\"20\" cellspacing=\"20\"><tr>";
foreach ($choice->answer as $key => $answer) {
if ($answer) {
- echo "<TD ALIGN=CENTER>";
- echo "<INPUT type=radio name=answer value=\"$key\" ".$answerchecked[$key]." />";
+ echo "<td align=\"center\">";
+ echo "<input type=\"radio\" name=\"answer\" value=\"$key\" ".$answerchecked[$key]." />";
p($answer);
- echo "</TD>";
+ echo "</td>";
}
}
- echo "</TR></TABLE>";
- echo "<INPUT type=hidden name=id value=\"$cm->id\" />";
+ echo "</tr></table>";
+ echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />";
if (isstudent($course->id) or isteacher($course->id, 0, false)) {
- echo "<INPUT type=submit value=\"".get_string("savemychoice","choice")."\" />";
+ echo "<input type=\"submit\" value=\"".get_string("savemychoice","choice")."\" />";
} else {
print_string('havetologin', 'choice');
}
- echo "</P></FORM></CENTER>";
+ echo "</p></form></center>";
}
$tablewidth = (int) (100.0 / count($useranswer));
- echo "<table cellpadding=5 cellspacing=10 align=center>";
+ echo "<table cellpadding=\"5\" cellspacing=\"10\" align=\"center\">";
echo "<tr>";
foreach ($useranswer as $key => $answer) {
if ($key) {
foreach ($useranswer as $key => $answer) {
if ($key) {
- echo "<td width=\"$tablewidth%\" valign=top nowrap bgcolor=\"$THEME->cellcontent\">";
+ echo "<td width=\"$tablewidth%\" valign=\"top\" nowrap bgcolor=\"$THEME->cellcontent\">";
} else if ($choice->showunanswered) {
- echo "<td width=\"$tablewidth%\" valign=top nowrap bgcolor=\"$THEME->body\">";
+ echo "<td width=\"$tablewidth%\" valign=\"top\" nowrap bgcolor=\"$THEME->body\">";
} else {
continue;
}
- echo "<table width=100%>";
+ echo "<table width=\"100%\">";
foreach ($answer as $user) {
- echo "<tr><td width=10 nowrap>";
+ echo "<tr><td width=\"10\" nowrap>";
print_user_picture($user->id, $course->id, $user->picture);
- echo "</td><td width=100% nowrap>";
+ echo "</td><td width=\"100%\" nowrap>";
echo "<p>".fullname($user, $isteacher)."</p>";
echo "</td></tr>";
}
case CHOICE_PUBLISH_ANONYMOUS:
$tablewidth = (int) (100.0 / count($useranswer));
- echo "<table cellpadding=5 cellspacing=10 align=center>";
+ echo "<table cellpadding=\"5\" cellspacing=\"10\" align=\"center\">";
echo "<tr>";
foreach ($useranswer as $key => $answer) {
if ($key) {