mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
fixed capitalization and quoting of attribute values
This commit is contained in:
parent
41905731b7
commit
d1290cec39
121 changed files with 1401 additions and 1401 deletions
|
@ -1,4 +1,4 @@
|
|||
<?PHP //$Id$
|
||||
<?php //$Id$
|
||||
//This php script contains all the stuff to backup/restore
|
||||
//resource mods
|
||||
|
||||
|
|
|
@ -1,44 +1,44 @@
|
|||
<form method="post" action="module.php" name="form">
|
||||
|
||||
<table cellpadding=9 cellspacing=0 >
|
||||
<tr valign=top>
|
||||
<td align=right><p>resource_framesize:</td>
|
||||
<table cellpadding="9" cellspacing="0" >
|
||||
<tr valign="top">
|
||||
<td align="right"><p>resource_framesize:</td>
|
||||
<td>
|
||||
<input name=resource_framesize type=text size=5 value="<?php p($CFG->resource_framesize) ?>" />
|
||||
<input name="resource_framesize" type="text" size="5" value="<?php p($CFG->resource_framesize) ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<?php print_string("configframesize", "resource") ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign=top>
|
||||
<td align=right><p>resource_websearch:</td>
|
||||
<tr valign="top">
|
||||
<td align="right"><p>resource_websearch:</td>
|
||||
<td>
|
||||
<input name=resource_websearch type=text size=30 value="<?php p($CFG->resource_websearch) ?>" />
|
||||
<input name="resource_websearch" type="text" size="30" value="<?php p($CFG->resource_websearch) ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<?php print_string("configwebsearch", "resource") ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign=top>
|
||||
<td align=right><p>resource_defaulturl:</td>
|
||||
<tr valign="top">
|
||||
<td align="right"><p>resource_defaulturl:</td>
|
||||
<td>
|
||||
<input name=resource_defaulturl type=text size=30 value="<?php p($CFG->resource_defaulturl) ?>" />
|
||||
<input name="resource_defaulturl" type="text" size="30" value="<?php p($CFG->resource_defaulturl) ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<?php print_string("configdefaulturl", "resource") ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign=top>
|
||||
<td align=right><p>resource_secretphrase:</td>
|
||||
<tr valign="top">
|
||||
<td align="right"><p>resource_secretphrase:</td>
|
||||
<td>
|
||||
<input name=resource_secretphrase type=text size=30 value="<?php p($CFG->resource_secretphrase) ?>" />
|
||||
<input name="resource_secretphrase" type="text" size="30" value="<?php p($CFG->resource_secretphrase) ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<?php print_string("configsecretphrase", "resource") ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign=top>
|
||||
<td align=right><p>resource_filterexternalpages:</td>
|
||||
<tr valign="top">
|
||||
<td align="right"><p>resource_filterexternalpages:</td>
|
||||
<td>
|
||||
<?php
|
||||
unset($choices);
|
||||
|
@ -51,8 +51,8 @@
|
|||
<?php print_string("configfilterexternalpages", "resource") ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign=top>
|
||||
<td align=right><p>resource_popup:</td>
|
||||
<tr valign="top">
|
||||
<td align="right"><p>resource_popup:</td>
|
||||
<td>
|
||||
<?php
|
||||
unset($choices);
|
||||
|
@ -67,11 +67,11 @@
|
|||
</tr>
|
||||
<?php foreach ($RESOURCE_WINDOW_OPTIONS as $optionname) {
|
||||
$defaultvalue = "resource_popup$optionname";
|
||||
echo "<tr valign=top>";
|
||||
echo "<td align=right><p>$defaultvalue:</td>";
|
||||
echo "<tr valign=\"top\">";
|
||||
echo "<td align=\"right\"><p>$defaultvalue:</td>";
|
||||
echo "<td>";
|
||||
if ($optionname == "height" or $optionname == "width") {
|
||||
echo "<input name=$defaultvalue type=text size=5 value=\"".$CFG->$defaultvalue."\" />";
|
||||
echo "<input name=$defaultvalue type=\"text\" size=\"5\" value=\"".$CFG->$defaultvalue."\" />";
|
||||
} else {
|
||||
choose_from_menu ($choices, $defaultvalue, $CFG->$defaultvalue, "");
|
||||
}
|
||||
|
@ -82,8 +82,8 @@
|
|||
echo "</tr>";
|
||||
}
|
||||
?>
|
||||
<tr valign=top>
|
||||
<td align=right><p>resource_windowsettings:</td>
|
||||
<tr valign="top">
|
||||
<td align="right"><p>resource_windowsettings:</td>
|
||||
<td>
|
||||
<?php
|
||||
unset($choices);
|
||||
|
@ -96,8 +96,8 @@
|
|||
<?php print_string("configwindowsettings", "resource") ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign=top>
|
||||
<td align=right><p>resource_parametersettings:</td>
|
||||
<tr valign="top">
|
||||
<td align="right"><p>resource_parametersettings:</td>
|
||||
<td>
|
||||
<?php
|
||||
unset($choices);
|
||||
|
@ -111,7 +111,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=3 align=center>
|
||||
<td colspan="3" align="center">
|
||||
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?PHP // $Id$
|
||||
<?php // $Id$
|
||||
|
||||
// Manage all uploaded files in a course file area
|
||||
|
||||
|
@ -82,7 +82,7 @@
|
|||
print_heading(get_string("publicsitefileswarning"), "center", 2);
|
||||
}
|
||||
|
||||
echo "<table border=0 align=center cellspacing=3 cellpadding=3 width=640>";
|
||||
echo "<table border=\"0\" align=\"center\" cellspacing=\"3\" cellpadding=\"3\" width=\"640\">";
|
||||
echo "<tr>";
|
||||
echo "<td colspan=\"2\">";
|
||||
}
|
||||
|
@ -147,25 +147,25 @@
|
|||
$strmaxsize = get_string("maxsize", "", $filesize);
|
||||
$strcancel = get_string("cancel");
|
||||
|
||||
echo "<P>$struploadafile ($strmaxsize) --> <B>$wdir</B>";
|
||||
echo "<TABLE><TR><TD COLSPAN=2>";
|
||||
echo "<FORM ENCTYPE=\"multipart/form-data\" METHOD=\"post\" ACTION=\"".$ME."\">";
|
||||
echo " <INPUT TYPE=hidden NAME=MAX_FILE_SIZE value=\"$upload_max_filesize\" />";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=upload />";
|
||||
echo " <INPUT NAME=\"userfile\" TYPE=\"file\" size=\"60\" />";
|
||||
echo " </TD><TR><TD WIDTH=10>";
|
||||
echo " <INPUT TYPE=submit NAME=save VALUE=\"$struploadthisfile\" />";
|
||||
echo "</FORM>";
|
||||
echo "</TD><TD WIDTH=100%>";
|
||||
echo "<FORM ACTION=\"".$ME."\" METHOD=\"get\">";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
|
||||
echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
|
||||
echo "</FORM>";
|
||||
echo "</TD></TR></TABLE>";
|
||||
echo "<p>$struploadafile ($strmaxsize) --> <b>$wdir</b>";
|
||||
echo "<table><tr><td colspan=\"2\">";
|
||||
echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"".$ME."\">";
|
||||
echo " <input type=\"hidden\" name=MAX_FILE_SIZE value=\"$upload_max_filesize\" />";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"upload\" />";
|
||||
echo " <input name=\"userfile\" type=\"file\" size=\"60\" />";
|
||||
echo " </td><tr><td width=\"10\">";
|
||||
echo " <input type=\"submit\" name=\"save\" value=\"$struploadthisfile\" />";
|
||||
echo "</form>";
|
||||
echo "</td><td width=\"100%\">";
|
||||
echo "<form action=\"".$ME."\" method=\"get\">";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
|
||||
echo " <input type=\"submit\" value=\"$strcancel\" />";
|
||||
echo "</form>";
|
||||
echo "</td></tr></table>";
|
||||
}
|
||||
html_footer();
|
||||
break;
|
||||
|
@ -176,7 +176,7 @@
|
|||
foreach ($USER->filelist as $file) {
|
||||
$fullfile = $basedir.$file;
|
||||
if (! fulldelete($fullfile)) {
|
||||
echo "<BR>Error: Could not delete: $fullfile";
|
||||
echo "<br />Error: Could not delete: $fullfile";
|
||||
}
|
||||
}
|
||||
clearfilelist();
|
||||
|
@ -186,7 +186,7 @@
|
|||
} else {
|
||||
html_header($course, $wdir);
|
||||
if (setfilelist($_POST)) {
|
||||
echo "<p align=center>".get_string("deletecheckwarning").":</p>";
|
||||
echo "<p align=\"center\">".get_string("deletecheckwarning").":</p>";
|
||||
print_simple_box_start("center");
|
||||
printfilelist($USER->filelist);
|
||||
print_simple_box_end();
|
||||
|
@ -206,7 +206,7 @@
|
|||
if ($count = setfilelist($_POST)) {
|
||||
$USER->fileop = $action;
|
||||
$USER->filesource = $wdir;
|
||||
echo "<p align=center>";
|
||||
echo "<p align=\"center\">";
|
||||
print_string("selectednowmove", "moodle", $count);
|
||||
echo "</p>";
|
||||
}
|
||||
|
@ -222,7 +222,7 @@
|
|||
$oldfile = $basedir.$file;
|
||||
$newfile = $basedir.$wdir."/".$shortfile;
|
||||
if (!rename($oldfile, $newfile)) {
|
||||
echo "<P>Error: $shortfile not moved";
|
||||
echo "<p>Error: $shortfile not moved";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -247,24 +247,24 @@
|
|||
$strcancel = get_string("cancel");
|
||||
$strrenamefileto = get_string("renamefileto", "moodle", $file);
|
||||
html_header($course, $wdir, "form.name");
|
||||
echo "<P>$strrenamefileto:";
|
||||
echo "<TABLE><TR><TD>";
|
||||
echo "<FORM ACTION=\"".$ME."\" METHOD=\"post\" NAME=\"form\">";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=rename />";
|
||||
echo " <INPUT TYPE=hidden NAME=oldname VALUE=\"$file\" />";
|
||||
echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"$file\" />";
|
||||
echo " <INPUT TYPE=submit VALUE=\"$strrename\" />";
|
||||
echo "</FORM>";
|
||||
echo "</TD><TD>";
|
||||
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
|
||||
echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
|
||||
echo "</FORM>";
|
||||
echo "</TD></TR></TABLE>";
|
||||
echo "<p>$strrenamefileto:";
|
||||
echo "<table><tr><td>";
|
||||
echo "<form action=\"".$ME."\" method=\"post\" name=\"form\">";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"rename\" />";
|
||||
echo " <input type=\"hidden\" name=\"oldname\" value=\"$file\" />";
|
||||
echo " <input type=\"text\" name=\"name\" size=\"35\" value=\"$file\" />";
|
||||
echo " <input type=\"submit\" value=\"$strrename\" />";
|
||||
echo "</form>";
|
||||
echo "</td><td>";
|
||||
echo "<form action=\"".$ME."\" method=\"get\">";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
|
||||
echo " <input type=\"submit\" value=\"$strcancel\" />";
|
||||
echo "</form>";
|
||||
echo "</td></tr></table>";
|
||||
}
|
||||
html_footer();
|
||||
break;
|
||||
|
@ -285,23 +285,23 @@
|
|||
$strcancel = get_string("cancel");
|
||||
$strcreatefolder = get_string("createfolder", "moodle", $wdir);
|
||||
html_header($course, $wdir, "form.name");
|
||||
echo "<P>$strcreatefolder:";
|
||||
echo "<TABLE><TR><TD>";
|
||||
echo "<FORM ACTION=\"".$ME."\" METHOD=post NAME=form>";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir />";
|
||||
echo " <INPUT TYPE=text NAME=name SIZE=35 />";
|
||||
echo " <INPUT TYPE=submit VALUE=\"$strcreate\" />";
|
||||
echo "</FORM>";
|
||||
echo "</TD><TD>";
|
||||
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
|
||||
echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
|
||||
echo "</FORM>";
|
||||
echo "</TD></TR></TABLE>";
|
||||
echo "<p>$strcreatefolder:";
|
||||
echo "<table><tr><td>";
|
||||
echo "<form action=\"".$ME."\" method=\"post\" name=\"form\">";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"mkdir\" />";
|
||||
echo " <input type=\"text\" name=\"name\" size=\"35\" />";
|
||||
echo " <input type=\"submit\" value=\"$strcreate\" />";
|
||||
echo "</form>";
|
||||
echo "</td><td>";
|
||||
echo "<form action=\"".$ME."\" method=\"get\">";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
|
||||
echo " <input type=\"submit\" value=\"$strcancel\" />";
|
||||
echo "</form>";
|
||||
echo "</td></tr></table>";
|
||||
}
|
||||
html_footer();
|
||||
break;
|
||||
|
@ -315,7 +315,7 @@
|
|||
displaydir($wdir);
|
||||
|
||||
} else {
|
||||
$streditfile = get_string("edit", "", "<B>$file</B>");
|
||||
$streditfile = get_string("edit", "", "<b>$file</b>");
|
||||
$fileptr = fopen($basedir.$file, "r");
|
||||
$contents = fread($fileptr, filesize($basedir.$file));
|
||||
fclose($fileptr);
|
||||
|
@ -334,24 +334,24 @@
|
|||
|
||||
print_heading("$streditfile");
|
||||
|
||||
echo "<TABLE><TR><TD COLSPAN=2>";
|
||||
echo "<FORM ACTION=\"".$ME."\" METHOD=\"post\" NAME=\"form\" $onsubmit>";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
|
||||
echo " <INPUT TYPE=hidden NAME=file VALUE=\"$file\" />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=edit />";
|
||||
echo "<table><tr><td colspan=\"2\">";
|
||||
echo "<form action=\"".$ME."\" method=\"post\" name=\"form\" $onsubmit>";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
|
||||
echo " <input type=\"hidden\" name=\"file\" value=\"$file\" />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"edit\" />";
|
||||
print_textarea($usehtmleditor, 25, 80, 680, 400, "text", $contents);
|
||||
echo "</TD></TR><TR><TD>";
|
||||
echo " <INPUT TYPE=submit VALUE=\"".get_string("savechanges")."\" />";
|
||||
echo "</FORM>";
|
||||
echo "</TD><TD>";
|
||||
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
|
||||
echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\" />";
|
||||
echo "</FORM>";
|
||||
echo "</TD></TR></TABLE>";
|
||||
echo "</td></tr><tr><td>";
|
||||
echo " <input type=\"submit\" value=\"".get_string("savechanges")."\" />";
|
||||
echo "</form>";
|
||||
echo "</td><td>";
|
||||
echo "<form action=\"".$ME."\" method=\"get\">";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
|
||||
echo " <input type=\"submit\" value=\"".get_string("cancel")."\" />";
|
||||
echo "</form>";
|
||||
echo "</td></tr></table>";
|
||||
|
||||
if ($usehtmleditor) {
|
||||
print_richedit_javascript("form", "text", "yes");
|
||||
|
@ -392,28 +392,28 @@
|
|||
html_header($course, $wdir, "form.name");
|
||||
|
||||
if (setfilelist($_POST)) {
|
||||
echo "<P ALIGN=CENTER>".get_string("youareabouttocreatezip").":</P>";
|
||||
echo "<p align=\"center\">".get_string("youareabouttocreatezip").":</p>";
|
||||
print_simple_box_start("center");
|
||||
printfilelist($USER->filelist);
|
||||
print_simple_box_end();
|
||||
echo "<BR>";
|
||||
echo "<P ALIGN=CENTER>".get_string("whattocallzip");
|
||||
echo "<TABLE><TR><TD>";
|
||||
echo "<FORM ACTION=\"".$ME."\" METHOD=post NAME=form>";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=zip />";
|
||||
echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"new.zip\" />";
|
||||
echo " <INPUT TYPE=submit VALUE=\"".get_string("createziparchive")."\" />";
|
||||
echo "</FORM>";
|
||||
echo "</TD><TD>";
|
||||
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
|
||||
echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\" />";
|
||||
echo "</FORM>";
|
||||
echo "</TD></TR></TABLE>";
|
||||
echo "<br />";
|
||||
echo "<p align=\"center\">".get_string("whattocallzip");
|
||||
echo "<table><tr><td>";
|
||||
echo "<form action=\"".$ME."\" method=\"post\" name=\"form\">";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"zip\" />";
|
||||
echo " <input type=\"text\" name=\"name\" size=\"35\" value=\"new.zip\" />";
|
||||
echo " <input type=\"submit\" value=\"".get_string("createziparchive")."\" />";
|
||||
echo "</form>";
|
||||
echo "</td><td>";
|
||||
echo "<form action=\"".$ME."\" method=\"get\">";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
|
||||
echo " <input type=\"submit\" value=\"".get_string("cancel")."\" />";
|
||||
echo "</form>";
|
||||
echo "</td></tr></table>";
|
||||
} else {
|
||||
displaydir($wdir);
|
||||
clearfilelist();
|
||||
|
@ -432,7 +432,7 @@
|
|||
$strok = get_string("ok");
|
||||
$strunpacking = get_string("unpacking", "", $file);
|
||||
|
||||
echo "<P ALIGN=CENTER>$strunpacking:</P>";
|
||||
echo "<p align=\"center\">$strunpacking:</p>";
|
||||
|
||||
$file = basename($file);
|
||||
|
||||
|
@ -442,11 +442,11 @@
|
|||
if (!$list = $archive->extract("$basedir/$wdir")) {
|
||||
error($archive->errorInfo(true));
|
||||
} else { // print some output
|
||||
echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=640>";
|
||||
echo "<tr><th align=left>$strname</th>";
|
||||
echo "<th align=right>$strsize</th>";
|
||||
echo "<th align=right>$strmodified</th>";
|
||||
echo "<th align=right>$strstatus</th></tr>";
|
||||
echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=\"640\">";
|
||||
echo "<tr><th align=\"left\">$strname</th>";
|
||||
echo "<th align=\"right\">$strsize</th>";
|
||||
echo "<th align=\"right\">$strmodified</th>";
|
||||
echo "<th align=\"right\">$strstatus</th></tr>";
|
||||
foreach ($list as $item) {
|
||||
echo "<tr>";
|
||||
$item['filename'] = str_replace("$basedir/$wdir/", "", $item['filename']);
|
||||
|
@ -466,20 +466,20 @@
|
|||
|
||||
} else { // Use external unzip program
|
||||
print_simple_box_start("center");
|
||||
echo "<PRE>";
|
||||
echo "<pre>";
|
||||
$command = "cd $basedir/$wdir ; $CFG->unzip -o $file 2>&1";
|
||||
passthru($command);
|
||||
echo "</PRE>";
|
||||
echo "</pre>";
|
||||
print_simple_box_end();
|
||||
}
|
||||
|
||||
echo "<CENTER><FORM ACTION=\"".$ME."\" METHOD=get>";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
|
||||
echo " <INPUT TYPE=submit VALUE=\"$strok\" />";
|
||||
echo "</FORM>";
|
||||
echo "</CENTER>";
|
||||
echo "<center><form action=\"".$ME."\" method=\"get\">";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
|
||||
echo " <input type=\"submit\" value=\"$strok\" />";
|
||||
echo "</form>";
|
||||
echo "</center>";
|
||||
} else {
|
||||
displaydir($wdir);
|
||||
}
|
||||
|
@ -495,7 +495,7 @@
|
|||
$strok = get_string("ok");
|
||||
$strlistfiles = get_string("listfiles", "", $file);
|
||||
|
||||
echo "<P ALIGN=CENTER>$strlistfiles:</P>";
|
||||
echo "<p align=\"center\">$strlistfiles:</p>";
|
||||
$file = basename($file);
|
||||
|
||||
include_once($CFG->libdir.'/pclzip/pclzip.lib.php');
|
||||
|
@ -504,8 +504,8 @@
|
|||
notify($archive->errorInfo(true));
|
||||
|
||||
} else {
|
||||
echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=640>";
|
||||
echo "<tr><th align=left>$strname</th><th align=right>$strsize</th><th align=right>$strmodified</th></tr>";
|
||||
echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=\"640\">";
|
||||
echo "<tr><th align=\"left\">$strname</th><th align=\"right\">$strsize</th><th align=\"right\">$strmodified</th></tr>";
|
||||
foreach ($list as $item) {
|
||||
echo "<tr>";
|
||||
print_cell("left", $item['filename']);
|
||||
|
@ -520,13 +520,13 @@
|
|||
}
|
||||
echo "</table>";
|
||||
}
|
||||
echo "<br /><center><form action=\"".$ME."\" method=get>";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
|
||||
echo " <INPUT TYPE=submit VALUE=\"$strok\" />";
|
||||
echo "</FORM>";
|
||||
echo "</CENTER>";
|
||||
echo "<br /><center><form action=\"".$ME."\" method=\"get\">";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
|
||||
echo " <input type=\"submit\" value=\"$strok\" />";
|
||||
echo "</form>";
|
||||
echo "</center>";
|
||||
} else {
|
||||
displaydir($wdir);
|
||||
}
|
||||
|
@ -636,7 +636,7 @@ function printfilelist($filelist) {
|
|||
|
||||
foreach ($filelist as $file) {
|
||||
if (is_dir($basedir.$file)) {
|
||||
echo "<img src=\"$CFG->pixpath/f/folder.gif\" height=16 width=16> $file<br />";
|
||||
echo "<img src=\"$CFG->pixpath/f/folder.gif\" height=\"16\" width=\"16\"> $file<br />";
|
||||
$subfilelist = array();
|
||||
$currdir = opendir($basedir.$file);
|
||||
while ($subfile = readdir($currdir)) {
|
||||
|
@ -648,18 +648,18 @@ function printfilelist($filelist) {
|
|||
|
||||
} else {
|
||||
$icon = mimeinfo("icon", $file);
|
||||
echo "<img src=\"$CFG->pixpath/f/$icon\" height=16 width=16> $file<br />";
|
||||
echo "<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\"> $file<br />";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function print_cell($alignment="center", $text=" ") {
|
||||
echo "<TD ALIGN=\"$alignment\" NOWRAP>";
|
||||
echo "<FONT SIZE=\"-1\" FACE=\"Arial, Helvetica\">";
|
||||
echo "<td align=\"$alignment\" nowrap=\"nowrap\">";
|
||||
echo "<font size=\"-1\" face=\"Arial, Helvetica\">";
|
||||
echo "$text";
|
||||
echo "</FONT>";
|
||||
echo "</TD>\n";
|
||||
echo "</font>";
|
||||
echo "</td>\n";
|
||||
}
|
||||
|
||||
function displaydir ($wdir) {
|
||||
|
@ -703,15 +703,15 @@ function displaydir ($wdir) {
|
|||
$strchoose = get_string("choose");
|
||||
|
||||
|
||||
echo "<FORM ACTION=\"".$ME."\" METHOD=post NAME=dirform>";
|
||||
echo "<TABLE BORDER=0 cellspacing=2 cellpadding=2 width=640>";
|
||||
echo "<TR>";
|
||||
echo "<TH WIDTH=5></TH>";
|
||||
echo "<TH ALIGN=left>$strname</TH>";
|
||||
echo "<TH ALIGN=right>$strsize</TH>";
|
||||
echo "<TH ALIGN=right>$strmodified</TH>";
|
||||
echo "<TH ALIGN=right>$straction</TH>";
|
||||
echo "</TR>\n";
|
||||
echo "<form action=\"".$ME."\" method=\"post\" name=\"dirform\">";
|
||||
echo "<table border=\"0\" cellspacing=\"2\" cellpadding=\"2\" width=\"640\">";
|
||||
echo "<tr>";
|
||||
echo "<th width=\"5\"></th>";
|
||||
echo "<th align=\"left\">$strname</th>";
|
||||
echo "<th align=\"right\">$strsize</th>";
|
||||
echo "<th align=\"right\">$strmodified</th>";
|
||||
echo "<th align=\"right\">$straction</th>";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($wdir == "/") {
|
||||
$wdir = "";
|
||||
|
@ -730,15 +730,15 @@ function displaydir ($wdir) {
|
|||
$filesafe = rawurlencode($dir);
|
||||
$filedate = userdate(filectime($filename), "%d %b %Y, %I:%M %p");
|
||||
|
||||
echo "<TR>";
|
||||
echo "<tr>";
|
||||
|
||||
print_cell("center", "<INPUT TYPE=checkbox NAME=\"file$count\" VALUE=\"$fileurl\" />");
|
||||
print_cell("left", "<A HREF=\"".basename($ME)."?id=$id&wdir=$fileurl\"><IMG SRC=\"$CFG->pixpath/f/folder.gif\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"Folder\"></A> <A HREF=\"".basename($ME)."?id=$id&wdir=$fileurl\">".htmlspecialchars($dir)."</A>");
|
||||
print_cell("center", "<input type=\"checkbox\" name=\"file$count\" value=\"$fileurl\" />");
|
||||
print_cell("left", "<a href=\"".basename($ME)."?id=$id&wdir=$fileurl\"><img src=\"$CFG->pixpath/f/folder.gif\" height=\"16\" width=\"16\" border=\"0\" alt=\"Folder\"></a> <a href=\"".basename($ME)."?id=$id&wdir=$fileurl\">".htmlspecialchars($dir)."</a>");
|
||||
print_cell("right", "-");
|
||||
print_cell("right", $filedate);
|
||||
print_cell("right", "<A HREF=\"".basename($ME)."?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</A>");
|
||||
print_cell("right", "<a href=\"".basename($ME)."?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</a>");
|
||||
|
||||
echo "</TR>";
|
||||
echo "</tr>";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -771,9 +771,9 @@ function displaydir ($wdir) {
|
|||
|
||||
print_cell("center", "<input type=\"checkbox\" name=\"file$count\" value=\"$fileurl\" />");
|
||||
|
||||
echo "<td align=left nowrap>";
|
||||
echo "<td align=\"left\" nowrap=\"nowrap\">";
|
||||
link_to_popup_window ($ffurl, "display",
|
||||
"<img src=\"$CFG->pixpath/f/$icon\" height=16 width=16 border=0 alt=\"file\">",
|
||||
"<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" border=\"0\" alt=\"file\">",
|
||||
480, 640);
|
||||
echo "<font size=\"-1\" face=\"Arial, Helvetica\">";
|
||||
link_to_popup_window ($ffurl, "display", htmlspecialchars($file), 480, 640);
|
||||
|
@ -792,22 +792,22 @@ function displaydir ($wdir) {
|
|||
$edittext .= "<a href=\"".basename($ME)."?id=$id&wdir=$wdir&file=$fileurl&action=listzip\">$strlist</a> ";
|
||||
}
|
||||
|
||||
print_cell("right", "$edittext <A HREF=\"".basename($ME)."?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</A>");
|
||||
print_cell("right", "$edittext <a href=\"".basename($ME)."?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</a>");
|
||||
|
||||
echo "</tr>";
|
||||
}
|
||||
}
|
||||
echo "</table>";
|
||||
echo "<hr width=640 align=center noshade size=1>";
|
||||
echo "<hr width=\"640\" align=\"center\" noshade size=\"1\" />";
|
||||
|
||||
if (empty($wdir)) {
|
||||
$wdir = "/";
|
||||
}
|
||||
|
||||
echo "<TABLE BORDER=0 cellspacing=2 cellpadding=2 width=640>";
|
||||
echo "<TR><TD>";
|
||||
echo "<INPUT TYPE=hidden NAME=id VALUE=\"$id\" />";
|
||||
echo "<INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" /> ";
|
||||
echo "<table border=\"0\" cellspacing=\"2\" cellpadding=\"2\" width=\"640\">";
|
||||
echo "<tr><td>";
|
||||
echo "<input type=\"hidden\" name=\"id\" value=\"$id\" />";
|
||||
echo "<input type=\"hidden\" name=\"wdir\" value=\"$wdir\" /> ";
|
||||
$options = array (
|
||||
"move" => "$strmovetoanotherfolder",
|
||||
"delete" => "$strdeletecompletely",
|
||||
|
@ -817,34 +817,34 @@ function displaydir ($wdir) {
|
|||
choose_from_menu ($options, "action", "", "$strwithchosenfiles...", "javascript:document.dirform.submit()");
|
||||
}
|
||||
|
||||
echo "</FORM>";
|
||||
echo "<TD ALIGN=center>";
|
||||
echo "</form>";
|
||||
echo "<td align=\"center\">";
|
||||
if (!empty($USER->fileop) and ($USER->fileop == "move") and ($USER->filesource <> $wdir)) {
|
||||
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=paste />";
|
||||
echo " <INPUT TYPE=submit VALUE=\"$strmovefilestohere\" />";
|
||||
echo "</FORM>";
|
||||
echo "<form action=\"".$ME."\" method=\"get\">";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"paste\" />";
|
||||
echo " <input type=\"submit\" value=\"$strmovefilestohere\" />";
|
||||
echo "</form>";
|
||||
}
|
||||
echo "<TD ALIGN=right>";
|
||||
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir />";
|
||||
echo " <INPUT TYPE=submit VALUE=\"$strmakeafolder\" />";
|
||||
echo "</FORM>";
|
||||
echo "</TD>";
|
||||
echo "<TD ALIGN=right>";
|
||||
echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
|
||||
echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
|
||||
echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
|
||||
echo " <INPUT TYPE=hidden NAME=action VALUE=upload />";
|
||||
echo " <INPUT TYPE=submit VALUE=\"$struploadafile\" />";
|
||||
echo "</FORM>";
|
||||
echo "</TD></TR>";
|
||||
echo "</TABLE>";
|
||||
echo "<HR WIDTH=640 ALIGN=CENTER NOSHADE SIZE=1>";
|
||||
echo "<td align=\"right\">";
|
||||
echo "<form action=\"".$ME."\" method=\"get\">";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"mkdir\" />";
|
||||
echo " <input type=\"submit\" value=\"$strmakeafolder\" />";
|
||||
echo "</form>";
|
||||
echo "</td>";
|
||||
echo "<td align=\"right\">";
|
||||
echo "<form action=\"".$ME."\" method=\"get\">";
|
||||
echo " <input type=\"hidden\" name=\"id\" value=$id />";
|
||||
echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
|
||||
echo " <input type=\"hidden\" name=\"action\" value=\"upload\" />";
|
||||
echo " <input type=\"submit\" value=\"$struploadafile\" />";
|
||||
echo "</form>";
|
||||
echo "</td></tr>";
|
||||
echo "</table>";
|
||||
echo "<hr width=\"640\" align=\"center\" NOSHADE size=\"1\">";
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?PHP // $Id$
|
||||
<?php // $Id$
|
||||
|
||||
function resource_upgrade($oldversion) {
|
||||
// This function does anything necessary to upgrade
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?PHP
|
||||
<?php
|
||||
|
||||
function resource_upgrade($oldversion) {
|
||||
// This function does anything necessary to upgrade
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?PHP // $Id$
|
||||
<?php // $Id$
|
||||
|
||||
function resource_upgrade($oldversion) {
|
||||
// This function does anything necessary to upgrade
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?PHP // $Id$
|
||||
<?php // $Id$
|
||||
//This function provides automatic linking to
|
||||
//resources when its name (title) is found inside every Moodle text
|
||||
//It's based in the glosssary filter by Williams Castillo
|
||||
|
@ -94,7 +94,7 @@
|
|||
|
||||
//Now avoid searching inside links
|
||||
$links = array();
|
||||
preg_match_all('/<A[\s](.+?)>(.+?)<\/A>/is',$text,$list_of_links);
|
||||
preg_match_all('/<a[\s](.+?)>(.+?)<\/A>/is',$text,$list_of_links);
|
||||
foreach (array_unique($list_of_links[0]) as $key=>$value) {
|
||||
$links['<@'.$key.'@>'] = $value;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?PHP // $Id$
|
||||
<?php // $Id$
|
||||
|
||||
require_once("../../config.php");
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
|||
|
||||
if ($course->category) {
|
||||
require_login($course->id);
|
||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
||||
} else {
|
||||
$navigation = '';
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?PHP // $Id$
|
||||
<?php // $Id$
|
||||
|
||||
if (!isset($CFG->resource_framesize)) {
|
||||
set_config("resource_framesize", 130);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?PHP //$Id$
|
||||
<?php //$Id$
|
||||
//This php script contains all the stuff to backup/restore
|
||||
//resource mods
|
||||
|
||||
|
|
|
@ -9,15 +9,15 @@
|
|||
<input type="hidden" name="instance" value="<?php p($form->instance) ?>" />
|
||||
<input type="hidden" name="mode" value="<?php p($form->mode) ?>" />
|
||||
|
||||
<table cellpadding=5>
|
||||
<tr valign=top>
|
||||
<td align=right><p><b><?php print_string("name") ?>:</b></p></td>
|
||||
<table cellpadding="5">
|
||||
<tr valign="top">
|
||||
<td align="right"><p><b><?php print_string("name") ?>:</b></p></td>
|
||||
<td>
|
||||
<input type="text" name="name" size=65 value="<?php p($form->name) ?>" />
|
||||
<input type="text" name="name" size="65" value="<?php p($form->name) ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign=top>
|
||||
<td align=right><p><b><?php print_string("summary") ?>:</b></p>
|
||||
<tr valign="top">
|
||||
<td align="right"><p><b><?php print_string("summary") ?>:</b></p>
|
||||
<font size="1">
|
||||
<?php
|
||||
helpbutton("summary", get_string("summary"), "resource", true, true);
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<tr valign="top">
|
||||
<td align="right" nowrap>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<p><b><?php print_string("resourcetypedirectory", "resource") ?>:</b></p>
|
||||
</td>
|
||||
<td>
|
||||
<?php choose_from_menu($dirs, "reference", $form->reference, get_string("maindirectory", "resource"), '', '') ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top"> <td align="right" nowrap>
|
||||
<tr valign="top"> <td align="right" nowrap="nowrap">
|
||||
</td>
|
||||
<td>
|
||||
<p><?php print_string("directoryinfo", "resource") ?></p>
|
||||
|
|
|
@ -68,7 +68,7 @@ function display() {
|
|||
navmenu($course, $this->cm));
|
||||
|
||||
if (isteacheredit($course->id)) {
|
||||
echo "<div align=\"right\"><img src=\"$CFG->pixpath/i/files.gif\" height=16 width=16 alt=\"\"> ".
|
||||
echo "<div align=\"right\"><img src=\"$CFG->pixpath/i/files.gif\" height=\"16\" width=\"16\" alt=\"\"> ".
|
||||
"<a href=\"$CFG->wwwroot/files/index.php?id={$course->id}&wdir=/{$resource->reference}$subdir\">".
|
||||
get_string("editfiles")."...</a></div>";
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right" nowrap>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<p><b><?php echo $strfilename ?>:</b></p>
|
||||
</td>
|
||||
<td>
|
||||
|
@ -68,13 +68,13 @@
|
|||
var frameitem = [<?php echo $frameoption; ?>];
|
||||
var allitems = [<?php echo $alloptions; ?>];
|
||||
</script>
|
||||
<input type="radio" name="windowpopup" value=0 <?php echo ($windowtype != "popup") ? "checked" : "" ?>
|
||||
<input type="radio" name="windowpopup" value="0" <?php echo ($windowtype != "popup") ? "checked" : "" ?>
|
||||
onClick="lockoptions('form', 'windowpopup[0]', frameitem);
|
||||
return lockoptions('form', 'windowpopup[1]', popupitems);" />
|
||||
<b title="<?php print_string("pagedisplay", "resource") ?>"><?php print_string("pagewindow", "resource") ?></b>
|
||||
<ul>
|
||||
<input type="hidden" name="hframepage" value=0 />
|
||||
<input type="checkbox" name="framepage" value=1 <?php echo ($form->options == "frame") ? "checked" : "" ?> />
|
||||
<input type="hidden" name="hframepage" value="0" />
|
||||
<input type="checkbox" name="framepage" value="1" <?php echo ($form->options == "frame") ? "checked" : "" ?> />
|
||||
<?php print_string("frameifpossible", "resource") ?>
|
||||
</ul>
|
||||
</td>
|
||||
|
@ -83,7 +83,7 @@
|
|||
<tr valign="top">
|
||||
|
||||
<td colspan="2">
|
||||
<input name="windowpopup" type=radio value=1 <?php echo ($windowtype == "popup") ? "checked" : "" ?>
|
||||
<input name="windowpopup" type="radio" value="1" <?php echo ($windowtype == "popup") ? "checked" : "" ?>
|
||||
onclick="lockoptions('form', 'windowpopup[0]', frameitem);
|
||||
return lockoptions('form', 'windowpopup[1]', popupitems);" />
|
||||
<b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
|
||||
|
@ -93,19 +93,19 @@
|
|||
if ($name == "height" or $name == "width") {
|
||||
continue;
|
||||
}
|
||||
echo "<input name=\"h$name\" type=hidden value=0 />";
|
||||
echo "<input name=\"$name\" type=checkbox value=1 ".$window->$name." />";
|
||||
echo "<input name=\"h$name\" type="hidden" value="0" />";
|
||||
echo "<input name=\"$name\" type="checkbox" value="1" ".$window->$name." />";
|
||||
$stringname = "str$name";
|
||||
echo $$stringname."<br />";
|
||||
}
|
||||
?>
|
||||
|
||||
<input name="hwidth" type=hidden value=0 />
|
||||
<input name="width" type=text size=4 value="<?php p($window->width) ?>" />
|
||||
<input name="hwidth" type="hidden" value="0" />
|
||||
<input name="width" type="text" size="4" value="<?php p($window->width) ?>" />
|
||||
<?php p($strwidth) ?><br />
|
||||
|
||||
<input name="hheight" type=hidden value=0 />
|
||||
<input name="height" type=text size=4 value="<?php p($window->height) ?>" />
|
||||
<input name="hheight" type="hidden" value="0" />
|
||||
<input name="height" type="text" size="4" value="<?php p($window->height) ?>" />
|
||||
<?php p($strheight) ?><br />
|
||||
<?php
|
||||
if ($windowtype == "page") {
|
||||
|
|
|
@ -337,7 +337,7 @@ function display() {
|
|||
if (!empty($_GET['frameset']) and $_GET['frameset'] == "top") {
|
||||
print_header($pagetitle, $course->fullname, "$navigation <a target=\"$CFG->framename\" href=\"$fullurl\">{$resource->name}</a>", "", "", true, update_module_button($this->cm->id, $course->id, $strresource), navmenu($course, $this->cm, "parent"));
|
||||
|
||||
echo "<center><font size=-1>".text_to_html($resource->summary, true, false)."</font></center>";
|
||||
echo "<center><font size=\"-1\">".text_to_html($resource->summary, true, false)."</font></center>";
|
||||
echo "</body></html>";
|
||||
exit;
|
||||
}
|
||||
|
@ -365,11 +365,11 @@ function display() {
|
|||
echo '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
|
||||
echo ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
|
||||
echo ' width="600" height="70" id="mp3player" align="">';
|
||||
echo "<param name=movie value=\"$CFG->wwwroot/lib/mp3player/mp3player.swf?src=$fullurl&autostart=yes\">";
|
||||
echo '<param name=quality value=high>';
|
||||
echo '<param name=bgcolor value="#333333">';
|
||||
echo "<param name=\"movie\" value=\"$CFG->wwwroot/lib/mp3player/mp3player.swf?src=$fullurl&autostart=yes\">";
|
||||
echo '<param name="quality" value="high">';
|
||||
echo '<param name="bgcolor" value="#333333">';
|
||||
echo "<embed src=\"$CFG->wwwroot/lib/mp3player/mp3player.swf?src=$fullurl&autostart=yes\" ";
|
||||
echo " quality=high bgcolor=\"#333333\" width=\"600\" height=\"70\" name=\"mp3player\" ";
|
||||
echo " quality=\"high\" bgcolor=\"#333333\" width=\"600\" height=\"70\" name=\"mp3player\" ";
|
||||
echo ' type="application/x-shockwave-flash" ';
|
||||
echo ' pluginspage="http://www.macromedia.com/go/getflashplayer">';
|
||||
echo '</embed>';
|
||||
|
@ -383,15 +383,15 @@ function display() {
|
|||
echo ' standby="Loading Microsoft® Windows® Media Player components..." ';
|
||||
echo ' id="msplayer" align="" type="application/x-oleobject">';
|
||||
echo "<param name=\"Filename\" value=\"$fullurl\">";
|
||||
echo '<param name="ShowControls" value=true />';
|
||||
echo '<param name="AutoRewind" value=true />';
|
||||
echo '<param name="AutoStart" value=true />';
|
||||
echo '<param name="Autosize" value=true />';
|
||||
echo '<param name="EnableContextMenu" value=true />';
|
||||
echo '<param name="TransparentAtStart" value=false />';
|
||||
echo '<param name="AnimationAtStart" value=false />';
|
||||
echo '<param name="ShowGotoBar" value=false />';
|
||||
echo '<param name="EnableFullScreenControls" value=true />';
|
||||
echo '<param name="ShowControls" value="true" />';
|
||||
echo '<param name="AutoRewind" value="true" />';
|
||||
echo '<param name="AutoStart" value="true" />';
|
||||
echo '<param name="Autosize" value="true" />';
|
||||
echo '<param name="EnableContextMenu" value="true" />';
|
||||
echo '<param name="TransparentAtStart" value="false" />';
|
||||
echo '<param name="AnimationAtStart" value="false" />';
|
||||
echo '<param name="ShowGotoBar" value="false" />';
|
||||
echo '<param name="EnableFullScreenControls" value="true" />';
|
||||
echo "\n<embed src=\"$fullurl\" name=\"msplayer\" type=\"$mimetype\" ";
|
||||
echo ' ShowControls="1" AutoRewind="1" AutoStart="1" Autosize="0" EnableContextMenu="1"';
|
||||
echo ' TransparentAtStart="0" AnimationAtStart="0" ShowGotoBar="0" EnableFullScreenControls="1"';
|
||||
|
@ -408,9 +408,9 @@ function display() {
|
|||
echo ' height="450" width="600"';
|
||||
echo ' id="quicktime" align="" type="application/x-oleobject">';
|
||||
echo "<param name=\"src\" value=\"$fullurl\" />";
|
||||
echo '<param name="autoplay" value=true />';
|
||||
echo '<param name="loop" value=true />';
|
||||
echo '<param name="controller" value=true />';
|
||||
echo '<param name="autoplay" value="true" />';
|
||||
echo '<param name="loop" value="true" />';
|
||||
echo '<param name="controller" value="true" />';
|
||||
echo '<param name="scale" value="aspect" />';
|
||||
echo "\n<embed src=\"$fullurl\" name=\"quicktime\" type=\"$mimetype\" ";
|
||||
echo ' height="450" width="600" scale="aspect"';
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right" nowrap>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<p><b><?php print_string("fulltext", "resource") ?>:</b></p><br />
|
||||
<font size="1">
|
||||
<?php helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br />
|
||||
|
@ -65,7 +65,7 @@
|
|||
var popupitems = [<?php echo $popupoptions; ?>];
|
||||
var allitems = [<?php echo $alloptions; ?>];
|
||||
</script>
|
||||
<input type="radio" name="windowpopup" value=0 <?php echo ($windowtype != "popup") ? "checked" : "" ?>
|
||||
<input type="radio" name="windowpopup" value="0" <?php echo ($windowtype != "popup") ? "checked" : "" ?>
|
||||
onClick="return lockoptions('form', 'windowpopup[1]', popupitems);" />
|
||||
<b title="<?php print_string("pagedisplay", "resource") ?>"><?php print_string("pagewindow", "resource") ?></b>
|
||||
</td>
|
||||
|
@ -74,7 +74,7 @@
|
|||
<tr valign="top">
|
||||
|
||||
<td colspan="2">
|
||||
<input name="windowpopup" type=radio value=1 <?php echo ($windowtype == "popup") ? "checked" : "" ?>
|
||||
<input name="windowpopup" type="radio" value="1" <?php echo ($windowtype == "popup") ? "checked" : "" ?>
|
||||
onclick=" return lockoptions('form', 'windowpopup[1]', popupitems);" />
|
||||
<b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
|
||||
<ul>
|
||||
|
@ -83,19 +83,19 @@
|
|||
if ($name == "height" or $name == "width") {
|
||||
continue;
|
||||
}
|
||||
echo "<input name=\"h$name\" type=hidden value=0 />";
|
||||
echo "<input name=\"$name\" type=checkbox value=1 ".$window->$name." />";
|
||||
echo "<input name=\"h$name\" type="hidden" value="0" />";
|
||||
echo "<input name=\"$name\" type="checkbox" value="1" ".$window->$name." />";
|
||||
$stringname = "str$name";
|
||||
echo $$stringname."<br />";
|
||||
}
|
||||
?>
|
||||
|
||||
<input name="hwidth" type=hidden value=0 />
|
||||
<input name="width" type=text size=4 value="<?php p($window->width) ?>" />
|
||||
<input name="hwidth" type="hidden" value="0" />
|
||||
<input name="width" type="text" size="4" value="<?php p($window->width) ?>" />
|
||||
<?php p($strwidth) ?><br />
|
||||
|
||||
<input name="hheight" type=hidden value=0 />
|
||||
<input name="height" type=text size=4 value="<?php p($window->height) ?>" />
|
||||
<input name="hheight" type="hidden" value="0" />
|
||||
<input name="height" type="text" size="4" value="<?php p($window->height) ?>" />
|
||||
<?php p($strheight) ?><br />
|
||||
<?php
|
||||
if ($windowtype == "page") {
|
||||
|
|
|
@ -140,7 +140,7 @@ function display() {
|
|||
|
||||
print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id), "center", "", "$THEME->cellcontent", "20");
|
||||
|
||||
echo "<center><p><font size=1>$strlastmodified: ".userdate($resource->timemodified)."</p></center>";
|
||||
echo "<center><p><font size=\"1\">$strlastmodified: ".userdate($resource->timemodified)."</p></center>";
|
||||
|
||||
print_footer($course);
|
||||
}
|
||||
|
|
|
@ -139,7 +139,7 @@ function display() {
|
|||
print_simple_box(format_text($resource->alltext, $resource->options, $formatoptions, $course->id),
|
||||
"center", "", "$THEME->cellcontent", "20");
|
||||
|
||||
echo "<center><p><font size=1>$strlastmodified: ".userdate($resource->timemodified)."</p></center>";
|
||||
echo "<center><p><font size=\"1\">$strlastmodified: ".userdate($resource->timemodified)."</p></center>";
|
||||
|
||||
print_footer($course);
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right" nowrap>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<p><b><?php print_string("fulltext", "resource") ?>:</b></p><br />
|
||||
<font size="1">
|
||||
<?php helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br />
|
||||
|
@ -40,7 +40,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right" nowrap>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<p><b><?php print_string("formattexttype") ?>:</b></p><br />
|
||||
</td>
|
||||
<td>
|
||||
|
@ -77,7 +77,7 @@
|
|||
var popupitems = [<?php echo $popupoptions; ?>];
|
||||
var allitems = [<?php echo $alloptions; ?>];
|
||||
</script>
|
||||
<input type="radio" name="windowpopup" value=0 <?php echo ($windowtype != "popup") ? "checked" : "" ?>
|
||||
<input type="radio" name="windowpopup" value="0" <?php echo ($windowtype != "popup") ? "checked" : "" ?>
|
||||
onClick="return lockoptions('form', 'windowpopup[1]', popupitems);" />
|
||||
<b title="<?php print_string("pagedisplay", "resource") ?>"><?php print_string("pagewindow", "resource") ?></b>
|
||||
<?php print_string("pagedisplay", "resource") ?>
|
||||
|
@ -87,7 +87,7 @@
|
|||
<tr valign="top">
|
||||
|
||||
<td colspan="2">
|
||||
<input name="windowpopup" type=radio value=1 <?php echo ($windowtype == "popup") ? "checked" : "" ?>
|
||||
<input name="windowpopup" type="radio" value="1" <?php echo ($windowtype == "popup") ? "checked" : "" ?>
|
||||
onclick=" return lockoptions('form', 'windowpopup[1]', popupitems);" />
|
||||
<b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
|
||||
<?php p($strnewwindowopen) ?>
|
||||
|
@ -97,19 +97,19 @@
|
|||
if ($name == "height" or $name == "width") {
|
||||
continue;
|
||||
}
|
||||
echo "<input name=\"h$name\" type=hidden value=0 />";
|
||||
echo "<input name=\"$name\" type=checkbox value=1 ".$window->$name." />";
|
||||
echo "<input name=\"h$name\" type="hidden" value="0" />";
|
||||
echo "<input name=\"$name\" type="checkbox" value="1" ".$window->$name." />";
|
||||
$stringname = "str$name";
|
||||
echo $$stringname."<br />";
|
||||
}
|
||||
?>
|
||||
|
||||
<input name="hwidth" type=hidden value=0 />
|
||||
<input name="width" type=text size=4 value="<?php p($window->width) ?>" />
|
||||
<input name="hwidth" type="hidden" value="0" />
|
||||
<input name="width" type="text" size="4" value="<?php p($window->width) ?>" />
|
||||
<?php p($strwidth) ?><br />
|
||||
|
||||
<input name="hheight" type=hidden value=0 />
|
||||
<input name="height" type=text size=4 value="<?php p($window->height) ?>" />
|
||||
<input name="hheight" type="hidden" value="0" />
|
||||
<input name="height" type="text" size="4" value="<?php p($window->height) ?>" />
|
||||
<?php p($strheight) ?><br />
|
||||
<?php
|
||||
if ($windowtype == "page") {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?PHP // $Id$
|
||||
<?php // $Id$
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Code fragment to define the module version etc.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?PHP // $Id$
|
||||
<?php // $Id$
|
||||
|
||||
require_once("../../config.php");
|
||||
require_once("lib.php");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue