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, 5 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

    1: <html>
    2: 
    3: <!--
    4: The LearningOnline Network
    5: Pick External Resources
    6: //
    7: // $Id: extpickcode.html,v 1.7 2010/02/04 11:37:29 bisitz Exp $
    8: //
    9: // Copyright Michigan State University Board of Trustees
   10: //
   11: // This file is part of the LearningOnline Network with CAPA (LON-CAPA).
   12: //
   13: // LON-CAPA is free software; you can redistribute it and/or modify
   14: // it under the terms of the GNU General Public License as published by
   15: // the Free Software Foundation; either version 2 of the License, or
   16: // (at your option) any later version.
   17: //
   18: // LON-CAPA is distributed in the hope that it will be useful,
   19: // but WITHOUT ANY WARRANTY; without even the implied warranty of
   20: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   21: // GNU General Public License for more details.
   22: //
   23: // You should have received a copy of the GNU General Public License
   24: // along with LON-CAPA; if not, write to the Free Software
   25: // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   26: //
   27: // /home/httpd/html/adm/gpl.txt
   28: //
   29: // http://www.lon-capa.org/
   30: //
   31: -->
   32: <head>
   33:   <script type="text/javascript">
   34: function initfields () {
   35:     if ( parent.opener.document.forms.extimport.title.value != '') {
   36:         document.forms.pick.exttitle.value =
   37:             parent.opener.document.forms.extimport.title.value;
   38:         document.forms.pick.exturl.value =
   39:             parent.opener.document.forms.extimport.url.value;
   40: 	    
   41:     }
   42: }
   43: 
   44:   </script>
   45: </head>
   46: <body bgcolor="#F8F8F8" onload="javascript:initfields()">
   47: <form name="pick" action="">
   48: <table>
   49: <tr>
   50: <td>Title:</td>
   51: <td><input type="text" size="60" name="exttitle" value="External Resource" />
   52: </td></tr>
   53: 
   54: <tr>
   55: <td>URL:</td>
   56: <td><input type="text" size="60" name="exturl" value="http://" />
   57: <input type="button" name="view" value="Preview" onclick="javascript:parent.extcontent.location.href=this.form.exturl.value;" />
   58: </td></tr>
   59: 
   60: <tr>
   61: <td>
   62: <input type="button" name="cancel" value="Cancel" onclick="parent.close();" />
   63: </td>
   64: <td>
   65: <input type="button" name="cancel" value="Choose"
   66: 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();" />
   67: </td>
   68: </tr>
   69: </table>
   70: </form>
   71: </body>
   72: </html>

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