Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Form Design - Help needed


jmianez

Recommended Posts

I'm installing the contribution LoginboxV5.4_in_header

 

(http://www.oscommerce.com/community/contributions,2179/category,all/search,LoginboxV5.4_in_header ).

 

This contribution allows a login box to appear in header (header.php).

 

By design reasons, I need a black background in this form.

 

In MS Explorer, the form is displayed with a 4 sides white border; in Firefox is displayed OK, as bellow:

 

problema.gif

 

Can anybody helpme, please?

 

**** FROM HEADER.PHP ********

[....]

<!-- Empieza tabla fila superior // -->

<table border="0" width="100%" cellpadding="0" cellspacing="0">

<tr><td width="20%" border="0" bgcolor="#000000"> & </td><td>

<table width="753" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>

<td><table width="100%" bgcolor="#000000" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="525" valign="top"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">'; ?><img src="images/design_06.gif" width="269" height="60" border="0"></A></td>

<td width="253">

<!-- Inicio box login -->

<?php

if ( (!strstr($_SERVER['PHP_SELF'],'login.php'))

and

(!strstr($_SERVER['PHP_SELF'],'create_account.php'))

and

!tep_session_is_registered('customer_id')

) {

?>

<!-- loginbox //-->

<?php

if (!tep_session_is_registered('customer_id')) {

?>

<table width="253" cellspacing="0" cellpadding="0" border="0"><tr><td class="re">

<?php

 

$loginboxcontent = tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL'))

. '<table width="253" border="0" cellspacing="0" cellpadding="0" bgcolor="#000000"><tr><td colspan="3" class="neg">'

.'<tr><td class="neg">'

. tep_draw_separator('pixel_trans.gif', '2', '1')

. BOX_LOGINBOXH_EMAIL

. '</td><td class="neg" colspan="3">'

. tep_draw_input_field('email_address', '', 'size="15" maxlength="100" style="width: ' . (BOX_WIDTH-30) . 'px"')

.'</td></tr><tr><td class="neg">'

. tep_draw_separator('pixel_trans.gif', '2', '1')

. BOX_LOGINBOXH_PASSWORD

. '</td><td class="neg">'

. tep_draw_password_field('password', '', 'size="15" maxlength="40" style="width: ' . (BOX_WIDTH-30) . 'px"')

. '</td><td class="neg">'

. tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN)

. '</form></td></tr><tr><td class="neg" colspan="3">'

. '<a href="'

. tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL')

. '">'

. BOX_LOGINBOXH_FORGOT_PASSWORD

. '</a></td></tr><tr><td class="neg" colspan="2">'

. tep_draw_separator('pixel_trans.gif', '0', '1')

. BOX_LOGINBOXH_TEXT_NEW

. '</td><td class="neg"><a href="'

. tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')

. '">'

. BOX_LOGINBOXH_NEW

. '</a></td></tr></table>'

;

 

$info_box_contents = array();

$info_box_contents[] = array('align' => '',

'text' => $loginboxcontent);

new infoBox($info_box_contents);

?>

</td>

</tr></table>

<?php

} else {

// If you want to display anything when the user IS logged in, put it

// in here... Possibly a "You are logged in as :" box or something.

}

?>

[....]**********CONTINUE SCRIP IN HEADER.PHP *******

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...