summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3334731)
raw | patch | inline | side by side (parent: 3334731)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 Mar 2010 12:56:31 +0000 (12:56 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 Mar 2010 12:56:31 +0000 (12:56 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16995 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/systems/services/repository/class_servRepositorySetup.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/systems/services/repository/class_servRepositorySetup.inc b/gosa-plugins/fai/admin/systems/services/repository/class_servRepositorySetup.inc
index 61e59d8cb179057d4ea0db8c031efcf5eaf78c20..15ef168eeb01737d5acbb9ac9482baadc4504288 100644 (file)
if(preg_match("/^delete_/",$name)){
$val = preg_replace("/^delete_/","",$name);
- $val = base64_decode(preg_replace("/_.*$/","",$val));
+ echo $val;
+ $val = postDecode($val);
if(isset($this->Sections[$val])){
unset($this->Sections[$val]);
$divlist = new divSelectBox("servRepositorySetup");
$divlist->setHeight("220");
+ $dellink = "";
if(preg_match("/w/",$this->parent->getacl("Section"))){
- $dellink = "<input type='image' src='images/lists/trash.png' title='delete' alt='delete' name='delete_%s' value='%s'>";
- }else{
- $dellink = "";
+ $dellink = image('images/lists/trash.png','delete_%s');
}
-
+
foreach($this->Sections as $sec){
$divlist->AddEntry(array(
array("string"=>$sec),
- array("string"=>sprintf($dellink,base64_encode($sec),$sec),
+ array("string"=>preg_replace("/%s/",postEncode($sec), $dellink),
"attach"=>"style='border-right:0px;width:20px;'")
));
}