<?php
include("access.php");
include("include/admin.class.php");
include("include/conf.class.php");
$userinfo=$cartCore->get_user_info($CARTUSERNAME);
$cartCore->get_headder_customer();
$cartCore->view_welcome_customer($userinfo['FULL_NAME'],$userinfo['IMAGE']);
$cartCore->view_customer_sidebar($userinfo['USER_ID'],$TOKEN_ID);
$cartCore->view_credit();

?>
<link rel="stylesheet" href="css/font_awesome_animated.css">
 <!-- Switchery -->
    <link href="../vendors/switchery/dist/switchery.min.css" rel="stylesheet">
    <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script>
	$(document).ready(function () {
    $('#checkdisplay').change(function () {
        if (this.checked) $('#todisplay').fadeIn('slow');
        else $('#todisplay').fadeOut('slow');

    });
});
	</script>
        <!-- top navigation -->
        <div class="top_nav">
          <div class="nav_menu">
            <nav>
              <div class="nav toggle">
                <a id="menu_toggle"><i class="fa fa-bars"></i></a>
              </div>

              <ul class="nav navbar-nav navbar-right">
              
              
              <?=$cartCore->view_userprofile($userinfo['USER_ID'],$userinfo['FULL_NAME'],$userinfo['IMAGE'],$TOKEN_ID)?>

                <li role="presentation" class="dropdown">
                  <a href="javascript:;" class="dropdown-toggle info-number" data-toggle="dropdown" aria-expanded="false">
                    <i class="fa fa-envelope-o"></i>
                    <span class="badge bg-green"><?=$cartAdminMain->getMessageCount($userinfo['USERNAME'])?></span>
                  </a>
                  <ul id="menu1" class="dropdown-menu list-unstyled msg_list" role="menu">
                  <?=$cartAdminMain->getUserMessage($userinfo['USERNAME'])?>
                    <li>
                      <div class="text-center">
                        <a href="message.php?token_id=<?=$TOKEN_ID?>&pid=<?=$cartCore->md5_base64_encode($userinfo['USERNAME'])?>">
                          <strong>See All Alerts</strong>
                          <i class="fa fa-angle-right"></i>
                        </a>
                      </div>
                    </li>
                  </ul>
                </li>
              </ul>
            </nav>
          </div>
        </div>
        <!-- /top navigation -->
        
        <?php 
		if(isset($_SESSION['CHECKOUT']) && $_SESSION['CHECKOUT']=="CHECKOUT")
		{ 
		?>

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
              <div class="title_left">
              <a href="../product/index.php?item_id=<?=$_SESSION['ONE_BACK_ID']?>"  class="btn btn-primary btn-lg"><i class="fa fa-shopping-cart faa-horizontal animated"></i>&nbsp;&nbsp; Continue Shopping</a>
              </div>

             
            </div>
            <div class="clearfix"></div>

            <div class="row">
			<form class="form-horizontal form-label-left" novalidate>
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>CheckOut <small></small></h2>
                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                      </li>
                      <li><a class="close-link"><i class="fa fa-close"></i></a>
                      </li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">


                    <!-- Smart Wizard -->
                    <div id="wizard" class="form_wizard wizard_horizontal">
                      <ul class="wizard_steps">
                        <li>
                          <a href="#step-1">
                            <span class="step_no">1</span>
                            <span class="step_descr">
                                              Step 1<br />
                                              <small>Fill Your Billing Details</small>
                                          </span>
                          </a>
                        </li>
                        <li>
                          <a href="#step-2">
                            <span class="step_no">2</span>
                            <span class="step_descr">
                                              Step 2<br />
                                              <small>Step 2 description</small>
                                          </span>
                          </a>
                        </li>
                        <li>
                          <a href="#step-3">
                            <span class="step_no">3</span>
                            <span class="step_descr">
                                              Step 3<br />
                                              <small>Step 3 description</small>
                                          </span>
                          </a>
                        </li>
                        <li>
                          <a href="#step-4">
                            <span class="step_no">4</span>
                            <span class="step_descr">
                                              Step 4<br />
                                              <small>Step 4 description</small>
                                          </span>
                          </a>
                        </li>
                      </ul>
                      <div id="step-1">
                       		<div class="row">
             					<div class="col-md-6 col-xs-12">
                					<div class="x_panel">
                  						<div class="x_title">
                    						<h2>Your Order <small></small></h2>
                   
                    						<div class="clearfix"></div>
                  						</div>  
                                        
              <section class="content invoice">
                      <!-- title row -->
                      <div class="row">
                        <div class="col-xs-12 invoice-header">
                         
                        </div>
                        <!-- /.col -->
                      </div>
                      <!-- info row -->
                      <div class="row invoice-info">
                        <div class="col-sm-4 invoice-col">
                         
                        </div> 
                      </div>
                      <!-- /.row -->

                      <!-- Table row -->
                      <div class="row">
                        <div class="col-xs-12 table">
                          <table class="table table-striped">
                            <thead>
                              <tr>
                              <th>Product</th>
                              <th>Product Price</th>
                                <th>Qty</th>
                                <th>Subtotal</th>
                              </tr>
                            </thead>
                             <tbody>
                             <?=$cartAdminMain->get_customer_order_step01($_SESSION['ITEM_ID'],$_SESSION['QUANTITY_VALUE'],$_SESSION['CURRENCY']);?>
                            </tbody>
                          </table>
                          <div class="row">
                        <!-- accepted payments column -->
                        <div class="col-xs-6">
                          <p class="lead">Payment Methods:</p>
                          <img src="images/visa.png" alt="Visa">
                          <img src="images/mastercard.png" alt="Mastercard">
                          <img src="images/american-express.png" alt="American Express">
                          <img src="images/paypal.png" alt="Paypal">
                          <p class="text-muted well well-sm no-shadow" style="margin-top: 10px;">
                            Etsy doostang zoodles disqus groupon greplin oooj voxy zoodles, weebly ning heekya handango imeem plugg dopplr jibjab, movity jajah plickers sifteo edmodo ifttt zimbra.
                          </p>
                        </div>
                        <!-- /.col -->
                        <div class="col-xs-6">
                          <div class="table-responsive">
                            <table class="table">
                              <tbody>
                                <tr>
                                  <th style="width:50%">Total:</th>
                                  <td><?=$_SESSION['CURRENCY'].' '.$cartAdminMain->get_customer_order_step01_total_calculation($_SESSION['ITEM_ID'],$_SESSION['QUANTITY_VALUE'])?></td>
                                </tr>
                              </tbody>
                            </table>
                          </div>
                        </div>
                        <!-- /.col -->
                      </div>
                      <!-- /.row -->
                          
                        </div>
                        <!-- /.col -->
                      </div>
                      <!-- /.row -->

                     

                     
                    </section>
                					</div>
                                </div>
                                
                                <div class="col-md-6 col-xs-12">
                					<div class="x_panel">
                  						<div class="x_title">
                    						<h2>Billing Details <small></small></h2>
                    						<div class="clearfix"></div> 
                                        </div>
                                      <div class="x_content">

                    

                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Full Name <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input id="name" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="NAME" placeholder="both name(s) e.g Jon Doe" required type="text">
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="email">Email <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="email" id="email" name="EMAIL" required class="form-control col-md-7 col-xs-12">
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="telephone">Telephone <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="tel" id="telephone" name="PHONE" required data-validate-length-range="8,20" class="form-control col-md-7 col-xs-12">
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="textarea">Address <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <textarea id="textarea" required name="ADDRESS" class="form-control col-md-7 col-xs-12"></textarea>
                        </div>
                      </div>
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Country <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <select class="form-control col-md-7 col-xs-12" name="COMPANY_COUNTRY">
                          <?=$cartAdminMain->get_country_by_selected_option('1');?>
                          </select>
                        </div>
                      </div>
                     <hr />
                      <div class="row">
                      	<div class="x_title">
                    						<h2>Shipping Details <small></small></h2>
                   
                    						<div class="clearfix"></div>
                        </div>
                                           <label>
                              <input type="checkbox" class="js-switch" id="checkdisplay"/> Ship to a different address?
                            </label>
                    <div class="x_content" id="todisplay" style="display:none;">

                    		

                      
					</div>
                    </div>
                      <div id="step-2">
                        <h2 class="StepTitle">Step 2 Content</h2> 
                        <div class="row">
             					<div class="col-md-6 col-xs-12">
                					<div class="x_panel">
                  						<div class="x_title">
                    						<h2>Your Order <small></small></h2>
                   
                    						<div class="clearfix"></div>
                  						</div>  
                                    </div>
                                 </div>
                          </div>
                      </div>
                      <div id="step-3">
                        <h2 class="StepTitle">Step 3 Content</h2>
                        
                      </div>
                      <div id="step-4">
                        <h2 class="StepTitle">Step 4 Content</h2>  
                      </div>
                      </div>
					</form>
                    </div>
                    
                    <!-- End SmartWizard Content -->
					<?php } ?>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->

        <!-- footer content -->
        <footer>
          <div class="pull-right">
            Gentelella - Bootstrap Admin Template by <a href="https://colorlib.com">Colorlib</a>
          </div>
          <div class="clearfix"></div>
        </footer>
        <!-- /footer content -->
      </div>
    </div>

    <!-- jQuery -->
    <script src="../vendors/jquery/dist/jquery.min.js"></script>
    
    
    <!-- Bootstrap -->
    <script src="../vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="../vendors/fastclick/lib/fastclick.js"></script>
    <!-- Switchery -->
    <script src="../vendors/switchery/dist/switchery.min.js"></script>
    <!-- NProgress -->
    <script src="../vendors/nprogress/nprogress.js"></script>
    <!-- jQuery Smart Wizard -->
    <script src="../vendors/jQuery-Smart-Wizard/js/jquery.smartWizard.js"></script>
     <!-- validator -->
    <script src="../vendors/validator/validator.js"></script>
    <!-- Custom Theme Scripts -->
    <script src="../build/js/custom.min.js"></script>
    

	
  </body>
</html>