From 231aee6755d6df2e5c0029b801554a7a22225c87 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 31 May 2005 17:24:43 +0000 Subject: [PATCH] Fixed W3C conformance of addressbook git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@565 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/addressbook/address_edit.tpl | 2 +- plugins/addons/addressbook/class_addressbook.inc | 2 +- plugins/addons/addressbook/contents.tpl | 6 ++++-- plugins/addons/addressbook/dial.tpl | 7 +------ .../admin/applications/class_applicationGeneric.inc | 10 ++++++---- 5 files changed, 13 insertions(+), 14 deletions(-) diff --git a/plugins/addons/addressbook/address_edit.tpl b/plugins/addons/addressbook/address_edit.tpl index 1d87a222d..9cf55638e 100644 --- a/plugins/addons/addressbook/address_edit.tpl +++ b/plugins/addons/addressbook/address_edit.tpl @@ -1,7 +1,7 @@ diff --git a/plugins/addons/addressbook/class_addressbook.inc b/plugins/addons/addressbook/class_addressbook.inc index 952e3230d..1c3c87e2a 100644 --- a/plugins/addons/addressbook/class_addressbook.inc +++ b/plugins/addons/addressbook/class_addressbook.inc @@ -452,7 +452,7 @@ $this->telephone_list[$attrs['sn'][0].$attrs['dn']]= $smarty->assign("info_$name", preg_replace("/\n/", "
", $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", "-"); diff --git a/plugins/addons/addressbook/contents.tpl b/plugins/addons/addressbook/contents.tpl index 266328d9e..6e65a0853 100644 --- a/plugins/addons/addressbook/contents.tpl +++ b/plugins/addons/addressbook/contents.tpl @@ -78,8 +78,9 @@  {t}Display results for department{/t} @@ -102,8 +103,9 @@  {t}Match object{/t} diff --git a/plugins/addons/addressbook/dial.tpl b/plugins/addons/addressbook/dial.tpl index 4cf4a0014..4b350ec7e 100644 --- a/plugins/addons/addressbook/dial.tpl +++ b/plugins/addons/addressbook/dial.tpl @@ -1,10 +1,9 @@
{$storage_info} - {html_options options=$deplist selected=$storage_base} - {html_options options=$deplist selected=$depselect} +
- {html_options options=$objlist selected=$object_type} +
- -
{t}Dial connection...{/t}X
+
 
{$dial_info}
 
@@ -14,7 +13,3 @@
- - - - diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc index 4330a54e0..27cf79eb1 100644 --- a/plugins/admin/applications/class_applicationGeneric.inc +++ b/plugins/admin/applications/class_applicationGeneric.inc @@ -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() -- 2.30.2