version 1.29, 2003/06/15 18:02:57
|
version 1.33, 2003/09/11 21:02:38
|
Line 4
|
Line 4
|
<script language="JavaScript"> |
<script language="JavaScript"> |
|
|
function frameloc() { |
function frameloc() { |
if (parent.LONCAPAToBePublished.location.href.indexOf("/~")!=-1) { |
if (parent.LONCAPAToBePublished.location.pathname.indexOf("/~")!=-1) { |
parent.lastknownpriv=parent.LONCAPAToBePublished.location.href; |
parent.lastknownpriv=parent.LONCAPAToBePublished.location.pathname; |
} |
} |
|
// alert ('We are at '+parent.lastknownpriv); |
return unescape(parent.lastknownpriv); |
return unescape(parent.lastknownpriv); |
} |
} |
|
|
Line 69 function getdelfilename() {
|
Line 70 function getdelfilename() {
|
document.del.submit(); |
document.del.submit(); |
} |
} |
|
|
|
function getcurseed() { |
|
if (parent.LONCAPAToBePublished.document.lonhomework |
|
&& |
|
parent.LONCAPAToBePublished.document.lonhomework.rndseed |
|
&& |
|
parent.LONCAPAToBePublished.document.lonhomework.rndseed.value) { |
|
return parent.LONCAPAToBePublished.document.lonhomework.rndseed.value; |
|
} |
|
return 0; |
|
} |
|
|
function getpostdata() { |
function getpostdata() { |
document.printout.postdata.value=frameloc(); |
document.printout.postdata.value=frameloc(); |
|
document.printout.curseed.value=getcurseed(); |
document.printout.submit(); |
document.printout.submit(); |
} |
} |
</script> |
</script> |
Line 78 function getpostdata() {
|
Line 91 function getpostdata() {
|
<body bgcolor="#ccffdd" text='#002200' link='#003333' vlink='#006666'> |
<body bgcolor="#ccffdd" text='#002200' link='#003333' vlink='#006666'> |
<font size="-2"> |
<font size="-2"> |
<table border="0" align="center"><tr><th bgcolor="#004400" height="20"> |
<table border="0" align="center"><tr><th bgcolor="#004400" height="20"> |
<table border="0" cellspacing="4"><tr valign="middle"> |
<table border="0" cellspacing="2" cellpadding="2"><tr valign="middle"> |
<form name="publisher" action="/adm/publish" target="_parent" method="post"> |
<form name="publisher" action="/adm/publish" target="_parent" method="post"> |
<td bgcolor="#ccddaa" align="center"> |
<td bgcolor="#ccddaa" align="center"> |
<input type="hidden" name="filename" value="" /> |
<input type="hidden" name="filename" value="" /> |
Line 102 function getpostdata() {
|
Line 115 function getpostdata() {
|
<form name="printout" target="_parent" action="/adm/printout" target="LONCAPAToBePublished" method="post" onSubmit="getpostdata();"> |
<form name="printout" target="_parent" action="/adm/printout" target="LONCAPAToBePublished" method="post" onSubmit="getpostdata();"> |
<td rowspan="2" bgcolor="#ccddaa" align="center"> |
<td rowspan="2" bgcolor="#ccddaa" align="center"> |
<input type="hidden" name="postdata" value="" /> |
<input type="hidden" name="postdata" value="" /> |
|
<input type="hidden" name="curseed" value="" /> |
<input type="button" value="Print" onClick="getpostdata();" /> |
<input type="button" value="Print" onClick="getpostdata();" /> |
</td> |
</td> |
</form> |
</form> |
Line 132 function getpostdata() {
|
Line 146 function getpostdata() {
|
<option value="newproblemfile">New problem:</option> |
<option value="newproblemfile">New problem:</option> |
<option value="newpagefile">New assembled page:</option> |
<option value="newpagefile">New assembled page:</option> |
<option value="newsequencefile">New assembled sequence:</option> |
<option value="newsequencefile">New assembled sequence:</option> |
|
<option value="newrightsfile">New custom rights file:</option> |
|
<option value="newstyfile">New style file:</option> |
<option value="newdir">New subdirectory:</option> |
<option value="newdir">New subdirectory:</option> |
<option value="rename">Rename current file to:</option> |
<option value="rename">Rename current file to:</option> |
|
<option value="rename">Move current file to:</option> |
<option value="copy">Copy current file to:</option> |
<option value="copy">Copy current file to:</option> |
</select> <input type="text" name="newfilename" value="Type Name Here" onFocus="if (this.value == 'Type Name Here') this.value=''" /> <input type="button" value="Go" onClick="getactionfilename();" /> |
</select> <input type="text" name="newfilename" value="Type Name Here" onFocus="if (this.value == 'Type Name Here') this.value=''" /> <input type="button" value="Go" onClick="getactionfilename();" /> |
</nobr> |
</nobr> |