Location: PHPKode > scripts > Prioritexter > Menu.php
<?php
class Menu extends HtmlFragment {

  function Menu() {
    $s = $this->sectionTitle("Views:");
    $s .= $this->menuItem("All tasks","");
    $s .= $this->menuItem("Tasks by category","bycategory");
    $s .= $this->menuItem("Completed tasks","finished");
    $s .= $this->menuItem("Enter new task","newtask");
    $this->html = $s;
  }

  function sectionTitle($title) {
    $s = "<p><font class=\"menu_section\">";
    $s .= $title;
    $s .= "</font>";
    $s .= Text::smallBreak(2);
    return $s;
  }

  function menuItem($name,$page) {
    $s = "<font class=\"menu_item\">"
       . "&nbsp;&nbsp;"
       . Http::linkInternal($name,$page)
       . "</font>"
       . Text::smallBreak(2);
    return $s;
  }

  // NOTE: currently unused
  function adminLink() {
    $params["admin_stage"]="start";
    $s = Http::linkWithParams("Admin login", $params);
    return $s;
  }
}
?>
Return current item: Prioritexter