$qs[$x[0]] = $x[1];
}
+function prettify($s) {
+ if (preg_match("/^[0-9]{12}$/",$s)) {
+ $year = substr($s,0,4);
+ $month = substr($s,4,2);
+ $day = substr($s,6,2);
+ $hour = substr($s,8,2);
+ $minute = substr($s,10,2);
+ return $day . "/" . $month . "/" . $year . " " . $hour . ":" . $minute;
+ } else
+ return $s;
+}
+
?>
<html>
<head>
echo "<th>$name</th>";
}
echo "</tr>\n";
+ $i=0;
foreach ($q as $k => $v) {
- echo "<tr>";
+ $i = $i + 1;
+ if ( $i%2 == 0)
+ echo "<tr class=\"even\">";
+ else
+ echo "<tr class=\"odd\">";
foreach( $v as $name => $txt) {
- echo "<td>$txt</td>";
+ echo "<td>" . prettify($txt) . "</td>";
}
echo "</tr>\n";
}
ul {
list-style-type: upper-roman;
}
+
+table, td {
+ border-style:none;
+ padding: 2px 6px 2px 6px;
+}
+
+tr.odd {
+ background-color:#EEEEEE;
+}
+tr.even {
+ background-color:#CECECE;
+}
+
+th {
+ border-style:solid;
+ border-width:0px 0px 1px 0px;
+ border-color: gray;
+}
+
+