????
| Current Path : /home2/morganrand/www/store/ |
| Current File : /home2/morganrand/www/store/checkout.php1 |
<?php
/*
$Id: checkout_shipping.php 1739 2007-12-20 00:52:16Z hpdl $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
require('includes/application_top.php');
require('includes/classes/http_client.php');
if (ONEPAGE_LOGIN_REQUIRED == 'true')
{
if (!tep_session_is_registered('customer_id'))
{
$navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT));
tep_redirect(tep_href_link(FILENAME_LOGIN));
}
}
if(isset($_REQUEST['gv_redeem_code']) && tep_not_null($_REQUEST['gv_redeem_code']))
{
$_REQUEST['gv_redeem_code'] = '';
$_POST['gv_redeem_code'] = '';
}
if(isset($_REQUEST['coupon']) && tep_not_null($_REQUEST['coupon']) && $_REQUEST['coupon'] == 'redeem code')
{
$_REQUEST['coupon'] = '';
$_POST['coupon'] = '';
}
require('includes/classes/onepage_checkout.php');
$onePageCheckout = new osC_onePageCheckout();
if (!isset($_GET['rType']) && !isset($_GET['action']) && !isset($_POST['action']) && !isset($_GET['error_message']) && !isset($_GET['payment_error']))
{
$onePageCheckout->init();
}
//BOF KGT
if (MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true')
{
if(isset($_POST['code']))
{
if(!tep_session_is_registered('coupon'))
tep_session_register('coupon');
$coupon = $_POST['code'];
}
}
//EOF KGT
$ship_date = new DateTime('NOW');
$ship_date->add(new DateInterval('P14D'));
require(DIR_WS_CLASSES . 'order.php');
$order = new order;
$onePageCheckout->loadSessionVars();
$onePageCheckout->fixTaxes();
if (!tep_session_is_registered('cartID')) tep_session_register('cartID');
$cartID = $cart->cartID;
if (!isset($_GET['action']) && !isset($_POST['action']))
{
if ($order->content_type == 'virtual' || $order->content_type == 'virtual_weight' )
{
$shipping = false;
$sendto = false;
}
}
else
{
if ($cart->count_contents() < 1)
{
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
}
if (isset($cart->cartID) && tep_session_is_registered('cartID'))
{
if ($cart->cartID != $cartID)
{
tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}
}
}
$total_weight = $cart->show_weight();
$total_count = $cart->count_contents();
// Start - CREDIT CLASS Gift Voucher Contribution
if (method_exists($cart, 'count_contents_virtual'))
{
$total_count = $cart->count_contents_virtual();
}
// End - CREDIT CLASS Gift Voucher Contribution
require(DIR_WS_CLASSES . 'shipping.php');
$shipping_modules = new shipping;
require(DIR_WS_CLASSES . 'payment.php');
$payment_modules = new payment;
require(DIR_WS_CLASSES . 'order_total.php');
$order_total_modules = new order_total;
$order_total_modules->process();
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT);
$action = (isset($_POST['action']) ? $_POST['action'] : '');
if (isset($_POST['updateQuantities_x']))
{
$action = 'updateQuantities';
}
if (isset($_GET['action']) && $_GET['action']=='process_confirm')
{
$action = 'process_confirm';
}
if (tep_not_null($action))
{
ob_start();
if(isset($_POST) && is_array($_POST)) $onePageCheckout->decode_post_vars();
switch($action)
{
case 'process_confirm':
echo $onePageCheckout->confirmCheckout();
break;
case 'process':
$shipdate = $_REQUEST['selectedShipDate'];
$_SESSION['shipdate'] = strtotime($shipdate);
echo $onePageCheckout->processCheckout();
break;
case 'countrySelect':
echo $onePageCheckout->getAjaxStateField();
break;
case 'processLogin':
echo $onePageCheckout->processAjaxLogin($_POST['email'], $_POST['pass']);
break;
case 'removeProduct':
echo $onePageCheckout->removeProductFromCart($_POST['pID']);
break;
case 'updateQuantities':
echo $onePageCheckout->updateCartProducts($_POST['qty'], $_POST['id']);
break;
case 'setPaymentMethod':
echo $onePageCheckout->setPaymentMethod($_POST['method']);
break;
case 'setGV':
echo $onePageCheckout->setGiftVoucher($_POST['method']);
break;
case 'redeemPoints':
echo $onePageCheckout->redeemPoints($_POST['points']);
break;
case 'clearPoints':
echo $onePageCheckout->clearPoints();
break;
case 'setShippingMethod':
echo $onePageCheckout->setShippingMethod($_POST['method']);
break;
case 'setSendTo':
case 'setBillTo':
echo $onePageCheckout->setCheckoutAddress($action);
break;
case 'checkEmailAddress':
echo $onePageCheckout->checkEmailAddress($_POST['emailAddress']);
break;
case 'saveAddress':
case 'addNewAddress':
echo $onePageCheckout->saveAddress($action);
break;
case 'selectAddress':
echo $onePageCheckout->setAddress($_POST['address_type'], $_POST['address']);
break;
case 'redeemVoucher':
echo $onePageCheckout->redeemCoupon($_POST['code']);
break;
case 'setMembershipPlan':
echo $onePageCheckout->setMembershipPlan($_POST['planID']);
break;
case 'updateCartView':
if ($cart->count_contents() == 0)
{
echo 'none';
}
else
{
include(DIR_WS_INCLUDES . 'checkout/cart.php');
}
break;
case 'updatePoints':
case 'updateShippingMethods':
include(DIR_WS_INCLUDES . 'checkout/shipping_method.php');
break;
case 'updatePaymentMethods':
include(DIR_WS_INCLUDES . 'checkout/payment_method.php');
break;
case 'getOrderTotals':
if (MODULE_ORDER_TOTAL_INSTALLED) echo '<table>' . $order_total_modules->output() . '</table>';
break;
case 'updateRadiosforTotal':
$order_total_modules->output();
echo $order->info['total'];
break;
case 'getProductsFinal':
include(DIR_WS_INCLUDES . 'checkout/products_final.php');
break;
case 'getNewAddressForm':
case 'getAddressBook':
$addresses_count = tep_count_customer_address_book_entries();
if ($action == 'getAddressBook')
{
$addressType = $_POST['addressType'];
include(DIR_WS_INCLUDES . 'checkout/address_book.php');
}
else
{
include(DIR_WS_INCLUDES . 'checkout/new_address.php');
}
break;
case 'getEditAddressForm':
$aID = tep_db_prepare_input($_POST['addressID']);
$Qaddress = tep_db_query('select * from ' . TABLE_ADDRESS_BOOK . ' where customers_id = "' . $customer_id . '" and address_book_id = "' . $aID . '"');
$address = tep_db_fetch_array($Qaddress);
include(DIR_WS_INCLUDES . 'checkout/edit_address.php');
break;
case 'getBillingAddress':
include(DIR_WS_INCLUDES . 'checkout/billing_address.php');
break;
case 'getShippingAddress':
include(DIR_WS_INCLUDES . 'checkout/shipping_address.php');
break;
}
$content = ob_get_contents();
ob_end_clean();
if($action=='process') echo $content;
else echo ($content);
tep_session_close();
tep_exit();
}
$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT, '', $request_type));
function buildInfobox($header, $contents)
{
global $action;
$info_box_contents = array();
if(isset($action) && tep_not_null($action)) $info_box_contents[] = array('text' => utf8_encode($header));
else $info_box_contents[] = array('text' => ($header));
new infoBoxHeading($info_box_contents);
$info_box_contents = array();
if(isset($action) && tep_not_null($action)) $info_box_contents[] = array('text' => utf8_encode($contents));
else $info_box_contents[] = array('text' => ($contents));
new infoBox($info_box_contents);
}
function fixSeoLink($url)
{
return str_replace('&', '&', $url);
}
if( ($total_weight == 0) && (ONEPAGE_CHECKOUT_HIDE_SHIPPING == 'true') ) { $onepage['shippingEnabled'] = false; }
require(DIR_WS_INCLUDES . 'template_top.php');
?><noscript>
<p>Please follow the instructions for your web browser:<br /><br />Internet Explorer</p>
<ol>
<li>On the <strong>Tools</strong> menu, click <strong>Internet Options</strong>, and then click the <strong>Security</strong> tab.</li>
<li>Click the <strong>Internet</strong> zone.</li>
<li>If you do not have to customize your Internet security settings, click <strong>Default Level</strong>. Then do step 4<blockquote>If you have to customize your Internet security settings, follow these steps:<br />
a. Click <strong>Custom Level</strong>.<br />
b. In the <strong>Security Settings – Internet Zone</strong> dialog box, click <strong>Enable</strong> for <strong>Active Scripting</strong> in the <strong>Scripting</strong>section.</blockquote></li>
<li>Click the <strong>Back</strong> button to return to the previous page, and then click the <strong>Refresh</strong> button to run scripts.</li>
</ol>
<p><br />Firefox</p>
<ol>
<li>On the <strong>Tools</strong> menu, click <strong>Options</strong>.</li>
<li>On the <strong>Content</strong> tab, click to select the <strong>Enable JavaScript</strong> check box.</li>
<li>Click the <strong>Go back one page</strong> button to return to the previous page, and then click the <strong>Reload current page</strong> button to run scripts.</li>
</ol>
<p> </p>
</noscript>
<h1><?php echo HEADING_TITLE; ?></h1>
<div class="contentContainer">
<?php echo tep_draw_form('checkout', tep_href_link(FILENAME_CHECKOUT, '', $request_type), 'post','id=onePageCheckoutForm') . tep_draw_hidden_field('action', 'process'); ?>
<table width="100%">
<tr>
<td>
<?php
if (isset($_GET['payment_error']) && is_object(${$_GET['payment_error']}) && ($error = ${$_GET['payment_error']}->get_error()))
{
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><b><?php echo tep_output_string_protected($error['title']); ?></b></td>
</tr>
<tr>
<td width="100%" valign="top">
<div class="ui-state-error">
<?php
if($error['error']!='')
echo htmlspecialchars_decode($error['error']);
else
echo TEXT_PAYMENT_METHOD_UPDATE_ERROR; ?>
</div>
</td>
</tr>
</table>
<?php
}
?>
<div style="float:left; width:<?php echo (ONEPAGE_ADDR_LAYOUT == 'vertical' ? '100%' : '49.5%'); ?>; <?php echo (ONEPAGE_ADDR_LAYOUT == 'vertical' ? 'margin:auto' : 'margin-right:0px;'); ?>;">
<?php
$header = '<div class="title-header">' . TABLE_HEADING_BILLING_ADDRESS . '</div>';
ob_start();
include(DIR_WS_INCLUDES . 'checkout/billing_address.php');
$billingAddress = ob_get_contents();
ob_end_clean();
$billingAddress = '<div id="logInRow" style="padding-left:15px;' . (isset($_SESSION['customer_id']) ? ' display:none;' : '' ) . '">' . TEXT_EXISTING_CUSTOMER_LOGIN . ' <a id="loginButton" href="' . fixSeoLink(tep_href_link(FILENAME_LOGIN)) . '"><span class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-focus" style="padding:5px;">Login</span></a></div>' . $billingAddress; //' . tep_draw_button('Login', 'key') . '
$billingAddress .= '<div style="float:right; padding:5px;' . (isset($_SESSION['customer_id']) ? '' : ' display:none;') . '"><a id="changeBillingAddress" href="' . tep_href_link('checkout_payment_address.php', '', $request_type) . '"><span class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-focus" style="padding:5px;">Change Address</span></a></div>'; //tep_draw_button('Change Address')
buildInfobox($header, $billingAddress);
?>
</div>
<?php
if(ONEPAGE_ADDR_LAYOUT == 'vertical')
{
?>
<div style="width:100%; margin:auto;"><span><font size="1pt"> </font></span></div>
<?php
}
?>
<div style="float:right; width:<?php echo (ONEPAGE_ADDR_LAYOUT == 'vertical' ? '100%' : '49.5%'); ?>; <?php echo (ONEPAGE_ADDR_LAYOUT == 'vertical' ? 'margin:auto' : 'margin-left:0px;'); ?>;">
<?php
if ($onepage['shippingEnabled'] === true)
{
$header = '<div class="title-header">' . TABLE_HEADING_SHIPPING_ADDRESS . '</div>';
ob_start();
include(DIR_WS_INCLUDES . 'checkout/shipping_address.php');
$shippingAddress = ob_get_contents();
ob_end_clean();
$shippingAddress = '<div style="padding-left:15px;' . (isset($_SESSION['customer_id']) ? ' display:none;' : '' ) . '">' . TEXT_DIFFERENT_SHIPPING . ' <input type="checkbox" name="diffShipping" id="diffShipping" value="1"></div>' . $shippingAddress;
$shippingAddress .= '<div style="float:right; padding:5px;' . (isset($_SESSION['customer_id']) ? '' : ' display:none;') . '"><a id="changeShippingAddress" href="' . tep_href_link('checkout_shipping_address.php', '', $request_type) . '"><span class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-focus" style="padding:5px;">Change Address</span></a></div>'; //tep_draw_button('Change Address')
buildInfobox($header, $shippingAddress);
}
?>
</div>
<div style="width:100%; margin:auto;"><span><font size="1pt"> </font></span></div>
<div style="clear:both;">
<div style="width:100%; margin:auto;"><span><font size="1pt"> </font></span></div>
<?php
if ($onepage['shippingEnabled'] === true)
{
if (tep_count_shipping_modules() > 0)
{
$header = '<div class="title-header">' . TABLE_HEADING_SHIPPING_METHOD . '</div>';
$shippingMethod = '';
if (isset($_SESSION['customer_id']))
{
ob_start();
include(DIR_WS_INCLUDES . 'checkout/shipping_method.php');
$shippingMethod = ob_get_contents();
ob_end_clean();
}
$shippingMethod = '<div id="noShippingAddress" class="main noAddress" align="center" style="font-size:15px;' . (isset($_SESSION['customer_id']) ? 'display:none;' : '') . '">Please fill in <b>at least</b> your billing address to get shipping quotes.</div><div id="shippingMethods"' . (!isset($_SESSION['customer_id']) ? ' style="display:none;"' : '') . '>' . $shippingMethod . '</div>';
buildInfobox($header, $shippingMethod);
}
?>
<div style="width:100%; margin:auto;"><span><font size="1pt"> </font></span></div>
<?php
}
?>
<?php
$header = '<div class="title-header">' . TABLE_HEADING_PAYMENT_METHOD . '</div>';
$paymentMethod = '';
if (isset($_SESSION['customer_id']))
{
ob_start();
include(DIR_WS_INCLUDES . 'checkout/payment_method.php');
$paymentMethod = ob_get_contents();
ob_end_clean();
}
$paymentMethod = '<div id="noPaymentAddress" class="noAddress" align="center" style="font-size:15px;' . (isset($_SESSION['customer_id']) ? 'display:none;' : '') . '">Please fill in your <b>billing address</b> for payment options</div><div id="paymentMethods"' . (!isset($_SESSION['customer_id']) ? ' style="display:none;"' : '') . '>' . $paymentMethod . '</div>';
buildInfobox($header, $paymentMethod);
?>
<div style="width:100%; margin:auto;"><span><font size="1pt"> </font></span></div>
<div class="title-header" style="display:none;"><?php echo TABLE_HEADING_REVIEW_ORDER ;?></div>
<div class="finalProducts" style="display:none;"></div>
<div style="width:100%; margin:auto;"><span><font size="1pt"> </font></span></div>
<?php
$header = '<div class="title-header">' . TABLE_HEADING_PRODUCTS . '</div>';
ob_start();
include(DIR_WS_INCLUDES . 'checkout/cart.php');
$cartContents = ob_get_contents();
ob_end_clean();
$cartContents .= '<br><div style="float:right; padding:15px;" class="orderTotals">' . (MODULE_ORDER_TOTAL_INSTALLED ? '<table cellpadding="2" cellspacing="0" border="0">' . $order_total_modules->output() . '</table>' : '') . '</div>';
$cartContents .= '<div style="float:left"><span name="updateQuantities" id="updateCartButton"></span></div>';
buildInfobox($header, $cartContents);
?>
<?php
$header = '<div class="title-header">' . TABLE_HEADING_ARRIVAL_DATE . '</div>';
$shipDate = '';
ob_start();
include(DIR_WS_INCLUDES . 'checkout/ship_date.php');
$shipDate = ob_get_contents();
ob_end_clean();
$shipDate = '<div id="noShipDate" class="noShipdate" align="center" style="font-size:15px;' . (isset($_SESSION['customer_id']) ? 'display:none;' : '') . '">Please fill in your <b>billing address</b> for shipping date</div><div id="shipDate"' . (!isset($_SESSION['customer_id']) ? ' style="display:none;"' : '') . '>' . $shipDate . '</div>';
buildInfobox($header, $shipDate);
?>
<?php
$couponContent = "";
if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true')
{
$couponContent .= '<table cellpadding="2" cellspacing="0" border="0" style="padding:10px;">'.
'<tr>'.
'<td><b>' . TEXT_HAVE_COUPON_CCGV . '</b></td>'.
'<td>' . tep_draw_input_field('gv_redeem_code', '') . '</td>'.
'<td style="padding-left:5px;"><span class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-focus" style="padding:5px;" id="voucherRedeem">Redeem</span></td>'.
'</tr>'.
'</table>';
}
//BOF KGT
if (MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true')
{
$couponContent .= '<table cellpadding="2" cellspacing="0" border="0" style="padding:10px;">'.
'<tr>'.
'<td colspan="2"><b>' . TEXT_HAVE_COUPON_CCGV . '</b></td>'.
'<td style="padding-left:10px;">' . tep_draw_input_field('coupon', '') . '</td>'.
'<td style="padding-left:5px;"><span class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-focus" style="padding:5px;" id="voucherRedeemCoupon">Apply</span></td>'.
'</tr>'.
'</table>';
}
//EOF KGT
buildInfobox("", $couponContent);
?>
<?php
$header = '<div class="title-header">' . TABLE_HEADING_COMMENTS . '</div>';
$commentBox = '<div style="padding-left: 10px;font-size: 13px;font-weight: bold;">Comments</div>';
ob_start();
include(DIR_WS_INCLUDES . 'checkout/comments.php');
$commentBox .= ob_get_contents();
ob_end_clean();
buildInfobox("", $commentBox);
?>
<div style="width:100%; margin:auto;"><span><font size="1pt"> </font></span></div>
<br>
<table width="100%">
<tr id="checkoutYesScript" style="display:none;">
<td id="checkoutMessage"><?php echo '<b>' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>
<td align="right"><div id="checkoutButtonContainer"><?php echo '<input type="submit" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-focus" style="padding:5px;" id="checkoutButton" formUrl="' . tep_href_link(FILENAME_CHECKOUT_PROCESS, '', $request_type) . '" value="'.IMAGE_BUTTON_CONTINUE. '" />'; ?><input type="hidden" name="formUrl" id="formUrl" value=""></div><div id="paymentHiddenFields" style="display:none;"></div></td>
</tr>
<tr id="checkoutNoScript">
<td><?php echo '<b>' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>to update/view your order.'; ?></td>
<td align="right"><?php echo tep_image_submit('button_update.gif', IMAGE_BUTTON_UPDATE); ?></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="25%">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="50%" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
</tr>
</table>
</td>
<td width="25%">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
<td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
<!-- body_eof //-->
<div id="force" class="tabdialog">
<div id="dialog-movie-info" class="ui-helper-hidden tabdialog">
<div id="tabs-movie">
<ul>
<li><a href="#tab-info">Information</a></li>
<li><a href="#tab-cast">Cast List</a></li>
<li class="ui-tabs-close-button"><span class="ui-button-icon-primary ui-icon ui-icon-close"></span></li>
</ul>
<div id="tab-info">
<em>Info tab...
This better <br/>get big<br/>
This better <br/>get bigger<br/>
This better <br/>evena little bit more<br/>
</em>
</div>
<div id="tab-cast">
<em>Cast tab...</em>
</div>
</div>
</div>
</div>
<!-- dialogs_bof //-->
<div id="loginBox" title="Log Into My Account" style="display:none;">
<div id="tabsLogin">
<ul>
<li><a href="#tab-signin">Sign In</a></li>
<!--<li><a href="#tab-join">Join <small style="font-family:Arial, Helvetica, sans-serif;">(for first time users)</small></a></li>-->
<li style="float:right; margin-top:2px;"><span class="ui-icon ui-icon-closethick" id="closeBtn" style="cursor:pointer;">close</span></li>
</ul>
<div id="tab-signin">
<table cellpadding="2" cellspacing="3" border="0" style="padding-left:13%;">
<tr>
<td class="main"><?php echo ENTRY_EMAIL_ADDRESS;?></td>
<td class="main"><?php echo tep_draw_input_field('email_address');?></td>
</tr>
<tr>
<td class="main" style="padding-top:5px;"><?php echo ENTRY_PASSWORD;?></td>
<td class="main" style="padding-top:5px;"><?php echo tep_draw_password_field('password');?></td>
</tr>
<tr>
<td colspan="2" class="main" style="padding-top:10px; text-align:right;"><a href="<?php echo tep_href_link(FILENAME_PASSWORD_FORGOTTEN, 'form=forgot', 'SSL');?>"><?php echo TEXT_PASSWORD_FORGOTTEN;?></a></td>
</tr>
<tr height="10"><td> </td></tr>
<tr>
<td align="left"><a href="<?php echo tep_href_link(FILENAME_PRIVACY);?>">PRIVACY POLICY</a></td>
<td align="right"><?php echo '<span class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-focus" style="padding:5px;" id="loginWindowSubmit">'. IMAGE_BUTTON_LOGIN. '</span>';?></td>
</tr>
</table>
</div>
<div id="tab-join" style="display:none;">
<table cellpadding="2" cellspacing="3" border="0">
<tr>
<td class="main"><?php echo ENTRY_FIRST_NAME;?><br /><?php echo tep_draw_input_field('entry_firstname');?></td>
<td width="10"> </td>
<td class="main"><?php echo ENTRY_LAST_NAME;?><br /><?php echo tep_draw_input_field('entry_lastname');?></td>
</tr>
<tr>
<td class="main"><?php echo ENTRY_EMAIL_ADDRESS;?><br /><?php echo tep_draw_input_field('entry_email_address');?></td>
<td width="10"> </td>
<td class="main"></td>
</tr>
<tr>
<td class="main"><?php echo ENTRY_PASSWORD;?><br /><?php echo tep_draw_password_field('entry_password');?></td>
<td width="10"> </td>
<td class="main"><?php echo ENTRY_PASSWORD_CONFIRMATION;?><br /><?php echo tep_draw_password_field('entry_password_confirm');?></td>
</tr>
<tr>
<td class="main" colspan="3" style="padding-top:5px;">Subscribe to Newsletter: <?php echo tep_draw_checkbox_field('entry_newsletter', '1', true); ?></td>
</tr>
<tr>
<td align="left"><a href="<?php echo tep_href_link(FILENAME_PRIVACY);?>">PRIVACY POLICY</a></td>
<td width="10"> </td>
<td align="right"><?php echo '<span class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-focus" style="padding:5px;" id="singUp">Sign Up</span>';?></td>
</tr>
</table>
</div>
</div>
</div>
<div id="confirmationBox" title="Order Confirmation" style="display:none">
<center>
<br>Please review your order to make sure it's accurate and click Confirm Order after loading is complete<br>
<img id="imgDlgLgr" src="ext/jquery/ui/redmond/images/ajax_load.gif"><br>
</center>
</div>
<div id="addressBook" title="Address Book" style="display:none"></div>
<div id="newAddress" title="New Address" style="display:none"></div>
<div id="ajaxMessages" style="display:none;"></div>
<!-- dialogs_eof//-->
<?php
require(DIR_WS_INCLUDES . 'template_bottom.php');
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>