Right now I'm working on some modifications of PHP-Fusion and attempting to have two tables side by side, but I'm having lots of difficulties because I'm getting confused with all of the <table>, <tr>, and <td> tags. So far I can't get it to work.
Here are the two functions for the opentable and closetable. If you use PHP-Fusion you'll be familiar with these:
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td style='height:5px;background-color:#f6a504;'></td>\n";
echo "</tr>\n</table>\n";
}
So I'm trying to make it so that the tables are side by side, but I can't seem to be able to get it to work...
I'd especially like it if someone show me a way to make it so that there will be two new functions in between opentable and closetable so that I can have two different titles for the tables.
All of my attempts have led to the two tables, but only one closetable, or the sidebar being shoved down to the bottom. Anyone think they can help me? Any help would be appreciated.