Index: /mod/quiz/edit_redesign.css
===================================================================
--- /mod/quiz/edit_redesign.css	(...)	(working copy)
+++ /mod/quiz/edit_redesign.css	(.../file:///home/olli/svnrepos2/moodleneww/var/www/moodle_orig)	(revision 1)
@@ -1,621 +0,0 @@
-/* make overflow work on IE - add this as an IE-specific CSS*/
-/*@IMPORT url("ie.css");*/
-
-div.sideblock{
-    /*absolute position would be nice since there would be no risk of either the
-    quiz or the question bank of falling to the bottom of the page,
-    but qith question bank absolutely positioned, the bottom bar would be above the
-    bottom of the question bank window when there are not many questions in quiz and/or
-    lots of questions in the selected question bank category. 
-    position:absolute;*/
-    float:right;
-    width:30%;
-    right:0.3em;
-    padding-bottom:0.5em;
-    display:block;
-}
-
-div.quizcontents{
-    float:left;
-    width:70%;
-    display:block;
-}
-
-div.quizcontents,h2.main{
-    clear:left;
-}
-
-.addpage{
-    clear:both;
-    padding-top:0.3em;
-    float:right;
-    margin-right:2em;
-}
-
-h2.main{
-    display:inline;
-    padding-right:1em;
-}
-
-.statusdisplay{
-    clear:both;
-    display:block;
-    background-color:#ffc;
-    border:0.2em #FFF solid;
-    margin-bottom:0.3em;
-    margin-right:1em;
-    margin-top:0.3em;
-    padding:0.1em;
-}
-
-div.quizpage{
-    display:block;
-    clear:both;
-    width:100%;
-}
-
-div.quizpage span.pagetitle{
-    margin-top:0.3em;
-    float:left;
-    display:block;
-    color:#006;
-}
-
-div.reorder .reordercontrols .moveselectedonpage{
-    clear:right;
-    float:right;
-    padding:0.5em 0.3em;
-	text-align:right;
-}
-
-
-
-div.reorder .reordercontrols .addnewpagesafterselected,.repaginatecommand{
-    float:right;
-    clear:right;
-    padding-right:1em;
-}
-
-div.reorder .reordercontrols .deleteselected{
-    float:right;
-    margin-right:1em;
-}
-
-div.reorder .reordercontrols{
-    clear:both;
-    padding-right:1em;
-    margin-top:0.5em;
-    padding-top:0.5em;
-    padding-bottom:0.5em;
-}
-
-div.quizpage .pagecontent{
-    margin-top:0.3em;
-    display:block;
-    float:left;
-    position:relative;
-    margin-left:0.3em;
-    border-left:solid #777 thin;
-    background-color:#d6d6d6;
-    line-height:1.3em;
-    -moz-border-radius:0.6em;
-    -moz-border-radius-bottomleft:0;
-    -moz-border-radius-topleft:0;
-    -webkit-border-radius:0.6em;
-    -webkit-border-radius-bottomleft:0;
-    -webkit-border-radius-topleft:0;
-    border-radius:0.6em;
-    border-radius-bottomleft:0;
-    border-radius-topleft:0;
-    width:88%;
-    padding:0 0 0.5em;
-}
-
-div.question{
-    clear:left;
-    width:100%;
-}
-
-div.question div.qnum{
-    color:#333;
-    display:block;
-    float:left;
-    width:1.4em;
-    text-align:right;
-    padding-right:0.3em;
-    padding-left:0;
-    z-index:99;
-}
-
-div.reorder div.question div.qnum{
-    width:2.9em;
-    text-align:right;
-    font-size:1em;
-    padding-top:0.1em;
-}
-/*edit tab*/
-div.editq div.question div.qnum{
-    padding-top:0.2em;
-    font-size:1.5em;
-}
-
-div.editq div.question{
-    padding-top:0.3em;
-}
-
-div.reorder div.question{
-    padding-top:0.2em;
-}
-
-div.question div.questioncontainer{
-    background-color:#ffc;
-}
-
-div.editq div.question div.content{
-    width:87%;
-    float:left;
-    background-color:#fff;
-    position:relative;
-    -moz-border-radius:0.6em;
-    -moz-border-radius-bottomleft:0;
-    -moz-border-radius-topleft:0;
-    -webkit-border-radius:0.6em;
-    -webkit-border-radius-bottomleft:0;
-    -webkit-border-radius-topleft:0;
-    border-radius:0.6em;
-    border-radius-bottomleft:0;
-    border-radius-topleft:0;
-    line-height:1.4em;
-    padding:0.5em;
-}
-
-.reorder div.question div.content{
-    width:87%;
-    float:left;
-    background-color:#fff;
-    position:relative;
-    -moz-border-radius:0.3em;
-    -moz-border-radius-bottomleft:0;
-    -moz-border-radius-topleft:0;
-    -webkit-border-radius:0.3em;
-    -webkit-border-radius-bottomleft:0;
-    -webkit-border-radius-topleft:0;
-    border-radius:0.3em;
-    border-radius-bottomleft:0;
-    border-radius-topleft:0;
-    line-height:1.2em;
-    padding:0.1em;
-}
-
-div.question div.content div.points{
-    top:0.5em;
-    border-left:#FFF solid 0.4em;
-    width:7.5em;
-    padding:0.2em;
-}
-
-.questionbankwindow select#catmenu_jump{
-    /*in Opera9, IE6 the width of the 
-    select obeys the width of its content. 
-    this prevents that. */
-    width:100%;
-}
-
-.questionbankwindow .createnewquestion select{
-    width:80%;
-}
-
-.questionbankwindow div.header{
-/*this color might need to be theme-specific, 
-but in terms of usability, as testing showed, 
-it must be ensured that the question
-bank window's title is prominent enough*/
-    background-color:#009;
-    color:#fff;
-    padding-top:0.2em;
-    background-image:none;
-    font-weight:bold;
-}
-
-#randomquestiondialog_c select{
-    width:100%;
-}
-
-.questionbankwindow div.header a{
-    text-decoration:underline;
-    color:#FFF;
-}
-
-div.question div.content div.points,div.question div.content div.qorder{
-    line-height:1em;
-    float:right;
-    background-color:#ddf;
-    max-width:30%;
-    position:absolute;
-    right:50px;
-    -moz-border-radius:0.2em;
-    -moz-border-radius-bottomleft:0;
-    -moz-border-radius-topleft:0;
-    -webkit-border-radius:0.2em;
-    -webkit-border-radius-bottomleft:0;
-    -webkit-border-radius-topleft:0;
-    border-radius:0.2em;
-    border-radius-bottomleft:0;
-    border-radius-topleft:0;
-    z-index:999;
-    display:block;
-    margin:0;
-}
-
-
-div.question div.content .editicon{
-    width:15px;
-}
-
-div.questioncontentcontainer a{
-    text-decoration:underline;
-}
-
-div.questioncontentcontainer div.singlequestion a{
-    text-decoration:underline;
-}
-.editq div.questioncontentcontainer  div.singlequestion img{
-	float:left;
-	padding-top:0.3em;
-	padding-right:0.3em;
-}
-
-table#categoryquestions{
-    width:100%;
-    overflow:hidden;
-    table-layout:fixed;
-}
-
-table#categoryquestions td,th{
-    overflow:hidden;
-    white-space:nowrap;
-}
-
-table#categoryquestions col#qaction{
-    width:20%;
-}
-
-table#categoryquestions col#qextraactions{
-    width:40px;
-}
-
-table#categoryquestions .iconsmall{
-    padding-left:5px;
-}
-
-div.question div.content .questionname,#categoryquestions .questionname{
-    white-space:nowrap;
-    -o-text-overflow:ellipsis;
-    text-overflow:ellipsis;
-    overflow:hidden;
-    zoom:1;    
-    position:relative;
-    max-width:20%;
-    /*ie-only:*/
-    text-overflow:ellipsis;
-    cursor: pointer;
-}
-div.question div.content .singlequestion .questionname,div.question div.content .singlequestion .questiontext{
-    display:inline-block;
-}
-
-div.editq div.question div.content .singlequestion a .questionname,div.editq div.question div.content .singlequestion a .questiontext{
-    float:left;
-    text-decoration:underline;
-    /*ie6 shows this as an arrow if this is not specified*/
-}
-
-.quizquestionlistcontrols{
-    display:inline;
-}
-
-div.question div.content .questiontext,#categoryquestions .questiontext{
-    -o-text-overflow:ellipsis;
-    text-overflow:ellipsis;
-    position:relative;
-    zoom:1;    
-    padding-left:0.3em;
-    font-weight:bold;
-    max-width:50%;
-    overflow:hidden;
-    white-space:nowrap;
-    text-overflow:ellipsis;
-    cursor: pointer;
-}
-
-div.quizpage .pagecontent .pagestatus{
-    background-color:#eee;
-    font-weight:bold;
-    -moz-border-radius-bottomright:0.3em;
-    -moz-border-radius-topright:0.3em;
-    -webkit-border-radius-bottomright:0.3em;
-    -webkit-border-radius-topright:0.3em;
-    border-radius-bottomright:0.3em;
-    border-radius-topright:0.3em;
-    margin:0.3em;
-    padding:0.1em 0.1em 0.1em 0.3em;
-}
-
-div.question div.content .questiontype{
-    font-style:italic;
-    display:block;
-    clear:left;
-    float:left;
-}
-
-div.question div.content .questionpreview{
-    display:block;
-    float:left;
-    margin-left:0.3em;
-    padding-left:0.2em;
-    padding-right:0.2em;
-    background-color:#eee;
-}
-
-div.question div.content div.quiz_randomquestion .questionpreview{
-    display:inline;
-    float:none;
-}
-
-div.question div.content div.questioncontrols{
-    float:right;
-    text-align:right;
-    width:45px;
-    position:absolute;
-    right:0.3em;
-    top:0;
-    z-index:999;
-    background-color:#FFF;
-    display:block;
-    padding:0.2em;
-}
-
-div.question div.content div.questioncontrols img.upwithoutdown{
-    padding-right:12px;
-    display:inline;
-}
-
-.quizpagedelete{
-    position:absolute;
-    top:0.2em;
-    right:0.2em;
-    display:inline;
-    z-index:999;
-}
-
-.quizpagedelete img{
-    background-color:#d6d6d6;
-    padding:0.5em;
-}
-
-.pagecontrols{
-    clear:both;
-    margin-left:0.5em;
-    padding-top:0.5em;
-}
-
-.pagecontrols .singlebutton{
-    float:left;
-}
-
-div.quizpage .pagecontent form#addquestion{
-    background-color:#fff;
-    margin-right:1em;
-    -moz-border-radius:0.2em;
-    -webkit-border-radius:0.2em;
-    border-radius:0.2em;
-    padding:0.3em;
-}
-
-div.quizpage .pagecontent form.randomquestionform{
-    padding-left:1em;
-}
-
-div.quizpage .pagecontent form.randomquestionform div{
-    /* it is a mystery why this has to be inline-table but
-       otherwise the layout gets screwed, even if
-       it is "inline" */
-    display:inline-table;
-}
-
-div.quizpage .pagecontent form.randomquestionform div input{
-    display:inline;
-}
-
-div.quizpage .pagecontent .adddescription{
-    clear:left;
-    margin-top:0.3em;
-}
-
-div.quizpage .pagecontent .addrandomquestion{
-    margin-top:0.3em;
-}
-
-/* a CSS class YUI container creates on the fly: */
-div#randomquestiondialog_c{
-    width:90%;
-}
-
-
-
-
-#repaginatedialog .hd{
-    display:none;
-}
-
-div#randomquestiondialog{
-    display:none;
-}
-
-div#randomquestiondialog_c .mform,div#repaginatedialog .mform{
-    margin-left:auto;
-    margin-right:auto;
-}
-
-div.container div.generalbox{
-    position:relative;
-    display:block;
-    border:0 none;
-    margin:0;
-    padding:0;
-}
-
-.questioncontentcontainer div.randomquestionqlist{
-    background-color:#eee;
-    color:#777;
-    padding-left:0.2em;
-    padding-right:0.2em;
-    clear:both;
-    margin:0.5em;
-}
-
-.questioncontentcontainer div.randomquestionqlist .totalquestionsinrandomqcategory{
-    color:#000;
-}
-
-.questioncontentcontainer div.randomquestionqlist ul{
-    list-style-type:none;
-    margin:0;
-    padding:0;
-}
-
-.questioncontentcontainer .randomquestioncategory{
-    font-weight:bold;
-}
-
-.reorder .questioncontentcontainer .randomquestioncategory,.reorder .questioncontentcontainer .randomquestionfromcategory,.reorder div.question div.content .questionpreview{
-    display:inline;
-    float:none;
-}
-
-.reorder .questioncontentcontainer{
-    position:relative;
-    overflow:hidden;
-    white-space:nowrap;
-}
-
-.reorder .questioncontentcontainer .randomquestioncategory{
-    overflow:hidden;
-    white-space:nowrap;
-}
-
-.reorder fieldset{
-    display:inline;
-}
-
-.questioncontentcontainer div.randomquestionqlist ul li{
-    clear:left;
-    width:100%;
-    overflow:hidden;
-    white-space:nowrap;
-}
-
-.questioncontentcontainer div.randomquestionqlist ul li span{
-    display:inline;
-}
-
-/*start question bank*/
-.categoryinfo{
-    background-color:#eee;
-    border-bottom:1px solid #bbb;
-    padding:0.3em;
-}
-
-.categoryinfofield{
-    font-style:italic;
-}
-
-.categorynamefield{
-    font-weight:bold;
-}
-
-.paging{
-    margin-top:0;
-    margin-bottom:0;
-    display:block;
-    background-color:#ddd;
-}
-
-.questionsortoptions{
-    margin-top:0.3em;
-    background-color:#ddd;
-}
-
-.paging a:hover{
-    background-color:#eef;
-}
-
-.pagingbottom{
-    padding-bottom:0.3em;
-}
-
-div.questionbank form .invisiblefieldset{
-    clear:both;
-}
-
-div.questionbank{
-    background-color:#e6e6ff;
-}
-
-div.createnewquestion{
-    padding-top:0.3em;
-    clear:left;
-}
-
-.sideblock .content{
-    padding:0;
-}
-
-.questionbank .categorysortopotionscontainer{
-    padding-top:0.5em;
-    margin-top:0.3em;
-}
-
-.questionbank .categoryselectallcontainer{
-    padding-bottom:0.5em;
-}
-
-.questionbank div.categoryquestionscontainer,.questionbank .categorysortopotionscontainer,.questionbank .categorypagingbarcontainer,.questionbank .categoryselectallcontainer{
-    background-color:#FFF;
-    padding-left:0.3em;
-    padding-right:0.3em;
-}
-
-.noquestionsincategory{
-    clear:both;
-    padding-top:1em;
-    padding-bottom:1em;
-}
-
-.modulespecificbuttonscontainer{
-    padding-left:0.3em;
-    padding-right:0.3em;
-}
-
-div#footer{
-    clear:both;
-    padding-top:1em;
-}
-
-#repaginatecommand{
-    display:none;
-}
-
-/*.usejs class is added via javascript so these will toggle if js is enabled*/
-.usejs #repaginatedialog{
-	display:none;	
-}
-.usejs #repaginatedialog .hd{
-	display:block;
-}
-.usejs #repaginatedialog .bd{
-	padding:1em;    
-}
-.usejs .repaginatecommand #repaginatecommand{
-    display:block;
-}
Index: /mod/quiz/ie.css
===================================================================
--- /mod/quiz/ie.css	(...)	(working copy)
+++ /mod/quiz/ie.css	(.../file:///home/olli/svnrepos2/moodleneww/var/www/moodle_orig)	(revision 1)
@@ -1,11 +0,0 @@
-/*for ie6*/
-div.tabtree a span img.iconsmall{
-    display:none;
-}
-
-div.question div.content .questiontext,#categoryquestions .questiontext{
-    width:50%;
-}
-div.question div.content .questionname,#categoryquestions .questionname{
-	width:20%;
-}quiz->timeopen < $timenow and ($timenow < $quiz->timeclose or !$quiz->timeclose));
+        if ($available) {
+            if ($quiz->timelimit) {
+                echo "<p>".get_string("quiztimelimit","quiz", format_time($quiz->timelimit * 60))."</p>";
+            }
+            if ($quiz->timeopen) {
+                echo '<p>', get_string('quizopens', 'quiz'), ': ', userdate($quiz->timeopen), '</p>';
+            }
+            if ($quiz->timeclose) {
+                echo '<p>', get_string('quizcloses', 'quiz'), ': ', userdate($quiz->timeclose), '</p>';
+            }
+        } else if ($timenow < $quiz->timeopen) {
+            echo "<p>".get_string("quiznotavailable", "quiz", userdate($quiz->timeopen))."</p>";
+        } else {
+            echo "<p>".get_string("quizclosed", "quiz", userdate($quiz->timeclose))."</p>";
+        }
+        echo '</div>';
     } else {
         $available = false;
     }
 

