Still formatting
authorMaxime Bourget <bmx007@gmail.com>
Thu, 30 May 2013 17:07:39 +0000 (18:07 +0100)
committerMaxime Bourget <bmx007@gmail.com>
Thu, 30 May 2013 17:07:39 +0000 (18:07 +0100)
haxe/ItemScheduler.hx
item_schedule.php

index 27dd7bf0c9e8c731c794ea738049f438279ff192..e286bc0bc98277235b0cb498f0c7f5c54f99c50a 100644 (file)
@@ -198,14 +198,8 @@ class ItemScheduler {
                        ,location.code
                        ,location.delivery
                ];
-               var status = 'header';
-               php.Lib.print('<tr class="'+status+'">');
-               for(cell in cells) {
-                       php.Lib.print('<td>');
-                       php.Lib.print(cell);
-                       php.Lib.print('</td>');
-               }
-               php.Lib.print('</tr>');
+
+               printRow(cells, ['class = "tableheader location"']);
        }
 
 /*
index 0fa2aa7e5375cf8941606f7a71b0e92acdad0e8a..97f397c30dcee51ab6277bfc265b55fec11f1b02 100644 (file)
@@ -76,3 +76,17 @@ submit_center_last('Cancel', _("Cancel"), true, '', 'cancel', true);
 end_form();
 end_page();
 ?>
+<style type='text/css'>
+tr.soldout {
+               background: pink;
+}
+tr.partial {
+               background: orange;
+}
+
+tr.location {
+       font-weight: normal;
+       #color: blue;
+}
+
+</style>