function initialize() { global $osC_Language, $osC_Template, $osC_Product; if (isset($osC_Product) && is_a($osC_Product, 'osC_Product') && $osC_Template->getModule() != 'tell_a_friend') { $this->_content = '<form name="tell_a_friend" action="' . osc_href_link(FILENAME_PRODUCTS, 'tell_a_friend&' . $osC_Product->getID()) . '" method="post">' . "\n" . osc_draw_input_field('to_email_address', null, 'style="width: 80%;"') . ' ' . osc_draw_image_submit_button('button_tell_a_friend.gif', $osC_Language->get('box_tell_a_friend_text')) . '<br />' . $osC_Language->get('box_tell_a_friend_text') . "\n" . '</form>' . "\n"; } }
public function initialize() { $OSCOM_Product = Registry::exists('Product') ? Registry::get('Product') : null; if (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid()) { // HPDL && ($osC_Template->getModule() != 'tell_a_friend')) { $this->_content = '<form name="tell_a_friend" action="' . OSCOM::getLink(null, null, 'TellAFriend&' . $OSCOM_Product->getKeyword()) . '" method="post">' . "\n" . osc_draw_input_field('to_email_address', null, 'style="width: 80%;"') . ' ' . osc_draw_image_submit_button('button_tell_a_friend.gif', OSCOM::getDef('box_tell_a_friend_text')) . '<br />' . OSCOM::getDef('box_tell_a_friend_text') . "\n" . '</form>' . "\n"; } }
echo '<b>' . $osC_Language->get('fields_gift_certificates_redeem_code') . '</b>'; ?> <?php echo osc_draw_input_field('gift_certificate_redeem_code', null, 'id="gift_certificate_code"'); ?> <?php echo osc_draw_image_submit_button('button_redeem.gif', $osC_Language->get('button_gift_certificate_redeem'), 'id="btnRedeemGiftCertificate" style="vertical-align: middle"'); ?> </div> </div> </div> <?php } ?> <div class="submitFormButtons" style="text-align: right;"> <?php if ($osC_Payment->hasActionURL()) { $form_action_url = $osC_Payment->getActionURL(); } else { $form_action_url = osc_href_link(FILENAME_CHECKOUT, 'process', 'SSL'); } echo '<form name="checkout_confirmation" action="' . $form_action_url . '" method="post">'; if ($osC_Payment->hasActive()) { echo $osC_Payment->process_button(); } echo osc_draw_image_submit_button('button_confirm_order.gif', $osC_Language->get('button_confirm_order')) . '</form>'; ?> </div>
?> </li> <li><?php echo osc_draw_label($osC_Language->get('field_customer_password'), 'password') . '<br />' . osc_draw_password_field('password'); ?> </li> </ul> <p><?php echo sprintf($osC_Language->get('login_returning_customer_password_forgotten'), osc_href_link(FILENAME_ACCOUNT, 'password_forgotten', 'SSL')); ?> </p> <div class="submitFormButtons" style="text-align: right;"> <?php echo osc_draw_image_submit_button('button_login.gif', null, 'id="btnLogin"'); ?> </div> </div> </form> </div> <div class="moduleBox" style="width: 49%;"> <div class="outsideHeading"> <h6><?php echo $osC_Language->get('login_new_customer_heading'); ?> </h6> </div> <div class="content">
<h6><?php echo $osC_Language->get('field_review'); ?> </h6> <?php echo osc_draw_textarea_field('review', null, 45, 5); ?> <div class="submitFormButtons"> <input type="hidden" id="radio_lines" name="radio_lines" value="<?php echo $i; ?> "/> <?php echo osc_draw_image_submit_button('submit_reviews.gif', $osC_Language->get('submit_reviews')); ?> </div> </form> <?php } ?> </div> </div> </div> <?php if ($osC_Product->hasQuantityDiscount()) { ?> <div id="tabQuantityDiscount">
echo osc_draw_label(OSCOM::getDef('field_customer_email_address'), 'email_address') . osc_draw_input_field('email_address'); ?> </li> <li><?php echo osc_draw_label(OSCOM::getDef('field_customer_password'), 'password') . osc_draw_password_field('password'); ?> </li> </ol> <p><?php echo sprintf(OSCOM::getDef('login_returning_customer_password_forgotten'), OSCOM::getLink(null, null, 'PasswordForgotten', 'SSL')); ?> </p> <p align="right"><?php echo osc_draw_image_submit_button('button_login.gif', OSCOM::getDef('button_sign_in')); ?> </p> </div> </form> </div> <div class="moduleBox" style="width: 49%;"> <div class="outsideHeading"> <h6><?php echo OSCOM::getDef('login_new_customer_heading'); ?> </h6> </div>
<div class="content"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="30"><?php echo osc_draw_checkbox_field('newsletter_general', '1', $Qnewsletter->value('customers_newsletter')); ?> </td> <td><b><?php echo osc_draw_label(OSCOM::getDef('newsletter_general'), 'newsletter_general'); ?> </b></td> </tr> <tr> <td width="30"> </td> <td><?php echo OSCOM::getDef('newsletter_general_description'); ?> </td> </tr> </table> </div> </div> <div class="submitFormButtons" style="text-align: right;"> <?php echo osc_draw_image_submit_button('button_continue.gif', OSCOM::getDef('button_continue')); ?> </div> </form>
<tr class="<?php echo $rows / 2 == floor($rows / 2) ? 'productListing-even' : 'productListing-odd'; ?> "> <td colspan="4"><?php echo osc_draw_label($osC_Language->get('field_return_comments'), 'comments', null, true) . osc_draw_textarea_field('comments', null, 45); ?> </td> </tr> <?php } else { ?> <tr> <td colspan="4"><?php echo $osC_Language->get('no_products_available_for_return'); ?> </td> </tr> <?php } ?> </table> </div> <div class="submitFormButtons" style="float: right"> <?php echo osc_draw_image_submit_button('button_continue.gif', $osC_Language->get('button_continue')) . ' ' . osc_link_object('javascript:window.history.go(-1);', osc_draw_image_button('button_back.gif', $osC_Language->get('button_back'))); ?> </div> </form>
</div> <div class="submitFormButtons"> <span style="float: right;"><?php echo osc_link_object(osc_href_link(FILENAME_CHECKOUT, 'checkout', 'SSL'), osc_draw_image_button('button_checkout.gif', $osC_Language->get('button_checkout'))); ?> </span> <?php echo osc_draw_image_submit_button('button_update_cart.gif', $osC_Language->get('button_update_cart')); ?> <span style="padding-left: 120px"> <?php echo osc_draw_image_submit_button('button_continue_shopping.gif', $osC_Language->get('button_continue_shopping'), 'onclick="javascript:history.go(-1);return false;"'); ?> </span> </div> </form> <?php } else { ?> <p><?php echo $osC_Language->get('shopping_cart_empty'); ?> </p>
} else { echo '<p class="stockWarning" align="center">' . sprintf($osC_Language->get('products_out_of_stock_checkout_not_possible'), STOCK_MARK_PRODUCT_OUT_OF_STOCK) . '</p>'; } } ?> </div> <div class="submitFormButtons"> <span style="float: right;"><?php echo osc_link_object(osc_href_link(FILENAME_CHECKOUT, 'shipping', 'SSL'), osc_draw_image_button('button_checkout.gif', $osC_Language->get('button_checkout'))); ?> </span> <?php echo osc_draw_image_submit_button('button_update_cart.gif', $osC_Language->get('button_update_cart')); ?> </div> </form> <?php } else { ?> <p><?php echo $osC_Language->get('shopping_cart_empty'); ?> </p> <div class="submitFormButtons" style="text-align: right;">
foreach ($osC_ShoppingCart->getGiftCertificateCodes() as $gift_certificate) { echo '<p id="' . $gift_certificate . '">' . $gift_certificate . ' [' . $osC_Currencies->format($osC_ShoppingCart->getGiftCertificateRedeemAmount($gift_certificate)) . ']' . ' ' . osc_draw_image_submit_button('small_delete.gif', $osC_Language->get('button_delete'), 'class="btnDeleteGiftCertificate" style="vertical-align: middle"') . '</p>'; } } ?> <div> <br/> <?php echo '<b>' . $osC_Language->get('fields_gift_certificates_redeem_code') . '</b>'; ?> <?php echo osc_draw_input_field('gift_certificate_redeem_code', null, 'id="gift_certificate_code" dir="ltr"'); ?> <?php echo osc_draw_image_submit_button('button_redeem.gif', $osC_Language->get('button_gift_certificate_redeem'), 'id="btnRedeemGiftCertificate" style="vertical-align: middle"'); ?> </div> </div> </div> <?php } ?> <div class="moduleBox"> <h6><?php echo $osC_Language->get('add_comment_to_order_title'); ?> </h6> <div class="content">
?> </table> <?php } if (isset($confirmation['text'])) { ?> <p><?php echo $confirmation['text']; ?> </p> <?php } ?> </div> </div> <?php } } if ($osC_Payment->hasActive()) { echo $osC_Payment->process_button(); } echo '<div style="text-align:right;">' . osc_draw_image_submit_button('button_confirm_order.gif', $osC_Language->get('button_confirm_order'), 'id="btnConfirmOrder"') . '</form></div>'; ?> </div>
function initialize() { $this->_title_link = OSCOM::getLink(null, 'Search'); $this->_content = '<form name="search" action="' . OSCOM::getLink() . '" method="get">' . osc_draw_hidden_field('Search', null) . osc_draw_input_field('Q', null, 'style="width: 80%;" maxlength="30"') . ' ' . osc_draw_hidden_session_id_field() . osc_draw_image_submit_button('button_quick_find.gif', OSCOM::getDef('box_search_heading')) . '<br />' . sprintf(OSCOM::getDef('box_search_text'), OSCOM::getLink(null, 'Search')) . '</form>'; }
function initialize() { global $osC_Language; $this->_title_link = osc_href_link(FILENAME_SEARCH); $this->_content = '<form name="search" action="' . osc_href_link(FILENAME_SEARCH, null, 'NONSSL', false) . '" method="get">' . osc_draw_input_field('keywords', null, 'style="width: 80%;" maxlength="30"') . ' ' . osc_draw_hidden_session_id_field() . osc_draw_image_submit_button('button_quick_find.gif', $osC_Language->get('box_search_heading')) . '<br />' . sprintf($osC_Language->get('box_search_text'), osc_href_link(FILENAME_SEARCH)) . '</form>'; }
?> </h6> <div class="content"> <?php echo nl2br(osc_output_string_protected($_SESSION['comments'])) . osc_draw_hidden_field('comments', $_SESSION['comments']); ?> </div> </div> <?php } ?> <div class="submitFormButtons" style="text-align: right;"> <?php if ($OSCOM_ShoppingCart->hasBillingMethod() && $OSCOM_PaymentModule->hasGateway()) { $form_action_url = $OSCOM_PaymentModule->getGatewayURL(); } else { $form_action_url = OSCOM::getLink(null, null, 'Process', 'SSL'); } echo '<form name="checkout_confirmation" action="' . $form_action_url . '" method="post">'; if ($OSCOM_ShoppingCart->hasBillingMethod()) { echo $OSCOM_PaymentModule->getProcessButton(); } echo osc_draw_image_submit_button('button_confirm_order.gif', OSCOM::getDef('button_confirm_order')) . '</form>'; ?> </div>
if ($osC_Product->hasImage()) { echo 'margin-left: ' . ($osC_Image->getWidth('product_info') + 20) . 'px; '; } ?> min-height: <?php echo $osC_Image->getHeight('product_info'); ?> px;"> <form name="cart_quantity" action="<?php echo osc_href_link(FILENAME_PRODUCTS, $osC_Product->getKeyword() . '&action=cart_add'); ?> " method="post"> <div style="float: right;"> <?php echo osc_draw_image_submit_button('button_in_cart.gif', $osC_Language->get('button_add_to_cart')); ?> </div> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="productInfoKey">Price:</td> <td class="productInfoValue"><span id="productInfoPrice"><?php echo $osC_Product->getPriceFormated(true); ?> </span> (plus <?php echo osc_link_object(osc_href_link(FILENAME_INFO, 'shipping'), 'shipping'); ?> )</td> </tr>
echo Address::format($_GET['Delete'], '<br />'); ?> </div> <div style="float: right; padding: 0px 0px 10px 20px; text-align: center;"> <?php echo '<b>' . OSCOM::getDef('selected_address_title') . '</b><br />' . osc_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?> </div> <?php echo OSCOM::getDef('address_book_delete_address_description'); ?> <div style="clear: both;"></div> </div> </div> <div class="submitFormButtons"> <span style="float: right;"><?php echo osc_draw_image_submit_button('button_delete.gif', OSCOM::getDef('button_delete')); ?> </span> <?php echo osc_link_object(OSCOM::getLink(null, null, 'AddressBook', 'SSL'), osc_draw_image_button('button_back.gif', OSCOM::getDef('button_back'))); ?> </div> </form>
</p> <p><?php echo osc_draw_label($osC_Language->get('field_share_wishlist_customer_email'), 'wishlist_from_email', null, true) . ' ' . osc_draw_input_field('wishlist_from_email', $osC_Customer->isLoggedOn() ? $osC_Customer->getEmailAddress() : null); ?> </p> <p><?php echo osc_draw_label($osC_Language->get('field_share_wishlist_emails'), 'wishlist_emails', null, true) . ' ' . osc_draw_textarea_field('wishlist_emails', null, 40, 5); ?> </p> <p><?php echo osc_draw_label($osC_Language->get('field_share_wishlist_message'), 'wishlist_message', null, true) . ' ' . osc_draw_textarea_field('wishlist_message', null, 40, 5); ?> </p> </div> <div class="submitFormButtons" style="text-align: right;"> <?php echo osc_draw_image_submit_button('button_continue.gif'); ?> </div> </form> </div> <?php } ?> </div>
<div class="moduleBox"> <h6><?php echo OSCOM::getDef('search_criteria_title'); ?> </h6> <div class="content"> <?php echo osc_draw_input_field('Q', null, 'style="width: 99%;"'); ?> </div> </div> <div class="submitFormButtons"> <span style="float: right;"><?php echo osc_draw_image_submit_button('button_search.gif', OSCOM::getDef('button_search')); ?> </span> <?php echo osc_link_object('javascript:popupWindow(\'' . OSCOM::getLink(null, null, 'Help') . '\');', OSCOM::getDef('search_help_tips')); ?> </div> <div class="moduleBox"> <h6><?php echo OSCOM::getDef('advanced_search_heading'); ?> </h6> <div class="content">
if ($OSCOM_Product->hasImage()) { echo 'margin-left: ' . ($OSCOM_Image->getWidth('product_info') + 20) . 'px; '; } ?> min-height: <?php echo $OSCOM_Image->getHeight('product_info'); ?> px;"> <form name="cart_quantity" action="<?php echo OSCOM::getLink(null, 'Cart', 'Add&' . $OSCOM_Product->getKeyword()); ?> " method="post"> <div style="float: right;"> <?php echo osc_draw_image_submit_button('button_in_cart.gif', OSCOM::getDef('button_add_to_cart')); ?> </div> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="productInfoKey">Price:</td> <td class="productInfoValue"><span id="productInfoPrice"><?php echo $OSCOM_Product->getPriceFormated(true); ?> </span> (plus <?php echo osc_link_object(OSCOM::getLink(null, 'Info', 'Shipping'), 'shipping'); ?> )</td> </tr>
<div class="content"> <ol> <li><?php echo osc_draw_label($osC_Language->get('field_customer_password_current'), 'password_current', null, true) . osc_draw_password_field('password_current'); ?> </li> <li><?php echo osc_draw_label($osC_Language->get('field_customer_password_new'), 'password_new', null, true) . osc_draw_password_field('password_new'); ?> </li> <li><?php echo osc_draw_label($osC_Language->get('field_customer_password_confirmation'), 'password_confirmation', null, true) . osc_draw_password_field('password_confirmation'); ?> </li> </ol> </div> </div> <div class="submitFormButtons"> <span style="float: right;"><?php echo osc_draw_image_submit_button('button_continue.gif', $osC_Language->get('button_continue')); ?> </span> <?php echo osc_link_object(osc_href_link(FILENAME_ACCOUNT, null, 'SSL'), osc_draw_image_button('button_back.gif', $osC_Language->get('button_back'))); ?> </div> </form>
echo '<p class="stockWarning" align="center">' . sprintf(OSCOM::getDef('products_out_of_stock_checkout_not_possible'), STOCK_MARK_PRODUCT_OUT_OF_STOCK) . '</p>'; } } ?> </div> <div class="moduleBox"> <form name="checkout" action="<?php echo OSCOM::getLink(null, 'Checkout', null, 'SSL'); ?> " method="post"> <div class="content"> <div style="float: right;"> <?php echo osc_draw_image_submit_button('button_checkout.gif', OSCOM::getDef('button_checkout')); ?> </div> <?php if (!$OSCOM_Customer->isLoggedOn() && $OSCOM_Application->requireCustomerAccount()) { echo 'E-Mail Address: ' . osc_draw_input_field('email', $OSCOM_Customer->getEMailAddress()) . ' or ' . osc_link_object(OSCOM::getLink(null, 'Account', 'LogIn', 'SSL'), 'Sign-In') . ' to process this order'; } ?> </div> </form> </div>
?> </td> <td><?php echo osc_draw_textarea_field('message', null, 15, 2); ?> </td> </tr> <?php } ?> <tr> <td colspan="2" align="center" valign="top" style="padding-top: 15px"> <?php if (!$osC_Product->hasVariants()) { echo '<b>' . $osC_Language->get('field_short_quantity') . '</b> ' . osc_draw_input_field('quantity', $osC_Product->getMOQ(), 'size="3"') . ' ' . osc_draw_image_submit_button('button_in_cart.gif', $osC_Language->get('button_add_to_cart'), 'style="vertical-align:middle;" id="addToShoppingCart"'); } ?> </td> </tr> <tr> <td colspan="2" align="center"> <?php echo osc_link_object(osc_href_link(basename($_SERVER['SCRIPT_FILENAME']), $osC_Product->getID() . '&' . '&action=compare_products_add'), $osC_Language->get('add_to_compare')) . ' <span>|</span> ' . osc_link_object(osc_href_link(basename($_SERVER['SCRIPT_FILENAME']), $osC_Product->getID() . '&action=wishlist_add'), $osC_Language->get('add_to_wishlist')); ?> </td> </tr> </table> </form> <div style="clear: both;"></div>
<?php echo '<li>' . osc_link_object(osc_href_link(FILENAME_DEFAULT, 'index'), $osC_Language->get('home')) . '</li>' . '<li>' . osc_link_object(osc_href_link(FILENAME_PRODUCTS, 'specials'), $osC_Language->get('specials')) . '</li>' . '<li>' . osc_link_object(osc_href_link(FILENAME_PRODUCTS, 'new'), $osC_Language->get('new_products')) . '</li>'; if ($osC_Customer->isLoggedOn()) { echo '<li>' . osc_link_object(osc_href_link(FILENAME_ACCOUNT, 'logoff', 'SSL'), $osC_Language->get('sign_out')) . '</li>'; } echo '<li>' . osc_link_object(osc_href_link(FILENAME_ACCOUNT, null, 'SSL'), $osC_Language->get('my_account')) . '</li>' . '<li>' . osc_link_object(osc_href_link(FILENAME_ACCOUNT, 'wishlist', 'SSL'), $osC_Language->get('my_wishlist')) . '</li>' . '<li>' . osc_link_object(osc_href_link(FILENAME_CHECKOUT, null, 'SSL'), $osC_Language->get('cart_contents')) . '</li>' . '<li>' . osc_link_object(osc_href_link(FILENAME_CHECKOUT, 'checkout', 'SSL'), $osC_Language->get('checkout')) . '</li>' . '<li class="last">' . osc_link_object(osc_href_link(FILENAME_INFO, 'contact'), $osC_Language->get('contact_us')) . '</li>'; ?> </ul> <form name="search" action="<?php echo osc_href_link(FILENAME_SEARCH, null, 'NONSSL', false); ?> " method="get"> <?php echo osc_draw_input_field('keywords', null, 'maxlength="20"') . ' ' . osc_draw_hidden_session_id_field() . osc_draw_image_submit_button('button_quick_find.gif', $osC_Language->get('box_search_heading')); ?> </form> </div> </div> </div> <?php if ($osC_Services->isStarted('breadcrumb')) { ?> <div id="breadcrumbPath"> <?php echo $breadcrumb->trail(' » '); ?> </div>
echo osc_draw_label($osC_Language->get('field_customer_email_address'), 'email_address', null, true) . osc_draw_input_field('email_address'); ?> </li> <li><?php echo osc_draw_label($osC_Language->get('field_customer_password'), 'password', null, true) . osc_draw_password_field('password'); ?> </li> </ol> <p><?php echo sprintf($osC_Language->get('login_returning_customer_password_forgotten'), osc_href_link(FILENAME_ACCOUNT, 'password_forgotten', 'SSL')); ?> </p> <p align="right"><?php echo osc_draw_image_submit_button('button_login.gif', $osC_Language->get('button_sign_in')); ?> </p> </div> </form> </div> <div style="width: 49%;"> <div class="outsideHeading"> <b><?php echo $osC_Language->get('login_new_customer_heading'); ?> </b> </div>
<div class="moduleBox"> <h6><?php echo $osC_Language->get('search_criteria_title'); ?> </h6> <div class="content"> <?php echo osc_draw_input_field('keywords', null, 'style="width: 99%;"'); ?> </div> </div> <div class="submitFormButtons"> <span style="float: right;"><?php echo osc_draw_image_submit_button('button_search.gif', $osC_Language->get('button_search')); ?> </span> <?php echo osc_link_object('javascript:popupWindow(\'' . osc_href_link(FILENAME_SEARCH, 'help') . '\');', $osC_Language->get('search_help_tips')); ?> </div> <div class="moduleBox"> <h6><?php echo $osC_Language->get('advanced_search_heading'); ?> </h6> <div class="content">