home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / projects / fees.inc < prev    next >
Text File  |  2004-03-08  |  2KB  |  40 lines

  1. <?php
  2. /*
  3. Copyright Intermesh 2003
  4. Author: Merijn Schering <mschering@intermesh.nl>
  5. Version: 1.0 Release date: 08 July 2003
  6.  
  7. This program is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2 of the License, or (at your
  10. option) any later version.
  11. */
  12. if(isset($_REQUEST['delete_fee']))
  13. {
  14.     $projects->delete_fee($_REQUEST['delete_fee']);
  15. }
  16.  
  17. $count = $projects->get_fees();
  18. if ($GO_MODULES->write_permissions)
  19. {
  20.     echo '<a href="fee.php" class="normal">'.$pm_new_fee.'</a><br /><br />';
  21. }
  22. echo '<table border="0" cellpadding="4" cellspacing="0">';
  23. echo '<tr><td><h3>'.$strName.'   </h3></td>';
  24. echo '<td><h3>'.$pm_value.'</h3></td><td colspan="2"> </td></tr>';
  25.  
  26. while ($projects->next_record())
  27. {
  28.     echo '<tr><td>'.$projects->f('name').'   </td><td>'.htmlentities($_SESSION['GO_SESSION']['currency']).' '.number_format($projects->f('value'), 2, $_SESSION['GO_SESSION']['decimal_seperator'],$_SESSION['GO_SESSION']['thousands_seperator']).' / '.$projects->f('time').' '.$pm_mins.'   </td>';
  29.  
  30.     if ($GO_MODULES->write_permissions)
  31.     {
  32.         echo '<td><a href="fee.php?fee_id='.$projects->f('id').'" class="normal" title="'.$strEdit.' \''.$projects->f('name').'\'"><img src="'.$GO_THEME->images['edit'].'" border="0"></a></td>';
  33.         echo "<td><a href='javascript:confirm_action(\"".$_SERVER['PHP_SELF']."?post_action=fees&delete_fee=".$projects->f("id")."\",\"".rawurlencode($strDeletePrefix.$projects->f("name").$strDeleteSuffix)."\")' title=\"".$strDeleteItem." '".$projects->f("name")."'\"><img src=\"".$GO_THEME->images['delete']."\" border=\"0\"></a></td></tr>\n";
  34.     }else
  35.     {
  36.         echo '<td colspan="2"> </td></tr>';
  37.     }
  38. }
  39. echo '<tr><td colspan="2"><i>'.$count.' '.$pm_fees.'</i></td></tr></table>';
  40. ?>