<?  global $vis_language; ?>
  <div class="row">
        <div class="col-md-12">
          <section class="container m-t-md">
                <div class="panel-heading b-b"><h4 class="panel-title1"><span class="vh vh-product vh-warning"></span>&nbsp;<? echo $vis_language['TXTSELECTEDPRODUCT']; ?></h4></div>
                <div class="panel-body no-padder">
                  <div class="form-horizontal" >
                    <div class="col-md-12">
                      <div class="wrapper">
                          <div class="form-group">
                            <label class="col-sm-2 control-label"><?= $vis_language['TXTTITLE']; ?>: </label>
                              <label class="control-label"><?= $product['title']; ?> </label>                            
                          </div>
                         <div class="form-group">
                            <label class="col-sm-2 control-label"><?= $vis_language['TXTDESCRIPTION']; ?>: </label>                        
                              <label class="control-label"><?= $product['description']; ?> </label>                                                    
                          </div>
                          <div class="form-group">
                            <label class="col-sm-2 control-label"><?= $vis_language['TXTVALIDITY']; ?>: </label>                          
                                <? if($product['validity']==0) $validityname='TXTVALIDITYONETIME'; 
                                    elseif ($product['validity']==1) $validityname='TXTVALIDITYMONTHLY'; 
                                    elseif ($product['validity']==2) $validityname='TXTVALIDITYQUARTERLY'; 
                                    elseif ($product['validity']==3) $validityname='TXTVALIDITYSEMIANNUALLY'; 
                                    else $validityname='TXTVALIDITYANNUALLY'; 
                                 ?>
                              <label class="control-label"><?= $vis_language[$validityname]; ?> </label>
                         </div>
                          <div class="form-group">
                            <label class="col-sm-2 control-label"><?= $vis_language['TXTAMOUNT']; ?>: </label>                         
                              <label class="control-label"><?= $product['amount'].' ('.VIS_DOMAIN_CURRENCY.')'; ?> </label>                                                    
                          </div>
                          <div class="line line-dashed b-b line-lg pull-in"></div>
                      </div> <!-- /.wrapper -->
                    </div> <!-- /.col-md-12 -->
                    <div class="col-lg-offset-2 col-lg-8 m-b-lg">
						<!--<a href="?/billing/order-product/<?= str_replace(' ','-',strtolower($product['title'])).'/'.$product['product_id']; ?>" class="btn btn-sm btn-primary"><?= $vis_language['TXTCHECKOUT']; ?></a>-->
                        <button id="btn_submit_ticket" type="button" class="btn btn-sm btn-primary" onclick="checkout();"><? echo $vis_language['TXTCHECKOUT']; ?></button>
                    </div>
                  </div>
                </div>
            </section> <!-- / .panel -->
		</div>
      </div><!-- /.row -->
</div>  <!-- / .container -->
<script>
var curr_stamp=0;
function checkout(){
    if(curr_stamp==0 || (curr_stamp < (Date.now()-10000))){
        curr_stamp = Date.now();
        window.location = "index.php?/billing/order-product/<?= str_replace(' ','-',strtolower($product['title'])).'/'.$product['product_id']; ?>";
    }
}
</script>
