Annotation of loncom/html/res/adm/pages/homeworkmenu.html, revision 1.2

1.1       albertel    1:   <html>
                      2:     <!--
                      3:     The LearningOnline Network with CAPA
                      4:     Homework Remote Cotrol
                      5:     -->
                      6:     <head>
                      7:       <title>LON-CAPA Homework Remote</title>
                      8:     </head>
                      9: 
                     10: 
                     11:     <body bgcolor="#BBBBBB">
                     12:       <basefont size=1></basefont>
                     13:       <script>
                     14: 
                     15: statustop='';
                     16: statusbot='';
                     17: 
                     18: clienthost=window.location.host;
                     19: clientwindow=opener;
                     20: 
                     21: function windowcheck() {
                     22:    if (clientwindow.closed) {
                     23:       clientwindow=window.open("http://"+clienthost+"/"); 
                     24:    }
                     25:    clientwindow.name='loncapaclient';
                     26: }
                     27: 
                     28: function go(url) {
                     29:    windowcheck();
                     30:    if (url!='') {
                     31:        clientwindow.window.location.href="http://"+clienthost+url;
                     32:    }
                     33: }
                     34: 
1.2     ! albertel   35: function gopost(url,command) {
1.1       albertel   36:    windowcheck();
                     37:    if (url!='') {
1.2     ! albertel   38:       this.document.submission.action="http://"+clienthost+url;
        !            39:       this.document.submission.command.value=command;
        !            40:       this.document.submission.url.value=clientwindow.window.location.href;
        !            41:       this.document.submission.submit();
1.1       albertel   42:    }
                     43: }
                     44:       </script>
                     45: 
                     46: 
1.2     ! albertel   47:       <a href="javascript:gopost('/adm/grades','submission')">View Submission</a><br></br>
        !            48:       <form name="submission" action="/adm/logout" method="post" target="loncapaclient">
        !            49: 	&nbsp;&nbsp;Student: <input type="text" name="student" value=""></input>
        !            50: 	<input type="hidden" name="command" value="none"></input>
        !            51: 	<input type="hidden" name="url" value="none"></input>
        !            52:       </form>
1.1       albertel   53:     </body>
                     54:   </html>

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