Originally Posted by
mc12345678
To move the flags into their own column, will need to move the if/else pair down below the first Then before the if add something like:This will place the new indicator column in it's own column, but currently there is no indicator for a discontinued category, so the new heading will not have any data beneath it when looking at the categories only or I presume that no data would be presented for a category that was presented with product as well... If such discontinued indicators are desired, then the table should be modified to indicate what type of data is being tracked, either a category or a product, though ideally it seems in database structure that should probably be captured by an additional table instead of an indicator of the type of product... (Normalization process).
Weird, my code got stripped from the above post. (Apparently I didn't wrap an html code properly). Let me try again (for those that need just a little additional code support):
To move the flags into their own column, will need to move the if/else pair down below the first Then before the if add something like:
Code:
?>
<div width="50" align="left">
<?php
This will place the new indicator column in it's own column, but currently there is no indicator for a discontinued category, so the new heading will not have any data beneath it when looking at the categories only or I presume that no data would be presented for a category that was presented with product as well... If such discontinued indicators are desired, then the database table should be modified to indicate what type of data is being tracked, either a category or a product, though ideally it seems in database structure that should probably be captured by an additional table instead of an indicator of the type of product... (Normalization process).
And then need to end the div after the end of the if/else statement with
BTW, the original placement was chosen so that it would not significantly affect the indicator for linked product (not all product is linked and I didn't want the indicator to slide left/right when a linked product was not/was present) also that I didn't go through the visualization process to see how the screen would be affected by various methods of display and other options on the row... Further the fact that the column is identified as "status" it seemed sufficient to be listed there, though perhaps a different image could be used instead of the existing green/red or in this case green/yellow as has been chosen. Anyways, it's ZC, you can do a lot of what you want minimal impact on the rest of the system. :)
Bookmarks