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

version 1.30, 2003/08/01 18:06:33 version 1.32, 2003/09/05 02:22:25
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>

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


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