File:  [LON-CAPA] / rat / client / Attic / extpickcode.html
Revision 1.7: download - view: text, annotated - select for diffs
Thu Feb 4 11:37:29 2010 UTC (14 years, 9 months ago) by bisitz
Branches: MAIN
CVS tags: version_2_9_99_0, version_2_10_X, version_2_10_1, version_2_10_0_RC2, version_2_10_0_RC1, version_2_10_0, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, HEAD, BZ4492-merge, BZ4492-feature_horizontal_radioresponse, BZ4492-feature_Support_horizontal_radioresponse
Pick External Resource:
- Design: no yellow background
- View button is now "Preview" and is placed behind the URL text box
- Buttons below options
- XHTML

<html>

<!--
The LearningOnline Network
Pick External Resources
//
// $Id: extpickcode.html,v 1.7 2010/02/04 11:37:29 bisitz 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="#F8F8F8" onload="javascript:initfields()">
<form name="pick" action="">
<table>
<tr>
<td>Title:</td>
<td><input type="text" size="60" name="exttitle" value="External Resource" />
</td></tr>

<tr>
<td>URL:</td>
<td><input type="text" size="60" name="exturl" value="http://" />
<input type="button" name="view" value="Preview" onclick="javascript:parent.extcontent.location.href=this.form.exturl.value;" />
</td></tr>

<tr>
<td>
<input type="button" name="cancel" value="Cancel" onclick="parent.close();" />
</td>
<td>
<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>
</tr>
</table>
</form>
</body>
</html>

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