[LON-CAPA-cvs] cvs: loncom /interface loncreatecourse.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Mon, 18 Mar 2002 14:26:28 -0000
matthew Mon Mar 18 09:26:28 2002 EDT
Modified files:
/loncom/interface loncreatecourse.pm
Log:
Added browse link for map specification.
Index: loncom/interface/loncreatecourse.pm
diff -u loncom/interface/loncreatecourse.pm:1.5 loncom/interface/loncreatecourse.pm:1.6
--- loncom/interface/loncreatecourse.pm:1.5 Wed Dec 19 12:17:46 2001
+++ loncom/interface/loncreatecourse.pm Mon Mar 18 09:26:28 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Create a course
#
-# $Id: loncreatecourse.pm,v 1.5 2001/12/19 17:17:46 albertel Exp $
+# $Id: loncreatecourse.pm,v 1.6 2002/03/18 14:26:28 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -53,24 +53,43 @@
my $defdom=$ENV{'user.domain'};
$r->print(<<ENDDOCUMENT);
<html>
+<script language="JavaScript" type="text/javascript">
+var editbrowser = null;
+function openbrowser(formname,elementname) {
+ var url = '/res/?';
+ if (editbrowser == null) {
+ url += 'launch=1&';
+ }
+ url += 'catalogmode=interactive&';
+ url += 'mode=edit&';
+ url += 'form=' + formname + '&';
+ url += 'element=' + elementname + '';
+ var title = 'Browser';
+ var options = 'scrollbars=1,resizable=1,menubar=0';
+ options += ',width=700,height=600';
+ editbrowser = open(url,title,options,'1');
+ editbrowser.focus();
+}
+</script>
<head>
<title>The LearningOnline Network with CAPA</title>
</head>
<body bgcolor="#FFFFFF">
-<img align=right src=/adm/lonIcons/lonlogos.gif>
+<img align="right" src="/adm/lonIcons/lonlogos.gif">
<h1>Create a new Course</h1>
-<form action=/adm/createcourse method=post>
+<form action="/adm/createcourse" method="post" name="ccrs">
<h3>Course Title</h3>
-<input type=text size=50 name=title>
+<input type="text" size="50" name="title">
<h3>Top-level Map</h3>
-<input type=text size=50 name=topmap>
+<input type="text" size="50" name="topmap">
+<a href="javascript:openbrowser('ccrs','topmap')">Browse</a>
<h3>Course ID/Number (optional)</h3>
-<input type=text size=30 name=crsid>
+<input type="text" size="30" name="crsid">
<h3>Course Cooordinator</h3>
-Username: <input type=text size=15 name=ccuname><br>
-Domain: <input type=text size=15 name=ccdomain value=$defdom>
-<input type=hidden name=phase value=two><p>
-<input type=submit value="Open Course">
+Username: <input type="text" size="15" name="ccuname" /><br>
+Domain: <input type="text" size="15" name="ccdomain" value="$defdom" />
+<input type="hidden" name="phase" value="two" /><p>
+<input type="submit" value="Open Course">
</form>
</body>
</html>