Location: PHPKode > scripts > ScreamingToDos > std-0.9/edittheme.php
<?PHP
require "login.php";

if ((!($editthemes)) && ($currentgroup != "admin")) { Header("Location:edituser.php"); }

if ($theme == "") {
 if ($updatetheme > "") { $theme = $updatetheme; }
 else { Header("Location:edituser.php"); }
}

$r = qDB("SELECT id FROM $themetable where id=$theme");
$d = mysql_fetch_array($r);
if ($d[0] == "") { Header("Location:edituser.php"); }

if ($updatetheme != "") {
 $T_highBackCol = str_replace("\"","'",$T_highBackCol);
 $T_medBackCol = str_replace("\"","'",$T_medBackCol);
 $T_lowBackCol = str_replace("\"","'",$T_lowBackCol);
 $T_doneBackCol = str_replace("\"","'",$T_doneBackCol);
 $T_commentsBackCol = str_replace("\"","'",$T_commentsBackCol);
 $T_categoryBackCol = str_replace("\"","'",$T_categoryBackCol);
 $T_highForeCol = str_replace("\"","'",$T_highForeCol);
 $T_medForeCol = str_replace("\"","'",$T_medForeCol);
 $T_lowForeCol = str_replace("\"","'",$T_lowForeCol);
 $T_doneForeCol = str_replace("\"","'",$T_doneForeCol);
 $T_commentsForeCol = str_replace("\"","'",$T_commentsForeCol);
 $T_categoryForeCol = str_replace("\"","'",$T_categoryForeCol);
 $T_errorForeCol = str_replace("\"","'",$T_errorForeCol);
 $T_pageBackCol = str_replace("\"","'",$T_pageBackCol);
 $T_pageForeCol = str_replace("\"","'",$T_pageForeCol);
 $T_pageLinkCol = str_replace("\"","'",$T_pageLinkCol);
 $T_pageVlinkCol = str_replace("\"","'",$T_pageVlinkCol);
 $T_pageAlinkCol = str_replace("\"","'",$T_pageAlinkCol);
 $T_pageFontsize = str_replace("\"","'",$T_pageFontsize);
 $T_pageFont = str_replace("\"","'",$T_pageFont);

 $T_cal_headingBackCol = str_replace("\"","'",$T_cal_headingBackCol);
 $T_cal_daysBackCol = str_replace("\"","'",$T_cal_daysBackCol);
 $T_cal_datesBackCol = str_replace("\"","'",$T_cal_datesBackCol);
 $T_cal_todayBackCol = str_replace("\"","'",$T_cal_todayBackCol);
 $T_cal_headingForeCol = str_replace("\"","'",$T_cal_headingForeCol);
 $T_cal_daysForeCol = str_replace("\"","'",$T_cal_daysForeCol);
 $T_cal_datesForeCol = str_replace("\"","'",$T_cal_datesForeCol);
 $T_cal_todayForeCol = str_replace("\"","'",$T_cal_todayForeCol);

 if ($saveType == "update") {
  $q = "UPDATE $themetable SET highBackCol=\"$T_highBackCol\", medBackCol=\"$T_medBackCol\",";
  $q .= " lowBackCol=\"$T_lowBackCol\", doneBackCol=\"$T_doneBackCol\", commentsBackCol=\"$T_commentsBackCol\",";
  $q .= " categoryBackCol=\"$T_categoryBackCol\", highForeCol=\"$T_highForeCol\", medForeCol=\"$T_medForeCol\",";
  $q .= " lowForeCol=\"$T_lowForeCol\", doneForeCol=\"$T_doneForeCol\", commentsForeCol=\"$T_commentsForeCol\",";
  $q .= " categoryForeCol=\"$T_categoryForeCol\", errorForeCol=\"$T_errorForeCol\", pageBackCol=\"$T_pageBackCol\",";
  $q .= " pageForeCol=\"$T_pageForeCol\", pageLinkCol=\"$T_pageLinkCol\", pageVlinkCol=\"$T_pageVlinkCol\",";
  $q .= " pageAlinkCol=\"$T_pageAlinkCol\", pageFontsize=\"$T_pageFontsize\", pageFont=\"$T_pageFont\",";
  $q .= " CSS_hover_td=\"$T_CSS_hover_td\", CSS_hover_font_style=\"$T_CSS_hover_font_style\",";
  $q .= " CSS_hover_font_variant=\"$T_CSS_hover_font_variant\", CSS_hover_font_size=\"$T_CSS_hover_font_size\",";
  $q .= " CSS_hover_font_weight=\"$T_CSS_hover_font_weight\", CSS_hover_font_family=\"$T_CSS_hover_font_family\",";
  $q .= " CSS_hover_bg=\"$T_CSS_hover_bg\",";
  $q .= " CSS_anchor_td=\"$T_CSS_anchor_td\", CSS_anchor_font_style=\"$T_CSS_anchor_font_style\",";
  $q .= " CSS_anchor_font_variant=\"$T_CSS_anchor_font_variant\", CSS_anchor_font_size=\"$T_CSS_anchor_font_size\",";
  $q .= " CSS_anchor_font_weight=\"$T_CSS_anchor_font_weight\", CSS_anchor_font_family=\"$T_CSS_anchor_font_family\","; 
  $q .= " CSS_anchor_bg=\"$T_CSS_anchor_bg\",";
  $q .= " CSS_active_td=\"$T_CSS_active_td\", CSS_active_font_style=\"$T_CSS_active_font_style\",";
  $q .= " CSS_active_font_variant=\"$T_CSS_active_font_variant\", CSS_active_font_size=\"$T_CSS_active_font_size\",";
  $q .= " CSS_active_font_weight=\"$T_CSS_active_font_weight\", CSS_active_font_family=\"$T_CSS_active_font_family\",";
  $q .= " CSS_active_bg=\"$T_CSS_active_bg\",";
  $q .= " CSS_visited_td=\"$T_CSS_visited_td\", CSS_visited_font_style=\"$T_CSS_visited_font_style\",";
  $q .= " CSS_visited_font_variant=\"$T_CSS_visited_font_variant\", CSS_visited_font_size=\"$T_CSS_visited_font_size\",";
  $q .= " CSS_visited_font_weight=\"$T_CSS_visited_font_weight\", CSS_visited_font_family=\"$T_CSS_visited_font_family\",";
  $q .= " CSS_visited_bg=\"$T_CSS_visited_bg\",";
  $q .= " cal_headingBackCol=\"$T_cal_headingBackCol\",cal_daysBackCol=\"$T_cal_daysBackCol\",";
  $q .= " cal_datesBackCol=\"$T_cal_datesBackCol\",cal_todayBackCol=\"$T_cal_todayBackCol\",";
  $q .= " cal_headingForeCol=\"$T_cal_headingForeCol\",cal_daysForeCol=\"$T_cal_daysForeCol\",";
  $q .= " cal_datesForeCol=\"$T_cal_datesForeCol\",cal_todayForeCol=\"$T_cal_todayForeCol\"";
  $q .= " WHERE id=$updatetheme";

 $r = qDB($q);
 Header ("Location:edittheme.php?theme=$updatetheme");

 } elseif ($saveType == "savenew") {
  if ($savenewName == "") { Header ("Location:edittheme.php?error=2"); }
  $savenewName = str_replace("\"","'",$savenewName);
  $q = "INSERT INTO $themetable (theme, owner, highBackCol, medBackCol, lowBackCol, doneBackCol, commentsBackCol,";
  $q .= " categoryBackCol, highForeCol, medForeCol, lowForeCol, doneForeCol, commentsForeCol, categoryForeCol,";
  $q .= " errorForeCol, pageBackCol, pageForeCol, pageLinkCol, pageVlinkCol, pageAlinkCol, pageFontsize, pageFont,";
  $q .= " CSS_hover_td, CSS_hover_font_style, CSS_hover_font_variant, CSS_hover_font_size, CSS_hover_font_weight,";
  $q .= " CSS_hover_font_family, CSS_hover_bg, CSS_anchor_td, CSS_anchor_font_style, CSS_anchor_font_variant,";
  $q .= " CSS_anchor_font_size, CSS_anchor_font_weight, CSS_anchor_font_family, CSS_anchor_bg, CSS_active_td,";
  $q .= " CSS_active_font_style, CSS_active_font_variant, CSS_active_font_size, CSS_active_font_weight, CSS_active_font_family,";
  $q .= " CSS_active_bg, CSS_visited_td, CSS_visited_font_style, CSS_visited_font_variant, CSS_visited_font_size,";
  $q .= " CSS_visited_font_weight, CSS_visited_font_family, CSS_visited_bg, cal_headingBackCol, cal_daysBackCol cal_datesBackCol,";
  $q .= " cal_todayBackCol, cal_headingForeCol, cal_daysForeCol, cal_datesForeCol, cal_todayForeCol)";
  $q .= "  VALUES (\"$savenewName\", \"$currentuser\", \"$T_highBackCol\",";
  $q .= " \"$T_medBackCol\", \"$T_lowBackCol\", \"$T_doneBackCol\", \"$T_commentsBackCol\", \"$T_categoryBackCol\",";
  $q .= " \"$T_highForeCol\", \"$T_medForeCol\", \"$T_lowForeCol\", \"$T_doneForeCol\", \"$T_commentsForeCol\",";
  $q .= " \"$T_categoryForeCol\", \"$T_errorForeCol\", \"$T_pageBackCol\", \"$T_pageForeCol\", \"$T_pageLinkCol\",";
  $q .= " \"$T_pageVlinkCol\", \"$T_pageAlinkCol\", \"$T_pageFontsize\", \"$T_pageFont\", \"$T_CSS_hover_td\",";
  $q .= " \"$T_CSS_hover_font_style\", \"$T_CSS_hover_font_variant\", \"$T_CSS_hover_font_size\", \"$T_CSS_hover_font_weight\",";
  $q .= " \"$T_CSS_hover_font_family\", \"$T_CSS_hover_bg\", \"$T_CSS_anchor_td\", \"$T_CSS_anchor_font_style\",";
  $q .= " \"$T_CSS_anchor_font_variant\", \"$T_CSS_anchor_font_size\", \"$T_CSS_anchor_font_weight\",";
  $q .= " \"$T_CSS_anchor_font_family\", \"$T_CSS_anchor_bg\", \"$T_CSS_active_td\", \"$T_CSS_active_font_style\",";
  $q .= " \"$T_CSS_active_font_variant\", \"$T_CSS_active_font_size\", \"$T_CSS_active_font_weight\",";
  $q .= " \"$T_CSS_active_font_family\", \"$T_CSS_active_bg\", \"$T_CSS_visited_td\", \"$T_CSS_visited_font_style\",";
  $q .= " \"$T_CSS_visited_font_variant\", \"$T_CSS_visited_font_size\", \"$T_CSS_visited_font_weight\",";
  $q .= " \"$T_CSS_visited_font_family\", \"$T_CSS_visited_bg\", \"$T_cal_headingBackCol\", \"$T_cal_daysBackCol\",";
  $q .= " \"$T_cal_datesBackCol\", \"$T_cal_todayBackCol\", \"$T_cal_headingForeCol\", \"$T_cal_daysForeCol\",";
  $q .= " \"$T_cal_datesForeCol\", \"$T_cal_todayForeCol\")";

  $r = qDB($q);
  $r = qDB("SELECT id FROM $themetable WHERE id=".mysql_insert_id());
  $d = mysql_fetch_array($r);
  Header ("Location:edittheme.php?theme=".$d[0]);
 } elseif ($saveType == "delete") {
  $r = qDB("SELECT id FROM $themetable");
  $num_rows = mysql_num_rows($r);
  if ($num_rows == 1) { Header("Location:edittheme.php?error=3&theme=$updatetheme"); exit;}
  $r = qDB("DELETE FROM $themetable WHERE id=$updatetheme");
  Header("Location:edituser.php");
 } else {
  Header ("Location:edittheme.php?error=1");
 }
} else {
  $q = "SELECT id, theme, highBackCol, medBackCol, lowBackCol, doneBackCol, commentsBackCol, categoryBackCol,";
  $q .= " highForeCol, medForeCol, lowForeCol, doneForeCol, commentsForeCol, categoryForeCol, errorForeCol,";
  $q .= " categoryForeCol, errorForeCol, pageBackCol, pageForeCol, pageLinkCol, pageVlinkCol, pageAlinkCol,";
  $q .= " pageFontsize, pageFont, CSS_hover_td, CSS_hover_font_style, CSS_hover_font_variant, CSS_hover_font_size,";
  $q .= " CSS_hover_font_weight, CSS_hover_font_family, CSS_hover_bg, CSS_anchor_td, CSS_anchor_font_style,";
  $q .= " CSS_anchor_font_variant, CSS_anchor_font_size, CSS_anchor_font_weight, CSS_anchor_font_family,";
  $q .= " CSS_anchor_bg, CSS_active_td, CSS_active_font_style, CSS_active_font_variant, CSS_active_font_size,";
  $q .= " CSS_active_font_weight, CSS_active_font_family, CSS_active_bg, CSS_visited_td, CSS_visited_font_style,";
  $q .= " CSS_visited_font_variant, CSS_visited_font_size, CSS_visited_font_weight, CSS_visited_font_family,";
  $q .= " CSS_visited_bg, cal_headingBackCol, cal_daysBackCol, cal_datesBackCol, cal_todayBackCol, cal_headingForeCol,";
  $q .= " cal_daysForeCol, cal_datesForeCol, cal_todayForeCol FROM $themetable WHERE id=$theme";

  $r = qDB($q);
  $ThemeD = mysql_fetch_array($r);

}

$fromEditTheme = 1;
$confirmStr = "Are you sure you want to delete this theme?";
$currentPage = "STD->edit theme";
require "header.php";
?>
<form action="edittheme.php" method="post" name="editTheme">
<br><p></p>
<center>
<table border="0" cellpadding="10" style="border-top:thin groove;border-right:thin groove;border-left:thin groove;border-bottom:thin groove;">
 <tr>
  <td>
<font face="<?PHP echo $pageFont ?>" size="+<?PHP echo $pageFontsize ?>+4">
<strong><?PHP echo $ThemeD["theme"] ?></strong>
</font>
  </td>
 </tr>
</table>
<br><p></p>
<table border="0" cellpadding="0">
<?PHP if (($error == 1) || ($error == 2) || ($error == 3)) { ?>
 <tr>
  <td colspan="3">
   <font face="<?PHP echo $pageFont ?>" color="<?PHP echo $errorForeCol ?>" size="+<?PHP echo $pageFontsize+2 ?>"><strong>
<?PHP
   if ($error == 1) { echo "Please select a save option:"; }
   elseif ($error == 2) { echo "Please type in a name to save this theme as:"; }
   elseif ($error == 3) { echo "You cannot delete the last theme"; }
?>
   </strong></font>
  </td>
 </tr>
<?PHP } ?>
 <tr>
  <td><input type="radio" id="Update" name="saveType" value="update" CHECKED></td>
  <td><font face="<?PHP echo $pageFont ?>" size="<?PHP echo $pageFontsize ?>"><label for="Update">Update</label></td>
  <td></td>
 </tr>
 <tr>
  <td><input type="radio" id="SaveNew" name="saveType" value="savenew"></td>
  <td><font face="<?PHP echo $pageFont ?>" size="<?PHP echo $pageFontsize ?>"><label for="SaveNew">Save New: </label></td>
  <td><input type="text" size="31" maxlength="30" name="savenewName"></td>
 </tr>
 <tr>
  <td><input type="radio" name="saveType" id="Delete" value="delete"></td>
  <td><font face="<?PHP echo $pageFont ?>" size="<?PHP echo $pageFontsize ?>"><label for="Delete">Delete</label></td>
  <td></td>
 </tr>
 <tr>
  <td>&nbsp;</td>
  <td></td>
 </tr>
 <tr>
  <td></td>
  <td>
   <input type="hidden" name="updatetheme" value="<?PHP echo $theme ?>">
   <input type="button" value="Save" onClick="if(document.editTheme.saveType[2].checked) { if (doublecheck()) { document.editTheme.submit(); }; } else { document.editTheme.submit(); }">
  </td>
  <td><input type="button" value="Delete" onClick="document.editTheme.saveType[2].checked = true;  if (doublecheck()) { document.editTheme.submit(); };"></td>
 </tr>
</table>
<br><p></p>
<table border="0" cellpadding="0">
<tr><td>
<font face="<?PHP echo $pageFont ?>" size="<?PHP echo $pageFontsize ?>">
<table border="0" cellpadding="5" style="border-top:thin groove;border-right:thin groove;border-left:thin groove;border-bottom:thin groove;" width="100%" bgcolor="<?PHP echo $ThemeD["pageBackCol"] ?>">
 <tr>
  <td colspan="3"><strong><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="+<?PHP echo $ThemeD["pageFontsize"]+2 ?>">General HTML preferences:</font></strong></td>
 </tr>
 <tr>
  <td>&nbsp;</td>
  <td></td>
  <td></td>
 </tr>
 <tr>
  <td>&nbsp;</td>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Font size</strong></td>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Font</strong></td>
 </tr>
 <tr>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>" color="<?PHP echo $ThemeD["categoryForeCol"] ?>"><strong>Page font:</strong></font></td>
  <td><input type="text" name="T_pageFontsize" size="7" maxlength="2" value="<?PHP echo $ThemeD["pageFontsize"] ?>"></td>
  <td><input type="text" name="T_pageFont" size="41" maxlength="40" value="<?PHP echo $ThemeD["pageFont"] ?>"></td>
 </tr>
 <tr>
  <td>&nbsp;</td>
  <td></td>
  <td></td>
 </tr>
 <tr>
  <td>&nbsp;</td>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Foreground</strong></td>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Background</strong></td>
 </tr>
 <tr>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Page colors:</strong></font></td>
  <td><input type="text" name="T_pageForeCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["pageForeCol"] ?>"><a href="javascript:newWin('pageForeCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td><input type="text" name="T_pageBackCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["pageBackCol"] ?>"><a href="javascript:newWin('pageBackCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
 </tr>
 <tr>
  <td bgcolor="<?PHP echo $ThemeD["highBackCol"] ?>"><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>" color="<?PHP echo $ThemeD["highForeCol"] ?>"><strong>High priority colors:</strong></font></td>
  <td bgcolor="<?PHP echo $ThemeD["highBackCol"] ?>"><input name="T_highForeCol" type="text" size="7" maxlength="6" value="<?PHP echo $ThemeD["highForeCol"] ?>"><a href="javascript:newWin('highForeCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td bgcolor="<?PHP echo $ThemeD["highBackCol"] ?>"><input type="text" name="T_highBackCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["highBackCol"] ?>"><a href="javascript:newWin('highBackCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
 </tr>
 <tr>
  <td bgcolor="<?PHP echo $ThemeD["medBackCol"] ?>"><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>" color="<?PHP echo $ThemeD["medForeCol"] ?>"><strong>Medium priority colors:</strong></font></td>
  <td bgcolor="<?PHP echo $ThemeD["medBackCol"] ?>"><input type="text" name="T_medForeCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["medForeCol"] ?>"><a href="javascript:newWin('medForeCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td bgcolor="<?PHP echo $ThemeD["medBackCol"] ?>"><input type="text" name="T_medBackCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["medBackCol"] ?>"><a href="javascript:newWin('medBackCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
 </tr>
 <tr>
  <td bgcolor="<?PHP echo $ThemeD["lowBackCol"] ?>"><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>" color="<?PHP echo $ThemeD["lowForeCol"] ?>"><strong>Low priority colors:</strong></font></td>
  <td bgcolor="<?PHP echo $ThemeD["lowBackCol"] ?>"><input type="text" name="T_lowForeCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["lowForeCol"] ?>"><a href="javascript:newWin('lowForeCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td bgcolor="<?PHP echo $ThemeD["lowBackCol"] ?>"><input type="text" name="T_lowBackCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["lowBackCol"] ?>"><a href="javascript:newWin('lowBackCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
 </tr>
 <tr>
  <td bgcolor="<?PHP echo $ThemeD["doneBackCol"] ?>"><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>" color="<?PHP echo $ThemeD["doneForeCol"] ?>"><strong>Done tasks colors:</strong></font></td>
  <td bgcolor="<?PHP echo $ThemeD["doneBackCol"] ?>"><input type="text" name="T_doneForeCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["doneForeCol"] ?>"><a href="javascript:newWin('doneForeCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td bgcolor="<?PHP echo $ThemeD["doneBackCol"] ?>"><input type="text" name="T_doneBackCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["doneBackCol"] ?>"><a href="javascript:newWin('doneBackCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
 </tr>
 <tr>
  <td bgcolor="<?PHP echo $ThemeD["commentsBackCol"] ?>"><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>" color="<?PHP echo $ThemeD["commentsForeCol"] ?>"><strong>Comments colors:</strong></font></td>   
  <td bgcolor="<?PHP echo $ThemeD["commentsBackCol"] ?>"><input type="text" name="T_commentsForeCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["commentsForeCol"] ?>"><a href="javascript:newWin('commentsForeCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td bgcolor="<?PHP echo $ThemeD["commentsBackCol"] ?>"><input type="text" name="T_commentsBackCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["commentsBackCol"] ?>"><a href="javascript:newWin('commentsBackCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
 </tr>
 <tr>
  <td bgcolor="<?PHP echo $ThemeD["categoryBackCol"] ?>"><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>" color="<?PHP echo $ThemeD["categoryForeCol"] ?>"><strong>Category colors:</strong></font></td>   
  <td bgcolor="<?PHP echo $ThemeD["categoryBackCol"] ?>"><input type="text" name="T_categoryForeCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["categoryForeCol"] ?>"><a href="javascript:newWin('categoryForeCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td bgcolor="<?PHP echo $ThemeD["categoryBackCol"] ?>"><input type="text" name="T_categoryBackCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["categoryBackCol"] ?>"><a href="javascript:newWin('categoryBackCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
 </tr>
 <tr>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>" color="<?PHP echo $ThemeD["errorForeCol"] ?>"><strong>Error message text color:</strong></font></td>   
  <td><input type="text" name="T_errorForeCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["errorForeCol"] ?>"><a href="javascript:newWin('errorForeCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td>&nbsp;</td>
 </tr>
</table>
</td></tr>



<tr><td>
<table border="0" cellpadding="5" style="border-top:thin groove;border-right:thin groove;border-left:thin groove;border-bottom:thin groove;" width="100%" bgcolor="<?PHP echo $ThemeD["pageBackCol"] ?>">
 <tr>
  <td colspan="3"><strong><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="+<?PHP echo $ThemeD["pageFontsize"]+2 ?>">Calendar HTML preferences:</font></strong></td>
 </tr>
 <tr>
  <td>&nbsp;</td>
  <td></td>
  <td></td>
 </tr>
 <tr>
  <td>&nbsp;</td>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Foreground</strong></td>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Background</strong></td>
 </tr>
 <tr>
  <td bgcolor="<?PHP echo $ThemeD["cal_headingBackCol"] ?>"><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"]?>" color="<?PHP echo $ThemeD["cal_headingForeCol"] ?>"><strong>Heading colors:</strong></font></td>
  <td bgcolor="<?PHP echo $ThemeD["cal_headingBackCol"] ?>"><input name="T_cal_headingForeCol" type="text" size="7" maxlength="6" value="<?PHP echo $ThemeD["cal_headingForeCol"] ?>"><a href="javascript:newWin('cal_headingForeCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td bgcolor="<?PHP echo $ThemeD["cal_headingBackCol"] ?>"><input type="text" name="T_cal_headingBackCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["cal_headingBackCol"] ?>"><a href="javascript:newWin('cal_headingBackCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
 </tr>
 <tr>
  <td bgcolor="<?PHP echo $ThemeD["cal_daysBackCol"] ?>"><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>" color="<?PHP echo $ThemeD["cal_daysForeCol"] ?>"><strong>Days heading colors:</strong></font></td>
  <td bgcolor="<?PHP echo $ThemeD["cal_daysBackCol"] ?>"><input type="text" name="T_cal_daysForeCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["cal_daysForeCol"] ?>"><a href="javascript:newWin('cal_daysForeCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td bgcolor="<?PHP echo $ThemeD["cal_daysBackCol"] ?>"><input type="text" name="T_cal_daysBackCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["cal_daysBackCol"] ?>"><a href="javascript:newWin('cal_daysBackCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
 </tr>
 <tr>
  <td bgcolor="<?PHP echo $ThemeD["cal_datesBackCol"] ?>"><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>" color="<?PHP echo $ThemeD["cal_datesForeCol"] ?>"><strong>Dates colors:</strong></font></td>
  <td bgcolor="<?PHP echo $ThemeD["cal_datesBackCol"] ?>"><input type="text" name="T_cal_datesForeCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["cal_datesForeCol"] ?>"><a href="javascript:newWin('cal_datesForeCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td bgcolor="<?PHP echo $ThemeD["cal_datesBackCol"] ?>"><input type="text" name="T_cal_datesBackCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["cal_datesBackCol"] ?>"><a href="javascript:newWin('cal_datesBackCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
 </tr>
 <tr>
  <td bgcolor="<?PHP echo $ThemeD["cal_todayBackCol"] ?>"><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"]?>" color="<?PHP echo $ThemeD["cal_todayForeCol"] ?>"><strong>Today colors:</strong></font></td>
  <td bgcolor="<?PHP echo $ThemeD["cal_todayBackCol"] ?>"><input type="text" name="T_cal_todayForeCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["cal_todayForeCol"] ?>"><a href="javascript:newWin('cal_todayForeCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td bgcolor="<?PHP echo $ThemeD["cal_todayBackCol"] ?>"><input type="text" name="T_cal_todayBackCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["cal_todayBackCol"] ?>"><a href="javascript:newWin('cal_todayBackCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
 </tr>
</table>
</td></tr>



<tr><td>
<table border="0" cellpadding="5" style="border-top:thin groove;border-right:thin groove;border-left:thin groove;border-bottom:thin groove;" width="100%" bgcolor="<?PHP echo $ThemeD["pageBackCol"] ?>">
 <tr> 
  <td colspan="3"><strong><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="+<?PHP echo $ThemeD["pageFontsize"]+2 ?>">HTML link preferences:</font></strong></td>
 </tr>
 <tr>
  <td>&nbsp;</td>
  <td></td>
  <td></td>
 </tr>
 <tr align="center">
  <td width="33%"><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Link color</strong></td>
  <td width="33%"><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Visited link color</strong></td>
  <td width="33%"><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Active link color</strong></td>
 </tr>
 <tr align="center">
  <td bgcolor="<?PHP echo $ThemeD["pageLinkCol"] ?>"><input type="text" name="T_pageLinkCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["pageLinkCol"] ?>"><a href="javascript:newWin('pageLinkCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td bgcolor="<?PHP echo $ThemeD["pageVlinkCol"] ?>"><input type="text" name="T_pageVlinkCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["pageVlinkCol"] ?>"><a href="javascript:newWin('pageVlinkCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td bgcolor="<?PHP echo $ThemeD["pageAlinkCol"] ?>"><input type="text" name="T_pageAlinkCol" size="7" maxlength="6" value="<?PHP echo $ThemeD["pageAlinkCol"] ?>"><a href="javascript:newWin('pageAlinkCol');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
 </tr>
</table>
</td>
</tr>
<tr><td>
<table border="0" cellpadding="5" style="border-top:thin groove;border-right:thin groove;border-left:thin groove;border-bottom:thin groove;" width="100%" bgcolor="<?PHP echo $ThemeD["pageBackCol"] ?>">
 <tr>
  <td colspan="3"><strong><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="+<?PHP echo $ThemeD["pageFontsize"]+2 ?>">CSS link preferences:</font></strong></td>
 </tr>
 <tr>
  <td>&nbsp;</td>
  <td></td>
  <td></td>
 </tr>
 <tr>
  <td></td>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Link</strong></font></td>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Hover</strong></font></td>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Active</strong></font></td>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Visited</strong></font></td>
 </tr>
 <tr>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Decoration:</strong></font></td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_anchor_td"] == "none") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_anchor_td"] == "underline") { $option2 = "SELECTED"; } else { $option2 = ""; }
if ($ThemeD["CSS_anchor_td"] == "overline") { $option3 = "SELECTED"; } else { $option3 = ""; }
if ($ThemeD["CSS_anchor_td"] == "line-through") { $option4 = "SELECTED"; } else { $option4 = ""; }
if ($ThemeD["CSS_anchor_td"] == "blink") { $option5 = "SELECTED"; } else { $option5 = ""; }
?>
   <select name="T_CSS_anchor_td">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="none">None
    <option <?PHP echo $option2 ?> value="underline">Underline
    <option <?PHP echo $option3 ?> value="overline">Overline
    <option <?PHP echo $option4 ?> value="line-through">Strikeout
    <option <?PHP echo $option5 ?> value="blink">Blink
   </select>
  </td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_hover_td"] == "none") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_hover_td"] == "underline") { $option2 = "SELECTED"; } else { $option2 = ""; }
if ($ThemeD["CSS_hover_td"] == "overline") { $option3 = "SELECTED"; } else { $option3 = ""; }
if ($ThemeD["CSS_hover_td"] == "line-through") { $option4 = "SELECTED"; } else { $option4 = ""; }
if ($ThemeD["CSS_hover_td"] == "blink") { $option5 = "SELECTED"; } else { $option5 = ""; }
?>
   <select name="T_CSS_hover_td">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="none">None
    <option <?PHP echo $option2 ?> value="underline">Underline
    <option <?PHP echo $option3 ?> value="overline">Overline
    <option <?PHP echo $option4 ?> value="line-through">Strikeout
    <option <?PHP echo $option5 ?> value="blink">Blink
   </select>
  </td>
  <td style="border-right:thin groove;"> 
<?PHP
if ($ThemeD["CSS_active_td"] == "none") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_active_td"] == "underline") { $option2 = "SELECTED"; } else { $option2 = ""; } 
if ($ThemeD["CSS_active_td"] == "overline") { $option3 = "SELECTED"; } else { $option3 = ""; }
if ($ThemeD["CSS_active_td"] == "line-through") { $option4 = "SELECTED"; } else { $option4 = ""; }
if ($ThemeD["CSS_active_td"] == "blink") { $option5 = "SELECTED"; } else { $option5 = ""; }
?>
   <select name="T_CSS_active_td">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="none">None
    <option <?PHP echo $option2 ?> value="underline">Underline
    <option <?PHP echo $option3 ?> value="overline">Overline
    <option <?PHP echo $option4 ?> value="line-through">Strikeout
    <option <?PHP echo $option5 ?> value="blink">Blink
   </select>
  </td>
  <td> 
<?PHP
if ($ThemeD["CSS_visited_td"] == "none") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_visited_td"] == "underline") { $option2 = "SELECTED"; } else { $option2 = ""; } 
if ($ThemeD["CSS_visited_td"] == "overline") { $option3 = "SELECTED"; } else { $option3 = ""; }
if ($ThemeD["CSS_visited_td"] == "line-through") { $option4 = "SELECTED"; } else { $option4 = ""; }
if ($ThemeD["CSS_visited_td"] == "blink") { $option5 = "SELECTED"; } else { $option5 = ""; }
?>
   <select name="T_CSS_visited_td">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="none">None
    <option <?PHP echo $option2 ?> value="underline">Underline
    <option <?PHP echo $option3 ?> value="overline">Overline
    <option <?PHP echo $option4 ?> value="line-through">Strikeout
    <option <?PHP echo $option5 ?> value="blink">Blink
   </select>
  </td>
 </tr>
 <tr>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Font style:</strong></font></td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_anchor_font_style"] == "normal") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_anchor_font_style"] == "italic") { $option2 = "SELECTED"; } else { $option2 = ""; }
?>
   <select name="T_CSS_anchor_font_style">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="normal">Normal
    <option <?PHP echo $option2 ?> value="italic">Italic
   </select>
  </td>
  <td style="border-right:thin groove;"> 
<?PHP
if ($ThemeD["CSS_hover_font_style"] == "normal") { $option1 = "SELECTED"; } else { $option1 = ""; }     
if ($ThemeD["CSS_hover_font_style"] == "italic") { $option2 = "SELECTED"; } else { $option2 = ""; }     
?>
   <select name="T_CSS_hover_font_style">     
    <option value="">Default
    <option <?PHP echo $option1 ?> value="normal">Normal
    <option <?PHP echo $option2 ?> value="italic">Italic
   </select>
  </td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_active_font_style"] == "normal") { $option1 = "SELECTED"; } else { $option1 = ""; }     
if ($ThemeD["CSS_active_font_style"] == "italic") { $option2 = "SELECTED"; } else { $option2 = ""; }     
?>
   <select name="T_CSS_active_font_style">     
    <option value="">Default
    <option <?PHP echo $option1 ?> value="normal">Normal
    <option <?PHP echo $option2 ?> value="italic">Italic
   </select>
  </td>
  <td>
<?PHP
if ($ThemeD["CSS_visited_font_style"] == "normal") { $option1 = "SELECTED"; } else { $option1 = ""; }     
if ($ThemeD["CSS_visited_font_style"] == "italic") { $option2 = "SELECTED"; } else { $option2 = ""; }     
?>
   <select name="T_CSS_visited_font_style">     
    <option value="">Default
    <option <?PHP echo $option1 ?> value="normal">Normal
    <option <?PHP echo $option2 ?> value="italic">Italic
   </select>
  </td>
 </tr>
 <tr>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Font variant:</strong></font></td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_anchor_font_variant"] == "normal") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_anchor_font_variant"] == "small-caps") { $option2 = "SELECTED"; } else { $option2 = ""; }
?>
   <select name="T_CSS_anchor_font_variant">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="normal">Normal
    <option <?PHP echo $option2 ?> value="small-caps">Small caps
   </select>
  </td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_hover_font_variant"] == "normal") { $option1 = "SELECTED"; } else { $option1 = ""; }     
if ($ThemeD["CSS_hover_font_variant"] == "small-caps") { $option2 = "SELECTED"; } else { $option2 = ""; }     
?>
   <select name="T_CSS_hover_font_variant">     
    <option value="">Default
    <option <?PHP echo $option1 ?> value="normal">Normal
    <option <?PHP echo $option2 ?> value="small-caps">Small caps
   </select>
  </td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_active_font_variant"] == "normal") { $option1 = "SELECTED"; } else { $option1 = ""; }     
if ($ThemeD["CSS_active_font_variant"] == "small-caps") { $option2 = "SELECTED"; } else { $option2 = ""; }     
?>
   <select name="T_CSS_active_font_variant">     
    <option value="">Default
    <option <?PHP echo $option1 ?> value="normal">Normal
    <option <?PHP echo $option2 ?> value="small-caps">Small caps
   </select>
  </td>
  <td>
<?PHP
if ($ThemeD["CSS_visited_font_variant"] == "normal") { $option1 = "SELECTED"; } else { $option1 = ""; }     
if ($ThemeD["CSS_visited_font_variant"] == "small-caps") { $option2 = "SELECTED"; } else { $option2 = ""; }     
?>
   <select name="T_CSS_visited_font_variant">     
    <option value="">Default
    <option <?PHP echo $option1 ?> value="normal">Normal
    <option <?PHP echo $option2 ?> value="small-caps">Small caps
   </select>
  </td>
 </tr>
 <tr>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Font size:</strong></font></td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_anchor_font_size"] == "xx-small") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_anchor_font_size"] == "x-small") { $option2 = "SELECTED"; } else { $option2 = ""; }
if ($ThemeD["CSS_anchor_font_size"] == "small") { $option3 = "SELECTED"; } else { $option3 = ""; }
if ($ThemeD["CSS_anchor_font_size"] == "medium") { $option4 = "SELECTED"; } else { $option4 = ""; }
if ($ThemeD["CSS_anchor_font_size"] == "large") { $option5 = "SELECTED"; } else { $option5 = ""; }
if ($ThemeD["CSS_anchor_font_size"] == "x-large") { $option6 = "SELECTED"; } else { $option6 = ""; }
if ($ThemeD["CSS_anchor_font_size"] == "xx-large") { $option7 = "SELECTED"; } else { $option7 = ""; }
?>
   <select name="T_CSS_anchor_font_size">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="xx-small">XX Small
    <option <?PHP echo $option2 ?> value="x-small">X Small
    <option <?PHP echo $option3 ?> value="small">Small
    <option <?PHP echo $option4 ?> value="medium">Medium
    <option <?PHP echo $option5 ?> value="large">Large
    <option <?PHP echo $option6 ?> value="x-large">X Large
    <option <?PHP echo $option7 ?> value="xx-large">XX Large
   </select>
  </td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_hover_font_size"] == "xx-small") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_hover_font_size"] == "x-small") { $option2 = "SELECTED"; } else { $option2 = ""; }
if ($ThemeD["CSS_hover_font_size"] == "small") { $option3 = "SELECTED"; } else { $option3 = ""; }
if ($ThemeD["CSS_hover_font_size"] == "medium") { $option4 = "SELECTED"; } else { $option4 = ""; }
if ($ThemeD["CSS_hover_font_size"] == "large") { $option5 = "SELECTED"; } else { $option5 = ""; }
if ($ThemeD["CSS_hover_font_size"] == "x-large") { $option6 = "SELECTED"; } else { $option6 = ""; }
if ($ThemeD["CSS_hover_font_size"] == "xx-large") { $option7 = "SELECTED"; } else { $option7 = ""; }
?>
   <select name="T_CSS_hover_font_size">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="xx-small">XX Small
    <option <?PHP echo $option2 ?> value="x-small">X Small
    <option <?PHP echo $option3 ?> value="small">Small
    <option <?PHP echo $option4 ?> value="medium">Medium
    <option <?PHP echo $option5 ?> value="large">Large
    <option <?PHP echo $option6 ?> value="x-large">X Large
    <option <?PHP echo $option7 ?> value="xx-large">XX Large
   </select>
  </td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_active_font_size"] == "xx-small") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_active_font_size"] == "x-small") { $option2 = "SELECTED"; } else { $option2 = ""; }
if ($ThemeD["CSS_active_font_size"] == "small") { $option3 = "SELECTED"; } else { $option3 = ""; }
if ($ThemeD["CSS_active_font_size"] == "medium") { $option4 = "SELECTED"; } else { $option4 = ""; }
if ($ThemeD["CSS_active_font_size"] == "large") { $option5 = "SELECTED"; } else { $option5 = ""; }
if ($ThemeD["CSS_active_font_size"] == "x-large") { $option6 = "SELECTED"; } else { $option6 = ""; }
if ($ThemeD["CSS_active_font_size"] == "xx-large") { $option7 = "SELECTED"; } else { $option7 = ""; }
?>
   <select name="T_CSS_active_font_size">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="xx-small">XX Small
    <option <?PHP echo $option2 ?> value="x-small">X Small
    <option <?PHP echo $option3 ?> value="small">Small
    <option <?PHP echo $option4 ?> value="medium">Medium
    <option <?PHP echo $option5 ?> value="large">Large
    <option <?PHP echo $option6 ?> value="x-large">X Large
    <option <?PHP echo $option7 ?> value="xx-large">XX Large
   </select>
  </td>
  <td>
<?PHP
if ($ThemeD["CSS_visited_font_size"] == "xx-small") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_visited_font_size"] == "x-small") { $option2 = "SELECTED"; } else { $option2 = ""; }
if ($ThemeD["CSS_visited_font_size"] == "small") { $option3 = "SELECTED"; } else { $option3 = ""; }
if ($ThemeD["CSS_visited_font_size"] == "medium") { $option4 = "SELECTED"; } else { $option4 = ""; }
if ($ThemeD["CSS_visited_font_size"] == "large") { $option5 = "SELECTED"; } else { $option5 = ""; }
if ($ThemeD["CSS_visited_font_size"] == "x-large") { $option6 = "SELECTED"; } else { $option6 = ""; }
if ($ThemeD["CSS_visited_font_size"] == "xx-large") { $option7 = "SELECTED"; } else { $option7 = ""; }
?>
   <select name="T_CSS_visited_font_size">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="xx-small">XX Small
    <option <?PHP echo $option2 ?> value="x-small">X Small
    <option <?PHP echo $option3 ?> value="small">Small
    <option <?PHP echo $option4 ?> value="medium">Medium
    <option <?PHP echo $option5 ?> value="large">Large
    <option <?PHP echo $option6 ?> value="x-large">X Large
    <option <?PHP echo $option7 ?> value="xx-large">XX Large
   </select>
  </td>
 </tr>
 <tr>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Font weight:</strong></font></td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_anchor_font_weight"] == "lighter") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_anchor_font_weight"] == "normal") { $option2 = "SELECTED"; } else { $option2 = ""; }  
if ($ThemeD["CSS_anchor_font_weight"] == "bold") { $option3 = "SELECTED"; } else { $option3 = ""; }   
if ($ThemeD["CSS_anchor_font_weight"] == "bolder") { $option4 = "SELECTED"; } else { $option4 = ""; }      
?>
   <select name="T_CSS_anchor_font_weight">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="lighter">Lighter
    <option <?PHP echo $option2 ?> value="normal">Normal
    <option <?PHP echo $option3 ?> value="bold">Bold
    <option <?PHP echo $option4 ?> value="bolder">Bolder
   </select>
  </td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_hover_font_weight"] == "lighter") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_hover_font_weight"] == "normal") { $option2 = "SELECTED"; } else { $option2 = ""; }
if ($ThemeD["CSS_hover_font_weight"] == "bold") { $option3 = "SELECTED"; } else { $option3 = ""; }
if ($ThemeD["CSS_hover_font_weight"] == "bolder") { $option4 = "SELECTED"; } else { $option4 = ""; }
?>
   <select name="T_CSS_hover_font_weight">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="lighter">Lighter
    <option <?PHP echo $option2 ?> value="normal">Normal
    <option <?PHP echo $option3 ?> value="bold">Bold
    <option <?PHP echo $option4 ?> value="bolder">Bolder
   </select>
  </td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_active_font_weight"] == "lighter") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_active_font_weight"] == "normal") { $option2 = "SELECTED"; } else { $option2 = ""; }
if ($ThemeD["CSS_active_font_weight"] == "bold") { $option3 = "SELECTED"; } else { $option3 = ""; }
if ($ThemeD["CSS_active_font_weight"] == "bolder") { $option4 = "SELECTED"; } else { $option4 = ""; }
?>
   <select name="T_CSS_active_font_weight">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="lighter">Lighter
    <option <?PHP echo $option2 ?> value="normal">Normal
    <option <?PHP echo $option3 ?> value="bold">Bold
    <option <?PHP echo $option4 ?> value="bolder">Bolder
   </select>
  </td>
  <td>
<?PHP
if ($ThemeD["CSS_visited_font_weight"] == "lighter") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_visited_font_weight"] == "normal") { $option2 = "SELECTED"; } else { $option2 = ""; }
if ($ThemeD["CSS_visited_font_weight"] == "bold") { $option3 = "SELECTED"; } else { $option3 = ""; }
if ($ThemeD["CSS_visited_font_weight"] == "bolder") { $option4 = "SELECTED"; } else { $option4 = ""; }
?>
   <select name="T_CSS_visited_font_weight">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="lighter">Lighter
    <option <?PHP echo $option2 ?> value="normal">Normal
    <option <?PHP echo $option3 ?> value="bold">Bold
    <option <?PHP echo $option4 ?> value="bolder">Bolder
   </select>
  </td>
 </tr>
 <tr>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Font:</strong></font></td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_anchor_font_family"] == "serif") { $option1 = "SELECTED"; } else { $option1 = ""; }
if ($ThemeD["CSS_anchor_font_family"] == "sans-serif") { $option2 = "SELECTED"; } else { $option2 = ""; }
if ($ThemeD["CSS_anchor_font_family"] == "cursive") { $option3 = "SELECTED"; } else { $option3 = ""; }
if ($ThemeD["CSS_anchor_font_family"] == "fantasy") { $option4 = "SELECTED"; } else { $option4 = ""; }
if ($ThemeD["CSS_anchor_font_family"] == "monospace") { $option5 = "SELECTED"; } else { $option5 = ""; }
?>
   <select name="T_CSS_anchor_font_family">
    <option value="">Default
    <option <?PHP echo $option1 ?> value="serif">Serif
    <option <?PHP echo $option2 ?> value="sans-serif">Sans-serif
    <option <?PHP echo $option3 ?> value="cursive">Cursive
    <option <?PHP echo $option4 ?> value="fantasy">Fantasy
    <option <?PHP echo $option5 ?> value="monospace">Monospace
   </select>
  </td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_hover_font_family"] == "serif") { $option1 = "SELECTED"; } else { $option1 = ""; }     
if ($ThemeD["CSS_hover_font_family"] == "sans-serif") { $option2 = "SELECTED"; } else { $option2 = ""; }     
if ($ThemeD["CSS_hover_font_family"] == "cursive") { $option3 = "SELECTED"; } else { $option3 = ""; }     
if ($ThemeD["CSS_hover_font_family"] == "fantasy") { $option4 = "SELECTED"; } else { $option4 = ""; }     
if ($ThemeD["CSS_hover_font_family"] == "monospace") { $option5 = "SELECTED"; } else { $option5 = ""; }     
?>
   <select name="T_CSS_hover_font_family">     
    <option value="">Default
    <option <?PHP echo $option1 ?> value="serif">Serif
    <option <?PHP echo $option2 ?> value="sans-serif">Sans-serif
    <option <?PHP echo $option3 ?> value="cursive">Cursive
    <option <?PHP echo $option4 ?> value="fantasy">Fantasy
    <option <?PHP echo $option5 ?> value="monospace">Monospace
   </select>
  </td>
  <td style="border-right:thin groove;">
<?PHP
if ($ThemeD["CSS_active_font_family"] == "serif") { $option1 = "SELECTED"; } else { $option1 = ""; }     
if ($ThemeD["CSS_active_font_family"] == "sans-serif") { $option2 = "SELECTED"; } else { $option2 = ""; }     
if ($ThemeD["CSS_active_font_family"] == "cursive") { $option3 = "SELECTED"; } else { $option3 = ""; }     
if ($ThemeD["CSS_active_font_family"] == "fantasy") { $option4 = "SELECTED"; } else { $option4 = ""; }     
if ($ThemeD["CSS_active_font_family"] == "monospace") { $option5 = "SELECTED"; } else { $option5 = ""; }     
?>
   <select name="T_CSS_active_font_family">     
    <option value="">Default
    <option <?PHP echo $option1 ?> value="serif">Serif
    <option <?PHP echo $option2 ?> value="sans-serif">Sans-serif
    <option <?PHP echo $option3 ?> value="cursive">Cursive
    <option <?PHP echo $option4 ?> value="fantasy">Fantasy
    <option <?PHP echo $option5 ?> value="monospace">Monospace
   </select>
  </td>
  <td>
<?PHP
if ($ThemeD["CSS_visited_font_family"] == "serif") { $option1 = "SELECTED"; } else { $option1 = ""; }     
if ($ThemeD["CSS_visited_font_family"] == "sans-serif") { $option2 = "SELECTED"; } else { $option2 = ""; }     
if ($ThemeD["CSS_visited_font_family"] == "cursive") { $option3 = "SELECTED"; } else { $option3 = ""; }     
if ($ThemeD["CSS_visited_font_family"] == "fantasy") { $option4 = "SELECTED"; } else { $option4 = ""; }     
if ($ThemeD["CSS_visited_font_family"] == "monospace") { $option5 = "SELECTED"; } else { $option5 = ""; }     
?>
   <select name="T_CSS_visited_font_family">     
    <option value="">Default
    <option <?PHP echo $option1 ?> value="serif">Serif
    <option <?PHP echo $option2 ?> value="sans-serif">Sans-serif
    <option <?PHP echo $option3 ?> value="cursive">Cursive
    <option <?PHP echo $option4 ?> value="fantasy">Fantasy
    <option <?PHP echo $option5 ?> value="monospace">Monospace
   </select>
  </td>
 </tr>
 <tr>
  <td><font face="<?PHP echo $ThemeD["pageFont"] ?>" size="<?PHP echo $ThemeD["pageFontsize"] ?>"><strong>Background:</strong></font></td>
  <td style="border-right:thin groove;" bgcolor="<?PHP echo $ThemeD["CSS_anchor_bg"] ?>"><input type="text" name="T_CSS_anchor_bg" size="7" maxlength="6" value="<?PHP echo $ThemeD["CSS_anchor_bg"] ?>"><a href="javascript:newWin('CSS_anchor_bg');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td style="border-right:thin groove;" bgcolor="<?PHP echo $ThemeD["CSS_hover_bg"] ?>"><input type="text" name="T_CSS_hover_bg" size="7" maxlength="6" value="<?PHP echo $ThemeD["CSS_hover_bg"] ?>"><a href="javascript:newWin('CSS_hover_bg');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td style="border-right:thin groove;" bgcolor="<?PHP echo $ThemeD["CSS_active_bg"] ?>"><input type="text" name="T_CSS_active_bg" size="7" maxlength="6" value="<?PHP echo $ThemeD["CSS_active_bg"] ?>"><a href="javascript:newWin('CSS_active_bg');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
  <td bgcolor="<?PHP echo $ThemeD["CSS_visited_bg"] ?>"><input type="text" name="T_CSS_visited_bg" size="7" maxlength="6" value="<?PHP echo $ThemeD["CSS_visited_bg"] ?>"><a href="javascript:newWin('CSS_visited_bg');"><img src="images/colorwheel.gif" align="center" border="0" width="19" height="19"></a></td>
</tr>

</td></tr>
</table>
</td></tr>
</table>
<br><p></p>
</form>
<?PHP #echo phpinfo(); ?>
</center>
<?PHP
 $footerURL = "edituser.php";
 require 'footer.php';
?>
Return current item: ScreamingToDos