@@ -3,8 +3,8 @@
// isdf - inventory system search
// Author: Carsten Schoene
//
-// $LastChangedDate: 2012-11-12 10:39:18 +0100 (Mon, 12 Nov 2012) $
-// $Rev: 4323 $
+// $LastChangedDate: 2013-05-07 18:36:30 +0200 (Tue, 07 May 2013) $
+// $Rev: 5822 $
*/
// define our name
@@ -70,7 +70,7 @@
while (( $idrow = $idres->fetchRow(MDB2_FETCHMODE_ASSOC) )) {
if ( $idrow['datakey'] == "get_system_software" ) {
// extract inventory-system
- preg_match('/(ix-)?inventory-system-\d+\.\d+\.rev\d+-\d+\.\d+/', $idrow['value'],$treffer);
+ preg_match('/(ix-)?inventory-system-\d+\.\d+\.(rev)?\d+-\d+\.\d+/', $idrow['value'],$treffer);
$idrow['value'] = $treffer[0];
} elseif ( $idrow['datakey'] == "get_system_date" ) {
// convert to unix timestamp
@@ -103,6 +103,8 @@
foreach ( $mkey as $key => $value ) {
if ( $key == "inv_system_id" ) {
echo '<tr><td>' . $key . '</td><td>' . $value . '</td><td><input type="hidden" name="inv_system_id" value="' . $value . '"><input type="submit" name="delete" value="Delete from DB"></td></tr>' . "\n";
+ } elseif ( $key == "get_system_date" ) {
+ echo '<tr><td>' . $key . '</td><td>' . $value . " / " . date("Y-m-d H:i:s",$value) . '</td><td> </td></tr>' . "\n";
} else {
echo '<tr><td>' . $key . '</td><td>' . $value . '</td><td> </td></tr>' . "\n";
}
|