index ba745812558848fc7f379e8718f26fd02479c249..6915a6e0dfcc50872faaa94affc4a018556f0ea2 100644 (file)
// Display ok, (apply) and cancel buttons
$str.= "<p style=\"text-align:right\">\n";
- $str.= "<button type=\"submit\" name=\"edit_finish\" style=\"width:80px\">".msgPool::okButton()."</button>\n";
+ $str.= "<button type=\"submit\" name=\"edit_finish\">".msgPool::okButton()."</button>\n";
$str.= " \n";
if($this->displayApplyBtn){
$str.= "<button type=\"submit\" name=\"edit_apply\">".msgPool::applyButton()."</button>\n";
// Check permissons for each target
$h = $this->getHeadpage();
- $oTypes = $h->objectTypes;
+ $oTypes = array_reverse($h->objectTypes);
foreach($target as $dn){
$entry = $h->getEntry($dn);
$obj = $h->getObjectType($oTypes, $entry['objectClass']);
// Check permissons for each target
$h = $this->getHeadpage();
- $oTypes = $h->objectTypes;
+ $oTypes = array_reverse($h->objectTypes);
foreach($this->dns as $key => $dn){
$entry = $h->getEntry($dn);
$obj = $h->getObjectType($oTypes, $entry['objectClass']);
$this->dialogObject->parent = &$this;
}else{
- msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to create a snapshot for %s."),$entry),
+ msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to create a snapshot for %s!"),$entry),
ERROR_DIALOG);
}
}
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,$this->dn,"Snaptshot restored!");
$this->closeDialogs();
}else{
- msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to restore a snapshot for %s."),$entry),
+ msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to restore a snapshot for %s!"),$entry),
ERROR_DIALOG);
}
}
$this->dialogObject->display_restore_dialog = true;
$this->dialogObject->parent = &$this;
}else{
- msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to restore a snapshot for %s."),$entry),
+ msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to restore a snapshot for %s!"),$entry),
ERROR_DIALOG);
}
}else{
$this->dialogObject->display_restore_dialog = true;
$this->dialogObject->parent = &$this;
}else{
- msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to restore a snapshot for %s."),$entry),
+ msg_dialog::display(_("Permission"),sprintf(_("You are not allowed to restore a snapshot for %s!"),$entry),
ERROR_DIALOG);
}
}
$this->tabObject->parent = &$this;
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,$this->dn,"Create new entry initiated!");
} else {
- msg_dialog::display(_("Error"), sprintf(_("No tab declaration for '%s' found in your configuration file. Cannot create plugin instance!"), $tabType), ERROR_DIALOG);
+ msg_dialog::display(_("Error"), sprintf(_("No tab definition for '%s' found in configuration file: cannot create plugin instance!"), $tabType), ERROR_DIALOG);
}
}
}