Code

Image button posts different values in firefox and konqueror
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Dec 2005 06:51:35 +0000 (06:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Dec 2005 06:51:35 +0000 (06:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2367 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servRepositorySetup.inc
plugins/admin/systems/class_workstationStartup.inc
plugins/admin/systems/workstation.tpl

index c4456ec8686cd5c8c13d18e0afe94eb9e7b531f0..b83b68fd98c8272a19bed7bd1c99962130c85d3a 100644 (file)
@@ -65,8 +65,12 @@ class servRepositorySetup  extends plugin
     
     foreach($_POST as $name => $value){
       if(preg_match("/^delete_/",$name)){
-        if(isset($this->Sections[$value])){
-          unset($this->Sections[$value]);
+
+        $val = preg_replace("/^delete_/","",$name);
+        $val = base64_decode(preg_replace("/_.*$/","",$val));
+
+        if(isset($this->Sections[$val])){
+          unset($this->Sections[$val]);
         }
       }
     }
@@ -79,7 +83,7 @@ class servRepositorySetup  extends plugin
     foreach($this->Sections as $sec){
       $divlist->AddEntry(array(
                               array("string"=>$sec),
-                              array("string"=>sprintf($dellink,$sec,$sec),"attach"=>"style='border-right:0px;width:20px;'")
+                              array("string"=>sprintf($dellink,base64_encode($sec),$sec),"attach"=>"style='border-right:0px;width:20px;'")
                               ));
     }
   
index a5cfa2063def19c0e042c88d59850b4557337528..06207e5f36e024d33119ad3252e52e26e465b101 100644 (file)
@@ -384,7 +384,7 @@ class workstartup extends plugin
     $str_up     = " &nbsp;<input type='image' src='images/sort_up.png'    name='sort_up_%s'    value='%s'>";
     $str_down   = " &nbsp;<input type='image' src='images/sort_down.png'  name='sort_down_%s'  value='%s'>";
     $str_remove = " &nbsp;<input type='image' src='images/edittrash.png'  name='fai_remove_%s' value='%s'>";
-    $str_empty  = " &nbsp;<img src='images/empty.png'i width='7'>"; 
+    $str_empty  = " &nbsp;<img src='images/empty.png' alt=\"\" width='7'>"; 
 
     $i = 1;
     foreach($this->FAIclass as $class){
index a99333cabbe514c9a06e46aadcd2d1cefb4cd018..4dbdad767514eca64d3ec221a3154f428cddafb8 100644 (file)
@@ -94,6 +94,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.gotoTerminalName.focus();
+  document.mainform.cn.focus();
   -->
 </script>