diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-01-19 22:13:12 -0500 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-01-19 22:13:12 -0500 |
commit | b8e5b412f1128fc131a4f4b4973c79e324d46b8a (patch) | |
tree | 193b6988bf59ec7f0d2314dd293adaf429291824 | |
parent | 00e86a42ab895bf07d171392bf5c47e41db37d17 (diff) | |
download | GradeBook-b8e5b412f1128fc131a4f4b4973c79e324d46b8a.tar.gz GradeBook-b8e5b412f1128fc131a4f4b4973c79e324d46b8a.zip |
added div for grades table
Ignore-this: 7f4cdc3b3c77d8977a1dd804149858bf
darcs-hash:20110120031312-067c0-196a04d037f5b8f956df8107e7e604c1e10608bd.gz
-rw-r--r-- | GradeBook.css | 12 | ||||
-rwxr-xr-x | GradeBook.tcl | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/GradeBook.css b/GradeBook.css index 98b6193..3c9e22f 100644 --- a/GradeBook.css +++ b/GradeBook.css @@ -59,6 +59,18 @@ div.add_new_column { margin-bottom: 15px; } +div.gradestable { + /*border-bottom: 2px solid black;*/ + background-color: #ffcc99; + padding-top: 5px; + padding-bottom: 5px; + margin-bottom: 15px; +} + +div.gradestable span.controls { + background-color: #ddbb88; + font-weight: bold; +} table.gradestable { /*border-bottom: 2px solid black;*/ diff --git a/GradeBook.tcl b/GradeBook.tcl index 81fe67c..3340354 100755 --- a/GradeBook.tcl +++ b/GradeBook.tcl @@ -120,6 +120,7 @@ proc htmlDBout {db permission_list user {sort_col {}}} { set sort_col $defSortCol } + puts {<div class="gradestable">} set show_header 1 # show the table with grades set eval_str [list SELECT * FROM GradesTable ORDER BY $sort_col] @@ -162,6 +163,7 @@ proc htmlDBout {db permission_list user {sort_col {}}} { } puts "</table>" + puts {</div>} } proc htmlTop {permission_list} { @@ -609,6 +611,7 @@ proc ShowControls { permission_list user } { puts -nonewline "$separator<span class=\"controls\"><a href=$script_name?action=$act>$act_label</a></span>" } } + puts "" puts "</div>" } @@ -636,6 +639,7 @@ proc htmlStudentGrades { db user } { set sort_col $defSortCol + puts {<div class="gradestable">} set show_header 1 # show the table with grades set eval_str [list SELECT * FROM GradesTable WHERE UserName='$user' ORDER BY $sort_col] @@ -668,6 +672,7 @@ proc htmlStudentGrades { db user } { } puts "</table>" + puts {</div>} } |