Exemplo n.º 1
0
		document.checkout_payment.payment.checked=true;
	}
}

function rowOverEffect(object) {
	if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
	if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}
//--></script>

<?php

echo $payment_modules->javascript_validation();
?>

<br>
<center>
<?php

echo $PAYMENT_METHOD;
?>
<br>
<?php

$form_action_url = tep_href_link("checkout_confirmation.php", '', 'SSL');
echo tep_draw_form('checkout_amount', $form_action_url, 'post', 'onsubmit="checkamount()"');

?>
Exemplo n.º 2
0
require 'includes/classes/class_payment.php';
$oPaymentModules = new payment();
$selection = $oPaymentModules->selection();
$credit_selection = $oOrderTotalModules->credit_selection();
// links breadcrumb
$oBreadcrumb->add($aLang['navbar_title_1'], oos_href_link($aPages['checkout_shipping'], '', 'SSL'));
$oBreadcrumb->add($aLang['navbar_title_2'], oos_href_link($aPages['checkout_payment'], '', 'SSL'));
if (ENABLE_SSL == '1') {
    $condition_link = OOS_HTTPS_SERVER;
} else {
    $condition_link = OOS_HTTP_SERVER;
}
$condition_link .= OOS_SHOP . OOS_MEDIA . $sLanguage . '/' . $aFilename['conditions_download'];
ob_start();
require 'js/checkout_payment.js.php';
print $oPaymentModules->javascript_validation();
$javascript = ob_get_contents();
ob_end_clean();
$aOption['template_main'] = $sTheme . '/modules/checkout_payment.html';
$aOption['page_heading'] = $sTheme . '/heading/page_heading.html';
$aOption['breadcrumb'] = 'default/system/breadcrumb.html';
$nPageType = OOS_PAGE_TYPE_CHECKOUT;
require 'includes/oos_system.php';
if (!isset($option)) {
    require 'includes/info_message.php';
    require 'includes/oos_blocks.php';
}
// assign Smarty variables;
$oSmarty->assign(array('oos_breadcrumb' => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR), 'oos_heading_title' => $aLang['heading_title'], 'oos_heading_image' => 'payment.gif'));
if (isset($_GET['payment_error']) && is_object(${$_GET['payment_error']}) && ($error = ${$_GET['payment_error']}->get_error())) {
    $oSmarty->assign(array('oos_payment_error' => '1', 'error' => $error));
Exemplo n.º 3
0
';
    }
    $script .= '
//--></script>

<script language="javascript" type="text/javascript" src="' . $tpl_path . 'includes/general.js"></script>';
    //}
    if ($load_all_scripts || NOT_IS_AJAX_PROCESSING) {
        $script_transient = EMPTY_STRING;
        if ($load_all_scripts || strstr($PHP_SELF, FILENAME_CHECKOUT_PAYMENT)) {
            if ($load_all_scripts) {
                // load all enabled payment modules
                require_once DIR_WS_CLASSES . 'payment.php';
                $payment_modules = new payment();
            }
            $script_transient .= $payment_modules->javascript_validation();
            if ($load_all_scripts) {
                unset($payment_modules);
            }
        }
        if ($load_all_scripts || strstr($PHP_SELF, FILENAME_CREATE_ACCOUNT)) {
            $get_form_check = true;
        } elseif (strstr($PHP_SELF, FILENAME_CREATE_GUEST_ACCOUNT)) {
            $get_form_check = true;
        } elseif (strstr($PHP_SELF, FILENAME_ACCOUNT_PASSWORD)) {
            $get_form_check = true;
        } elseif (strstr($PHP_SELF, FILENAME_ACCOUNT_EDIT)) {
            $get_form_check = true;
        } elseif (strstr($PHP_SELF, FILENAME_ADDRESS_BOOK_PROCES)) {
            if (!isset($_GET["delete"])) {
                $get_form_check = true;
Exemplo n.º 4
0
} else {
    $coversAll = false;
    ?>
function clearRadeos(){
document.checkout_payment.cot_gv.checked=!document.checkout_payment.cot_gv.checked;
}<?php 
}
// #################### End Added CGV JONYO ######################
?>

//--></script>

<?php 
// #################### Begin Added CGV JONYO ######################
// echo $payment_modules->javascript_validation();
echo $payment_modules->javascript_validation($coversAll);
// #################### End Added CGV JONYO ######################
?>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php 
require DIR_WS_INCLUDES . 'header.php';
?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
  <tr>
    <td width="<?php 
echo BOX_WIDTH;
Exemplo n.º 5
0
$order_total_modules->clear_posts();
// ADDED FOR CREDIT CLASS SYSTEM by Rigadin in v5.13
// #################### End Added CGV ######################
if (!tep_session_is_registered('comments')) {
    tep_session_register('comments');
}
$total_weight = $cart->show_weight();
$total_count = $cart->count_contents();
// #################### Added CGV ######################
$total_count = $cart->count_contents_virtual();
//ICW ADDED FOR CREDIT CLASS SYSTEM
// #################### End Added CGV ######################
// load all enabled payment modules
require DIR_WS_CLASSES . 'payment.php';
$payment_modules = new payment();
$xoopsTpl->assign("xoops_module_header", '<link rel="stylesheet" type="text/css" media="screen" href="' . XOOPS_URL . '/modules/osC/templates/stylesheet.css" />' . $payment_modules->javascript_validation());
require DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PAYMENT;
$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
include "includes/header.php";
$xoopsTpl->assign("payment_form", tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', 'onsubmit="return check_form();"'));
$xoopsTpl->assign("py_img", tep_image(DIR_WS_IMAGES . 'table_background_payment.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT));
if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) {
    $xoopsTpl->assign("error", 1);
    $xoopsTpl->assign("err_title", tep_output_string_protected($error['title']));
    $xoopsTpl->assign("err_txt", tep_output_string_protected($error['error']));
}
$xoopsTpl->assign("chk_link", tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));
$xoopsTpl->assign("chk_img", tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS));
$xoopsTpl->assign("arrow_se", tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'));
$xoopsTpl->assign("cust_lbl", tep_address_label($customer_id, $billto, true, ' ', '<br>'));
Exemplo n.º 6
0
             }
         }
     }
 }
 require DIR_WS_CLASSES . 'order.php';
 $order = new order();
 $total_weight = $_SESSION['cart']->show_weight();
 $total_count = $_SESSION['cart']->count_contents();
 // load all enabled payment modules
 require DIR_WS_CLASSES . 'payment.php';
 $payment_modules = new payment();
 require DIR_FS_SMARTY . 'catalog/languages/' . $_SESSION['language'] . '/' . FILENAME_CHECKOUT_PAYMENT;
 $site_trail->add(NAVBAR_TITLE_1, xos_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
 $site_trail->add(NAVBAR_TITLE_2, xos_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
 $add_header = '<script type="text/javascript">' . "\n" . '/* <![CDATA[ */' . "\n" . 'var selected;' . "\n\n" . 'function selectRowEffect(object, buttonSelect) {' . "\n" . '  if (!selected) {' . "\n" . '    if (document.getElementById) {' . "\n" . '      selected = document.getElementById("default-selected");' . "\n" . '    } else {' . "\n" . '      selected = document.all["default-selected"];' . "\n" . '    }' . "\n" . '  }' . "\n\n" . '  if (selected) selected.className = "module-row";' . "\n" . '  object.className = "module-row-selected";' . "\n" . '  selected = object;' . "\n\n" . '// one button is not an array' . "\n" . '  if (document.checkout_payment.payment[0]) {' . "\n" . '    document.checkout_payment.payment[buttonSelect].checked=true;' . "\n" . '  } else {' . "\n" . '    document.checkout_payment.payment.checked=true;' . "\n" . '  }' . "\n" . '}' . "\n\n" . 'function rowOverEffect(object) {' . "\n" . '  if (object.className == "module-row") object.className = "module-row-over";' . "\n" . '}' . "\n\n" . 'function rowOutEffect(object) {' . "\n" . '  if (object.className == "module-row-over") object.className = "module-row";' . "\n" . '}' . "\n" . '/* ]]> */' . "\n" . '</script> ' . "\n";
 $add_header .= $payment_modules->javascript_validation();
 require DIR_WS_INCLUDES . 'html_header.php';
 require DIR_WS_INCLUDES . 'boxes.php';
 require DIR_WS_INCLUDES . 'header.php';
 require DIR_WS_INCLUDES . 'footer.php';
 $selection = $payment_modules->selection();
 $radio_buttons = 0;
 $payment_modules_array = array();
 for ($i = 0, $n = sizeof($selection); $i < $n; $i++) {
     $modules = $selection[$i]['module'];
     $selection[$i]['id'] == $_SESSION['payment'] || $n == 1 ? $actual_payment_method = true : ($actual_payment_method = false);
     if (sizeof($selection) > 1) {
         $radio_field = xos_draw_radio_field('payment', $selection[$i]['id'], $selection[$i]['id'] == $_SESSION['payment'], 'id="payment_' . $radio_buttons . '"');
     } else {
         $radio_field = xos_draw_hidden_field('payment', $selection[$i]['id'], 'id="payment_' . $radio_buttons . '"');
     }