very freaky echo() statement
Posted: Fri Jan 07, 2005 2:58 pm
Code: Select all
echo html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
'<center>'.
( isset($org_logo) && $org_logo
? '<img src="' . $org_logo . '" alt="' .
sprintf(_("%s Logo"), $org_name) .'"' . $width_and_height .
' />
' . "
"
: '' ).
( (isset($hide_sm_attributions) && $hide_sm_attributions) ? '' :
'<small>' . sprintf (_("<h2><a href="../../email.htm">Main</a></h2>SquirrelMail version %s"), $version) . '
' ."
".
' ' . _("By the SquirrelMail Development Team") . '
</small>' . "
" ) .
html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
'<b>' . sprintf (_("%s Login"), $org_name) . "</b>
",
'center', '#DCDCDC' )
) .
html_tag( 'tr',
html_tag( 'td', "
" .
html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
_("Name:") ,
'right', '', 'width="30%"' ) .
html_tag( 'td',
addInput($username_form_name, $loginname_value),
'left', '', 'width="*"' )
) . "
" .
html_tag( 'tr',
html_tag( 'td',
_("Password:") ,
'right', '', 'width="30%"' ) .
html_tag( 'td',
addPwField($password_form_name,$loginpass_value).
addHidden('js_autodetect_results', SMPREF_JS_OFF).
addHidden('just_logged_in', '1'),
'left', '', 'width="*"' )
) ,
'center', '#ffffff', 'border="0" width="100%"' ) ,
'left', '#FFFFFF' )
) .
html_tag( 'tr',
html_tag( 'td',
'<center>'. addSubmit(_("Login")) .'</center>',
'left' )
),
'', '#ffffff', 'border="0" width="350"' ) . '</center>',
'center' )
) ,
'', '#ffffff', 'border="0" cellspacing="0" cellpadding="0" width="100%"' );
[code]
Don't you think it would be easier for them to just have used normal html, instead of html functions to produce it? Wow I had to edit some of that code and it was quite the thing. :roflmao2:
And no this is not a script I made even though it's called squirrelmail. I do nest functions allot when coding, but not to this extent. :lol:
[color=#888888][size=85]Archived topic from Iceteks, old topic ID:2986, old post ID:24494[/size][/color]