Subversion Repositories computer_asset_manager_v1

Rev

Rev 49 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 49 Rev 62
Line 36... Line 36...
36
                                                         'removed_date' => $data['Removed'], // date removed
36
                                                         'removed_date' => $data['Removed'], // date removed
37
                                                         'count' => 5 ), // number of backup reports to show
37
                                                         'count' => 5 ), // number of backup reports to show
38
                            false
38
                            false
39
                                                   );
39
                                                   );
40
      
40
      
41
      $sql = insertValuesIntoQuery(SQL_GET_MODULES,array( 'screen' => 'device view'));
-
 
42
      $modules = queryDatabaseExtended( $sql );
-
 
43
      if ( $modules ) {
-
 
44
         $modules = $modules['data'];
-
 
45
         $parameters = array( 'device_id' => $device_id );
41
       print callableOutput( 'device view', array( 'device_id' => $device_id ) );
46
         foreach ( $modules as $report ) {
-
 
47
            $module = $report['module'];
-
 
48
            list($library, $function ) = explode (':', $report['path'] . $report['script']);
-
 
49
            //print "$library - $function<br />\n";
-
 
50
            require_once "$library";
-
 
51
            if ( is_callable( $function ) ) {
-
 
52
               $content = call_user_func( $function, $parameters );
-
 
53
               if ( $content )
-
 
54
                  print "<div><h4>$module</h4>$content</div>\n";
-
 
55
            }
-
 
56
         }
-
 
57
      }
-
 
58
      
-
 
59
   ?>
42
   ?>
60
   </td>
43
   </td>
61
   </tr>
44
   </tr>
62
   </table>
45
   </table>
63
</div>
46
</div>