Code

[COSMETIC] some more centering
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 Dec 2005 14:03:52 +0000 (14:03 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 Dec 2005 14:03:52 +0000 (14:03 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2274 594d385d-05f5-0310-b6e9-bd551577e9d8

12 files changed:
include/class_divlist.inc
include/functions.inc
plugins/admin/applications/class_applicationManagement.inc
plugins/admin/departments/class_departmentManagement.inc
plugins/admin/fai/class_faiManagement.inc
plugins/admin/groups/class_groupManagement.inc
plugins/admin/ogroups/class_ogroupManagement.inc
plugins/admin/systems/class_systemManagement.inc
plugins/admin/users/class_userManagement.inc
plugins/gofax/blocklists/class_blocklistManagement.inc
plugins/gofon/conference/class_phoneConferenceManagment.inc
plugins/gofon/macro/class_gofonMacroManagement.inc

index 180d7bfb9f3e401a0e30dd8302dc79af04addf92..e9c74ba00223db8b95bdfb0edda5b4433179ca44 100644 (file)
@@ -273,8 +273,8 @@ class divlist {
                  }
       }
   
-      // if fewer than 19 Entries (list not full), print row to fill empty space
-      //if($this->_numEntries()<=18){
+      // if fewer than 22 Entries (list not full), print row to fill empty space
+      if($this->_numEntries()<=22){
         $fill= "";
         for ($i= 1; $i <= $this->cols; $i++){
           if ($i == $this->cols){
@@ -284,7 +284,7 @@ class divlist {
           }
         }
         $s_return.="\n<tr>$fill</tr>";
-      //}
+      }
       $s_return .= "\n</table></div></td></tr>";
       return $s_return;
     }
index 23413b8b931948c64137aff5e1046345f7398323..6151838bc1bfa4221355fd874f561b2cff40b881 100644 (file)
@@ -1279,7 +1279,7 @@ function range_selector($dcnt,$start,$range=25,$post_var=false)
   }
 
   if(($post_var)&&($numpages)){
-    $output.= "</td><td style='width:25%;text-align:right'>&nbsp;"._("Entries per page")."&nbsp;<select name='".$post_var."' onChange='javascript:document.mainform.submit()'>";
+    $output.= "</td><td style='width:25%;text-align:right;vertical-align:middle;'>&nbsp;"._("Entries per page")."&nbsp;<select style='vertical-align:middle;' name='".$post_var."' onChange='javascript:document.mainform.submit()'>";
     foreach(array(20,50,100,200,"all") as $num){
       if($num == "all"){
         $var = 10000;
@@ -1287,7 +1287,7 @@ function range_selector($dcnt,$start,$range=25,$post_var=false)
         $var = $num;
       }
       if($var == $range){
-        $output.="\n<option selected value='".$var."'>".$num."</option>";
+        $output.="\n<option selected='selected' value='".$var."'>".$num."</option>";
       }else{  
         $output.="\n<option value='".$var."'>".$num."</option>";
       }
index 86e5891fd13b971a071e5e1231169fc8baa842b8..8d33c59394bd615a7473c9df43e1204c0d5949db 100644 (file)
@@ -301,9 +301,9 @@ class applicationManagement extends plugin
                 /* Don't show buttons if tab dialog requests this */
                 if (!$this->apptabs->by_object[$this->apptabs->current]->dialog){
                         $display.= "<p style=\"text-align:right\">\n";
-                        $display.= "<input type=submit name=\"edit_finish\" value=\""._("Finish")."\">\n";
+                        $display.= "<input type=\"submit\" name=\"edit_finish\" value=\""._("Finish")."\">\n";
                         $display.= "&nbsp;\n";
-                        $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
+                        $display.= "<input type=\"submit\" name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
                         $display.= "</p>";
                 }
                 return ($display);
@@ -315,7 +315,7 @@ class applicationManagement extends plugin
         $options= "";
         foreach ($this->config->idepartments as $key => $value){
           if ($appfilter['depselect'] == $key){
-            $options.= "<option selected value='$key'>$value</option>";
+            $options.= "<option selected='selected' value='$key'>$value</option>";
           } else {
             $options.= "<option value='$key'>$value</option>";
           }
@@ -334,21 +334,21 @@ class applicationManagement extends plugin
           "</div>";
 
 
-        $actions = "<input type='image' src='images/edit.png' alt='"._("edit")."' name='appl_edit_%KEY%' title='"._("Edit this entry")."'>";
-        $actions.= "<input type='image' src='images/edittrash.png' alt='"._("delete")."' name='appl_del_%KEY%' title='"._("Delete this entry")."'>";
+        $actions = "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."' name='appl_edit_%KEY%' title='"._("Edit this entry")."'>";
+        $actions.= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."' name='appl_del_%KEY%' title='"._("Delete this entry")."'>";
 
         // Defining Links
         $linkopen = "<a href='?plug=".$_GET['plug']."&amp;act=dep_open&amp;dep_id=%s'>%s</a>";
 
         // image Buttons
         $editlink = "<a href='?plug=".$_GET['plug']."&amp;id=%s&amp;act=edit_entry'>%s</a>";
-        $userimg  = "<img src='images/select_groups.png' alt='User'    title='%s'>";
+        $userimg  = "<img class='center' src='images/select_groups.png' alt='User'    title='%s'>";
 
         // Extension images
-        $applimg  = "<img src='images/select_application.png' alt='A'  title='"._("Application")."'>";
+        $applimg  = "<img class='center' src='images/select_application.png' alt='A'  title='"._("Application")."'>";
 
         // Space
-        $empty    = "<img src='images/empty.png' style='width:16px;height:16px;' alt=''>";
+        $empty    = "<img class='center' src='images/empty.png' style='width:16px;height:16px;' alt=''>";
 
 
         $divlist = new divlist("applicationtabs");
index 52ff0768c352863f7e39768e8fa2583b03bd5787..4b8ef66653ee89be1ab345f8d0f196097b261a72 100644 (file)
@@ -288,8 +288,8 @@ class departmentManagement extends plugin
                        $divlist = new divlist("departmenttabs");
                        $divlist->SetSummary(_("This table displays all departments, in the selected tree."));
                        $divlist->SetEntriesPerPage(0);
-                       $actions= "<input type='image' src='images/edit.png'             alt='"._("edit")."'    name='dep_edit_%KEY%' title='"._("Edit this entry")."'>";
-                       $actions.= "<input type='image' src='images/edittrash.png' alt='"._("delete")."'        name='dep_del_%KEY%' title='"._("Delete this entry")."'>";
+                       $actions= "<input class='center' type='image' src='images/edit.png'              alt='"._("edit")."'    name='dep_edit_%KEY%' title='"._("Edit this entry")."'>";
+                       $actions.= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."'         name='dep_del_%KEY%' title='"._("Delete this entry")."'>";
 
                        $linkopen = "<a href='?plug=".$_GET['plug']."&amp;act=dep_open&amp;dep_id=%s'>%s</a>";
 
index b652106d37112511088548344850011e21d732cf..d9db64056da148264891a7f448ace7a8d9f058bb 100644 (file)
@@ -389,14 +389,14 @@ class faiManagement extends plugin
                                
                        }elseif(((isset($this->dialog->current))&&(!$this->dialog->by_object[$this->dialog->current]->is_dialog))){
                                $display.= "<p style=\"text-align:right\">\n";
-                               $display.= "<input type=submit name=\"edit_finish\" value=\""._("Finish")."\">\n";
+                               $display.= "<input type=\"submit\" name=\"edit_finish\" value=\""._("Finish")."\">\n";
                                $display.= "&nbsp;\n";
-                               $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
+                               $display.= "<input type=\"submit\" name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
                                $display.= "</p>";
                        }elseif(!isset($this->dialog->current)){
                                $display.= "<p style=\"text-align:right\">\n";
-                               $display.= "<input type=submit name=\"edit_continue\" value=\""._("Continue")."\">&nbsp;";
-                               $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
+                               $display.= "<input type=\"submit\" name=\"edit_continue\" value=\""._("Continue")."\">&nbsp;";
+                               $display.= "<input type=\"submit\" name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
                                $display.= "</p>";
                        }
                        return($display);
@@ -412,7 +412,7 @@ class faiManagement extends plugin
                $options= "";
                foreach ($this->config->idepartments as $key => $value){
                        if ($faifilter['base'] == $key){
-                               $options.= "<option selected value='$key'>$value</option>";
+                               $options.= "<option selected='selected' value='$key'>$value</option>";
                        } else {
                                $options.= "<option value='$key'>$value</option>";
                        }
@@ -479,8 +479,8 @@ class faiManagement extends plugin
                                        array("string" => _("Actions"), "attach" => "style='width:60px;border-right:0px;text-align:right;'")));
 
 
-               $action  = "<input type='image' src='images/edit.png'   alt='"._("edit")."'   name='entry_edit_%KEY%' title='"._("Edit class")."'>";
-               $action .= "<input type='image' src='images/edittrash.png' alt='"._("delete")."' name='entry_delete_%KEY%' title='"._("Delete class")."'>";
+               $action  = "<input class='center' type='image' src='images/edit.png'    alt='"._("edit")."'   name='entry_edit_%KEY%' title='"._("Edit class")."'>";
+               $action .= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."' name='entry_delete_%KEY%' title='"._("Delete class")."'>";
 
                $editlink ="<a href='?plug=".$_GET['plug']."&edit_entry=%KEY%'>%NAME%</a>";             
                $linkopen = "<a href='?plug=".$_GET['plug']."&amp;act=dep_open&amp;dep_id=%s'>%s</a>";
@@ -522,53 +522,53 @@ class faiManagement extends plugin
                                                if(!$faifilter['ShowPartitions']){ 
                                                        $abort = true;
                                                }
-                                       $img="<img src='images/fai_partitionTable.png' title='"._("Partition table")."' alt='PT'>";
+                                       $img="<img class='center' src='images/fai_partitionTable.png' title='"._("Partition table")."' alt='PT'>";
                                        $info = _("Partition table");
                                        break;
                                        case "FAIpackageList"           : 
                                                if(!$faifilter['ShowPackages']){ 
                                                        $abort = true;
                                                }
-                                       $img="<img src='images/fai_packages.png' title='"._("Package list")."' alt='PL'>";
+                                       $img="<img class='center' src='images/fai_packages.png' title='"._("Package list")."' alt='PL'>";
                                        $info = _("Package list");
                                        break;
                                        case "FAIscript"                        : 
                                                if(!$faifilter['ShowScripts']){ 
                                                        $abort = true;
                                                }
-                                       $img="<img src='images/fai_script.png' title='"._("Scripts")."' alt='S'>";
+                                       $img="<img class='center' src='images/fai_script.png' title='"._("Scripts")."' alt='S'>";
                                        $info = _("Scripts");
                                        break;
                                        case "FAIvariable"                      : 
                                                if(!$faifilter['ShowVariables']){ 
                                                        $abort = true;
                                                }
-                                       $img="<img src='images/fai_variable.png' title='"._("Variables")."' alt='V'>";
+                                       $img="<img class='center' src='images/fai_variable.png' title='"._("Variables")."' alt='V'>";
                                        $info = _("Variables");
                                        break;
                                        case "FAIhook"                          :
                                                if(!$faifilter['ShowHooks']){ 
                                                        $abort = true;
                                                }
-                                       $img="<img src='images/fai_hook.png' title='"._("Hooks")."' alt='H'>";
+                                       $img="<img class='center' src='images/fai_hook.png' title='"._("Hooks")."' alt='H'>";
                                        $info = _("Hooks");
                                        break;
                                        case "FAIprofile"                       : 
                                                if(!$faifilter['ShowProfiles']){ 
                                                        $abort = true;
                                                }
-                                       $img="<img src='images/fai_profile.png' title='"._("Profile")."' alt='P'>";
+                                       $img="<img class='center' src='images/fai_profile.png' title='"._("Profile")."' alt='P'>";
                                        $info = _("Profile");
                                        break;
                                        case "FAItemplate"                      : 
                                                if(!$faifilter['ShowTemplates']){ 
                                                        $abort = true;
                                                }
-                                       $img="<img src='images/fai_template.png' title='"._("Templates")."' alt='T'>";
+                                       $img="<img class='center' src='images/fai_template.png' title='"._("Templates")."' alt='T'>";
                                        $info = _("Templates");
                                        break;
                                        default                                         : 
-                                       $img="<img src='images/empty.png' alt=''>";$info = "";break;
+                                       $img="<img class='center' src='images/empty.png' alt=''>";$info = "";break;
 
                                }
                                
index 4f9dd781968b6387e30d0d1e3b0c34ea279dbbc6..83010bc768e0dbd75198c8e91c4b5994f0030fa9 100644 (file)
@@ -358,25 +358,25 @@ class groupManagement extends plugin
       "</div>";
 
     
-    $actions = "<input type='image' src='images/edit.png' alt='"._("edit")."' name='group_edit_%KEY%' title='"._("Edit this entry")."'>";
-    $actions.= "<input type='image' src='images/edittrash.png' alt='"._("delete")."' name='group_del_%KEY%' title='"._("Delete this entry")."'>";
+    $actions = "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."' name='group_edit_%KEY%' title='"._("Edit this entry")."'>";
+    $actions.= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."' name='group_del_%KEY%' title='"._("Delete this entry")."'>";
 
     // Defining Links
     $linkopen = "<a href='?plug=".$_GET['plug']."&amp;act=dep_open&amp;dep_id=%s'>%s</a>";
 
     // image Buttons 
     $editlink = "<a href='?plug=".$_GET['plug']."&amp;id=%s&amp;act=edit_entry'>%s</a>";
-    $userimg  = "<img src='images/select_groups.png' alt='User'    title='%s'>";
+    $userimg  = "<img class='center' src='images/select_groups.png' alt='User'    title='%s'>";
 
     // Extension images 
-    $posiximg = "<img src='images/select_groups.png'        alt='P'  title='"._("Posix")  ."'>";
-    $mailimg  = "<img src='images/mailto.png'             alt='M'  title='"._("Mail")   ."'>";
-    $sambaimg = "<img src='images/select_winstation.png'  alt='S'  title='"._("Samba")  ."'>";
-    $applimg  = "<img src='images/select_application.png' alt='A'  title='"._("Application")."'>"; 
-    $phoneimg = "<img src='images/select_phone.png'      alt='Ph' title='"._("Phone")  ."'>"; 
-    $envimg   = "<img src='images/network.png'      alt='E' title='"._("Environment")  ."'>"; 
+    $posiximg = "<img class='center' src='images/select_groups.png'        alt='P'  title='"._("Posix")  ."'>";
+    $mailimg  = "<img class='center' src='images/mailto.png'             alt='M'  title='"._("Mail")   ."'>";
+    $sambaimg = "<img class='center' src='images/select_winstation.png'  alt='S'  title='"._("Samba")  ."'>";
+    $applimg  = "<img class='center' src='images/select_application.png' alt='A'  title='"._("Application")."'>"; 
+    $phoneimg = "<img class='center' src='images/select_phone.png'      alt='Ph' title='"._("Phone")  ."'>"; 
+    $envimg   = "<img class='center' src='images/network.png'      alt='E' title='"._("Environment")  ."'>"; 
     // Space
-    $empty    = "<img src='images/empty.png' style='width:16px;height:16px;' alt=''>";
+    $empty    = "<img class='center' src='images/empty.png' style='width:16px;height:16px;' alt=''>";
 
 
     $divlist = new divlist("groupstab");
index 577bd17423ccc974d0c93470d68ad443f497ce24..d6288d1dac8c5329a314ec33476e8f945f983a74 100644 (file)
@@ -368,21 +368,21 @@ name='dep_root' alt='"._("Root")."'>&nbsp;".
       "</div>";
 
 
-    $actions = "<input type='image' src='images/edit.png' alt='"._("edit")."' name='group_edit_%KEY%' title='"._("Edit this entry")."'>";
-    $actions.= "<input type='image' src='images/edittrash.png' alt='"._("delete")."' name='group_del_%KEY%' title='"._("Delete this entry")."'>";
+    $actions = "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."' name='group_edit_%KEY%' title='"._("Edit this entry")."'>";
+    $actions.= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."' name='group_del_%KEY%' title='"._("Delete this entry")."'>";
 
     // Defining Links
     $linkopen = "<a href='?plug=".$_GET['plug']."&amp;act=dep_open&amp;dep_id=%s'>%s</a>";
 
     // image Buttons
     $editlink = "<a href='?plug=".$_GET['plug']."&amp;id=%s&amp;act=edit_entry'>%s</a>";
-    $userimg  = "<img src='images/select_groups.png' alt='User'    title='%s'>";
+    $userimg  = "<img class='center' src='images/select_groups.png' alt='User'    title='%s'>";
 
     // Extension images
-    $mailimg  = "<img src='images/mailto.png'             alt='M'  title='"._("Mail")   ."'>";
+    $mailimg  = "<img class='center' src='images/mailto.png'             alt='M'  title='"._("Mail")   ."'>";
 
     // Space
-    $empty    = "<img src='images/empty.png' style='width:16px;height:16px;' alt=''>";
+    $empty    = "<img class='center' src='images/empty.png' style='width:16px;height:16px;' alt=''>";
 
     // List Setup
     $divlist = new divlist("ogroubstab");
@@ -509,8 +509,8 @@ name='dep_root' alt='"._("Root")."'>&nbsp;".
       $p2['alt']= "";
       $p2['tit']= "";
     }
-    $temp = "<img src='images/".$p1['pic']."' alt='".$p1['alt']."' title='".$p1['tit']."'>";
-    $temp.= "<img src='images/".$p2['pic']."' alt='".$p2['alt']."' title='".$p2['tit']."'>";
+    $temp = "<img class='center' src='images/".$p1['pic']."' alt='".$p1['alt']."' title='".$p1['tit']."'>";
+    $temp.= "<img class='center' src='images/".$p2['pic']."' alt='".$p2['alt']."' title='".$p2['tit']."'>";
     return ($temp);
   }
 
index 6be034cbb4ea1082f168f535afcc0e2c5cfc21e6..99d841ebc0e10a6900bbf8d8db49a6cb8d4bafac 100644 (file)
@@ -537,9 +537,9 @@ class systems extends plugin
       /* Don't show buttons if tab dialog requests this */
       if (!$this->systab->by_object[$this->systab->current]->dialog){
         $display.= "<p style=\"text-align:right\">\n";
-        $display.= "<input type=submit name=\"edit_finish\" value=\""._("Finish")."\">\n";
+        $display.= "<input type=\"submit\" name=\"edit_finish\" value=\""._("Finish")."\">\n";
         $display.= "&nbsp;\n";
-        $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
+        $display.= "<input type=\"submit\" name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
         $display.= "</p>";
       }
       return ($display);
@@ -554,7 +554,7 @@ class systems extends plugin
     $options= "";
     foreach ($this->config->idepartments as $key => $value){
             if ($terminalfilter['depselect'] == $key){
-                    $options.= "<option selected value='$key'>$value</option>";
+                    $options.= "<option selected='selected' value='$key'>$value</option>";
             } else {
                     $options.= "<option value='$key'>$value</option>";
             }
@@ -580,8 +580,8 @@ class systems extends plugin
 
 
 
-    $action= "<input type='image' src='images/edit.png' alt='"._("edit")."'     name='user_edit_%KEY%' title='"._("Edit system")."'>";
-    $action.= "<input type='image' src='images/edittrash.png' alt='"._("delete")."'   name='user_del_%KEY%' title='"._("Delete system")."'>";
+    $action= "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."'     name='user_edit_%KEY%' title='"._("Edit system")."'>";
+    $action.= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."'   name='user_del_%KEY%' title='"._("Delete system")."'>";
 
 
     $divlist = new divlist("systemstab");
@@ -623,16 +623,16 @@ class systems extends plugin
     $editlink = "<a href='?plug=".$_GET['plug']."&amp;id=%s&amp;act=edit_entry'>%s</a>";
 
     // Pictures for Extensions
-    $img1  = "<img src='images/printer.png'            alt='C' title='"._("Cups Server")  ."'>";
-    $img2  = "<img src='images/scanner.png'            alt='L' title='"._("Log Db") ."'>";
-    $img3  = "<img src='images/select_terminal.png'    alt='L' title='"._("Syslog Server") ."'>";
-    $img4  = "<img src='images/mailto.png'             alt='M' title='"._("Mail Server")  ."'>";
-    $img5  = "<img src='images/select_phone.png'       alt='I' title='"._("Imap Server") ."'>";
-    $img6  = "<img src='images/fax_small.png'          alt='F' title='"._("Nfs Server")   ."'>";
-    $img7  = "<img src='images/select_winstation.png'  alt='K' title='"._("Kerberos Server") ."'>";
-    $img8  = "<img src='images/select_phone.png'       alt='A' title='"._("Asterisk Server") ."'>";
-    $img9  = "<img src='images/fax_small.png'          alt='F' title='"._("Fax Server") ."'>";
-    $img10 = "<img src='images/save.png'               alt='L' title='"._("Ldap Server") ."'>";
+    $img1  = "<img class='center' src='images/printer.png'            alt='C' title='"._("Cups Server")  ."'>";
+    $img2  = "<img class='center' src='images/scanner.png'            alt='L' title='"._("Log Db") ."'>";
+    $img3  = "<img class='center' src='images/select_terminal.png'    alt='L' title='"._("Syslog Server") ."'>";
+    $img4  = "<img class='center' src='images/mailto.png'             alt='M' title='"._("Mail Server")  ."'>";
+    $img5  = "<img class='center' src='images/select_phone.png'       alt='I' title='"._("Imap Server") ."'>";
+    $img6  = "<img class='center' src='images/fax_small.png'          alt='F' title='"._("Nfs Server")   ."'>";
+    $img7  = "<img class='center' src='images/select_winstation.png'  alt='K' title='"._("Kerberos Server") ."'>";
+    $img8  = "<img class='center' src='images/select_phone.png'       alt='A' title='"._("Asterisk Server") ."'>";
+    $img9  = "<img class='center' src='images/fax_small.png'          alt='F' title='"._("Fax Server") ."'>";
+    $img10 = "<img class='center' src='images/save.png'               alt='L' title='"._("Ldap Server") ."'>";
 
     // Test Every Entry and generate divlist Array
     foreach($this->terminals as $key => $val){
@@ -658,7 +658,7 @@ class systems extends plugin
       }
 
       if((in_array("gotoTerminal",$val['objectClass']))||(in_array("gotoWorkstation",$val['objectClass']))){
-        $action2 = "<input type='image' src='images/certs.png' alt='"._("Password")."'   name='user_setpwd_%KEY%' title='"._("Set root password")."'>";
+        $action2 = "<input class='center' type='image' src='images/certs.png' alt='"._("Password")."'   name='user_setpwd_%KEY%' title='"._("Set root password")."'>";
       }else{
         $action2 = "";
       }
@@ -719,7 +719,7 @@ class systems extends plugin
    }
    foreach ($conv  as $key => $value){
       if($input['type']==$key){
-        $tmp['img'] ="<img src='images/".$value[0]."' alt='".$key."' title='".$value['1']."'>";
+        $tmp['img'] ="<img class='center' src='images/".$value[0]."' alt='".$key."' title='".$value['1']."'>";
         $tmp['class']=$key;
         return $tmp;
       }
index fbc3ab56b9cf4df74d5b90d7de1b40ffb2cf73f6..7a09f8a2a280ae17fe3d2517e4187370ac9846f2 100644 (file)
@@ -678,9 +678,9 @@ class userManagement extends plugin
       " <input class='center' type='image' src='images/list_submit.png' align='middle' title='"._("Submit department")."' name='submit_department' alt='"._("Submit")."'>&nbsp;".
       "</div>";
 
-    $action= "<input type='image' src='images/edit.png' alt='"._("edit")."'     name='user_edit_%KEY%' title='"._("Edit user")."'>";
-    $action.= "<input type='image' src='images/list_password.png' alt='"._("password")."' name='user_chgpw_%KEY%' title='"._("Change password")."'>";
-    $action.= "<input type='image' src='images/edittrash.png' alt='"._("delete")."'   name='user_del_%KEY%' title='"._("Delete user")."'>";
+    $action= "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."'     name='user_edit_%KEY%' title='"._("Edit user")."'>";
+    $action.= "<input class='center' type='image' src='images/list_password.png' alt='"._("password")."' name='user_chgpw_%KEY%' title='"._("Change password")."'>";
+    $action.= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."'   name='user_del_%KEY%' title='"._("Delete user")."'>";
 
 
 
@@ -723,29 +723,29 @@ class userManagement extends plugin
     }
 
     /* Pictures for Extensions */
-    $usrimg   ="<input type='image' src='images/penguin.png' alt='"._("GOsa")."'   
+    $usrimg   ="<input class='center' type='image' src='images/penguin.png' alt='"._("GOsa")."'   
                     name='user_edit_%KEY%-user' title='"._("Edit generic properties")."'>";
-    $posiximg = "<input type='image' src='images/select_user.png' alt='"._("Posix")."'  
+    $posiximg = "<input class='center' type='image' src='images/select_user.png' alt='"._("Posix")."'  
                     name='user_edit_%KEY%-posixAccount' title='"._("Edit UNIX properties")."'>";
-    $eviroimg = "<input type='image' src='images/smallenv.png' alt='"._("Environment")."'  
+    $eviroimg = "<input class='center' type='image' src='images/smallenv.png' alt='"._("Environment")."'  
                     name='user_edit_%KEY%-environment' title='"._("Edit environment properties")."'>";
-    $mailimg  = "<input type='image' src='images/mailto.png' alt='"._("Mail")."'     
+    $mailimg  = "<input class='center' type='image' src='images/mailto.png' alt='"._("Mail")."'     
                     name='user_edit_%KEY%-mailAccount' title='"._("Edit mail properties")."'>";
-    $fonimg   = "<input type='image' src='images/%image%' alt='"._("Phone")."'     
+    $fonimg   = "<input class='center' type='image' src='images/%image%' alt='"._("Phone")."'     
                     name='user_edit_%KEY%-phoneAccount' title='"._("Edit phone properties")."%title%'>";
-    $faximg   = "<input type='image' src='images/fax_small.png' alt='"._("Fax")."'     
+    $faximg   = "<input class='center' type='image' src='images/fax_small.png' alt='"._("Fax")."'     
                     name='user_edit_%KEY%-gofaxAccount' title='"._("Edit fax properies")."'>";
-    $sambaimg = "<input type='image' src='images/select_winstation.png' alt='"._("Samba")."'     
+    $sambaimg = "<input class='center' type='image' src='images/select_winstation.png' alt='"._("Samba")."'     
                     name='user_edit_%KEY%-sambaAccount' title='"._("Edit samba properties")."'>"; 
-    $tplcreateuserimg  = "<input type='image' src='images/list_new.png' alt='"._("Create user from template")."'
+    $tplcreateuserimg  = "<input type='image' class='center' src='images/list_new.png' alt='"._("Create user from template")."'
                     name='userfrom_tpl_%KEY%' title='"._("Create user with this template")."'>";   
     
 
-    $empty    = "<img src='images/empty.png' style='width:16px;height:16px;' alt=''>"; 
+    $empty    = "<img class='center' src='images/empty.png' style='width:16px;height:16px;' alt=''>"; 
 
     // User and Template  Images  
-    $userimg  = "<img src='images/select_user.png' alt='User' title='%s'>";   
-    $tplimg   = "<img src='images/select_template.png' alt='Template' title='%s'>";   
+    $userimg  = "<img class='center' src='images/select_user.png' alt='User' title='%s'>";   
+    $tplimg   = "<img class='center' src='images/select_template.png' alt='Template' title='%s'>";   
     $editlink = "<a href='?plug=".$_GET['plug']."&amp;id=%s&amp;act=edit_entry'>%s</a>";
 
     // Defines Arrays to save User and Templates
index e9c5e01ab693ae790fe7e5ccb397b6df87cb6d60..af37e1b76d6918281137dc33e3f9743f2b941f56 100644 (file)
@@ -297,8 +297,8 @@ class blocklist extends plugin
         " <input class='center' type='image' src='images/list_submit.png' align='middle' title='"._("Submit department")."' name='submit_department' alt='"._("Submit")."'>&nbsp;".
         "</div>";
 
-      $action= "<input type='image' src='images/edit.png' alt='"._("edit")."'     name='user_edit_%KEY%' title='"._("Edit user")."'>";
-      $action.= "<input type='image' src='images/edittrash.png' alt='"._("delete")."'   name='user_del_%KEY%' title='"._("Delete user")."'>";
+      $action= "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."'     name='user_edit_%KEY%' title='"._("Edit user")."'>";
+      $action.= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."'   name='user_del_%KEY%' title='"._("Delete user")."'>";
 
 
       $divlist = new divlist("faxtabs");
@@ -333,7 +333,7 @@ class blocklist extends plugin
       }
 
       // User and Template  Images
-      $blockimg = "<img src='images/list_blocklist.png' alt='User' title='%s'>";
+      $blockimg = "<img class='center' src='images/list_blocklist.png' alt='User' title='%s'>";
       $editlink = "<a href='?plug=".$_GET['plug']."&amp;id=%s&amp;act=edit_entry'>%s</a>";
 
       foreach($this->blocklists as $key => $val){
index 9c3229d60a500c76bc8387707f2d23723f655b2b..8e1287b99a27caa3dfd5b30ce54decc590d6133b 100644 (file)
@@ -263,9 +263,9 @@ class phoneConferenceManagment extends plugin
       /* Don't show buttons if tab dialog requests this */
       if (!$this->conftab->by_object[$this->conftab->current]->dialog){
         $display.= "<p style=\"text-align:right\">\n";
-        $display.= "<input type=submit name=\"edit_finish\" value=\""._("Finish")."\">\n";
+        $display.= "<input type=\"submit\" name=\"edit_finish\" value=\""._("Finish")."\">\n";
         $display.= "&nbsp;\n";
-        $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
+        $display.= "<input type=\"submit\" name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
         $display.= "</p>";
       }
       return ($display);
@@ -275,7 +275,7 @@ class phoneConferenceManagment extends plugin
     $options= "";
     foreach ($this->config->idepartments as $key => $value){
       if ($conferencefilter['depselect'] == $key){
-        $options.= "<option selected value='$key'>$value</option>";
+        $options.= "<option selected='selected' value='$key'>$value</option>";
       } else {
         $options.= "<option value='$key'>$value</option>";
       }
@@ -293,10 +293,10 @@ class phoneConferenceManagment extends plugin
       "</div>";
 
     /* Images for delete / edit */
-    $actions = "<input type='image' src='images/edit.png'               alt='"._("edit")."'      name='conf_edit_%KEY%' title='"._("Edit this entry")."'>";
-    $actions.= "<input type='image' src='images/edittrash.png' alt='"._("delete")."'   name='conf_del_%KEY%'  title='"._("Delete this entry")."'>";
+    $actions = "<input class='center' type='image' src='images/edit.png'                alt='"._("edit")."'      name='conf_edit_%KEY%' title='"._("Edit this entry")."'>";
+    $actions.= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."'    name='conf_del_%KEY%'  title='"._("Delete this entry")."'>";
     
-    $actions2= "<input type='image' src='images/edittrash.png' alt='"._("delete")."'   name='conf_del_%KEY%'  title='"._("Delete this entry")."'>";
+    $actions2= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."'    name='conf_del_%KEY%'  title='"._("Delete this entry")."'>";
     /* open an entry */
     $linkopen= "<a href='?plug=".$_GET['plug']."&amp;act=dep_open&amp;dep_id=%s'>%s</a>";
 
@@ -337,7 +337,7 @@ class phoneConferenceManagment extends plugin
     }
 
     /* Image shown in divlist */
-    $userimg  = "<img src='images/select_conference.png' alt='User' title='%s'>";
+    $userimg  = "<img class='center' src='images/select_conference.png' alt='User' title='%s'>";
 
     /* Edit entry link*/
     $editlink = "<a href='?plug=".$_GET['plug']."&amp;id=%s&amp;act=edit_entry'>%s</a>";
@@ -346,7 +346,7 @@ class phoneConferenceManagment extends plugin
     foreach($this->conferences as $conferencekey => $conference ){
 
       if((isset($conference['goFonPIN'][0]))&&(($this->ui->dn==$conference['goFonConferenceOwner'][0])||($this->acl=="#all#"))){
-        $pin = "<img src='images/list_password.png' title='PIN : ".$conference['goFonPIN'][0]."' alt='PIN'>";
+        $pin = "<img class='center' src='images/list_password.png' title='PIN : ".$conference['goFonPIN'][0]."' alt='PIN'>";
       }else{
         $pin = "&nbsp;";
       }
index 0f5d782557fc4fdb9af64feefa90ac0dcb9a67b3..2a6a14b129e6429443a151068182bf523b546e00 100755 (executable)
@@ -297,9 +297,9 @@ class gofonMacro extends plugin
       /* Don't show buttons if tab dialog requests this */
       if (!$this->macrotabs->by_object[$this->macrotabs->current]->dialog){
         $display.= "<p style=\"text-align:right\">\n";
-        $display.= "<input type=submit name=\"edit_finish\" value=\""._("Finish")."\">\n";
+        $display.= "<input type=\"submit\" name=\"edit_finish\" value=\""._("Finish")."\">\n";
         $display.= "&nbsp;\n";
-        $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
+        $display.= "<input type=\"submit\" name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
         $display.= "</p>";
       }
       return ($display);
@@ -312,7 +312,7 @@ class gofonMacro extends plugin
     $options= "";
     foreach ($this->config->idepartments as $key => $value){
             if ($macrofilter['depselect'] == $key){
-                    $options.= "<option selected value='$key'>$value</option>";
+                    $options.= "<option selected='selected' value='$key'>$value</option>";
             } else {
                     $options.= "<option value='$key'>$value</option>";
             }
@@ -333,8 +333,8 @@ class gofonMacro extends plugin
 
 
     /* Options */
-    $action= "<input type='image' src='images/edit.png' alt='"._("edit")."'     name='user_edit_%KEY%' title='"._("Edit user")."'>";
-    $action.= "<input type='image' src='images/edittrash.png' alt='"._("delete")."'   name='user_del_%KEY%' title='"._("Delete user")."'>";
+    $action= "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."'     name='user_edit_%KEY%' title='"._("Edit user")."'>";
+    $action.= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."'   name='user_del_%KEY%' title='"._("Delete user")."'>";
 
     $divlist = new divlist("macrotabs");
     $divlist->SetHeader(array(
@@ -372,12 +372,12 @@ class gofonMacro extends plugin
     }
 
     // Pictures for Extensions
-    $empty    = "<img src='images/nothing.png' style='width:16px;height:16px;' alt=''>";
+    $empty    = "<img class='center' src='images/nothing.png' style='width:16px;height:16px;' alt=''>";
 
     // User and Template  Images
-    $macroimg   = "<img src='images/list_macro.png' alt='"._("Macro")."' title='%s'>";
-    $visible    = "<img src='images/true.png' alt='"._("yes")."' title='"._("visible")."'>";
-    $invisible  = "<img src='images/false.png' alt='"._("no")."'title='"._("invisible")."'>";
+    $macroimg   = "<img class='center' src='images/list_macro.png' alt='"._("Macro")."' title='%s'>";
+    $visible    = "<img class='center' src='images/true.png' alt='"._("yes")."' title='"._("visible")."'>";
+    $invisible  = "<img class='center' src='images/false.png' alt='"._("no")."'title='"._("invisible")."'>";
 
     // Link for edit
     $editlink = "<a href='?plug=".$_GET['plug']."&amp;id=%s&amp;act=edit_entry'>%s</a>";