ona  18.1.1
About: OpenNetAdmin provides a database managed inventory of your IP network (with Web and CLI interface).
  Fossies Dox: ona-18.1.1.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

app_admin_tools.inc.php
Go to the documentation of this file.
1 <?php
2 
3 global $conf, $self, $onadb ;
5 
6 // Check permissions
7 //if (!auth('advanced')) {
8  // $window['js'] = "removeElement('{$window_name}'); alert('Permission denied!');";
9  // return;
10 //}
11 
12 $window['title'] = "Admin tools";
13 
14 $window['js'] .= <<<EOL
15 
16  /* Put a minimize icon in the title bar */
17  el('{$window_name}_title_r').innerHTML =
18  '&nbsp;<a onClick="toggle_window(\'{$window_name}\');" title="Minimize window" style="cursor: pointer;"><img src="{$images}/icon_minimize.gif" border="0" /></a>' +
19  el('{$window_name}_title_r').innerHTML;
20 
21  /* Put a help icon in the title bar */
22  el('{$window_name}_title_r').innerHTML =
23  '&nbsp;<a href="{$_ENV['help_url']}{$window_name}" target="null" title="Help" style="cursor: pointer;"><img src="{$images}/silk/help.png" border="0" /></a>' +
24  el('{$window_name}_title_r').innerHTML;
25 
27 
28 $window['html'] .= <<<EOL
29 
30 <!-- Window Content -->
31 
32 <div class="wwTT_ona_menu" style="width: 100%;">
33 
34  <div class="row"
35  onMouseOver="this.className='hovered';"
36  onMouseOut="this.className='row';"
37  onClick="toggle_window('app_user_list');"
38  title="Manage users"
39  ><img style="vertical-align: middle;" src="{$images}/silk/user.png" border="0"
40  />&nbsp;Manage users</div>
41 
42  <div class="row"
43  onMouseOver="this.className='hovered';"
44  onMouseOut="this.className='row';"
45  onClick="toggle_window('app_group_list');"
46  title="Manage groups"
47  ><img style="vertical-align: middle;" src="{$images}/silk/group.png" border="0"
48  />&nbsp;Manage groups</div>
49 
50  <div class="row"
51  onMouseOver="this.className='hovered';"
52  onMouseOut="this.className='row';"
53  onClick="toggle_window('app_location_list');"
54  title="Manage locations"
55  ><img style="vertical-align: middle;" src="{$images}/silk/map.png" border="0"
56  />&nbsp;Manage locations</div>
57 <!--
58  <div class="row"
59  onMouseOver="this.className='hovered';"
60  onMouseOut="this.className='row';"
61  onClick="removeElement('start_menu'); toggle_window('app_template_list');"
62  title="Template administration"
63  ><img style="vertical-align: middle;" src="{$images}/silk/plugin.png" border="0"
64  />&nbsp;Template administration</div>
65 -->
66  <div class="row"
67  onMouseOver="this.className='hovered';"
68  onMouseOut="this.className='row';"
69  onClick="toggle_window('app_sysconf_list');"
70  title="Manage system config"
71  ><img style="vertical-align: middle;" src="{$images}/silk/page_edit.png" border="0"
72  />&nbsp;Manage system config</div>
73 
74  <div class="row"
75  onMouseOver="this.className='hovered';"
76  onMouseOut="this.className='row';"
77  onClick="toggle_window('app_custom_attribute_type_list');"
78  title="Manage custom attribute types"
79  ><img style="vertical-align: middle;" src="{$images}/silk/tag_blue_edit.png" border="0"
80  />&nbsp;Manage custom attribute types</div>
81 
82  <div class="row"
83  onMouseOver="this.className='hovered';"
84  onMouseOut="this.className='row';"
85  onClick="toggle_window('app_config_type_list');"
86  title="Manage config types"
87  ><img style="vertical-align: middle;" src="{$images}/silk/cog_edit.png" border="0"
88  />&nbsp;Manage config types</div>
89 
90  <div class="row"
91  onMouseOver="this.className='hovered';"
92  onMouseOut="this.className='row';"
93  onClick="toggle_window('app_manufacturer_list');"
94  title="Manage manufacturers"
95  ><img style="vertical-align: middle;" src="{$images}/silk/lorry.png" border="0"
96  />&nbsp;Manage manufacturers</div>
97 
98  <div class="row"
99  onMouseOver="this.className='hovered';"
100  onMouseOut="this.className='row';"
101  onClick="toggle_window('app_device_role_list');"
102  title="Manage device roles"
103  ><img style="vertical-align: middle;" src="{$images}/silk/drive_edit.png" border="0"
104  />&nbsp;Manage device roles</div>
105 
106  <div class="row"
107  onMouseOver="this.className='hovered';"
108  onMouseOut="this.className='row';"
109  onClick="toggle_window('app_device_model_list');"
110  title="Manage device models"
111  ><img style="vertical-align: middle;" src="{$images}/silk/drive_edit.png" border="0"
112  />&nbsp;Manage device models</div>
113 
114  <div class="row"
115  onMouseOver="this.className='hovered';"
116  onMouseOut="this.className='row';"
117  onClick="toggle_window('app_device_type_list');"
118  title="Manage device types"
119  ><img style="vertical-align: middle;" src="{$images}/silk/drive_edit.png" border="0"
120  />&nbsp;Manage device types</div>
121 
122  <div class="row"
123  onMouseOver="this.className='hovered';"
124  onMouseOut="this.className='row';"
125  onClick="toggle_window('app_dhcp_option_list');"
126  title="Manage DHCP options"
127  ><img style="vertical-align: middle;" src="{$images}/silk/table_edit.png" border="0"
128  />&nbsp;Manage DHCP options</div>
129 
130  <div class="row"
131  onMouseOver="this.className='hovered';"
132  onMouseOut="this.className='row';"
133  onClick="toggle_window('app_subnet_type_list');"
134  title="Manage subnet types"
135  ><img style="vertical-align: middle;" src="{$images}/silk/transmit_blue.png" border="0"
136  />&nbsp;Manage subnet types</div>
137 
138  <div class="row"
139  onMouseOver="this.className='hovered';"
140  onMouseOut="this.className='row';"
141  onClick="toggle_window('app_domain_list');"
142  title="Manage DNS domains"
143  ><img style="vertical-align: middle;" src="{$images}/silk/world_edit.png" border="0"
144  />&nbsp;Manage DNS domains</div>
145 
146  <div class="row"
147  onMouseOver="this.className='hovered';"
148  onMouseOut="this.className='row';"
149  onClick="toggle_window('app_dhcp_failover_list');"
150  title="Manage DHCP failover groups"
151  ><img style="vertical-align: middle;" src="{$images}/silk/world_edit.png" border="0"
152  />&nbsp;Manage DHCP failover groups</div>
153 
154 
155  <div class="row"
156  onMouseOver="this.className='hovered';"
157  onMouseOut="this.className='row';"
158  onClick="removeElement('start_menu'); toggle_window('app_plugin_list');"
159  title="List Plugins"
160  ><img style="vertical-align: middle;" src="{$images}/silk/plugin_edit.png" border="0"
161  />&nbsp;Manage Plugins</div>
162 
163 
164 </div>
165 
166 EOL;
167 
168 ?>
nbsp
Manage users</div >< div class="row" onMouseOver="this.className='hovered';" onMouseOut="this.className='row';" onClick="toggle_window('app_group_list');" title="Manage groups" >< img style="vertical-align: middle;" src="{$images}/silk/group.png" border="0"/> & nbsp
Definition: app_admin_tools.inc.php:48
$images
global $images
Definition: app_admin_tools.inc.php:4
$style
global $style
Definition: app_admin_tools.inc.php:4
$self
global $self
Definition: app_admin_tools.inc.php:3
$font_family
global $font_family
Definition: app_admin_tools.inc.php:4
$onadb
global $onadb
Definition: app_admin_tools.inc.php:3
EOL
EOL
Definition: app_admin_tools.inc.php:26
$conf
global $conf
Definition: app_admin_tools.inc.php:3
$window
$window['title']
Definition: app_admin_tools.inc.php:12
$color
global $color
Definition: app_admin_tools.inc.php:4