diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3c50d5e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*~
+tpl_c/*.php
diff --git a/lang/de.php b/lang/de.php
index c961b50..6912c11 100644
--- a/lang/de.php
+++ b/lang/de.php
@@ -88,6 +88,7 @@ $lang = array(
'lang_location_name' => 'Standortname',
'lang_location_parent' => 'Übergeordneter Standort',
'lang_sublocation_add' => 'Unterstandort hinzufügen',
+ 'lang_location_none' => 'Es sind keine Standorte vorhanden',
'lang_locationsubnet' => 'Standort/Subnetz',
'lang_locationsubnet_edit' => 'Standort/Subnetz bearbeiten',
@@ -96,6 +97,7 @@ $lang = array(
'lang_node_del' => 'Knoten löschen',
'lang_node_edit' => 'Knoten ändern',
'lang_node_info' => 'Knoteninfo',
+ 'lang_node_none' => 'Es sind keine Knoten vorhanden',
'lang_dns1' => 'DNS-Name',
'lang_dns2' => 'DNS-Alias',
'lang_ip' => 'IP-Adresse',
@@ -128,6 +130,7 @@ $lang = array(
'lang_subnet_dhcpstart' => 'DHCP Anfang',
'lang_subnet_dhcpend' => 'DHCP Ende',
'lang_subnet_ntp_server' => 'NTP-Server',
+ 'lang_subnet_none' => 'Es sind keine Subnetze vorhanden',
'lang_subnetlocation' => 'Subnetz/Ort',
'lang_subnetlocation_edit' => 'Subnetz/Ort bearbeiten',
@@ -145,7 +148,7 @@ $lang = array(
'lang_zone_add' => 'Zone hinzufügen',
'lang_zone_del' => 'Zone löschen',
'lang_zone_edit' => 'Zone bearbeiten',
-
+ 'lang_zone_none' => 'Es sind keine Zonen vorhanden',
'lang_vlan_add' => 'VLAN hinzufügen',
'lang_vlan_del' => 'VLAN löschen',
@@ -154,6 +157,7 @@ $lang = array(
'lang_vlan_info' => 'VLAN Info',
'lang_vlan_new' => 'VLAN Info',
'lang_vlan_name' => 'VLAN Name',
+ 'lang_vlan_none' => 'Es sind keine VLANs vorhanden',
'lang_vlansubnet' => 'VLAN/Subnetz',
'lang_vlansubnet_edit' => 'VLAN/Subnetz bearbeiten',
diff --git a/lang/en.php b/lang/en.php
index 0c69ecc..05b50ce 100644
--- a/lang/en.php
+++ b/lang/en.php
@@ -88,6 +88,7 @@ $lang = array(
'lang_location_name' => 'Location name',
'lang_location_parent' => 'Parent',
'lang_sublocation_add' => 'Add Sub-location',
+ 'lang_location_none' => 'There are no locations defined',
'lang_locationsubnet' => 'Location/Subnet',
'lang_locationsubnet_edit' => 'Edit Location/Subnet',
@@ -96,6 +97,7 @@ $lang = array(
'lang_node_del' => 'Delete node',
'lang_node_edit' => 'Modify node',
'lang_node_info' => 'Node info',
+ 'lang_node_none' => 'There are no nodes defined',
'lang_dns1' => 'DNS name',
'lang_dns2' => 'DNS Alias',
'lang_ip' => 'IP Address',
@@ -128,6 +130,7 @@ $lang = array(
'lang_subnet_dhcpstart' => 'DHCP Start',
'lang_subnet_dhcpend' => 'DHCP End',
'lang_subnet_ntp_server' => 'NTP Server',
+ 'lang_subnet_none' => 'There are no subnets defined',
'lang_subnetlocation' => 'Subnet/Location',
'lang_subnetlocation_edit' => 'Edit Subnet/Location',
@@ -144,6 +147,7 @@ $lang = array(
'lang_zone_add' => 'Add zone',
'lang_zone_del' => 'Delete zone',
'lang_zone_edit' => 'Mofidy zone',
+ 'lang_zone_none' => 'There are no zones defined',
'lang_vlan_add' => 'Add VLAN',
'lang_vlan_del' => 'Delete VLAN',
@@ -152,6 +156,7 @@ $lang = array(
'lang_vlan_info' => 'VLAN info',
'lang_vlan_new' => 'VLAN info',
'lang_vlan_name' => 'VLAN name',
+ 'lang_vlan_none' => 'There are no VLANs defined',
'lang_user_language' => 'Language',
'lang_vlansubnet' => 'VLAN/Subnet',
diff --git a/tpl/asset.tpl b/tpl/asset.tpl
index 4be1b9e..da05d39 100644
--- a/tpl/asset.tpl
+++ b/tpl/asset.tpl
@@ -1,53 +1,53 @@
-
-
-
-
-
- |
-
-
-
-
-
-
+
+
+
+
+
+ |
+
+
+
+
+
+
diff --git a/tpl/assetclass.tpl b/tpl/assetclass.tpl
index e83da6c..d0eaa62 100644
--- a/tpl/assetclass.tpl
+++ b/tpl/assetclass.tpl
@@ -1,31 +1,37 @@
-
-
-
-
-
- |
-
-
-
-
+
+
+
+
+
+ |
+
+
+
+
diff --git a/tpl/assetclassgroup.tpl b/tpl/assetclassgroup.tpl
index 93bd932..f137c0e 100644
--- a/tpl/assetclassgroup.tpl
+++ b/tpl/assetclassgroup.tpl
@@ -1,26 +1,32 @@
-
-
-
-
-
- |
-
-
-
-
+
+
+
+
+
+ |
+
+
+
+
diff --git a/tpl/location.tpl b/tpl/location.tpl
index e550300..4a379d9 100644
--- a/tpl/location.tpl
+++ b/tpl/location.tpl
@@ -1,25 +1,31 @@
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
- {treelist tree=$locations}
- |
-
-
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+{if $locations}
+
+ {treelist tree=$locations}
+ |
+{else}
+
+ {$lang_location_none}
+ |
+{/if}
+
+
diff --git a/tpl/node.tpl b/tpl/node.tpl
index 112bb4c..f830586 100644
--- a/tpl/node.tpl
+++ b/tpl/node.tpl
@@ -1,38 +1,44 @@
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
- {foreach item=node from=$nodes}
-
-
- {if $node.node_ip}{$node.node_ip}{else}(leer){/if}
- |
-
- {$node.asset_name}
- |
-
- {$node.asset_info}
- |
-
- {/foreach}
+
+
+
+
+
+ |
+
+
+
+
\ No newline at end of file
diff --git a/tpl/subnet.tpl b/tpl/subnet.tpl
index 914d2d8..6e619bb 100644
--- a/tpl/subnet.tpl
+++ b/tpl/subnet.tpl
@@ -1,37 +1,43 @@
-
-
-
-
-
- |
-
-
-
-
+
+
+
+
+
+ |
+
+
+
+
diff --git a/tpl/vlan.tpl b/tpl/vlan.tpl
index 4ad6ed7..46e9731 100644
--- a/tpl/vlan.tpl
+++ b/tpl/vlan.tpl
@@ -1,37 +1,43 @@
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-{foreach item=vlan from=$vlans}
-
-
- {$vlan.vlan_number}
- |
-
- {$vlan.vlan_name}
- |
-
- {$vlan.vlan_info}
- |
-
-{/foreach}
-
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+{foreach item=vlan from=$vlans}
+
+
+ {$vlan.vlan_number}
+ |
+
+ {$vlan.vlan_name}
+ |
+
+ {$vlan.vlan_info}
+ |
+
+{foreachelse}
+
+
+ {$lang_vlan_none}
+ |
+
+{/foreach}
+
diff --git a/tpl/zone.tpl b/tpl/zone.tpl
index 9f30acf..5523fda 100644
--- a/tpl/zone.tpl
+++ b/tpl/zone.tpl
@@ -1,38 +1,44 @@
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
- {foreach item=zone from=$zones}
-
-
- {$zone.zone_origin}
- |
-
- {$zone.zone_hostmaster}
- |
-
- {$zone.zone_serial}
- |
-
- {/foreach}
-
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+ {foreach item=zone from=$zones}
+
+
+ {$zone.zone_origin}
+ |
+
+ {$zone.zone_hostmaster}
+ |
+
+ {$zone.zone_serial}
+ |
+
+ {foreachelse}
+
+
+ {$lang_zone_none}
+ |
+
+ {/foreach}
+