PajaP wrote:
> Hi
> 
> The code below exists in login.php
> 
> ------------------
> echo html_tag( 'table',
>     html_tag( 'tr',
>         html_tag( 'td',
>             '<center>'.
>             ( (isset($hide_sm_attributions) && $hide_sm_attributions)
> ? '' :
> ------------------
> 
> I want to make the background of the table a color, lets say with a
> hex value of 'DEDEDE'.
> How would I go about this?
> 
> The code below does work in Firefox (which seems more forgiving of
> syntax errors) but breaks the page in IE6 and Opera 8.5
> 
> echo html_tag( 'table, bgcolor=DEDEDE',

cd /path/to/squirrelmail
grep -rin 'function html_tag' functions
vi html.php

/**
 * Generate html tags
 *
 * @param string $tag Tag to output
 * @param string $val Value between tags
 * @param string $align Alignment (left, center, etc)
 * @param string $bgcolor Back color in hexadecimal
 * @param string $xtra Extra options
 * @return string HTML ready for output
 */
function html_tag( $tag,                // Tag to output
                       $val = '',           // Value between tags
                       $align = '',         // Alignment
                       $bgcolor = '',       // Back color
                       $xtra = '' ) {       // Extra options


So the fourth parameter is bgcolor.  "table, bgcolor..." is putting it
in the first parameter with the tag name, which will break everything
quite quickly.



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
--
squirrelmail-users mailing list
Posting Guidelines: 
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [email protected]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to