Location: PHPKode > scripts > ScreamingToDos > std-0.9/header.php
<html>
<head>
<title>:: <?PHP if (($GLOBALS["auth"]) && (!($loginPage))) { echo $GLOBALS["currentuser"]." :: "; } echo $currentPage ?> ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
<?PHP if ($confirmStr) { ?>
 function doublecheck() { return (confirm("<?PHP echo $confirmStr ?>")); }
<?PHP } ?>
 function newWin(URL) {
  COLORPICKER = window.open('colorpicker.php?user=<?PHP echo $GLOBALS["currentuser"] ?>&URL='+URL,'colorpicker','directories=no,height=400,width=350,location=no,menubar=yes,resizable=yes,scrollbars=no,status=no,toolbar=no');
 }
 function setVal(docObj, hexVal) {
  blah = eval("document.editTheme.T_" + docObj + ".value=\"" + hexVal + "\"");
 }
 function pick(HexVal) {
  document.pickerForm.hexVal.value = HexVal;
  document.pickerForm.hexVal.select();
  document.bgColor = "#" + HexVal; 
 }
 function edittheme(themeName) {
  document.location.href="edittheme.php?theme="+themeName;
 }
 function set_date() {
  todayDate = new Date();
  document.addtask.month.selectedIndex = todayDate.getMonth() + 1;
  document.addtask.day.selectedIndex = todayDate.getDate();
  document.addtask.year.selectedIndex = todayDate.getFullYear() - 1999;
 }
 function set_time() {
  todayDate = new Date();
  if (todayDate.getHours() > 12) { todayHours = todayDate.getHours() - 12; todayAmpm = 2; }
  else { todayHours = todayDate.getHours(); todayAmpm = 1; }
  document.addtask.hour.selectedIndex = todayHours;
  document.addtask.minutes.selectedIndex = todayDate.getMinutes() + 1;
  document.addtask.ampm.selectedIndex = todayAmpm;
 }
<?PHP /*
 function set_date() {
  document.addtask.month.selectedIndex = <?PHP echo date("m"); ?>;
  document.addtask.day.selectedIndex = <?PHP echo date("d"); ?>;
  document.addtask.year.selectedIndex = <?PHP echo (date("Y") - 1999); ?>;
 }
 function set_time() {
  document.addtask.hour.selectedIndex = <?PHP echo date("h"); ?>;
  document.addtask.minutes.selectedIndex = <?PHP echo date("i"); ?>;
  document.addtask.ampm.selectedIndex = <?PHP
                                              if (date("a") == "am") { echo "1"; }
                                              else { echo "2"; }
                                         ?>;
 }
 */ ?>
</script>
<style>
 a { 
<?PHP if (strlen($GLOBALS["CSS_anchor_td"]) > 0) { echo "  text-decoration: ".$GLOBALS["CSS_anchor_td"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_anchor_bg"]) > 1) { echo "  background: ".$GLOBALS["CSS_anchor_bg"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_anchor_font_style"]) > 0) { echo "  font-style: ".$GLOBALS["CSS_anchor_font_style"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_anchor_font_variant"]) > 0) { echo "  font-variant: ".$GLOBALS["CSS_anchor_font_variant"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_anchor_font_size"]) > 0) { echo "  font-size: ".$GLOBALS["CSS_anchor_font_size"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_anchor_font_weight"]) > 0) { echo "  font-weight: ".$GLOBALS["CSS_anchor_font_weight"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_anchor_font_family"]) > 0) { echo "  font-family: ".$GLOBALS["CSS_anchor_font_family"].";\n"; } ?>
 }
 a:hover {
<?PHP if (strlen($GLOBALS["CSS_hover_td"]) > 0) { echo "  text-decoration: ".$GLOBALS["CSS_hover_td"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_hover_bg"]) > 1) { echo "  background: ".$GLOBALS["CSS_hover_bg"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_hover_font_style"]) > 0) { echo "  font-style: ".$GLOBALS["CSS_hover_font_style"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_hover_font_variant"]) > 0) { echo "  font-variant: ".$GLOBALS["CSS_hover_font_variant"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_hover_font_size"]) > 0) { echo "  font-size: ".$GLOBALS["CSS_hover_font_size"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_hover_font_weight"]) > 0) { echo "  font-weight: ".$GLOBALS["CSS_hover_font_weight"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_hover_font_family"]) > 0) { echo "  font-family: ".$GLOBALS["CSS_hover_font_family"].";\n"; } ?>
 }
 a:active {
<?PHP if (strlen($GLOBALS["CSS_active_td"]) > 0) { echo "  text-decoration: ".$GLOBALS["CSS_active_td"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_active_bg"]) > 1) { echo "  background: ".$GLOBALS["CSS_active_bg"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_active_font_style"]) > 0) { echo "  font-style: ".$GLOBALS["CSS_active_font_style"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_active_font_variant"]) > 0) { echo "  font-variant: ".$GLOBALS["CSS_active_font_variant"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_active_font_size"]) > 0) { echo "  font-size: ".$GLOBALS["CSS_active_font_size"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_active_font_weight"]) > 0) { echo "  font-weight: ".$GLOBALS["CSS_active_font_weight"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_active_font_family"]) > 0) { echo "  font-family: ".$GLOBALS["CSS_active_font_family"].";\n"; } ?>
 }
 a:visited {
<?PHP if (strlen($GLOBALS["CSS_visited_td"]) > 0) { echo "  text-decoration: ".$GLOBALS["CSS_visited_td"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_visited_bg"]) > 1) { echo "  background: ".$GLOBALS["CSS_visited_bg"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_visited_font_style"]) > 0) { echo "  font-style: ".$GLOBALS["CSS_visited_font_style"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_visited_font_variant"]) > 0) { echo "  font-variant: ".$GLOBALS["CSS_visited_font_variant"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_visited_font_size"]) > 0) { echo "  font-size: ".$GLOBALS["CSS_visited_font_size"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_visited_font_weight"]) > 0) { echo "  font-weight: ".$GLOBALS["CSS_visited_font_weight"].";\n"; } ?>
<?PHP if (strlen($GLOBALS["CSS_visited_font_family"]) > 0) { echo "  font-family: ".$GLOBALS["CSS_visited_font_family"].";\n"; } ?>
 }
 #bordered {
  border-top:thin groove;
  border-left:thin groove;
  border-right:thin groove;
  border-bottom:thin groove;
 }

</style>
</head>
<body bgcolor="<?PHP echo $GLOBALS["pageBackCol"] ?>" text="<?PHP echo $GLOBALS["pageForeCol"] ?>" link="<?PHP echo $GLOBALS["pageLinkCol"] ?>" vlink="<?PHP echo $GLOBALS["pageVlinkCol"] ?>" alink="<?PHP echo $GLOBALS["pageAlinkCol"] ?>" topmargin="0" leftmargin="0" rightmargin="0">
<font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>">

<?PHP if (!($GLOBALS["print"])) { ?>

<?PHP if ((!($loginPage)) && (!($colorPicker))) { ?>
<table align="left" border="0" style="border-right:thin groove;border-bottom:thin groove;">
 <tr>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>"><a href="calendar.php">Monthly</a></td>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>"><a href="calendar.php?date=<?PHP echo date("m")."-".date("d")."-".date("Y") ?>">Today</a></font></td>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>"><a href="todos.php">Todos</a></td>
 </tr>
</table>

<?PHP  if ($fromEditTodo) { ?>
<table align="left" border="0" style="border-right:thin groove;border-bottom:thin groove;">
 <tr>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>">&nbsp;&nbsp; :: &nbsp;&nbsp;</font></td>
 </tr>
</table>
<table align="left" border="0" style="border-right:thin groove;border-bottom:thin groove;">
 <tr>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>"><?PHP echo $firstNavURL ?>First</a></td>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>"><?PHP echo $ficNavURL ?>First in category</a></font></td>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>"><?PHP echo $prevNavURL ?>Previous</a></td>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>"><?PHP echo $nextNavURL ?>Next</a></td>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>"><?PHP echo $licNavURL ?>Last in category</a></font></td>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>"><?PHP echo $lastNavURL ?>Last</a></td>
 </tr>
</table>
<?PHP  } elseif ($fromEditTheme) { ?>
<form method="get">
<table align="left" border="0" style="border-right:thin groove;border-bottom:thin groove;">
 <tr>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>">&nbsp;&nbsp; :: &nbsp;&nbsp;</font></td>
 </tr>
</table>
<table align="left" border="0" cellpadding="0" style="border-right:thin groove;border-bottom:thin groove;">
 <tr valign="center">
  <td align="center"><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>">Go to theme:</font>&nbsp;&nbsp;</td>
  <td>
   <select name="theme">
<?PHP
 $r = qDB("SELECT id,theme FROM $themetable");
 for ($x = 1; $x <= mysql_num_rows($r); $x++) {
  $d = mysql_fetch_array($r);
  if ($theme == $d[0]) { $SEL = "SELECTED"; } else { $SEL = ""; }
  echo "<option $SEL value=\"".$d[0]."\">".$d[1]."\n";
 }
?>
   </select>
  </td>
  <td>&nbsp;&nbsp;<input type="submit" value="Go"></td>
 </tr>
</table>
</form>
<?PHP } ?>


<table align="right" border="0" style="border-left:thin groove;border-bottom:thin groove;">
 <tr>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>"><a href="category.php">Categories</a></font></td>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>"><a href="edituser.php">Preferences</a></td>
<?PHP 
 if (($GLOBALS["QUERY_STRING"]) && (!($editcat))) {
  $printURL = $PHP_SELF."?".$QUERY_STRING."&print=1";
 } else {
  $printURL = $PHP_SELF."?print=1";
 }
?>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>"><a href="<?PHP echo $printURL ?>">Print</a></td>
<?PHP if ($GLOBALS["currentgroup"] == "admin") { ?>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>"><a href="admin.php">Admin</a></td>
<?PHP } ?>
<?PHP if ($GLOBALS["auth"]) { ?>
  <td><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>"><a href="logout.php">Logout</a></td>
<?PHP } ?>
 </tr>
</table>
<br>&nbsp;<br>
<table align="right" border="0"><tr><td valign="top"><font face="<?PHP echo $GLOBALS["pageFont"] ?>" size="<?PHP echo $GLOBALS["pageFontsize"] ?>">::STD v<?PHP echo $GLOBALS["STDversion"] ?>::</font></td></tr></table>
<br><p></p>
<?PHP 
  }
 } ?>
Return current item: ScreamingToDos