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

1.1       www         1: <html>
                      2: 
                      3: <!--
                      4: The LearningOnline Network
                      5: Pick External Resources
                      6: //
1.7     ! bisitz      7: // $Id: extpickcode.html,v 1.6 2007/07/07 00:53:26 albertel 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>
1.7     ! bisitz     46: <body bgcolor="#F8F8F8" onload="javascript:initfields()">
        !            47: <form name="pick" action="">
1.1       www        48: <table>
1.7     ! bisitz     49: <tr>
1.1       www        50: <td>Title:</td>
                     51: <td><input type="text" size="60" name="exttitle" value="External Resource" />
                     52: </td></tr>
1.7     ! bisitz     53: 
1.1       www        54: <tr>
1.7     ! bisitz     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();" />
1.1       www        67: </td>
1.7     ! bisitz     68: </tr>
1.3       www        69: </table>
1.1       www        70: </form>
                     71: </body>
                     72: </html>

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