button tweaks
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 7 Oct 2002 19:16:09 +0000 (19:16 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 7 Oct 2002 19:16:09 +0000 (19:16 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3798 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mailbox_display.php

index 51723f5..e22f80d 100644 (file)
@@ -1242,7 +1242,18 @@ function getMbxList($imapConnection) {
 }
 
 function getButton($type, $name, $value) {
-return '<INPUT TYPE="'.$type.'" NAME="'.$name.'" VALUE="'.$value . '">';
+global $color;
+$style = ' STYLE="background:'.$color[3].';font-size:xx-small;font-weight:bold;'.
+                  'color:'.$color[8].';margin:0.05em;border:0.2em outset '.
+                 $color[9].';"';
+$javascript = " onmouseover=\"this.style.borderColor='$color[8]'".
+                           ";this.style.borderStyle='inset'" .
+                           ";this.style.background='$color[0]';\";" .
+             " onmouseout=\"this.style.borderColor='$color[9]'".
+                           ";this.style.borderStyle='outset'" . 
+                           ";this.style.background='$color[3]';\";";
+
+return '<INPUT TYPE="'.$type.'" NAME="'.$name.'" VALUE="'.$value . '"'.$style.$javascript.'>';
 }
 
 function getSmallStringCell($string, $align) {