Cita:
<?php
/*
$Id: login.php
*/
?>
<!-- search //-->
<tr>
<td>
<?php
if (tep_session_is_registered('customer_id')) // el usuario esta conectado
{
$form_header = BOX_HEADING_LOGED;
$form_content = BOX_HEADING_WELLCOME . ' ' . $customer_first_name . '<br>';
$form_content .= '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . BOX_LOGIN_VIEW . '</a><br>';
$form_content .= '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '">' . BOX_LOGIN_LOGOUT . '</a>';
} else {
$form_header = BOX_HEADING_LOGIN;
$form_content = BOX_LOGIN_USERNAME . '<br><input type="text" name="email_address" size="10" maxlength="50" style="width: ' . (BOX_WIDTH-16) . 'px"><br>';
$form_content .= BOX_LOGIN_PASSWORD . '<br><input type="password" name="password" size="10" maxlength="40" style="width: ' . (BOX_WIDTH-36) . 'px"><br> ';
$form_content .= tep_image_submit('images/button_entrar.gif', 'Entrar a Mi Cuenta');
$form_content .= '<br><a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT) . '">' . BOX_LOGIN_NEWACCOUNT . '</b></a>';
$form_content .= '<br><a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . BOX_LOGIN_PASSWORD_FORGOTTEN . '</a>';
}
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => $form_header
);
new infoBoxHeading($info_box_contents);
$hide = tep_hide_session_id();
$info_box_contents = array();
$info_box_contents[] = array('form' => '<form name="login" method="post" action="' . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . '">',
'align' => 'left',
'text' => $hide . $form_content
);
new infoBox($info_box_contents);
// BOX_LOGIN_LOGOUT
?>
</td>
</tr>
<!-- search_eof //-->
/*
$Id: login.php
*/
?>
<!-- search //-->
<tr>
<td>
<?php
if (tep_session_is_registered('customer_id')) // el usuario esta conectado
{
$form_header = BOX_HEADING_LOGED;
$form_content = BOX_HEADING_WELLCOME . ' ' . $customer_first_name . '<br>';
$form_content .= '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . BOX_LOGIN_VIEW . '</a><br>';
$form_content .= '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '">' . BOX_LOGIN_LOGOUT . '</a>';
} else {
$form_header = BOX_HEADING_LOGIN;
$form_content = BOX_LOGIN_USERNAME . '<br><input type="text" name="email_address" size="10" maxlength="50" style="width: ' . (BOX_WIDTH-16) . 'px"><br>';
$form_content .= BOX_LOGIN_PASSWORD . '<br><input type="password" name="password" size="10" maxlength="40" style="width: ' . (BOX_WIDTH-36) . 'px"><br> ';
$form_content .= tep_image_submit('images/button_entrar.gif', 'Entrar a Mi Cuenta');
$form_content .= '<br><a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT) . '">' . BOX_LOGIN_NEWACCOUNT . '</b></a>';
$form_content .= '<br><a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . BOX_LOGIN_PASSWORD_FORGOTTEN . '</a>';
}
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => $form_header
);
new infoBoxHeading($info_box_contents);
$hide = tep_hide_session_id();
$info_box_contents = array();
$info_box_contents[] = array('form' => '<form name="login" method="post" action="' . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . '">',
'align' => 'left',
'text' => $hide . $form_content
);
new infoBox($info_box_contents);
// BOX_LOGIN_LOGOUT
?>
</td>
</tr>
<!-- search_eof //-->