[imp] Another action for the lock icon in IMP
Mário Gamito
gamito at netual.pt
Wed Sep 15 08:04:33 PDT 2004
Hi,
For starters, sorry for the screenshot.
I have this webmail with Horde/IMP and passwd.
I want to change the code, so that when one clicks on the lock icon in
the menu to change the password, a popup windows opens, instead of the
default behaviour.
I've already spend a day and a half of work around the code, and i give up.
Although i understand the code by itself, i couldn't find where and what
to change to make it work.
Does anyone gives me a help on this ?
I'm really desperated with a client waiting for his mail server shouting
at me on the phone :(
I think that the structure of the menu is defined in horde/lib/Menu.php
in the code following my signature.
Strangely, the $html variable ends with an </a>, but i can't see the
opening <a href=....>
In other words, i can't locate where exactly is the URL associated with
th lock pic.
Any help would really be appreciated.
I'm driving nuts :(
Warm Regards,
Mário Gamito
function createItem($url, $text, $icon = '', $icon_path = null, $target
= '', $onclick = null, $cell_class = null, $link_class = 'menuitem')
{
global $conf, $prefs;
$html = '<td align="center" nowrap="nowrap" valign="';
$html .= ($prefs->getValue('menu_view') == 'icon') ? 'middle' :
'bottom';
$html .= '"';
$html .= (!empty($cell_class)) ? " class=\"$cell_class\">" : '>';
$html .= Horde::link($url, $text, $link_class, $target, $onclick);
if (!empty($icon) && ($prefs->getValue('menu_view') == 'icon'
|| $prefs->getValue('menu_view') == 'both')) {
$html .= Horde::img($icon, "alt=\"$text\"" .
($prefs->getValue('menu_view') == 'icon' ? 'hspace="5" vspace="5"' :
''), $icon_path);
if ($prefs->getValue('menu_view') == 'both') {
$html .= '<br />';
}
}
if ($prefs->getValue('menu_view') != 'icon') {
$html .= $text;
}
$html .= "</a> </td>\n";
return $html;
(...)
function printItem($url, $text, $icon = '', $icon_path = null,
$target = '', $onclick = null, $cell_class = null, $link
_class = 'menuitem')
{
echo Menu::createItem($url, $text, $icon, $icon_path, $target,
$onclick, $cell_class, $link_class);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: menu.jpg
Type: image/jpeg
Size: 13187 bytes
Desc: not available
Url : http://lists.horde.org/archives/imp/attachments/20040915/e66aa604/menu.jpg
More information about the imp
mailing list