summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a1e435a)
raw | patch | inline | side by side (parent: a1e435a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 Jul 2008 13:16:41 +0000 (13:16 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 Jul 2008 13:16:41 +0000 (13:16 +0000) |
-The have now a parent class which represents the currently edited object.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11751 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11751 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpGroup.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpGroup.inc
index 08d728efb7e4bd9fd694e0fe0b859357b63c5c29..10978700ba232070f4cc577423660bea46006bc1 100644 (file)
$this->network->$type= $this->advanced->$type;
}
- /* Add footer */
- $display.= "<div style='width:100%;text-align:right;margin-top:5px;'><input type=submit name='save_dhcp' value='".msgPool::saveButton()."'>".
- " <input type=submit name='cancel_dhcp' value='".msgPool::cancelButton()."'></div>";
-
+ /* Add footer */
+ $display.= "<div style='width:100%;text-align:right;margin-top:5px;'>";
+ if(preg_match("/w/",$this->parent->getacl(""))){
+ $display.= "<input type=submit name='save_dhcp' value='".msgPool::saveButton()."'> ";
+ }
+ $display.= "<input type=submit name='cancel_dhcp' value='".msgPool::cancelButton()."'>";
+ $display.= "</div>";
return ($display);
}
diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpHost.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpHost.inc
index 89b0c1d806e8cb5ba96fef558020e161a7e4e7b4..26fabb20f8aed28dfe9b025f7729531622587d44 100644 (file)
/* attribute list for save action */
var $objectclasses= array("top", "dhcpHost");
- function dhcpHost($attrs,$host_exists_in_gosa = FALSE)
+ function dhcpHost($parent,$attrs,$host_exists_in_gosa = FALSE)
{
- dhcpPlugin::dhcpPlugin($attrs);
+ dhcpPlugin::dhcpPlugin($parent,$attrs);
/* Load attributes */
if (!$this->new){
}
/* Add footer */
- $display.= "<div style='width:100%;text-align:right;margin-top:5px;'><input type=submit name='save_dhcp' value='".msgPool::saveButton()."'>".
- " <input type=submit name='cancel_dhcp' value='".msgPool::cancelButton()."'></div>";
-
+ $display.= "<div style='width:100%;text-align:right;margin-top:5px;'>";
+# if(preg_match("/w/",$this->parent->getacl(""))){
+ $display.= "<input type=submit name='save_dhcp' value='".msgPool::saveButton()."'> ";
+# }
+ $display.= "<input type=submit name='cancel_dhcp' value='".msgPool::cancelButton()."'>";
+ $display.= "</div>";
return ($display);
}
diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpPool.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpPool.inc
index e2cff119b502d6e043c2ce3af8234ac843597215..63c039b145366f5561b98def466cee255084ca97 100644 (file)
}
/* Add footer */
- $display.= "<div style='width:100%;text-align:right;margin-top:5px;'><input type=submit name='save_dhcp' value='".msgPool::saveButton()."'>".
- " <input type=submit name='cancel_dhcp' value='".msgPool::cancelButton()."'></div>";
+ $display.= "<div style='width:100%;text-align:right;margin-top:5px;'>";
+ if(preg_match("/w/",$this->parent->getacl(""))){
+ $display.= "<input type=submit name='save_dhcp' value='".msgPool::saveButton()."'> ";
+ }
+ $display.= "<input type=submit name='cancel_dhcp' value='".msgPool::cancelButton()."'>";
+ $display.= "</div>";
return ($display);
}
diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc
index 59c56588406aff5e7e34b3558deaec7a2153586e..fd42f20060f10d2ee5d68d0cd8fea27bfe3a9339 100644 (file)
}
/* Add footer */
- $display.= "<div style='width:100%;text-align:right;margin-top:5px;'><input type=submit name='save_dhcp' value='".msgPool::saveButton()."'>".
- " <input type=submit name='cancel_dhcp' value='".msgPool::cancelButton()."'></div>";
-
+ $display.= "<div style='width:100%;text-align:right;margin-top:5px;'>";
+ if(preg_match("/w/",$this->parent->getacl(""))){
+ $display.= "<input type=submit name='save_dhcp' value='".msgPool::saveButton()."'> ";
+ }
+ $display.= "<input type=submit name='cancel_dhcp' value='".msgPool::cancelButton()."'>";
+ $display.= "</div>";
return ($display);
diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpSharedNetwork.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpSharedNetwork.inc
index e512cb663a9369ed23959f7fa098dbb25923f3c6..93b0330d174e33c850b0648a51bef7b4f8e660b6 100644 (file)
/* attribute list for save action */
var $objectclasses= array('top', 'dhcpSharedNetwork');
- function dhcpSharedNetwork($attrs)
+ function dhcpSharedNetwork($parent,$attrs)
{
- dhcpPlugin::dhcpPlugin($attrs);
+ dhcpPlugin::dhcpPlugin($parent,$attrs);
$this->advanced->setAutoStatements(array("server-identifier", "default-lease-time",
"max-lease-time", "min-lease-time", "authoritative", "deny-unknown-clients",
}
/* Add footer */
- $display.= "<div style='width:100%;text-align:right;margin-top:5px;'><input type=submit name='save_dhcp' value='".msgPool::saveButton()."'>".
- " <input type=submit name='cancel_dhcp' value='".msgPool::cancelButton()."'></div>";
-
+ $display.= "<div style='width:100%;text-align:right;margin-top:5px;'>";
+ if(preg_match("/w/",$this->parent->getacl(""))){
+ $display.= "<input type=submit name='save_dhcp' value='".msgPool::saveButton()."'> ";
+ }
+ $display.= "<input type=submit name='cancel_dhcp' value='".msgPool::cancelButton()."'>";
+ $display.= "</div>";
return ($display);
}
diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpSubnet.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpSubnet.inc
index fe10195ccba46fc2a5b57135d2ac70d1bc2ebf3c..c0bf218d1e8fd11f1dc219baaf9e1dc37de1a44f 100644 (file)
/* attribute list for save action */
var $objectclasses= array('top', 'dhcpSubnet', 'dhcpOptions');
- function dhcpSubnet($attrs)
+ function dhcpSubnet($parent,$attrs)
{
- dhcpPlugin::dhcpPlugin($attrs);
+ dhcpPlugin::dhcpPlugin($parent,$attrs);
if (!$this->new){
/* Load attributes */
}
/* Add footer */
- $display.= "<div style='width:100%;text-align:right;margin-top:5px;'><input type=submit name='save_dhcp' value='".msgPool::saveButton()."'>".
- " <input type=submit name='cancel_dhcp' value='".msgPool::cancelButton()."'></div>";
+ $display.= "<div style='width:100%;text-align:right;margin-top:5px;'>";
+ if(preg_match("/w/",$this->parent->getacl(""))){
+ $display.= "<input type=submit name='save_dhcp' value='".msgPool::saveButton()."'> ";
+ }
+ $display.= "<input type=submit name='cancel_dhcp' value='".msgPool::cancelButton()."'>";
+ $display.= "</div>";
+
/* Show main page */
return $display;