summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8c11cf0)
raw | patch | inline | side by side (parent: 8c11cf0)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 May 2005 17:24:43 +0000 (17:24 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 May 2005 17:24:43 +0000 (17:24 +0000) |
diff --git a/plugins/addons/addressbook/address_edit.tpl b/plugins/addons/addressbook/address_edit.tpl
index 1d87a222d9ca5b206ef15565a3cd577adb0afaaa..9cf55638e3d19b1498d40934a32e23b3a3024283 100644 (file)
<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>
diff --git a/plugins/addons/addressbook/class_addressbook.inc b/plugins/addons/addressbook/class_addressbook.inc
index 952e3230d92f256796e3c6d6c9661ab172fc8f83..1c3c87e2af09de997950975d74620f37f83952b1 100644 (file)
$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)
{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> {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)
<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;"> </div>
<a style="font-size:22px"><img alt="" src="{$phone_image}" align=middle>{$dial_info}</a>
<div style="height:60px;"> </div>
</tr>
</table>
-
-</td>
-</tr>
-</table>
diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc
index 4330a54e09bacfb89459e56a5c09215a966d2a23..27cf79eb1084ccbf5b2b05857364cfb76b732f73 100644 (file)
/* 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("");
}
/* 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()