4b05591d by Kevin Burton

mysql table and branding updates

1 parent 376d8314
...@@ -199,14 +199,14 @@ table.tabular-data tbody td {} ...@@ -199,14 +199,14 @@ table.tabular-data tbody td {}
199 #cboxOverlay{background:#3b0d32;} 199 #cboxOverlay{background:#3b0d32;}
200 200
201 #colorbox{} 201 #colorbox{}
202 #cboxContent{margin-top:32px;} 202 #cboxContent{margin-top:32px;background:#3b0d32;}
203 #cboxLoadedContent{background:#fff; padding:1px;} 203 #cboxLoadedContent{background:#fff; padding:1px;}
204 #cboxLoadingGraphic{background:url(../images/ajax-loader.gif) no-repeat center center;} 204 #cboxLoadingGraphic{background:url(../images/ajax-loader.gif) no-repeat center center;}
205 #cboxLoadingOverlay{background:#000;} 205 #cboxLoadingOverlay{background:#3b0d32;}
206 #cboxTitle{position:absolute; top:-22px; left:0; color:#000;} 206 #cboxTitle{position:absolute; top:-22px; left:0; color:#fff;}
207 #cboxCurrent{position:absolute; top:-22px; right:205px; text-indent:-9999px;} 207 #cboxCurrent{position:absolute; top:-22px; right:205px; text-indent:-9999px;}
208 #cboxSlideshow, #cboxPrevious, #cboxNext, #cboxClose{text-indent:-9999px; width:20px; height:20px; position:absolute; top:-20px; background:url(../images/controls.png) no-repeat 0 0;} 208 #cboxSlideshow, #cboxPrevious, #cboxNext, #cboxClose{ height:20px; position:absolute; top:-20px; /* background:url(../images/controls.png) no-repeat 0 0; */}
209 #cboxClose { display:none; } 209 #cboxClose { display:none; color:#fff; }
210 #cboxPrevious{background-position:0px 0px; right:44px;} 210 #cboxPrevious{background-position:0px 0px; right:44px;}
211 #cboxPrevious.hover{background-position:0px -25px;} 211 #cboxPrevious.hover{background-position:0px -25px;}
212 #cboxNext{background-position:-25px 0px; right:22px;} 212 #cboxNext{background-position:-25px 0px; right:22px;}
...@@ -460,4 +460,14 @@ input.dp-applied { ...@@ -460,4 +460,14 @@ input.dp-applied {
460 460
461 .TzAdminPagination { text-align:right; padding-right:20px; font-size: 11px; margin:5px 0;} 461 .TzAdminPagination { text-align:right; padding-right:20px; font-size: 11px; margin:5px 0;}
462 .TzAdminPagination span { margin-right:5px; } 462 .TzAdminPagination span { margin-right:5px; }
463 .TzAdminPagination a { margin-right:5px; }
...\ No newline at end of file ...\ No newline at end of file
463 .TzAdminPagination a { margin-right:5px; }
464
465 .listing-wrap { }
466
467 .cbv-report-list thead td,
468 .cbv-report-list thead th,
469 .cbv-report-list tbody th,
470 .cbv-report-list tbody td { text-align:left; font-size: 11px; word-wrap: normal; padding: 3px 5px; }
471 .cbv-report-list tbody tr.odd td { background-color: #f5f5f5; }
472 .cbv-report-list thead th { background-color: #e1e1e1;border-bottom:1px solid #e8e8e8; }
473 .cbv-report-list tbody td { border-bottom:1px solid #e8e8e8; min-width: 120px;}
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -7,7 +7,7 @@ function array2table($arr,$width) ...@@ -7,7 +7,7 @@ function array2table($arr,$width)
7 if($count > 0){ 7 if($count > 0){
8 reset($arr); 8 reset($arr);
9 $num = count(current($arr)); 9 $num = count(current($arr));
10 echo "<table border=\"0\"cellpadding=\"5\" cellspacing=\"0\" width=\"$width\" class=\"cbv-report\">\n"; 10 echo "<table border=\"0\"cellpadding=\"5\" cellspacing=\"0\" width=\"$width\" class=\"cbv-report-list\">\n";
11 echo "<thead>\n"; 11 echo "<thead>\n";
12 echo "<tr>\n"; 12 echo "<tr>\n";
13 foreach(current($arr) as $key => $value){ 13 foreach(current($arr) as $key => $value){
...@@ -18,8 +18,10 @@ function array2table($arr,$width) ...@@ -18,8 +18,10 @@ function array2table($arr,$width)
18 echo "</tr>\n"; 18 echo "</tr>\n";
19 echo "</thead>\n"; 19 echo "</thead>\n";
20 echo "<tbody>\n"; 20 echo "<tbody>\n";
21 $wi = 0;
21 while ($curr_row = current($arr)) { 22 while ($curr_row = current($arr)) {
22 echo "<tr>\n"; 23 $rclass = ($wi%2) ? "odd" : "";
24 echo "<tr class='".$rclass."'>\n";
23 $col = 1; 25 $col = 1;
24 while (false !== ($curr_field = current($curr_row))) { 26 while (false !== ($curr_field = current($curr_row))) {
25 echo "<td>"; 27 echo "<td>";
...@@ -33,6 +35,7 @@ function array2table($arr,$width) ...@@ -33,6 +35,7 @@ function array2table($arr,$width)
33 $col++; 35 $col++;
34 } 36 }
35 echo "</tr>\n"; 37 echo "</tr>\n";
38 $wi++;
36 next($arr); 39 next($arr);
37 } 40 }
38 echo "</tbody>\n"; 41 echo "</tbody>\n";
......