Okay I made progress.. This at least LOOKS like the rest of the sideboxes.. And it appears to work MOSTLY as it originally did.. The only thing that is different is the box header is no longer dynamic because I do not know how to do that.. I'm close, but I am really now officially stumped
Code:
<?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. |
// +----------------------------------------------------------------------+
// $Id: tpl_login_box.php,v 1.0 2003/11/21 19:16:29 ajeh Exp $
// Updated to 1.3 standard (XHTML compliant) 2006/06/07 Rick Suffolk
//
// Designed for Zen Cart v1.00 Alpha
// Created by: Linda McGrath [email protected]
// http://www.thewebmakerscorner.com
// Edited by: Ian Manson [email protected] 2006 08 13
// to include some my account links when actually logged in
$content_tm = '';
$content_head = tm_box_head(Login);
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '">';
$content = "<!--testloginbox-->";
if(!$_SESSION['customer_id']) {
$content .='<br />';
$content .=zen_draw_form('login_box', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL'));
$content .=LOGIN_BOX_EMAIL_ADDRESS . '<br />' . zen_draw_input_field('email_address', '', 'size="23"').'<br />';
$content .=LOGIN_BOX_PASSWORD . '<br />' . zen_draw_password_field('password', '', 'size="23"') . '<br />';
$content .='<br />';
$content .='<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . LOGIN_BOX_PASSWORD_FORGOTTEN . '</a>' . '<br />' . '<a href="' . zen_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . LOGIN_BOX_CREATE_ACCOUNT . '</a>' . '<br />';
$content .='<br />';
$content .='<div class="centeredContent">'.zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT).'</div>';
$content .='</form>';
} else {
$content .= '<ul class="ul1">';
$content .= '<li><a class="loginBoxLinks" href="' . zen_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT . '</a></li>';
$content .= '<li><a class="loginBoxLinks" href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '">' . LOGIN_BOX_SHOPPING_CART . '</a></li>';
$content .= '<li><a class="loginBoxLinks" href="' . zen_href_link(FILENAME_LOGOFF, '', 'SSL') . '">' . LOGIN_BOX_LOGOFF . '</a></li>';
$content .= '</ul>';
$content .= '</div>';
}
$content .= '</div>';
$content_tm = $content;
$content_cont = tm_box_cont($content_tm);
$content = $content_head.$content_cont;
?>