Code

Fixed W3C conformance of addressbook
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 May 2005 17:24:43 +0000 (17:24 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 May 2005 17:24:43 +0000 (17:24 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@565 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/addressbook/address_edit.tpl
plugins/addons/addressbook/class_addressbook.inc
plugins/addons/addressbook/contents.tpl
plugins/addons/addressbook/dial.tpl
plugins/admin/applications/class_applicationGeneric.inc

index 1d87a222d9ca5b206ef15565a3cd577adb0afaaa..9cf55638e3d19b1498d40934a32e23b3a3024283 100644 (file)
@@ -1,7 +1,7 @@
 <table style="width:100%; vertical-align:top; text-align:left; border:1px solid #B0B0B0;" cellpadding=4 cellspacing=0 border=0>
 <tr style="background-color: #E8E8E8; height:26px;font-weight:bold;">
 <td align=left width="100%">{$storage_info}
- <select name="storage_base" size=1" title="{t}Choose the department to store entry in{/t}">
+ <select name="storage_base" size="1" title="{t}Choose the department to store entry in{/t}">
   {html_options options=$deplist selected=$storage_base}
  </select>
 </td>
index 952e3230d92f256796e3c6d6c9661ab172fc8f83..1c3c87e2af09de997950975d74620f37f83952b1 100644 (file)
@@ -452,7 +452,7 @@ $this->telephone_list[$attrs['sn'][0].$attrs['dn']]=
                                        $smarty->assign("info_$name", preg_replace("/\n/", "<br>", $info["$name"][0]));
                                 }
                                error_reporting(E_ALL);
-                       } elseif ($_SESSION['show_info'] == "ADD") {
+                       } elseif ($_SESSION['show_info'] == "ADD" && isset($this->$name)) {
                                $smarty->assign("info_$name", $this->$name);
                        } else {
                                $smarty->assign("info_$name", "-");
index 266328d9e0878ebc6b94700de9a607545d6f36f9..6e65a08539a87718d70517496470dacc2e8353af 100644 (file)
@@ -78,8 +78,9 @@
                        &nbsp;{t}Display results for department{/t}
                </td>
        <td>
-                       <select name="search_base" size=1 onChange="mainform.submit()" title="{t}Choose the department the search will be based on{/t}">
+                       <select name="search_base" size="1" onChange="mainform.submit()" title="{t}Choose the department the search will be based on{/t}">
                        {html_options options=$deplist selected=$depselect}
+                               <option disabled></option>
                </select>
                </td>
        </tr>
                        <img alt="" src="{$search_image}" align=middle>&nbsp;{t}Match object{/t}
                </td>
            <td>
-               <select name="object_type" size=1 onChange="mainform.submit()" title="{t}Choose the object that will be searched in{/t}">
+               <select name="object_type" size="1" onChange="mainform.submit()" title="{t}Choose the object that will be searched in{/t}">
                        {html_options options=$objlist selected=$object_type}
+                               <option disabled></option>
                </select>
            </td>
        </tr>
index 4cf4a001411a14ecdc6ed6324d6be46293edf81c..4b350ec7ee9eefc0d9506563cb59d328b0b42cba 100644 (file)
@@ -1,10 +1,9 @@
 <table style="width:100%; vertical-align:top; text-align:left; border:1px solid #B0B0B0;" cellpadding=4 cellspacing=0 border=0>
 <tr style="background-color: #E8E8E8; height:26px;font-weight:bold;">
 <td align=left width="100%">{t}Dial connection...{/t}</td>
-<td><a href="{$url}">X</a></td>
 </tr>
 <tr style="background-color: white">
-<td colspan=2 style="text-align:center;">
+<td style="text-align:center;">
  <div style="height:50px;">&nbsp;</div>
  <a style="font-size:22px"><img alt="" src="{$phone_image}" align=middle>{$dial_info}</a>
  <div style="height:60px;">&nbsp;</div>
@@ -14,7 +13,3 @@
 
 </tr>
 </table>
-
-</td>
-</tr>
-</table>
index 4330a54e09bacfb89459e56a5c09215a966d2a23..27cf79eb1084ccbf5b2b05857364cfb76b732f73 100644 (file)
@@ -31,7 +31,9 @@ class application extends plugin
 
        /* Load icon */
        $ldap= $config->get_ldap_link();
-       $this->iconData= $ldap->get_attribute($dn, "gosaApplicationIcon");
+       if ($dn != 'new'){
+               $this->iconData= $ldap->get_attribute($dn, "gosaApplicationIcon");
+       }
        if ($this->iconData == ""){
                $this->set_picture("");
        }
@@ -41,12 +43,12 @@ class application extends plugin
        /* This is always an account */
        $this->is_account= TRUE;
 
-        if ($this->dn == "new"){
+       if ($this->dn == "new"){
                $ui= get_userinfo();
                $this->base= dn2base($ui->dn);
        } else {
-                $this->base= preg_replace ("/^[^,]+,[^,]+,/", "", $this->dn);
-        }
+               $this->base= preg_replace ("/^[^,]+,[^,]+,/", "", $this->dn);
+       }
   }
 
   function execute()