home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / dotproject / modules / history / index.php < prev    next >
Encoding:
PHP Script  |  2003-04-14  |  1.6 KB  |  54 lines

  1. <?php /* HISTORY $Id: index.php,v 1.2 2003/04/14 11:39:02 eddieajau Exp $ */
  2. ##
  3. ## History module
  4. ## (c) Copyright
  5. ## J. Christopher Pereira (kripper@imatronix.cl)
  6. ## IMATRONIX
  7. ## 
  8.  
  9. $AppUI->savePlace();
  10. ?>
  11. <table width="100%" border="0" cellpadding="0" cellspacing=1>
  12. <tr>
  13.     <td><img src="./images/icons/tasks.gif" alt="Tasks" border="0" width="44" height="38"></td>
  14.     <td nowrap width="100%"><h1><?php echo $AppUI->_('History');?></h1></td>
  15. </tr>
  16. </table>
  17.     
  18. <table width="100%" cellspacing="1" cellpadding="0" border="0">
  19. <tr>
  20.     <td align="right"><input class="button" type="button" value="<?php echo $AppUI->_('Add history');?>" onclick="window.location='?m=history&a=addedit'"></td>
  21. </table>
  22.     
  23.  
  24. <?php
  25.  
  26. $psql = 
  27. "SELECT * from history, users WHERE history_user = user_id ORDER BY history_date";
  28. $prc = db_exec( $psql );
  29. echo db_error();
  30.  
  31. $history = array();
  32.  
  33. ?>
  34. <table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbl">
  35. <tr>
  36.     <th width="10"> </th>
  37.     <th width="200"><?php echo $AppUI->_('Date');?></th>
  38.     <th nowrap="nowrap"><?php echo $AppUI->_('Description');?></th>
  39.     <th nowrap="nowrap"><?php echo $AppUI->_('User');?>  </th>
  40. </tr>
  41. <?php
  42. while ($row = db_fetch_assoc( $prc )) {
  43. ?>
  44. <tr>    
  45.     <td><a href='<?php echo "?m=history&a=addedit&history_id=" . $row["history_id"] ?>'><img src="./images/icons/pencil.gif" alt="<?php echo $AppUI->_( 'Edit History' ) ?>" border="0" width="12" height="12"></a></td>
  46.     <td><?php echo $row["history_date"]?></td>
  47.     <td><?php echo $row["history_description"]?></td>    
  48.     <td><?php echo $row["user_username"]?></td>
  49. </tr>    
  50. <?php
  51. }
  52. ?>
  53. </table>
  54.