~ubuntu-branches/ubuntu/lucid/zabbix/lucid

« back to all changes in this revision

Viewing changes to frontends/php/sysmap.php

  • Committer: Bazaar Package Importer
  • Author(s): Emanuele Gentili
  • Date: 2008-08-10 18:37:11 UTC
  • mfrom: (1.1.7 upstream) (8.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080810183711-h4n52nkqqf3iuqhn
Tags: 1:1.4.6-1ubuntu1
* Merge from debian unstable, remaining changes:
 + fixing missing pid directory in /var/run
 + Added the same patch to debian/zabbix-server-{mysql,pgsql}.zabbix-server.init

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        check_fields($fields);
70
70
?>
71
71
<?php
72
 
        show_table_header("CONFIGURATION OF NETWORK MAP");
 
72
        show_table_header(S_CONFIGURATION_OF_NETWORK_MAPS_BIG);
73
73
        if(!sysmap_accessiable($_REQUEST["sysmapid"],PERM_READ_WRITE)) access_deny();
74
74
        
75
75
        $sysmap = DBfetch(DBselect("select * from sysmaps where sysmapid=".$_REQUEST["sysmapid"]));
161
161
        if(isset($_REQUEST["form"]) && ($_REQUEST["form"]=="add_element" ||
162
162
                ($_REQUEST["form"]=="update" && isset($_REQUEST["selementid"]))))
163
163
        {
164
 
                show_table_header("DISPLAYED ELEMENTS");
 
164
                show_table_header(S_DISPLAYED_ELEMENTS);
165
165
                echo BR;
166
166
                insert_map_element_form();
167
167
        }
171
171
                $row = DBfetch(DBselect("select count(*) as count from sysmaps_elements where sysmapid=".$_REQUEST["sysmapid"]));
172
172
                if($row["count"]>1)
173
173
                {
174
 
                        show_table_header("CONNECTORS");
 
174
                        show_table_header(S_CONNECTORS);
175
175
                        echo BR;
176
176
                        insert_map_link_form();
177
177
                }
182
182
        }
183
183
        else
184
184
        {
185
 
                show_table_header("DISPLAYED ELEMENTS", new CButton("form","Add element",
 
185
                show_table_header(S_DISPLAYED_ELEMENTS, new CButton("form",S_ADD_ELEMENT,
186
186
                        "return Redirect('".$page["file"]."?form=add_element".url_param("sysmapid")."');"));
187
187
 
188
188
                $table = new CTableInfo();
216
216
                $table->show();
217
217
 
218
218
                echo BR;
219
 
                show_table_header("CONNECTORS", new CButton("form","Create connection",
 
219
                show_table_header(S_CONNECTORS, new CButton("form",S_CREATE_CONNECTION,
220
220
                        "return Redirect('".$page["file"]."?form=add_link".
221
221
                        url_param("sysmapid")."');"));
222
222