<?php
/*
  $Id: cn_checkout.php $
  TomatoCart Open Source Shopping Cart Solutions
  http://www.tomatocart.com

  Copyright (c) 2010 Wuxi Elootec Technology Co., Ltd

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
  require_once('includes/classes/address_book.php');

  class osC_Checkout_Cn_Checkout extends osC_Template {

/* Private variables */

    var $_module = 'cn_checkout',
        $_group = 'checkout',
        $_page_title,
        $_page_contents = 'cn_checkout.php',
        $_page_image = 'table_background_delivery.gif';

/* Class constructor */

    function osC_Checkout_Cn_Checkout() {
      global $osC_Language, $osC_ShoppingCart;
      
      if ($osC_ShoppingCart->hasContents() === false) {
        osc_redirect(osc_href_link(FILENAME_CHECKOUT, null, 'SSL'));
      }                
      
      $this->addJavascriptFilename('includes/javascript/cn_checkout.js');
    }
  }
?>
