PHP Code:
<?php
/**
* Page Template
*
* @package templateSystem
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_login_default.php 5926 2007-02-28 18:15:39Z drbyte $
*/
?>
<div class="centerColumn" id="loginDefault">
<h1 id="loginDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
<?php if ($messageStack->size('login') > 0) echo $messageStack->output('login'); ?>
<table algn="center" width="100%" cellpadding="5">
<tr>
<td valign="top" width="60%">
<?php if ( USE_SPLIT_LOGIN_MODE == 'True' || $ec_button_enabled) { ?>
<!--BOF PPEC split login- DO NOT REMOVE--><fieldset class="loginFieldsetLeft"><legend><?php echo HEADING_NEW_CUSTOMER_SPLIT; ?></legend>
<?php if ($_SESSION['cart']->count_contents() > 0) { ?>
<div><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION_SPLIT_NO_CART; ?></div>
<?php } else { ?>
<div><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION_SPLIT; ?></div>
<?php } ?>
<?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"') . zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format'); ?>
<?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT); ?></div>
</form>
</form></fieldset>
<!-- end columnLeft -->
</td>
<td valign="top" width="40%">
<fieldset class="loginFieldsetRight">
<legend><?php echo HEADING_RETURNING_CUSTOMER_SPLIT; ?></legend>
<div><?php echo TEXT_RETURNING_CUSTOMER_SPLIT; ?></div><br />
<?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
<label class="inputLabelLogin" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
<?php echo zen_draw_input_field('email_address', '', 'size="28" id="login-email-address"'); ?>
<br class="clearBoth" />
<label class="inputLabelLogin" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>
<?php echo zen_draw_password_field('password', '', 'size="28"', 'id="login-password"'); ?>
<?php
if (PROJECT_VERSION_MAJOR == '1' && substr(PROJECT_VERSION_MINOR, 0, 3) == '3.8') {
echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']);
}
?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT); ?></div>
<br class="clearBoth"/>
<div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div>
</fieldset>
</form>
<br class="clearBoth"/>
<!-- BOF PAYPAL -->
<?php // ** BEGIN PAYPAL EXPRESS CHECKOUT **
?>
<?php if ($ec_button_enabled) { ?>
<fieldset class="loginFieldsetRight">
<legend><?php echo HEADING_PAYPAL; ?></legend>
<br class="clearBoth"/>
<div class="information"><?php echo TEXT_PAYPAL_INTRODUCTION_SPLIT; ?></div>
<br class="clearBoth"/>
<div class="center"><?php require(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php'); ?></div>
</fieldset>
<br class="clearBoth"/>
<?php } ?>
<?php // ** END PAYPAL EXPRESS CHECKOUT **
?>
<!-- EOF PAYPAL -->
<fieldset class="loginFieldsetRight">
<legend><?php echo HEADING_CONFIDENCE; ?></legend>
<br />
<!-- GeoTrust QuickSSL [tm] Smart Icon tag. Do not edit. -->
<script language="javascript" type="text/javascript" src="//smarticon.geotrust.com/si.js"></script>
<!-- end GeoTrust Smart Icon tag --> <a href="http://www.paypal.com"><img src="images/PayPal.jpg" border="0" alt="" /></a><br /><br />
This site uses a 128 bit encrypted SSL Certificate from GeoTrust to increase the security of our customer’s information.<br /><br />
<strong><a href="http://www.havendesignz.com/store/index.php?main_page=privacy">View our complete Privacy Policy here.</a></strong><br /><br />
PayPal is the safer, easier way to pay and get paid online. The service allows you to pay in any way you prefer, including through credit cards, bank accounts, buyer credit or account balances, without sharing financial information. Haven Designz DigiScraps is Paypal Verified for your extra security.<br /><br />
You can now make payments via Direct Bank Deposit, choose your selection at checkout.<br /><br />
<strong><a href="http://www.havendesignz.com/store/index.php?main_page=contact_us">Questions? Contact us here.</a></strong><br />
</fieldset>
<!-- end columnRight -->
</td>
</tr>
</table>
<!--EOF PPEC split login- DO NOT REMOVE-->
<?php } else { ?>
<!--BOF normal login-->
<?php
if ($_SESSION['cart']->count_contents() > 0) {
?>
<div class="advisory"><?php echo TEXT_VISITORS_CART; ?></div>
<?php
}
?>
<?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
<fieldset>
<legend><?php echo HEADING_RETURNING_CUSTOMER; ?></legend>
<label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?>
<br class="clearBoth" />
<label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>
<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password"'); ?>
<br class="clearBoth" />
<?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?>
</fieldset>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT); ?></div>
<div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div>
</form>
<br class="clearBoth" />
<?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"') . zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format'); ?>
<fieldset>
<legend><?php echo HEADING_NEW_CUSTOMER; ?></legend>
<div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION; ?></div>
<?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?>
</fieldset>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT); ?></div>
</form>
<!--EOF normal login-->
<?php } ?>
</div>
<br class="clearBoth" />
<br class="clearBoth" />
<!--bof- site copyright display -->
<div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY; ?></div>
<!--eof- site copyright display -->