-?>
- </TD></TR>
- </TABLE>
-
-</TD></TR>
-</TABLE>
-
-</BODY></HTML>
-
-<?php
-
- /*******************************************************************/
- /* Please be warned. The code below this point sucks. This is just */
- /* my first implementation to make the option rows work for both */
- /* Javascript and non-Javascript option chunks. */
- /* */
- /* Please, someone make these better for me. All three functions */
- /* below REALLY do close to the same thing. */
- /* */
- /* This code would be GREATLY improved by a templating system. */
- /* Don't try to implement that now, however. That will come later. */
- /*******************************************************************/
-
- /*******************************************************************/
- /* Actually, now that I think about it, don't do anything with */
- /* this code yet. There is ACTUALLY supposed to be a difference */
- /* between the three functions that write the option rows. I just */
- /* have not yet gotten to integrating that yet. */
- /*******************************************************************/
-
- /**
- * This function prints out an option page row.
- */
- function print_optionpages_row($leftopt, $rightopt = false) {
- global $color;
-
- echo "<TABLE BGCOLOR=\"$color[4]\" WIDTH=\"100%\" CELLPADDING=0 CELLSPACING=5 BORDER=0>" .
- '<TR><TD VALIGN="TOP">' .
- '<TABLE WIDTH="100%" CELLPADDING="3" CELLSPACING="0" BORDER="0">' .
- '<TR>' .
- "<TD VALIGN=TOP BGCOLOR=\"$color[9]\" WIDTH=\"50%\">" .
- '<A HREF="' . $leftopt['url'] . '">' . $leftopt['name'] . '</A>'.
- '</TD>'.
- "<TD VALIGN=TOP BGCOLOR=\"$color[4]\"> </TD>";
- if ($rightopt) {
- echo "<TD VALIGN=top BGCOLOR=\"$color[9]\" WIDTH=\"50%\">" .
- '<A HREF="' . $rightopt['url'] . '">' . $rightopt['name'] . '</A>' .
- '</TD>';
- } else {
- echo "<TD VALIGN=top BGCOLOR=\"$color[4]\" WIDTH=\"50%\"> </TD>";
- }
-
- echo '</TR>' .
- '<TR>' .
- "<TD VALIGN=top BGCOLOR=\"$color[0]\" WIDTH=\"50%\">" .
- $leftopt['desc'] .
- '</TD>' .
- "<TD VALIGN=top BGCOLOR=\"$color[4]\"> </TD>";
- if ($rightopt) {
- echo "<TD VALIGN=top BGCOLOR=\"$color[0]\" WIDTH=\"50%\">" .
- $rightopt['desc'] .
- '</TD>';
- } else {
- echo "<TD VALIGN=top BGCOLOR=\"$color[4]\" WIDTH=\"50%\"> </TD>";
- }
-
- echo '</TR>' .
- '</TABLE>' .
- '</TD></TR>' .
- "</TABLE>\n";
- }