Code

Updated Application stuff
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Mar 2010 15:01:14 +0000 (15:01 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Mar 2010 15:01:14 +0000 (15:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17128 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/groups/apps/app_list.tpl
gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc

index 97fcf43d6d4d2f73d84050216cbbada9144b9ab7..c5ac59d1d1e253044249cd1f01c0e094f8d2758b 100644 (file)
@@ -1,4 +1,4 @@
-<table style="width:100%;">
+<table style="width:100%;" summary="{t}Group application settings{/t}">
        {if $enableReleaseManagement}
        <tr>
                <td>
@@ -31,7 +31,7 @@
                                        padding:5px; 
                                        ">
                        
-<table style='width:100%' cellpadding=0 cellspacing=0>
+<table style='width:100%' cellpadding=0 cellspacing=0 summary="{t}Application menu{/t}">
 {foreach from=$entries item=item key=key}
        {if $item.TYPE == "OPEN"}
                <tr>
@@ -39,7 +39,7 @@
                </tr>
                <tr>
                        <td style='padding-left:20px;' colspan=3>
-                               <table style='width:100%;' cellpadding=0 cellspacing=0>
+                               <table style='width:100%;' cellpadding=0 cellspacing=0 summary="{t}Sub entry{/t}">
 
        {elseif $item.TYPE == "CLOSE"}
                                </table>
                                <b>{$item.NAME}&nbsp; </b> 
                        </td>
                        <td style='width:100px;text-align:right; background-color: transparent;'>
-                               {image title="{t}Move up{/t}"}
-                                       name='up_{$item.UNIQID}' src='images/move_object_up.png'>
-                               {image title="{t}Move down{/t}"}
-                                       name='down_{$item.UNIQID}' src='images/move_object_down.png'>
-                               {image title="{t}Remove{/t}"}
-                                       name='del_{$item.UNIQID}' src='images/lists/trash.png'>
-                               {image title="{t}Edit{/t}"}
-                                       name='app_entry_edit{$item.UNIQID}' src='images/lists/edit.png'>
+                               {image title="{t}Move up{/t}" action="up_{$item.UNIQID}" path='images/lists/sort-up.png'}
+                               {image title="{t}Move down{/t}" action="down_{$item.UNIQID}" path='images/lists/sort-down.png'}
+                               {image title="{t}Edit{/t}" action="app_entry_edit{$item.UNIQID}" path='images/lists/edit.png'}
+                               {image title="{t}Remove{/t}" action="del_{$item.UNIQID}" path='images/lists/trash.png'}
                        </td>
                </tr>
        {elseif $item.TYPE == "SEPERATOR"}
                {else}
                        <tr class="rowxp1">
                {/if}
-                       <td style='background-color: transparent;width:22px; padding-top:5px;padding-bottom:5px;' colspan="2">
+                       <td style='background-color: transparent;width:22px; padding-top:8px;padding-bottom:8px;' colspan="2">
                                <div style="height:3px; width:100%; background-color:#BBBBBB;"></div>
                        </td>
             <td style='width:100px;text-align:right; background-color: transparent;'>
-                {image title="{t}Move up{/t}"}
-                    name='up_{$item.UNIQID}' src='images/move_object_up.png'>
-                {image title="{t}Move down{/t}"}
-                    name='down_{$item.UNIQID}' src='images/move_object_down.png'>
-                {image title="{t}Remove{/t}"}
-                    name='del_{$item.UNIQID}' src='images/lists/trash.png'>
-                               {image path="images/empty.png"}
-
+                {image title="{t}Move up{/t}" action="up_{$item.UNIQID}" path='images/lists/sort-up.png'}
+                {image title="{t}Move down{/t}" action="down_{$item.UNIQID}" path='images/lists/sort-down.png'}
+                {image title="{t}Remove{/t}" action="del_{$item.UNIQID}" path='images/lists/trash.png'}
             </td>
                </tr>
        {elseif $item.TYPE == "ENTRY"}
                                {$item.NAME} {$item.INFO}
                        </td>
                        <td style='width:100px;text-align:right;background-color: transparent;'>
-                               {image title="{t}Move up{/t}"}
-                                       name='up_{$item.UNIQID}' src='images/move_object_up.png'>
-                               {image title="{t}Move down{/t}"}
-                                       name='down_{$item.UNIQID}' src='images/move_object_down.png'>
-                               {image title="{t}Remove{/t}"}
-                                       name='del_{$item.UNIQID}' src='images/lists/trash.png'>
-                               {image title="{t}Edit{/t}"}
-                                       name='app_entry_edit{$item.UNIQID}' src='images/lists/edit.png'>
+                               {image title="{t}Move up{/t}" action="up_{$item.UNIQID}" path='images/lists/sort-up.png'}
+                               {image title="{t}Move down{/t}" action="down_{$item.UNIQID}" path='images/lists/sort-down.png'}
+                               {image title="{t}Edit{/t}" action="app_entry_edit{$item.UNIQID}" path='images/lists/edit.png'}
+                               {image title="{t}Remove{/t}" action="del_{$item.UNIQID}" path='images/lists/trash.png'}
                        </td>
                </tr>
        {/if}
index a711a7df428cf9e326c4f966a9fc43ad69aa2347..457fc85f44817178993572391e2f5d28943e9671 100644 (file)
@@ -447,7 +447,7 @@ class appgroup extends plugin
     $base_back = preg_replace("/^[^,]+,/","",$this->curbase);
     if((strlen($base_back)>= strlen($this->config->current['BASE']))&&($this->curbase!=$this->config->current['BASE'])){
       $div->AddEntry(array(
-            array("string"=>sprintf($linkopen,base64_encode($base_back),".. ["._("back")."]"),
+            array("string"=>sprintf($linkopen,postEncode($base_back),".. ["._("back")."]"),
               "attach"=>"style='border:0px;'")
             ));
     }
@@ -455,8 +455,8 @@ class appgroup extends plugin
     /* Append departments for current base */
     foreach($departments as $key => $app){
       $div->AddEntry(array(
-            array("string"=>"<img class='center' src='images/lists/folder.png' alt='"._("department")."'>&nbsp;".sprintf($linkopen,
-                base64_encode($key),$app),
+            array("string"=>image('images/lists/folder.png')."&nbsp;".
+                sprintf($linkopen,postEncode($key),$app),
               "attach"=>"style='border:0px;'")
             ));
     }
@@ -478,7 +478,7 @@ class appgroup extends plugin
       }
       $div->AddEntry(array(
             array("string"=>sprintf("<input class='center' type='checkbox' value='1' name='AddApp_%s'>",$key).
-              "<img class='center' src='plugins/goto/images/select_application.png' alt='"._("application")."'>&nbsp;".$name,
+              image('plugins/goto/images/select_application.png')."&nbsp;".$name,
               "attach"=>"style='border:0px;'")
             ));
     }
@@ -841,25 +841,21 @@ class appgroup extends plugin
 
       if(preg_match("/del_/",$name)){
         $id = preg_replace("/^del_/","",$name);
-        $id = preg_replace("/_(x|y)$/","",$id);
         $this->_remove_entry_id($id);
         break;
       }
       if(preg_match("/app_entry_edit/",$name)){
         $id = preg_replace("/^app_entry_edit/","",$name);
-        $id = preg_replace("/_(x|y)$/","",$id);
         $this->_edit_entry_edit($id);
         break;
       }
       if(preg_match("/up_/",$name)){
         $id = preg_replace("/^up_/","",$name);
-        $id = preg_replace("/_(x|y)$/","",$id);
         $this->_move_entry($id,"up");
         break;
       }
       if(preg_match("/down_/",$name)){
         $id = preg_replace("/^down_/","",$name);
-        $id = preg_replace("/_(x|y)$/","",$id);
         $this->_move_entry($id,"down");
         break;
       }
@@ -874,7 +870,7 @@ class appgroup extends plugin
       $this->_check_missing_release($this->FAIrelease);
     }
     if(isset($_GET['act']) && $_GET['act'] == 'depopen'){
-      $this->curbase = base64_decode($_GET['depid']);
+      $this->curbase = postDecode($_GET['depid']);
     }
     if(isset($_POST['add_to_folder']) && isset($_POST['folder'])){
       $folder = $_POST['folder'];