Formatting empty table cells with php (SOLVED)
Posted: Sun Mar 20, 2011 1:53 pm
Hi all,
I'm looking for some php that I can add to my table in order to format the empty cells. All I want to do is have a litle bit of text come up on all the empty cells which says 'classroom free' or 'not booked' - is there a php comand that deals with this??
I'm using Drupal to output a table - it's a lesson planner. It has dates running down the side and classrooms along the top. If a classroom has been booked it outputs the name of the lesson in the cell on the right date. This is all working great, and allows a dynamic table on the site, but my client would like to have some default text in the cells that have not been booked.
Any ideas or pointers much appreciated!
Thanks, Joe
I'm looking for some php that I can add to my table in order to format the empty cells. All I want to do is have a litle bit of text come up on all the empty cells which says 'classroom free' or 'not booked' - is there a php comand that deals with this??
I'm using Drupal to output a table - it's a lesson planner. It has dates running down the side and classrooms along the top. If a classroom has been booked it outputs the name of the lesson in the cell on the right date. This is all working great, and allows a dynamic table on the site, but my client would like to have some default text in the cells that have not been booked.
Any ideas or pointers much appreciated!
Thanks, Joe