File:  [LON-CAPA] / rat / client / Attic / extpickcode.html
Revision 1.6: download - view: text, annotated - select for diffs
Sat Jul 7 00:53:26 2007 UTC (16 years, 10 months ago) by albertel
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_1, version_2_9_0, version_2_8_X, version_2_8_99_1, version_2_8_99_0, version_2_8_2, version_2_8_1, version_2_8_0, version_2_7_X, version_2_7_99_1, version_2_7_99_0, version_2_7_1, version_2_7_0, version_2_6_X, version_2_6_99_1, version_2_6_99_0, version_2_6_3, version_2_6_2, version_2_6_1, version_2_6_0, version_2_5_X, version_2_5_99_1, version_2_5_99_0, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_99_0, bz6209-base, bz6209, bz5969, bz2851, HEAD, GCI_3, GCI_2, GCI_1
- BUG#3487, make it possible to edit the location fo an external resource
- improve paste buffer handling of ext resources and add ability to
    properly handle https:// style external resources
- fix handling of : in paste buffer titles
- some css tweaks

<html>

<!--
The LearningOnline Network
Pick External Resources
//
// $Id: extpickcode.html,v 1.6 2007/07/07 00:53:26 albertel Exp $
//
// Copyright Michigan State University Board of Trustees
//
// This file is part of the LearningOnline Network with CAPA (LON-CAPA).
//
// LON-CAPA is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// LON-CAPA is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with LON-CAPA; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//
// /home/httpd/html/adm/gpl.txt
//
// http://www.lon-capa.org/
//
-->
<head>
  <script type="text/javascript">
function initfields () {
    if ( parent.opener.document.forms.extimport.title.value != '') {
        document.forms.pick.exttitle.value =
            parent.opener.document.forms.extimport.title.value;
        document.forms.pick.exturl.value =
            parent.opener.document.forms.extimport.url.value;
	    
    }
}

  </script>
</head>
<body bgcolor="#FFFFBB" onload="javascript:initfields()">
<form name="pick">
<table>
<tr><td bgcolor="#FFFF99">
<input type="button" name="cancel" value="Choose"
onClick="javascript:parent.opener.document.forms.extimport.title.value=escape(this.form.exttitle.value);parent.opener.document.forms.extimport.url.value=escape(this.form.exturl.value);parent.opener.finishpick();parent.close();" /></td>
<td>Title:</td>
<td><input type="text" size="60" name="exttitle" value="External Resource" />
</td></tr>
<tr>
<td bgcolor="#FFFF99">
<input type="button" name="cancel" value="Cancel"
onClick="parent.close();"/></td>
<td>URL: <input type="button" name="view" value="View"
onClick="javascript:parent.extcontent.location.href=this.form.exturl.value;" />
</td>
<td><input type="text" size="60" name="exturl"
value="http://" />
</td></tr>
</table>
</form>
</body>
</html>

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