Annotation of rat/client/extpickcode.html, revision 1.6

1.1       www         1: <html>
                      2: 
                      3: <!--
                      4: The LearningOnline Network
                      5: Pick External Resources
                      6: //
1.6     ! albertel    7: // $Id: extpickcode.html,v 1.5 2004/02/01 21:47:22 www Exp $
1.1       www         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: -->
1.6     ! albertel   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: }
1.1       www        43: 
1.6     ! albertel   44:   </script>
        !            45: </head>
        !            46: <body bgcolor="#FFFFBB" onload="javascript:initfields()">
        !            47: <form name="pick">
1.1       www        48: <table>
                     49: <tr><td bgcolor="#FFFF99">
1.2       www        50: <input type="button" name="cancel" value="Choose"
1.5       www        51: 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>
1.1       www        52: <td>Title:</td>
                     53: <td><input type="text" size="60" name="exttitle" value="External Resource" />
                     54: </td></tr>
                     55: <tr>
                     56: <td bgcolor="#FFFF99">
1.2       www        57: <input type="button" name="cancel" value="Cancel"
                     58: onClick="parent.close();"/></td>
1.1       www        59: <td>URL: <input type="button" name="view" value="View"
                     60: onClick="javascript:parent.extcontent.location.href=this.form.exturl.value;" />
                     61: </td>
                     62: <td><input type="text" size="60" name="exturl"
                     63: value="http://" />
                     64: </td></tr>
1.3       www        65: </table>
1.1       www        66: </form>
                     67: </body>
                     68: </html>

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