<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// |
http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// |
http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// |
[email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
//
// Designed for Zen Cart v1.00 Alpha
// Created by: Linda McGrath
[email protected]
// Modified by: Eggert Johannesson
[email protected]
// Second Modification by: Iasmin B.
[email protected]
$content = '<div align="left">';
if(!$_SESSION['customer_id']) {
echo zen_draw_form('account_box', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL'));
$account_box_content = "
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td align=\"right\" valign=\"middle\" class=\"boxText\">" . ACCOUNT_BOX_EMAIL_ADDRESS .
"</td>
<td align=\"right\" valign=\"middle\" class=\"boxText\">" . zen_draw_input_field('email_address',
'', 'size="10"') . "</td>
<td align=\"right\" valign=\"middle\" class=\"boxText\">" . ACCOUNT_BOX_PASSWORD . "</td>
<td align=\"right\" valign=\"middle\" class=\"boxText\">" . zen_draw_password_field('password',
'', 'size="10"') . "</td>
<td align=\"right\" valign=\"center\" class=\"boxText\">" . ' <input type="submit" value="' . HEADER_TITLE_LOGIN . '" style="width:40px" />' . "</td>
<table> <br />" . ' <a class="menu" href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">'
. ACCOUNT_BOX_PASSWORD_FORGOTTEN . '</a> ' . " " . ' <a class="menu" href="' . zen_href_link(FILENAME_LOGIN, '', 'SSL') . '">'
. ACCOUNT_BOX_CREATE_ACCOUNT . '</a>' . "</table></tr>
</table></form>
";
} else {
$account_box_content = '
<a class="headerNavigation" href="' . zen_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . ACCOUNT_BOX_ACCOUNT . '</a> ' .
' <a class="headerNavigation" href="' . zen_href_link(FILENAME_LOGOFF, '', 'SSL') . '">' . ACCOUNT_BOX_LOGOFF . '</a> '
;
}
$content .= $account_box_content;
$content .= '</div>';
?>
Bookmarks