mirror of
https://github.com/moodle/moodle.git
synced 2025-01-27 02:28:23 +01:00
42 lines
971 B
PHP
42 lines
971 B
PHP
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!-- //hide
|
|
|
|
function popUpProperties(inobj) {
|
|
op = window.open();
|
|
op.document.open('text/plain');
|
|
for (objprop in inobj) {
|
|
op.document.write(objprop + ' => ' + inobj[objprop] + '\n');
|
|
}
|
|
op.document.close();
|
|
}
|
|
|
|
function fillmessagebox(text) {
|
|
document.form.message.value = text;
|
|
}
|
|
|
|
function openpopup(url,name,height,width) {
|
|
fullurl = "<?=$CFG->wwwroot ?>" + url;
|
|
options = "menubar=0,location=0,scrollbars,resizable,width="+width+",height="+height;
|
|
windowobj = window.open(fullurl,name, options);
|
|
windowobj.focus();
|
|
}
|
|
|
|
function copyrichtext(textname) {
|
|
textname.value = document.richedit.docHtml;
|
|
return true;
|
|
}
|
|
|
|
function checkall() {
|
|
void(d=document);
|
|
void(el=d.getElementsByTagName('INPUT'));
|
|
for(i=0;i<el.length;i++)
|
|
void(el[i].checked=1)
|
|
}
|
|
|
|
<? if ($focus) { echo "function setfocus() { document.$focus.focus() }\n"; } ?>
|
|
|
|
// done hiding -->
|
|
</SCRIPT>
|
|
|