home *** CD-ROM | disk | FTP | other *** search
- <?php /* HISTORY $Id: index.php,v 1.2 2003/04/14 11:39:02 eddieajau Exp $ */
- ##
- ## History module
- ## (c) Copyright
- ## J. Christopher Pereira (kripper@imatronix.cl)
- ## IMATRONIX
- ##
-
- $AppUI->savePlace();
- ?>
- <table width="100%" border="0" cellpadding="0" cellspacing=1>
- <tr>
- <td><img src="./images/icons/tasks.gif" alt="Tasks" border="0" width="44" height="38"></td>
- <td nowrap width="100%"><h1><?php echo $AppUI->_('History');?></h1></td>
- </tr>
- </table>
-
- <table width="100%" cellspacing="1" cellpadding="0" border="0">
- <tr>
- <td align="right"><input class="button" type="button" value="<?php echo $AppUI->_('Add history');?>" onclick="window.location='?m=history&a=addedit'"></td>
- </table>
-
-
- <?php
-
- $psql =
- "SELECT * from history, users WHERE history_user = user_id ORDER BY history_date";
- $prc = db_exec( $psql );
- echo db_error();
-
- $history = array();
-
- ?>
- <table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbl">
- <tr>
- <th width="10"> </th>
- <th width="200"><?php echo $AppUI->_('Date');?></th>
- <th nowrap="nowrap"><?php echo $AppUI->_('Description');?></th>
- <th nowrap="nowrap"><?php echo $AppUI->_('User');?> </th>
- </tr>
- <?php
- while ($row = db_fetch_assoc( $prc )) {
- ?>
- <tr>
- <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>
- <td><?php echo $row["history_date"]?></td>
- <td><?php echo $row["history_description"]?></td>
- <td><?php echo $row["user_username"]?></td>
- </tr>
- <?php
- }
- ?>
- </table>
-