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)  

main.inc.php
Go to the documentation of this file.
1 <?php
2 
4 
5 if (auth('host_modify',$debug_val)) {
7  <a title="Edit host. ID: {$record['id']}"
8  class="act"
9  onClick="xajax_window_submit('edit_host', xajax.getFormValues('form_host_{$record['id']}'), 'editor');"
10  ><img src="{$images}/silk/page_edit.png" border="0"></a>
11 EOL;
12 }
13 if (auth('host_del',$debug_val)) {
14  $title_left_html .= <<<EOL
15  <a title="Delete host"
16  class="act"
17  onClick="xajax_window_submit('tooltips', 'name=>edit_host', 'window_progressbar');xajax_window_submit('edit_host', xajax.getFormValues('form_host_{$record['id']}'), 'delete');"
18  ><img src="{$images}/silk/delete.png" border="0"></a>
19 EOL;
20 }
21 
23  &nbsp;{$record['name']}.<a title="View domain. ID: {$record['domain_id']}"
24  class="domain"
25  onClick="xajax_window_submit('work_space', 'xajax_window_submit(\'display_domain\', \'domain_id=>{$record['domain_id']}\', \'display\')');"
26  >{$record['domain_fqdn']}</a>
27 EOL;
28 
29 
30 
31 
33  <a href="?work_space={$extravars['window_name']}&host={$record['id']}"><img title="Direct link to {$record['fqdn']}" src="{$images}/silk/application_link.png" border="0"></a>
34 EOL;
35 
36 
37 // Define the tag type
38 $tagtype = 'host';
39 
40 // Print tag list
41 $modjs .= <<<EOL
42  xajax_window_submit('tooltips', 'type => {$tagtype}, reference => {$record['id']}, updateid => taglist_{$extravars['window_name']}', 'tag_html');
44 
45 // print the add tag button if you have access
46 if (auth('host_add') or auth('subnet_add') ) {
47  // setup a tag quickfind button
48  $modjs .= <<<EOL
49  /* Setup the Quick Find Tag icon */
50  var _button = el('qf_tag_{$extravars['window_name']}');
51  _button.style.cursor = 'pointer';
52  _button.onclick =
53  function(ev) {
54  if (!ev) ev = event;
55  /* Create the popup div */
56  wwTT(this, ev,
57  'id', 'tt_qf_tag_{$extravars['window_name']}',
58  'type', 'static',
59  'direction', 'south',
60  'delay', 0,
61  'styleClass', 'wwTT_qf',
62  'javascript',
63  "xajax_window_submit('tooltips', '" +
64  "tooltip=>qf_tag," +
65  "type=>{$tagtype}," +
66  "updateid=>taglist_{$extravars['window_name']}," +
67  "reference=>{$record['id']}," +
68  "id=>tt_qf_tag_{$extravars['window_name']}," +
69  "input_id=>set_tag_{$extravars['window_name']}');"
70  )
71  };
72 EOL;
73 
74  $addtaghtml .= <<<EOL
75  <span id="qf_tag_{$extravars['window_name']}">
76  <img title="Add a tag" src="{$images}/silk/tag_blue.png" border="0"
77  /></span>
78 EOL;
79 }
80 
81 // print the tag section into the workspace
83  <tr>
84  <td align="right" nowrap="true"><b>Tags</b>&nbsp;</td>
85  <td nowrap="true" class="tag" align="left" >
86  {$addtaghtml}
87  <span id='taglist_{$extravars['window_name']}'></span>
88  </td>
89  </tr>
90 EOL;
91 
92 
94  <table width=100% cellspacing="0" border="0" cellpadding="0" style="margin-bottom: 8px;">
95  <tr>
96  <td align="right" nowrap="true" title="Device type ID: {$record['device_type_id']}"><b>Device Type</b>&nbsp;</td>
97  <td nowrap="true" class="padding" align="left" title="{$record['devicefull']}">{$record['device']}</td>
98  </tr>
99 
100  $taghtml
101 
102  <tr>
103  <td align="right" {$notes_valign} nowrap="true"><b>Notes</b>&nbsp;</td>
104  <td nowrap="true" class="padding" align="left" {$notes_width}><textarea readonly size="256" cols=25 rows=3 class="display_notes">{$record['notes']}</textarea></td>
105  </tr>
106 EOL;
107 
108 
109 $modbodyhtml .= <<<EOL
110  </table>
111 EOL;
112 
113  $wspl = workspace_plugin_loader('location_detail',$record,$extravars);
115 
116 ?>
workspace_plugin_loader
workspace_plugin_loader($modulename, $record=array(), $extravars=array())
Definition: functions_gui.inc.php:140
$tagtype
$tagtype
Definition: main.inc.php:38
$record
$record['display_name']
Definition: app_advanced_search.inc.php:12
$modjs
$modjs
Definition: main.inc.php:41
$title_right_html
$title_right_html
Definition: main.inc.php:3
nbsp
</td >< td class="padding" align="left"></td ></tr >< tr >< td align="right" nowrap="true">< b > Netmask</b > & nbsp
Definition: main.inc.php:121
_button
_button
Definition: app_advanced_search.inc.php:48
$taghtml
if(auth('host_add') or auth('subnet_add')) $taghtml
Definition: main.inc.php:82
$modbodyjs
$modbodyjs
Definition: main.inc.php:114
$modbodyhtml
$modbodyhtml
Definition: main.inc.php:5
EOL
EOL
Definition: main.inc.php:43
$wspl
$wspl
Definition: main.inc.php:113
auth
auth($resource, $msg_level=1)
Definition: functions_general.inc.php:1330
$title_left_html
$title_left_html
Definition: main.inc.php:3