Diff for /loncom/publisher/publisher.html between versions 1.30 and 1.33

version 1.30, 2003/08/01 18:06:33 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 136  function getpostdata() { Line 150  function getpostdata() {
                             <option value="newstyfile">New style 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>&nbsp;<input type="text" name="newfilename" value="Type Name Here" onFocus="if (this.value == 'Type Name Here') this.value=''" />&nbsp;<input type="button" value="Go" onClick="getactionfilename();" />    </select>&nbsp;<input type="text" name="newfilename" value="Type Name Here" onFocus="if (this.value == 'Type Name Here') this.value=''" />&nbsp;<input type="button" value="Go" onClick="getactionfilename();" />
       </nobr>        </nobr>

Removed from v.1.30  
changed lines
  Added in v.1.33


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>