Location: PHPKode > projects > Phpgw Time Tracking Add On App > timetrack/inc/hook_preferences.inc.php
<?php
  /**************************************************************************\
  * phpGroupWare - Time Track Preferences Hook File                          *
  * http://www.phpgroupware.org                                              *
  * This file written by Bob Schader <hide@address.com>                  *
  * --------------------------------------------                             *
  *  This program is free software; you can redistribute it and/or modify it *
  *  under the terms of the GNU General Public License as published by the   *
  *  Free Software Foundation; either version 2 of the License, or (at your  *
  *  option) any later version.                                              *
  \**************************************************************************/

  /* $Id: hook_preferences.inc.php,v 1.2 2001/01/15 18:03:17 rschader Exp $ */
{
  echo "<p>\n";
  $imgfile = $phpgw->common->get_image_dir("timetrack")."/" . $appname .".gif";
  if (file_exists($imgfile)) {
    $imgpath = $phpgw->common->get_image_path("timetrack")."/" . $appname .".gif";
  } else {
    $imgfile = $phpgw->common->get_image_dir("timetrack")."/navbar.gif";
    if (file_exists($imgfile)) {
      $imgpath = $phpgw->common->get_image_path("timetrack")."/navbar.gif";
    } else {
      $imgpath = "";
    }
  }
  section_start("Time Tracking",$imgpath);
 
  $pg = $phpgw->link($phpgw_info["server"]["webserver_url"]."/timetrack/preferences.php");
  echo "<A href=".$pg.">" . lang("Time Track preferences") . "</A>";
 
  section_end();
} 
?>
Return current item: Phpgw Time Tracking Add On App