[LON-CAPA-cvs] cvs: loncom /html/res/adm/pages menu.html /interface lonprintout.pm /publisher publisher.html
www
lon-capa-cvs@mail.lon-capa.org
Tue, 16 Jul 2002 20:30:54 -0000
www Tue Jul 16 16:30:54 2002 EDT
Modified files:
/loncom/html/res/adm/pages menu.html
/loncom/interface lonprintout.pm
/loncom/publisher publisher.html
Log:
Bug #593
Added printout to construction space menu.
Printout handler gets complete URL, e.g.,
http://picard.lite.msu.edu/~korte/bar/foo.html
Index: loncom/html/res/adm/pages/menu.html
diff -u loncom/html/res/adm/pages/menu.html:1.60 loncom/html/res/adm/pages/menu.html:1.61
--- loncom/html/res/adm/pages/menu.html:1.60 Mon Jul 15 15:45:18 2002
+++ loncom/html/res/adm/pages/menu.html Tue Jul 16 16:30:53 2002
@@ -4,7 +4,7 @@
Remote Control
//
-// $Id: menu.html,v 1.60 2002/07/15 19:45:18 www Exp $
+// $Id: menu.html,v 1.61 2002/07/16 20:30:53 www Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -69,8 +69,6 @@
var reloadURL='';
var currentStale=1;
var menucltim;
-
-var constructURL='';
var clockdelta=0;
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.37 loncom/interface/lonprintout.pm:1.38
--- loncom/interface/lonprintout.pm:1.37 Mon Jul 8 13:31:36 2002
+++ loncom/interface/lonprintout.pm Tue Jul 16 16:30:53 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.37 2002/07/08 17:31:36 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.38 2002/07/16 20:30:53 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -58,6 +58,7 @@
</head>
<body bgcolor="FFFFFF">
<form method="post" enctype="multipart/form-data" action="/adm/printout" name="printform">
+<tt>$ENV{'form.postdata'}</tt><p>
<h1>What do you want to print? Make a choice.</h1><br />
ENDHEADER
}
Index: loncom/publisher/publisher.html
diff -u loncom/publisher/publisher.html:1.19 loncom/publisher/publisher.html:1.20
--- loncom/publisher/publisher.html:1.19 Thu Mar 21 15:39:17 2002
+++ loncom/publisher/publisher.html Tue Jul 16 16:30:54 2002
@@ -68,9 +68,15 @@
document.newdir.submit();
}
}
+
+function getpostdata() {
+ document.printout.postdata.value=parent.LONCAPAToBePublished.location.href;
+ document.printout.submit();
+}
</script>
</head>
<body bgcolor="#99ff99">
+<font size="-2">
<table border=0><tr><th bgcolor="#aaaaaa" height=20>
<table border=0><tr valign="middle">
<form name="publisher" action="/adm/publish" target="_parent" method="post">
@@ -96,7 +102,15 @@
<input type="hidden" name="filename" value="">
<input type="file" name="upfile" size="10">
<input type="button" value="Upload file" onClick="getufilename();">
-</td></form></tr>
+</td></form>
+<form name="printout" action="/adm/printout" target="LONCAPAToBePublished"
+method="post" onSubmit="getpostdata();">
+<td rowspan=2 bgcolor="#ccffcc">
+<input type="hidden" name="postdata" value="">
+<input type="button" value="Printout" onClick="getpostdata();">
+</td>
+</form>
+</tr>
<tr valign="middle">
<form name="rpublisher" action="/adm/retrieve" target="_parent" method="post">
@@ -127,7 +141,7 @@
</tr>
</table>
</th></tr></table>
-
+</font>
</body>
</html>