Subversion Repositories computer_asset_manager_v1

Rev

Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 49
Line 33... Line 33...
33
 
33
 
34
If you have reports, insert them as follows:
34
If you have reports, insert them as follows:
35
   insert into report ( name, query, parameters, screen_report ) values ('Report Name','Main Report Query','Parameters Definition', 1 or 0 );
35
   insert into report ( name, query, parameters, screen_report ) values ('Report Name','Main Report Query','Parameters Definition', 1 or 0 );
36
If the last parameter is a 1, this report will be included in the main report when a user drills down to a particular machine from the main menu.
36
If the last parameter is a 1, this report will be included in the main report when a user drills down to a particular machine from the main menu.
37
 
37
 
-
 
38
As an alternative (though it may be used with the reports), create a file with callable PHP routines, then add an entry in the _system table as follows:
-
 
39
insert into _system( group_name,key_name,theValue,added_date ) values ( 'device view', 'license', 'callable.php:view', now() );
-
 
40
The keys here 
-
 
41
   'device view' for group_name, which means this is a routine to be run during device view
-
 
42
   'license' for key_name, meaning this is provided by the license module
-
 
43
   'callable.php:view' - callable.php is included, then the view funciton is called
-
 
44
      all view functions are called with one parameter, an array, which contains the current client_id, device_id, site_id and the path to the module. All except the latter may be missing depending on the screen.
-
 
45
 
-
 
46
 
-
 
47
 
-
 
48
 
38
Other:
49
Other:
39
 
50
 
40
All screens must use the following structure:
51
All screens must use the following structure:
41
   <?php 
52
   <?php 
42
      include_once( '../../header.php' ); 
53
      include_once( '../../header.php' );