Location: PHPKode > projects > Phpgw Time Tracking Add On App > timetrack/inc/hook_admin.inc.php
<?php
  /**************************************************************************\
  * phpGroupWare - Time Track Admin 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_admin.inc.php,v 1.3 2001/01/16 21:54:29 rschader Exp $ */
{
  $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);

   $pg1 = $phpgw->link($phpgw_info["server"]["webserver_url"]."/timetrack/admin1.php");
   $pg2 = $phpgw->link($phpgw_info["server"]["webserver_url"]."/timetrack/admin2.php");
   $pg3 = $phpgw->link($phpgw_info["server"]["webserver_url"]."/timetrack/admin3.php");
   $pg4 = $phpgw->link($phpgw_info["server"]["webserver_url"]."/timetrack/admin4.php");
   printf("<A href=\"%s\">%s</A><br>", $pg1, lang("Edit Location Table"));
   printf("<A href=\"%s\">%s</A><br>", $pg2, lang("Edit Job Status ID Table"));
   printf("<A href=\"%s\">%s</A><br>", $pg3, lang("Edit Work Catagory Table"));
   printf("<A href=\"%s\">%s</A><br>", $pg4, lang("Edit Group Permissions"));

   section_end(); 
}
?>
Return current item: Phpgw Time Tracking Add On App