From: Sam H. v. a. <we...@ma...> - 2005-12-19 03:40:10
|
Log Message: ----------- moved template files into theme directories Removed Files: ------------- webwork2/conf/templates: gw.template math-gateway.template math-system.template test.template ur.template Revision Data ------------- --- conf/templates/ur.template +++ /dev/null @@ -1,144 +0,0 @@ -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<!-- -########################################################################= ######## -# WeBWorK Online Homework Delivery System -# Copyright =A9 2000-2003 The WeBWorK Project, http://openwebwork.sf.net= / -# $CVSHeader: webwork2/conf/templates/ur.template,v 1.48 2005/12/19 00:1= 2:53 sh002i Exp $ -#=20 -# This program is free software; you can redistribute it and/or modify i= t under -# the terms of either: (a) the GNU General Public License as published b= y the -# Free Software Foundation; either version 2, or (at your option) any la= ter -# version, or (b) the "Artistic License" which comes with this package. -#=20 -# This program is distributed in the hope that it will be useful, but WI= THOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or = FITNESS -# FOR A PARTICULAR PURPOSE. See either the GNU General Public License o= r the -# Artistic License for more details. -########################################################################= ######## ---> - - -<html xmlns=3D"http://www.w3.org/1999/xhtml" lang=3D"en-US"> -<head> -<title><!--#path style=3D"text" text=3D" : " textonly=3D"1"--></title> -<!--#head--> -<style type=3D"text/css" media=3D"all">@import "<!--#url type=3D"webwork= " name=3D"stylesheet"-->";</style> -</head> -<body> -<table width=3D"100%" cellpadding=3D"10" cellspacing=3D"0" border=3D"0"> - <tr valign=3D"top"> - <td align=3D"left" valign=3D"top" rowspan=3D"2" class=3D"LeftPanel"> - <a href=3D"http://webwork.math.rochester.edu"> - <img src=3D"/webwork2_files/images/webwork_square.gif" alt=3D"WeBWorK= " height=3D"64" width=3D"66" /> - </a> - <span style=3D"position:relative;top: -44px; right: -10px"> - <!--#help-->=20 - </span> - <br /> - =09 - <!-- - <hr /> - <div class=3D"Logo"> =09 - <a href=3D"http://webwork3.math.rochester.edu/bugzilla/enter_bug.cgi= ?product=3DWeBWorK%20mod_perl" target=3D"bugzillaPage">Report bugs</a> - </div> - --> - <!--#if loggedin=3D"1"--> - <hr /> - <div class=3D"Links"> - <!--#links--> - </div> - <!--#if can=3D"links"--> - <!--#if can=3D"siblings"--> - <hr /> - <!--#endif--> - <!--#endif--> - <div class=3D"Siblings"> - <!--#siblings--> - </div> - <!--#if can=3D"options"--> - <div class=3D"Options"> - <!--#options--> - </div> - <!--#endif--> - <!--#endif--> - </td> - <!--#if can=3D"info"--> - <td class=3D"TopPanel" colspan=3D"2"> - <!--#else--> - <td class=3D"TopPanel" > - <!--#endif--> - <table cellpadding=3D"0" cellspacing=3D"0" border=3D"0" width=3D"100%= "> - <tr valign=3D"top"> - <td class=3D"TopPanel"> - <!--#if can=3D"path"--> - <span class=3D"Path"><!--#path style=3D"text" image=3D"/webwork2_f= iles/images/right_arrow.png" text=3D" > "--></span> - <!--#endif--> - </td> - <td class=3D"TopPanel" align=3D"right" nowrap> - <!--#if can=3D"loginstatus"--> - <span class=3D"LoginStatus"><!--#loginstatus--></span> - <!--#endif--> - </td> - </tr> - </table> - </td> - </tr> - <tr valign=3D"top"> - <!--#if warnings=3D"1"--> - <td class=3D"ContentPanelError" bgcolor=3D"#ffcccc"> - <!--#else--> - <td class=3D"ContentPanel" bgcolor=3D"#ffffff"> - <!--#endif-->=09 - <!--#if can=3D"nav"--> - <div class=3D"Nav"> - <!--#nav style=3D"images" imageprefix=3D"/webwork2_files/images/nav"= imagesuffix=3D".gif" separator=3D" "--> - </div> - <!--#endif--> - <!--#if can=3D"title"--> - <div class=3D"Title"> - <!--#title--> - </div> - <!--#endif--> - <!--#if can=3D"message"--> - <div class=3D"Message"> - <!--#message--> - </div> - <!--#endif--> - - <!--#if can=3D"body"--> - <div class=3D"Body"> - <!--#body--> - </div> - <!--#endif--> - <!--#if warnings=3D"1"--> - <hr> - <div class=3D"Warnings"> - <!--#warnings--> - </div> - <!--#endif--> - <!--#if can=3D"message"--> - <div class=3D"Message"> - <!--#message--> - </div> - <!--#endif--> - </td> - <!--#if can=3D"info"--> - <td class=3D"InfoPanel"> - <div class=3D"Info"> - <!--#info--> - </div> - </td> - <!--#endif--> - </tr> - <tr> - <td class =3D "Timestamp", colspan=3D3> - Updated: <!--#timestamp--> - </td> - </tr> -</table> -</body> - -</html> --- conf/templates/test.template +++ /dev/null @@ -1,99 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<!-- -########################################################################= ######## -# WeBWorK Online Homework Delivery System -# Copyright =A9 2000-2003 The WeBWorK Project, http://openwebwork.sf.net= / -# $CVSHeader: webwork2/conf/templates/test.template,v 1.6 2005/12/18 22:= 38:55 sh002i Exp $ -#=20 -# This program is free software; you can redistribute it and/or modify i= t under -# the terms of either: (a) the GNU General Public License as published b= y the -# Free Software Foundation; either version 2, or (at your option) any la= ter -# version, or (b) the "Artistic License" which comes with this package. -#=20 -# This program is distributed in the hope that it will be useful, but WI= THOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or = FITNESS -# FOR A PARTICULAR PURPOSE. See either the GNU General Public License o= r the -# Artistic License for more details. -########################################################################= ######## ---> - -<html xmlns=3D"http://www.w3.org/1999/xhtml" lang=3D"en-US"> -<head> -<title>WeBWorK Test Template</title> -<style type=3D"text/css"> -div.test_box { border: 1px solid black } -</style> -<!--#head--> -</head> -<body> - -<h1>help</h1> -<div class=3D"test_box"> -<!--#help--> -</div> - -<h1>links</h1> -<div class=3D"test_box"> -<!--#links--> -</div> - -<h1>siblings</h1> -<div class=3D"test_box"> -<!--#siblings--> -</div> - -<h1>options</h1> -<div class=3D"test_box"> -<!--#options--> -</div> - -<h1>path</h1> -<div class=3D"test_box"> -<!--#path style=3D"text" text=3D" > "--> -</div> - -<h1>loginstatus</h1> -<div class=3D"test_box"> -<!--#loginstatus--> -</div> - -<h1>nav</h1> -<div class=3D"test_box"> -<!--#nav style=3D"images" imageprefix=3D"/webwork2_files/images/nav" ima= gesuffix=3D".gif" separator=3D" "--> -</div> - -<h1>title</h1> -<div class=3D"test_box"> -<!--#title--> -</div> - -<h1>message</h1> -<p>used for addmessage/addgoodmessae/addbadmessage... displayed at top a= nd bottom of page in ur.template.</p> -<div class=3D"test_box"> -<!--#message--> -</div> - -<h1>body</h1> -<div class=3D"test_box"> -<!--#body--> -</div> - -<h1>warnings</h1> -<div class=3D"test_box"> -<!--#warnings--> -</div> - -<h1>info</h1> -<div class=3D"test_box"> -<!--#info--> -</div> - -<h1>timestamp</h1> -<div class=3D"test_box"> -<!--#timestamp--> -</div> - -</body> -</html> --- conf/templates/math-gateway.template +++ /dev/null @@ -1,171 +0,0 @@ -=EF=BB=BF<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns=3D"http://www.w3.org/1999/xhtml" xml:lang=3D"en" lang=3D"en"= > -<head> -<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8"= /> -<link rel=3D"stylesheet" type=3D"text/css" media=3D"All" href=3D"<!--#ur= l type=3D"webwork" name=3D"htdocs"-->/css/math.css"/> -<!-- [gateway] since the left-side menus are gone, don't indent the main= content area --> -<style type=3D"text/css"> - #breadcrumbs { margin-left: .5em } - #content { margin-left: .5em } - #footer { margin-left: .5em } -=09 -</style> -<title><!--#path style=3D"text" text=3D" : " textonly=3D"1"--></title> -<!--#head--> -<script language=3D"javascript" type=3D"text/javascript"> -function jumpTo(ref) { // scrolling javascript function - if ( ref ) { - var pn =3D ref - 1; // we start anchors at 1, not zero - if ( navigator.appName =3D=3D "Netscape" &&=20 - parseFloat(navigator.appVersion) < 5 ) { - var xpos =3D document.anchors[pn].x; - var ypos =3D document.anchors[pn].y; - } else { - var xpos =3D document.anchors[pn].offsetLeft; - var ypos =3D document.anchors[pn].offsetTop; - } - if ( window.scrollTo =3D=3D null ) { // cover for anyone - window.scroll(xpos,ypos); // lacking js1.2 - } else { - window.scrollTo(xpos,ypos); - } - } - return false; // prevent link from being followed -} - -// timer for gateway=20 -var theTime =3D -1; // -1 before we've initialized -var alerted =3D -1; // -1 =3D no alert set; 1 =3D 1st alert set - // this shouldn't really be needed - -function runtimer() { -// aesthetically this is displeasing: we're assuming that the=20 -// ContentGenerator will put the appropriate form elements in that -// page for us to manipulate. even with error checking, it seems sort -// of odd. - if ( document.gwtimer =3D=3D null ) { // no timer - return; - } else { - var tm =3D document.gwtimer.gwtime; - var st =3D document.gwtimer.gwpagetimeleft.value; - - if ( st =3D=3D 0 ) { // no time limit - return; - } else { - if ( theTime =3D=3D -1 ) { - theTime =3D st; - tm.value =3D toMinSec(theTime); - setTimeout("runtimer()", 1000); // 1000 ms =3D 1 sec - } else if ( theTime =3D=3D 0 && alerted !=3D 3 ) { - alert("* You are out of time! *"); - alerted =3D 3; - } else if ( alerted !=3D 3 ) { - theTime--; - tm.value =3D toMinSec(theTime); - setTimeout("runtimer()", 1000); // 1000 ms =3D 1 sec - if ( theTime =3D=3D 35 && alerted !=3D 2 ) { // time is in seconds - alert("* You have only about 30 seconds to complete " + - "this assignment. Press Grade very soon! *\n" + - "* The timer stops while this alert box is open. *"); - alerted =3D 2; - theTime -=3D 5; - } else if ( theTime =3D=3D 75 && alerted !=3D 1) { - alert("* You have only about a minute left " + - "to complete this assignment! *\n" + - "* The timer stops while this alert box is open. *"); - alerted =3D 1; - theTime -=3D 5; - } - } - } - } -} -function toMinSec(t) { -// convert to min:sec - mn =3D Math.floor(t/60); - sc =3D t - 60*mn; - if ( mn < 10 && mn > -1 ) { - mn =3D "0" + mn; - } - if ( sc < 10 ) { - sc =3D "0" + sc; - } - return mn + ":" + sc; -} -</script> -</head> -<body bgcolor=3D"white"> - -<div id=3D"masthead"> - <div id=3D"loginstatus"> - <!--#loginstatus--> - </div> - <div id=3D"logo"> - <img src=3D"<!--#url type=3D"webwork" name=3D"htdocs"-->/images/webwor= k_rectangle.png" alt=3D"WeBWorK" height=3D"51" width=3D"267" /> - </div> -</div> -<hr class=3D"for-broken-browsers"/> -<div id=3D"big-wrapper"> - <div id=3D"breadcrumbs"> - <!--#path style=3D"text" text=3D" =E2=86=92 "--> - </div> - <div id=3D"content"> - =09 - <!--#if can=3D"info"--> - <div id=3D"page-info"> - <div class=3D"info-box" id=3D"fisheye"> - <h2>Info</h2> - <!--#info--> - </div> - </div> - <!--#endif--> - <!-- [gateway] removed nav button to go up --> - <!--#if can=3D"title"--> - <h1><!--#title--></h1> - <!--#endif--> - <!--#if can=3D"message"--> - <div class=3D"Message"> - <!--#message--> - </div> - <!--#endif--> - - <!--#if can=3D"body"--> - <div class=3D"Body"> - <!--#body--> - </div> - <!--#endif--> - <!--#if warnings=3D"1"--> - <hr> - <div class=3D"Warnings"> - <!--#warnings--> - </div> - <!--#endif--> - <!--#if can=3D"message"--> - <div class=3D"Message"> - <!--#message--> - </div> - <!--#endif--> - =09 - </div> <!-- content --> - <hr class=3D"for-broken-browsers"/> - <div id=3D"footer"> - <p id=3D"last-modified">Page generated at <!--#timestamp--></p> - <!--<div id=3D"feedback"> - FEEDBACK - </div>--> - <div id=3D"copyright"> - WeBWorK =C2=A9 2000-2005 <a href=3D"http://openwebwork.sf.net/">The W= eBWorK Project</a> - </div> - <!--<div id=3D"validate"> - VALIDATE - </div>--> - <!--<p class=3D"page-url"> - PAGE-URL (p) - </p>--> - </div> - <!-- [gateway] removed left sidebar --> -</div> <!-- big-wrapper --> - -</body> -</html> --- conf/templates/gw.template +++ /dev/null @@ -1,367 +0,0 @@ -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<!-- -########################################################################= ######## -# WeBWorK Online Homework Delivery System -# Copyright =A9 2000-2003 The WeBWorK Project, http://openwebwork.sf.net= / -# $CVSHeader: webwork2/conf/templates/gw.template,v 1.2 2005/07/14 13:15= :23 glarose Exp $ -#=20 -# This program is free software; you can redistribute it and/or modify i= t under -# the terms of either: (a) the GNU General Public License as published b= y the -# Free Software Foundation; either version 2, or (at your option) any la= ter -# version, or (b) the "Artistic License" which comes with this package. -#=20 -# This program is distributed in the hope that it will be useful, but WI= THOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or = FITNESS -# FOR A PARTICULAR PURPOSE. See either the GNU General Public License o= r the -# Artistic License for more details. -########################################################################= ######## ---> - -<html xmlns=3D"http://www.w3.org/1999/xhtml" lang=3D"en-US"> -<head> -<title><!--#path style=3D"text" text=3D" : " textonly=3D"1"--></title> -<!--#head--> -<style type=3D"text/css"> - -/********************/ -/* template classes */ -/********************/ - -body { margin: 0px; } - -/* left table cell, contains logo and menus */ -td.LeftPanel { background-color: #003366; color: white; white-space: now= rap; width: 1em; } -td.LeftPanel a:link, -td.LeftPanel a:visited { color: #FF9933; } - -div.Logo { } -div.Links { font-size: small; } -div.Siblings { font-size: small; } -div.Options { font-size: small; } - -/* top table cell, contains login message and path */ -td.TopPanel { background-color: #003366; color: white; height: 1; } -td.TopPanel a:link, -td.TopPanel a:visited { color: #FF9933; } - - -*.LoginStatus { text-align: right; font-size: small; position:absolute; = right: 0; } -td.Timestamp { text-align: left; font-size: small; font-style: italic= ; } - -*.Path { } - -/* main content panel, contains body */ -td.ContentPanel { background-color: white; color: black; } -td.ContentPanel a:link, -td.ContentPanel a:visited { color: blue; } -td.ContentPanel a:active { color: red; } - -/* contains info */ -td.InfoPanel { background-color: #DDDDDD; color: black; width: 15% } -td.InfoPanel a:link, -td.InfoPanel a:visited { color: blue; } -td.InfoPanel a:active { color: red; } - -div.Info { } -div.Nav { } -div.Title { font-size: 16pt; } -div.SubmitError { color: red; font-style: italic; } -div.Message { font-style: italic; } -div.Body { } -div.Warnings { } - -/* background colors for success and failure messages */ -div.ResultsWithoutError { background-color: #66ff99 } /* light green */ -div.ResultsWithError { background-color: #ffcccc } /* light red */ - -/* text colors for published and unpublished sets */ -font.Published { font-style: normal; font-weight: bold; color: #0000= 00; } /* black */ -font.Unpublished { font-style: italic; font-weight: normal; color: #aaaa= aa; } /* light grey */ - -/* text colors for Auditing, Current, and Dropped students */ -div.Audit { font-style: normal; color: black; } -div.Enrolled { font-weight: bold; color: black; } -div.Drop { font-style: italic; color: grey; } - -/*******************/ -/* general classes */ -/*******************/ - -p.emphasis { font-style:italic; } - -/************************/ -/* new standard classes */ -/************************/ - -/* tables used for laying out form fields shouldn't have a border */ -table.FormLayout { border: 0; } -table.FormLayout tr { vertical-align: top; } -table.FormLayout th.LeftHeader { text-align: right; white-space: nowrap;= } -table.FormLayout tr.ButtonRow { text-align: left; } -table.FormLayout tr.ButtonRowCenter { text-align: center; } - -/* for problems which are rendered by themselves, e.g., by Set Maker */ -div.RenderSolo { background-color: #E0E0E0; color: black; } - -/* minimal style for lists of links (generated by the links escape) */ -ul.LinksMenu { list-style: none; margin-left: 0; padding-left: 0; } -ul.LinksMenu ul { list-style: none; margin-left: 0.5em; padding-left: 0;= } - -/*************************/ -/* WeBWorK::HTML widgets */ -/*************************/ - -/* WeBWorK::HTML::ScrollingRecordList */ -div.ScrollingRecordList { padding: 1em; white-space: nowrap; border: thi= n solid gray; } -div.ScrollingRecordList select.ScrollingRecordList { width: 99%; } - -/***********************************************************************= **/ -/* classes used in Problem.pm (replace these with new standard classes?)= */ -/***********************************************************************= **/ - -table.attemptResults { - border-style: outset;=20 - border-width: 1px;=20 - margin: 0px 10pt;=20 - border-spacing: 1px; -} -table.attemptResults td, -table.attemptResults th { - border-style: inset;=20 - border-width: 1px;=20 - text-align: center;=20 - width: 15ex; - background-color: #DDDDDD; -} -div.problemHeader { float: left; } -div.problem { clear: both; background-color: #E0E0E0; color: black; } -.parsehilight { background-color:yellow; } - -</style> - -<style type=3D"text/css"> -/******************/ -/* gateway styles */ -/******************/ - -div.gwMessage { background-color:#dddddd; color: black; } -div.gwTiming {=20 - background-color:#ddddff;=20 - color: black;=20 - margin-top: 10px; - margin-bottom: 0px; -} -div.gwWarning { background-color:#ffffdd; color: black; } - -span.resultsWithError { background-color: #ffcccc; color: black; } -span.resultsWithoutError { background-color: #66ff99; color: black; } -div.gwCorrect { background-color: #66ff99; color: black; } -div.gwIncorrect { background-color: #ff9999; color: black; } - -div.gwProblem { - clear: both;=20 - background-color: #E0E0E0;=20 - color: black; - padding: 3px; - border: solid black 1px; -} -div.gwSoln { -/* background-color: #e0e0ff; */ - background-color: transparent; - color: black; -/* padding: 2px; */, -/* border: dashed black 1px; */ -} -div.gwSoln b { color: navy; } - -p.gwPreview {=20 - font-size: smaller; - text-align: right;=20 - margin-top: 0px; - margin-bottom: 0px; -} - -table.gwAttemptResults { - border-width: 0px; -} -table.gwAttemptResults td.label {=20 - font-weight: bold;=20 - background-color: transparent; - color: navy; -} -table.gwAttemptResults td.output { - padding: 2px; - border: solid black 1px; - background-color: #eeeeee; -} - -</style> -<script language=3D"javascript" type=3D"text/javascript"> -function jumpTo(ref) { // scrolling javascript function - if ( ref ) { - var pn =3D ref - 1; // we start anchors at 1, not zero - if ( navigator.appName =3D=3D "Netscape" &&=20 - parseFloat(navigator.appVersion) < 5 ) { - var xpos =3D document.anchors[pn].x; - var ypos =3D document.anchors[pn].y; - } else { - var xpos =3D document.anchors[pn].offsetLeft; - var ypos =3D document.anchors[pn].offsetTop; - } - if ( window.scrollTo =3D=3D null ) { // cover for anyone - window.scroll(xpos,ypos); // lacking js1.2 - } else { - window.scrollTo(xpos,ypos); - } - } - return false; // prevent link from being followed -} - -// timer for gateway=20 -var theTime =3D -1; // -1 before we've initialized -var alerted =3D -1; // -1 =3D no alert set; 1 =3D 1st alert set - // this shouldn't really be needed - -function runtimer() { -// aesthetically this is displeasing: we're assuming that the=20 -// ContentGenerator will put the appropriate form elements in that -// page for us to manipulate. even with error checking, it seems sort -// of odd. - if ( document.gwtimer =3D=3D null ) { // no timer - return; - } else { - var tm =3D document.gwtimer.gwtime; - var st =3D document.gwtimer.gwpagetimeleft.value; - - if ( st =3D=3D 0 ) { // no time limit - return; - } else { - if ( theTime =3D=3D -1 ) { - theTime =3D st; - tm.value =3D toMinSec(theTime); - setTimeout("runtimer()", 1000); // 1000 ms =3D 1 sec - } else if ( theTime =3D=3D 0 && alerted !=3D 3 ) { - alert("* You are out of time! *"); - alerted =3D 3; - } else if ( alerted !=3D 3 ) { - theTime--; - tm.value =3D toMinSec(theTime); - setTimeout("runtimer()", 1000); // 1000 ms =3D 1 sec - if ( theTime =3D=3D 35 && alerted !=3D 2 ) { // time is in seconds - alert("* You have only about 30 seconds to complete " + - "this assignment. Press Grade very soon! *\n" + - "* The timer stops while this alert box is open. *"); - alerted =3D 2; - theTime -=3D 5; - } else if ( theTime =3D=3D 75 && alerted !=3D 1) { - alert("* You have only about a minute left " + - "to complete this assignment! *\n" + - "* The timer stops while this alert box is open. *"); - alerted =3D 1; - theTime -=3D 5; - } - } - } - } -} -function toMinSec(t) { -// convert to min:sec - mn =3D Math.floor(t/60); - sc =3D t - 60*mn; - if ( mn < 10 && mn > -1 ) { - mn =3D "0" + mn; - } - if ( sc < 10 ) { - sc =3D "0" + sc; - } - return mn + ":" + sc; -} -</script> -</head> -<body onload=3D"runtimer();"> -<table width=3D"100%" cellpadding=3D"10" cellspacing=3D"0" border=3D"0"> - <tr valign=3D"top"> -<!-- removed left sidebar --> - <!--#if can=3D"info"--> - <td class=3D"TopPanel" colspan=3D"2"> - <!--#else--> - <td class=3D"TopPanel" > - <!--#endif--> - <div style=3D"position:relative; width:100%;"> - <!--#if can=3D"path"--> - <span class=3D"Path"> - <!--#path style=3D"text" image=3D"/webwork2_files/images/right_arro= w.png" text=3D" > "--> - </span> - <!--#endif--> - =09 - <!--#if loggedin=3D"1"--> - <!--#if can=3D"loginstatus"--> - =09 - <span class=3D"LoginStatus"> =09 - =09 - <!--#loginstatus--> - </span> - <!--#endif--> - <!--#endif--> - </div> - </td> - </tr> - <tr valign=3D"top"> - <!--#if warnings=3D"1"--> - <td class=3D"ContentPanelError" bgcolor=3D"#ffcccc"> - <!--#else--> - <td class=3D"ContentPanel" bgcolor=3D"#ffffff"> - <!--#endif-->=09 -<!-- removed nav button to go up --> - <!--#if can=3D"title"--> - <div class=3D"Title"> - <!--#title--> - </div> - <!--#endif--> - <!--#if can=3D"message"--> - <div class=3D"Message"> - <!--#message--> - </div> - <!--#endif--> - - <!--#if can=3D"submiterror"--> - <div class=3D"SubmitError"> - <!--#submiterror--> - </div> - <!--#endif--> - <!--#if can=3D"body"--> - <div class=3D"Body"> - <!--#body--> - </div> - <!--#endif--> - <!--#if warnings=3D"1"--> - <hr> - <div class=3D"Warnings"> - <!--#warnings--> - </div> - <!--#endif--> - <!--#if can=3D"message"--> - <div class=3D"Message"> - <!--#message--> - </div> - <!--#endif--> - </td> - <!--#if can=3D"info"--> - <td class=3D"InfoPanel"> - <div class=3D"Info"> - <!--#info--> - </div> - </td> - <!--#endif--> - </tr> - <tr> - <td class =3D "Timestamp", colspan=3D3> - Updated: <!--#timestamp--> - </td> - </tr> -</table> -</body> -</html> --- conf/templates/math-system.template +++ /dev/null @@ -1,106 +0,0 @@ -=EF=BB=BF<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns=3D"http://www.w3.org/1999/xhtml" xml:lang=3D"en" lang=3D"en"= > -<head> -<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8"= /> -<link rel=3D"stylesheet" type=3D"text/css" media=3D"All" href=3D"<!--#ur= l type=3D"webwork" name=3D"htdocs"-->/css/math.css"/> -<title><!--#path style=3D"text" text=3D" : " textonly=3D"1"--></title> -<!--#head--> -</head> -<body bgcolor=3D"white"> - -<div id=3D"masthead"> - <div id=3D"loginstatus"> - <!--#loginstatus--> - </div> - <div id=3D"logo"> - <img src=3D"<!--#url type=3D"webwork" name=3D"htdocs"-->/images/webwor= k_rectangle.png" alt=3D"WeBWorK" height=3D"51" width=3D"267" /> - </div> -</div> -<hr class=3D"for-broken-browsers"/> -<div id=3D"big-wrapper"> - <div id=3D"breadcrumbs"> - <!--#path style=3D"text" text=3D" =E2=86=92 "--> - </div> - <div id=3D"content"> - =09 - <!--#if can=3D"info"--> - <div id=3D"page-info"> - <div class=3D"info-box" id=3D"fisheye"> - <h2>Info</h2> - <!--#info--> - </div> - </div> - <!--#endif--> - <!--#if can=3D"nav"--> - <div class=3D"Nav"> - <!--#nav style=3D"images" imageprefix=3D"/webwork2_files/images/nav" = imagesuffix=3D".gif" separator=3D" "--> - </div> - <!--#endif--> - <!--#if can=3D"title"--> - <h1><!--#title--></h1> - <!--#endif--> - <!--#if can=3D"message"--> - <div class=3D"Message"> - <!--#message--> - </div> - <!--#endif--> - - <!--#if can=3D"body"--> - <div class=3D"Body"> - <!--#body--> - </div> - <!--#endif--> - <!--#if warnings=3D"1"--> - <hr> - <div class=3D"Warnings"> - <!--#warnings--> - </div> - <!--#endif--> - <!--#if can=3D"message"--> - <div class=3D"Message"> - <!--#message--> - </div> - <!--#endif--> - =09 - </div> <!-- content --> - <hr class=3D"for-broken-browsers"/> - <div id=3D"footer"> - <p id=3D"last-modified">Page generated at <!--#timestamp--></p> - <!--<div id=3D"feedback"> - FEEDBACK - </div>--> - <div id=3D"copyright"> - WeBWorK =C2=A9 2000-2005 <a href=3D"http://openwebwork.sf.net/">The W= eBWorK Project</a> - </div> - <!--<div id=3D"validate"> - VALIDATE - </div>--> - <!--<p class=3D"page-url"> - PAGE-URL (p) - </p>--> - </div> - <div id=3D"site-navigation"> - <!--#if can=3D"links"--> - <div class=3D"info-box" id=3D"fisheye"> - <h2>Main Menu</h2> - <!--#links--> - </div> - <!--#endif--> - <!--#if can=3D"siblings"--> - <div class=3D"info-box" id=3D"fisheye"> - <h2>Siblings</h2> - <!--#siblings--> - </div> - <!--#endif--> - <!--#if can=3D"options"--> - <div class=3D"info-box" id=3D"fisheye"> - <h2>Display Options</h2> - <!--#options--> - </div> - <!--#endif--> - </div> -</div> <!-- big-wrapper --> - -</body> -</html> |
From: Sam H. v. a. <we...@ma...> - 2005-12-19 03:40:41
|
Log Message: ----------- moved template files into theme directories Added Files: ----------- webwork2/conf/templates/math: gateway.template system.template webwork2/conf/templates/test: system.template webwork2/conf/templates/ur: gateway.template system.template Revision Data ------------- --- /dev/null +++ conf/templates/test/system.template @@ -0,0 +1,99 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<!-- +########################################################################= ######## +# WeBWorK Online Homework Delivery System +# Copyright =A9 2000-2003 The WeBWorK Project, http://openwebwork.sf.net= / +# $CVSHeader: webwork2/conf/templates/test/system.template,v 1.1 2005/12= /19 03:37:32 sh002i Exp $ +#=20 +# This program is free software; you can redistribute it and/or modify i= t under +# the terms of either: (a) the GNU General Public License as published b= y the +# Free Software Foundation; either version 2, or (at your option) any la= ter +# version, or (b) the "Artistic License" which comes with this package. +#=20 +# This program is distributed in the hope that it will be useful, but WI= THOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or = FITNESS +# FOR A PARTICULAR PURPOSE. See either the GNU General Public License o= r the +# Artistic License for more details. +########################################################################= ######## +--> + +<html xmlns=3D"http://www.w3.org/1999/xhtml" lang=3D"en-US"> +<head> +<title>WeBWorK Test Template</title> +<style type=3D"text/css"> +div.test_box { border: 1px solid black } +</style> +<!--#head--> +</head> +<body> + +<h1>help</h1> +<div class=3D"test_box"> +<!--#help--> +</div> + +<h1>links</h1> +<div class=3D"test_box"> +<!--#links--> +</div> + +<h1>siblings</h1> +<div class=3D"test_box"> +<!--#siblings--> +</div> + +<h1>options</h1> +<div class=3D"test_box"> +<!--#options--> +</div> + +<h1>path</h1> +<div class=3D"test_box"> +<!--#path style=3D"text" text=3D" > "--> +</div> + +<h1>loginstatus</h1> +<div class=3D"test_box"> +<!--#loginstatus--> +</div> + +<h1>nav</h1> +<div class=3D"test_box"> +<!--#nav style=3D"images" imageprefix=3D"/webwork2_files/images/nav" ima= gesuffix=3D".gif" separator=3D" "--> +</div> + +<h1>title</h1> +<div class=3D"test_box"> +<!--#title--> +</div> + +<h1>message</h1> +<p>used for addmessage/addgoodmessae/addbadmessage... displayed at top a= nd bottom of page in ur.template.</p> +<div class=3D"test_box"> +<!--#message--> +</div> + +<h1>body</h1> +<div class=3D"test_box"> +<!--#body--> +</div> + +<h1>warnings</h1> +<div class=3D"test_box"> +<!--#warnings--> +</div> + +<h1>info</h1> +<div class=3D"test_box"> +<!--#info--> +</div> + +<h1>timestamp</h1> +<div class=3D"test_box"> +<!--#timestamp--> +</div> + +</body> +</html> --- /dev/null +++ conf/templates/math/gateway.template @@ -0,0 +1,171 @@ +=EF=BB=BF<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns=3D"http://www.w3.org/1999/xhtml" xml:lang=3D"en" lang=3D"en"= > +<head> +<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8"= /> +<link rel=3D"stylesheet" type=3D"text/css" media=3D"All" href=3D"<!--#ur= l type=3D"webwork" name=3D"htdocs"-->/css/math.css"/> +<!-- [gateway] since the left-side menus are gone, don't indent the main= content area --> +<style type=3D"text/css"> + #breadcrumbs { margin-left: .5em } + #content { margin-left: .5em } + #footer { margin-left: .5em } +=09 +</style> +<title><!--#path style=3D"text" text=3D" : " textonly=3D"1"--></title> +<!--#head--> +<script language=3D"javascript" type=3D"text/javascript"> +function jumpTo(ref) { // scrolling javascript function + if ( ref ) { + var pn =3D ref - 1; // we start anchors at 1, not zero + if ( navigator.appName =3D=3D "Netscape" &&=20 + parseFloat(navigator.appVersion) < 5 ) { + var xpos =3D document.anchors[pn].x; + var ypos =3D document.anchors[pn].y; + } else { + var xpos =3D document.anchors[pn].offsetLeft; + var ypos =3D document.anchors[pn].offsetTop; + } + if ( window.scrollTo =3D=3D null ) { // cover for anyone + window.scroll(xpos,ypos); // lacking js1.2 + } else { + window.scrollTo(xpos,ypos); + } + } + return false; // prevent link from being followed +} + +// timer for gateway=20 +var theTime =3D -1; // -1 before we've initialized +var alerted =3D -1; // -1 =3D no alert set; 1 =3D 1st alert set + // this shouldn't really be needed + +function runtimer() { +// aesthetically this is displeasing: we're assuming that the=20 +// ContentGenerator will put the appropriate form elements in that +// page for us to manipulate. even with error checking, it seems sort +// of odd. + if ( document.gwtimer =3D=3D null ) { // no timer + return; + } else { + var tm =3D document.gwtimer.gwtime; + var st =3D document.gwtimer.gwpagetimeleft.value; + + if ( st =3D=3D 0 ) { // no time limit + return; + } else { + if ( theTime =3D=3D -1 ) { + theTime =3D st; + tm.value =3D toMinSec(theTime); + setTimeout("runtimer()", 1000); // 1000 ms =3D 1 sec + } else if ( theTime =3D=3D 0 && alerted !=3D 3 ) { + alert("* You are out of time! *"); + alerted =3D 3; + } else if ( alerted !=3D 3 ) { + theTime--; + tm.value =3D toMinSec(theTime); + setTimeout("runtimer()", 1000); // 1000 ms =3D 1 sec + if ( theTime =3D=3D 35 && alerted !=3D 2 ) { // time is in seconds + alert("* You have only about 30 seconds to complete " + + "this assignment. Press Grade very soon! *\n" + + "* The timer stops while this alert box is open. *"); + alerted =3D 2; + theTime -=3D 5; + } else if ( theTime =3D=3D 75 && alerted !=3D 1) { + alert("* You have only about a minute left " + + "to complete this assignment! *\n" + + "* The timer stops while this alert box is open. *"); + alerted =3D 1; + theTime -=3D 5; + } + } + } + } +} +function toMinSec(t) { +// convert to min:sec + mn =3D Math.floor(t/60); + sc =3D t - 60*mn; + if ( mn < 10 && mn > -1 ) { + mn =3D "0" + mn; + } + if ( sc < 10 ) { + sc =3D "0" + sc; + } + return mn + ":" + sc; +} +</script> +</head> +<body bgcolor=3D"white"> + +<div id=3D"masthead"> + <div id=3D"loginstatus"> + <!--#loginstatus--> + </div> + <div id=3D"logo"> + <img src=3D"<!--#url type=3D"webwork" name=3D"htdocs"-->/images/webwor= k_rectangle.png" alt=3D"WeBWorK" height=3D"51" width=3D"267" /> + </div> +</div> +<hr class=3D"for-broken-browsers"/> +<div id=3D"big-wrapper"> + <div id=3D"breadcrumbs"> + <!--#path style=3D"text" text=3D" =E2=86=92 "--> + </div> + <div id=3D"content"> + =09 + <!--#if can=3D"info"--> + <div id=3D"page-info"> + <div class=3D"info-box" id=3D"fisheye"> + <h2>Info</h2> + <!--#info--> + </div> + </div> + <!--#endif--> + <!-- [gateway] removed nav button to go up --> + <!--#if can=3D"title"--> + <h1><!--#title--></h1> + <!--#endif--> + <!--#if can=3D"message"--> + <div class=3D"Message"> + <!--#message--> + </div> + <!--#endif--> + + <!--#if can=3D"body"--> + <div class=3D"Body"> + <!--#body--> + </div> + <!--#endif--> + <!--#if warnings=3D"1"--> + <hr> + <div class=3D"Warnings"> + <!--#warnings--> + </div> + <!--#endif--> + <!--#if can=3D"message"--> + <div class=3D"Message"> + <!--#message--> + </div> + <!--#endif--> + =09 + </div> <!-- content --> + <hr class=3D"for-broken-browsers"/> + <div id=3D"footer"> + <p id=3D"last-modified">Page generated at <!--#timestamp--></p> + <!--<div id=3D"feedback"> + FEEDBACK + </div>--> + <div id=3D"copyright"> + WeBWorK =C2=A9 2000-2005 <a href=3D"http://openwebwork.sf.net/">The W= eBWorK Project</a> + </div> + <!--<div id=3D"validate"> + VALIDATE + </div>--> + <!--<p class=3D"page-url"> + PAGE-URL (p) + </p>--> + </div> + <!-- [gateway] removed left sidebar --> +</div> <!-- big-wrapper --> + +</body> +</html> --- /dev/null +++ conf/templates/math/system.template @@ -0,0 +1,106 @@ +=EF=BB=BF<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns=3D"http://www.w3.org/1999/xhtml" xml:lang=3D"en" lang=3D"en"= > +<head> +<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8"= /> +<link rel=3D"stylesheet" type=3D"text/css" media=3D"All" href=3D"<!--#ur= l type=3D"webwork" name=3D"htdocs"-->/css/math.css"/> +<title><!--#path style=3D"text" text=3D" : " textonly=3D"1"--></title> +<!--#head--> +</head> +<body bgcolor=3D"white"> + +<div id=3D"masthead"> + <div id=3D"loginstatus"> + <!--#loginstatus--> + </div> + <div id=3D"logo"> + <img src=3D"<!--#url type=3D"webwork" name=3D"htdocs"-->/images/webwor= k_rectangle.png" alt=3D"WeBWorK" height=3D"51" width=3D"267" /> + </div> +</div> +<hr class=3D"for-broken-browsers"/> +<div id=3D"big-wrapper"> + <div id=3D"breadcrumbs"> + <!--#path style=3D"text" text=3D" =E2=86=92 "--> + </div> + <div id=3D"content"> + =09 + <!--#if can=3D"info"--> + <div id=3D"page-info"> + <div class=3D"info-box" id=3D"fisheye"> + <h2>Info</h2> + <!--#info--> + </div> + </div> + <!--#endif--> + <!--#if can=3D"nav"--> + <div class=3D"Nav"> + <!--#nav style=3D"images" imageprefix=3D"/webwork2_files/images/nav" = imagesuffix=3D".gif" separator=3D" "--> + </div> + <!--#endif--> + <!--#if can=3D"title"--> + <h1><!--#title--></h1> + <!--#endif--> + <!--#if can=3D"message"--> + <div class=3D"Message"> + <!--#message--> + </div> + <!--#endif--> + + <!--#if can=3D"body"--> + <div class=3D"Body"> + <!--#body--> + </div> + <!--#endif--> + <!--#if warnings=3D"1"--> + <hr> + <div class=3D"Warnings"> + <!--#warnings--> + </div> + <!--#endif--> + <!--#if can=3D"message"--> + <div class=3D"Message"> + <!--#message--> + </div> + <!--#endif--> + =09 + </div> <!-- content --> + <hr class=3D"for-broken-browsers"/> + <div id=3D"footer"> + <p id=3D"last-modified">Page generated at <!--#timestamp--></p> + <!--<div id=3D"feedback"> + FEEDBACK + </div>--> + <div id=3D"copyright"> + WeBWorK =C2=A9 2000-2005 <a href=3D"http://openwebwork.sf.net/">The W= eBWorK Project</a> + </div> + <!--<div id=3D"validate"> + VALIDATE + </div>--> + <!--<p class=3D"page-url"> + PAGE-URL (p) + </p>--> + </div> + <div id=3D"site-navigation"> + <!--#if can=3D"links"--> + <div class=3D"info-box" id=3D"fisheye"> + <h2>Main Menu</h2> + <!--#links--> + </div> + <!--#endif--> + <!--#if can=3D"siblings"--> + <div class=3D"info-box" id=3D"fisheye"> + <h2>Siblings</h2> + <!--#siblings--> + </div> + <!--#endif--> + <!--#if can=3D"options"--> + <div class=3D"info-box" id=3D"fisheye"> + <h2>Display Options</h2> + <!--#options--> + </div> + <!--#endif--> + </div> +</div> <!-- big-wrapper --> + +</body> +</html> --- /dev/null +++ conf/templates/ur/gateway.template @@ -0,0 +1,367 @@ +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<!-- +########################################################################= ######## +# WeBWorK Online Homework Delivery System +# Copyright =A9 2000-2003 The WeBWorK Project, http://openwebwork.sf.net= / +# $CVSHeader: webwork2/conf/templates/ur/gateway.template,v 1.1 2005/12/= 19 03:37:33 sh002i Exp $ +#=20 +# This program is free software; you can redistribute it and/or modify i= t under +# the terms of either: (a) the GNU General Public License as published b= y the +# Free Software Foundation; either version 2, or (at your option) any la= ter +# version, or (b) the "Artistic License" which comes with this package. +#=20 +# This program is distributed in the hope that it will be useful, but WI= THOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or = FITNESS +# FOR A PARTICULAR PURPOSE. See either the GNU General Public License o= r the +# Artistic License for more details. +########################################################################= ######## +--> + +<html xmlns=3D"http://www.w3.org/1999/xhtml" lang=3D"en-US"> +<head> +<title><!--#path style=3D"text" text=3D" : " textonly=3D"1"--></title> +<!--#head--> +<style type=3D"text/css"> + +/********************/ +/* template classes */ +/********************/ + +body { margin: 0px; } + +/* left table cell, contains logo and menus */ +td.LeftPanel { background-color: #003366; color: white; white-space: now= rap; width: 1em; } +td.LeftPanel a:link, +td.LeftPanel a:visited { color: #FF9933; } + +div.Logo { } +div.Links { font-size: small; } +div.Siblings { font-size: small; } +div.Options { font-size: small; } + +/* top table cell, contains login message and path */ +td.TopPanel { background-color: #003366; color: white; height: 1; } +td.TopPanel a:link, +td.TopPanel a:visited { color: #FF9933; } + + +*.LoginStatus { text-align: right; font-size: small; position:absolute; = right: 0; } +td.Timestamp { text-align: left; font-size: small; font-style: italic= ; } + +*.Path { } + +/* main content panel, contains body */ +td.ContentPanel { background-color: white; color: black; } +td.ContentPanel a:link, +td.ContentPanel a:visited { color: blue; } +td.ContentPanel a:active { color: red; } + +/* contains info */ +td.InfoPanel { background-color: #DDDDDD; color: black; width: 15% } +td.InfoPanel a:link, +td.InfoPanel a:visited { color: blue; } +td.InfoPanel a:active { color: red; } + +div.Info { } +div.Nav { } +div.Title { font-size: 16pt; } +div.SubmitError { color: red; font-style: italic; } +div.Message { font-style: italic; } +div.Body { } +div.Warnings { } + +/* background colors for success and failure messages */ +div.ResultsWithoutError { background-color: #66ff99 } /* light green */ +div.ResultsWithError { background-color: #ffcccc } /* light red */ + +/* text colors for published and unpublished sets */ +font.Published { font-style: normal; font-weight: bold; color: #0000= 00; } /* black */ +font.Unpublished { font-style: italic; font-weight: normal; color: #aaaa= aa; } /* light grey */ + +/* text colors for Auditing, Current, and Dropped students */ +div.Audit { font-style: normal; color: black; } +div.Enrolled { font-weight: bold; color: black; } +div.Drop { font-style: italic; color: grey; } + +/*******************/ +/* general classes */ +/*******************/ + +p.emphasis { font-style:italic; } + +/************************/ +/* new standard classes */ +/************************/ + +/* tables used for laying out form fields shouldn't have a border */ +table.FormLayout { border: 0; } +table.FormLayout tr { vertical-align: top; } +table.FormLayout th.LeftHeader { text-align: right; white-space: nowrap;= } +table.FormLayout tr.ButtonRow { text-align: left; } +table.FormLayout tr.ButtonRowCenter { text-align: center; } + +/* for problems which are rendered by themselves, e.g., by Set Maker */ +div.RenderSolo { background-color: #E0E0E0; color: black; } + +/* minimal style for lists of links (generated by the links escape) */ +ul.LinksMenu { list-style: none; margin-left: 0; padding-left: 0; } +ul.LinksMenu ul { list-style: none; margin-left: 0.5em; padding-left: 0;= } + +/*************************/ +/* WeBWorK::HTML widgets */ +/*************************/ + +/* WeBWorK::HTML::ScrollingRecordList */ +div.ScrollingRecordList { padding: 1em; white-space: nowrap; border: thi= n solid gray; } +div.ScrollingRecordList select.ScrollingRecordList { width: 99%; } + +/***********************************************************************= **/ +/* classes used in Problem.pm (replace these with new standard classes?)= */ +/***********************************************************************= **/ + +table.attemptResults { + border-style: outset;=20 + border-width: 1px;=20 + margin: 0px 10pt;=20 + border-spacing: 1px; +} +table.attemptResults td, +table.attemptResults th { + border-style: inset;=20 + border-width: 1px;=20 + text-align: center;=20 + width: 15ex; + background-color: #DDDDDD; +} +div.problemHeader { float: left; } +div.problem { clear: both; background-color: #E0E0E0; color: black; } +.parsehilight { background-color:yellow; } + +</style> + +<style type=3D"text/css"> +/******************/ +/* gateway styles */ +/******************/ + +div.gwMessage { background-color:#dddddd; color: black; } +div.gwTiming {=20 + background-color:#ddddff;=20 + color: black;=20 + margin-top: 10px; + margin-bottom: 0px; +} +div.gwWarning { background-color:#ffffdd; color: black; } + +span.resultsWithError { background-color: #ffcccc; color: black; } +span.resultsWithoutError { background-color: #66ff99; color: black; } +div.gwCorrect { background-color: #66ff99; color: black; } +div.gwIncorrect { background-color: #ff9999; color: black; } + +div.gwProblem { + clear: both;=20 + background-color: #E0E0E0;=20 + color: black; + padding: 3px; + border: solid black 1px; +} +div.gwSoln { +/* background-color: #e0e0ff; */ + background-color: transparent; + color: black; +/* padding: 2px; */, +/* border: dashed black 1px; */ +} +div.gwSoln b { color: navy; } + +p.gwPreview {=20 + font-size: smaller; + text-align: right;=20 + margin-top: 0px; + margin-bottom: 0px; +} + +table.gwAttemptResults { + border-width: 0px; +} +table.gwAttemptResults td.label {=20 + font-weight: bold;=20 + background-color: transparent; + color: navy; +} +table.gwAttemptResults td.output { + padding: 2px; + border: solid black 1px; + background-color: #eeeeee; +} + +</style> +<script language=3D"javascript" type=3D"text/javascript"> +function jumpTo(ref) { // scrolling javascript function + if ( ref ) { + var pn =3D ref - 1; // we start anchors at 1, not zero + if ( navigator.appName =3D=3D "Netscape" &&=20 + parseFloat(navigator.appVersion) < 5 ) { + var xpos =3D document.anchors[pn].x; + var ypos =3D document.anchors[pn].y; + } else { + var xpos =3D document.anchors[pn].offsetLeft; + var ypos =3D document.anchors[pn].offsetTop; + } + if ( window.scrollTo =3D=3D null ) { // cover for anyone + window.scroll(xpos,ypos); // lacking js1.2 + } else { + window.scrollTo(xpos,ypos); + } + } + return false; // prevent link from being followed +} + +// timer for gateway=20 +var theTime =3D -1; // -1 before we've initialized +var alerted =3D -1; // -1 =3D no alert set; 1 =3D 1st alert set + // this shouldn't really be needed + +function runtimer() { +// aesthetically this is displeasing: we're assuming that the=20 +// ContentGenerator will put the appropriate form elements in that +// page for us to manipulate. even with error checking, it seems sort +// of odd. + if ( document.gwtimer =3D=3D null ) { // no timer + return; + } else { + var tm =3D document.gwtimer.gwtime; + var st =3D document.gwtimer.gwpagetimeleft.value; + + if ( st =3D=3D 0 ) { // no time limit + return; + } else { + if ( theTime =3D=3D -1 ) { + theTime =3D st; + tm.value =3D toMinSec(theTime); + setTimeout("runtimer()", 1000); // 1000 ms =3D 1 sec + } else if ( theTime =3D=3D 0 && alerted !=3D 3 ) { + alert("* You are out of time! *"); + alerted =3D 3; + } else if ( alerted !=3D 3 ) { + theTime--; + tm.value =3D toMinSec(theTime); + setTimeout("runtimer()", 1000); // 1000 ms =3D 1 sec + if ( theTime =3D=3D 35 && alerted !=3D 2 ) { // time is in seconds + alert("* You have only about 30 seconds to complete " + + "this assignment. Press Grade very soon! *\n" + + "* The timer stops while this alert box is open. *"); + alerted =3D 2; + theTime -=3D 5; + } else if ( theTime =3D=3D 75 && alerted !=3D 1) { + alert("* You have only about a minute left " + + "to complete this assignment! *\n" + + "* The timer stops while this alert box is open. *"); + alerted =3D 1; + theTime -=3D 5; + } + } + } + } +} +function toMinSec(t) { +// convert to min:sec + mn =3D Math.floor(t/60); + sc =3D t - 60*mn; + if ( mn < 10 && mn > -1 ) { + mn =3D "0" + mn; + } + if ( sc < 10 ) { + sc =3D "0" + sc; + } + return mn + ":" + sc; +} +</script> +</head> +<body onload=3D"runtimer();"> +<table width=3D"100%" cellpadding=3D"10" cellspacing=3D"0" border=3D"0"> + <tr valign=3D"top"> +<!-- removed left sidebar --> + <!--#if can=3D"info"--> + <td class=3D"TopPanel" colspan=3D"2"> + <!--#else--> + <td class=3D"TopPanel" > + <!--#endif--> + <div style=3D"position:relative; width:100%;"> + <!--#if can=3D"path"--> + <span class=3D"Path"> + <!--#path style=3D"text" image=3D"/webwork2_files/images/right_arro= w.png" text=3D" > "--> + </span> + <!--#endif--> + =09 + <!--#if loggedin=3D"1"--> + <!--#if can=3D"loginstatus"--> + =09 + <span class=3D"LoginStatus"> =09 + =09 + <!--#loginstatus--> + </span> + <!--#endif--> + <!--#endif--> + </div> + </td> + </tr> + <tr valign=3D"top"> + <!--#if warnings=3D"1"--> + <td class=3D"ContentPanelError" bgcolor=3D"#ffcccc"> + <!--#else--> + <td class=3D"ContentPanel" bgcolor=3D"#ffffff"> + <!--#endif-->=09 +<!-- removed nav button to go up --> + <!--#if can=3D"title"--> + <div class=3D"Title"> + <!--#title--> + </div> + <!--#endif--> + <!--#if can=3D"message"--> + <div class=3D"Message"> + <!--#message--> + </div> + <!--#endif--> + + <!--#if can=3D"submiterror"--> + <div class=3D"SubmitError"> + <!--#submiterror--> + </div> + <!--#endif--> + <!--#if can=3D"body"--> + <div class=3D"Body"> + <!--#body--> + </div> + <!--#endif--> + <!--#if warnings=3D"1"--> + <hr> + <div class=3D"Warnings"> + <!--#warnings--> + </div> + <!--#endif--> + <!--#if can=3D"message"--> + <div class=3D"Message"> + <!--#message--> + </div> + <!--#endif--> + </td> + <!--#if can=3D"info"--> + <td class=3D"InfoPanel"> + <div class=3D"Info"> + <!--#info--> + </div> + </td> + <!--#endif--> + </tr> + <tr> + <td class =3D "Timestamp", colspan=3D3> + Updated: <!--#timestamp--> + </td> + </tr> +</table> +</body> +</html> --- /dev/null +++ conf/templates/ur/system.template @@ -0,0 +1,144 @@ +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<!-- +########################################################################= ######## +# WeBWorK Online Homework Delivery System +# Copyright =A9 2000-2003 The WeBWorK Project, http://openwebwork.sf.net= / +# $CVSHeader: webwork2/conf/templates/ur/system.template,v 1.1 2005/12/1= 9 03:37:33 sh002i Exp $ +#=20 +# This program is free software; you can redistribute it and/or modify i= t under +# the terms of either: (a) the GNU General Public License as published b= y the +# Free Software Foundation; either version 2, or (at your option) any la= ter +# version, or (b) the "Artistic License" which comes with this package. +#=20 +# This program is distributed in the hope that it will be useful, but WI= THOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or = FITNESS +# FOR A PARTICULAR PURPOSE. See either the GNU General Public License o= r the +# Artistic License for more details. +########################################################################= ######## +--> + + +<html xmlns=3D"http://www.w3.org/1999/xhtml" lang=3D"en-US"> +<head> +<title><!--#path style=3D"text" text=3D" : " textonly=3D"1"--></title> +<!--#head--> +<style type=3D"text/css" media=3D"all">@import "<!--#url type=3D"webwork= " name=3D"stylesheet"-->";</style> +</head> +<body> +<table width=3D"100%" cellpadding=3D"10" cellspacing=3D"0" border=3D"0"> + <tr valign=3D"top"> + <td align=3D"left" valign=3D"top" rowspan=3D"2" class=3D"LeftPanel"> + <a href=3D"http://webwork.math.rochester.edu"> + <img src=3D"/webwork2_files/images/webwork_square.gif" alt=3D"WeBWorK= " height=3D"64" width=3D"66" /> + </a> + <span style=3D"position:relative;top: -44px; right: -10px"> + <!--#help-->=20 + </span> + <br /> + =09 + <!-- + <hr /> + <div class=3D"Logo"> =09 + <a href=3D"http://webwork3.math.rochester.edu/bugzilla/enter_bug.cgi= ?product=3DWeBWorK%20mod_perl" target=3D"bugzillaPage">Report bugs</a> + </div> + --> + <!--#if loggedin=3D"1"--> + <hr /> + <div class=3D"Links"> + <!--#links--> + </div> + <!--#if can=3D"links"--> + <!--#if can=3D"siblings"--> + <hr /> + <!--#endif--> + <!--#endif--> + <div class=3D"Siblings"> + <!--#siblings--> + </div> + <!--#if can=3D"options"--> + <div class=3D"Options"> + <!--#options--> + </div> + <!--#endif--> + <!--#endif--> + </td> + <!--#if can=3D"info"--> + <td class=3D"TopPanel" colspan=3D"2"> + <!--#else--> + <td class=3D"TopPanel" > + <!--#endif--> + <table cellpadding=3D"0" cellspacing=3D"0" border=3D"0" width=3D"100%= "> + <tr valign=3D"top"> + <td class=3D"TopPanel"> + <!--#if can=3D"path"--> + <span class=3D"Path"><!--#path style=3D"text" image=3D"/webwork2_f= iles/images/right_arrow.png" text=3D" > "--></span> + <!--#endif--> + </td> + <td class=3D"TopPanel" align=3D"right" nowrap> + <!--#if can=3D"loginstatus"--> + <span class=3D"LoginStatus"><!--#loginstatus--></span> + <!--#endif--> + </td> + </tr> + </table> + </td> + </tr> + <tr valign=3D"top"> + <!--#if warnings=3D"1"--> + <td class=3D"ContentPanelError" bgcolor=3D"#ffcccc"> + <!--#else--> + <td class=3D"ContentPanel" bgcolor=3D"#ffffff"> + <!--#endif-->=09 + <!--#if can=3D"nav"--> + <div class=3D"Nav"> + <!--#nav style=3D"images" imageprefix=3D"/webwork2_files/images/nav"= imagesuffix=3D".gif" separator=3D" "--> + </div> + <!--#endif--> + <!--#if can=3D"title"--> + <div class=3D"Title"> + <!--#title--> + </div> + <!--#endif--> + <!--#if can=3D"message"--> + <div class=3D"Message"> + <!--#message--> + </div> + <!--#endif--> + + <!--#if can=3D"body"--> + <div class=3D"Body"> + <!--#body--> + </div> + <!--#endif--> + <!--#if warnings=3D"1"--> + <hr> + <div class=3D"Warnings"> + <!--#warnings--> + </div> + <!--#endif--> + <!--#if can=3D"message"--> + <div class=3D"Message"> + <!--#message--> + </div> + <!--#endif--> + </td> + <!--#if can=3D"info"--> + <td class=3D"InfoPanel"> + <div class=3D"Info"> + <!--#info--> + </div> + </td> + <!--#endif--> + </tr> + <tr> + <td class =3D "Timestamp", colspan=3D3> + Updated: <!--#timestamp--> + </td> + </tr> +</table> +</body> + +</html> |