<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <link rel="stylesheet" href="<?php echo base_url();?>styles/css/table.css">
    <?php
      $this->load->view('user/common_style');
      $this->load->view('user/header');
    ?> 
<style type="text/css">
.dataTables_filter > label
{
  display: block;
  color: rgb(239, 239, 239);
  background: rgb(239, 239, 239);
}

.dataTables_filter label > input[type=search]::after {
    font-family: 'FontAwesome';
    /*color:red;*/
    position: relative;
    left: -5px;
    content: "\f007";
}

</style>      
</head>

  <body >

      <?php
        
        $this->load->view('user/login_header');
        $currency_info = defaultcurrency();
    ?>

     <div class="col-lg-9 col-md-9 col-sm-12 col-xs-12">
          <h4 class="other-title theme-color"> Payment Confirmation</h4> 

          <div style="clear:both;"><br></div>
          <div class="col-lg-12">
            <div class="img-bg4 clearfix pt-20 mb-20">
            <?php 

            

              if($form_payment['pay_mode']=='6')
              {
            ?>
                <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_self" style="display:block;" >
                   <div class="col-lg-12 col-lg-offset-2">
                      <div class="form_block">
                        <label class="col-lg-4" >Payment Amount</label>
                        <div class="col-lg-6">
                            <label><?php echo $this->session->userdata('amt');?> <?php echo $form_payment['symbol'];?></label>
                        </div>
                      </div>
                      <div style="clear:both;"><br></div>

                          <div class="form_block">
                          <label class="col-lg-3">Payment Mode</label>
                            <div class="col-lg-9">
                             
                               <label>Credit Card/Debit Card</label>
                            </div>
                            </div>
                  </div>
                  <div style="clear:both;"><Br></div>
                    <div class="col-sm-9">
                      <div class=" text-center">
                        <input type="hidden" name="cmd" value="_xclick" />
                          <input type="hidden" name="business" value="<?php echo $form_payment['email'];?>" />
                          <input type="hidden" name="item_name" value="Deposit">
                          <input type="hidden" name="currency_code" value="<?php echo $form_payment['symbol'];?>" />
                          <input type="hidden" name="amount" value="<?php echo $this->session->userdata('amt');?>">
                          <input type="hidden" name="cancel_return" value="<?php echo $form_payment['cancel_url'];?>"/>
                          <input type="hidden" name="return" value="<?php echo $form_payment['success_url'];?>"/>
                          <input type="hidden" name="notify_url" value="<?php echo $form_payment['ipn_url'];?>"/>
                          <input type="hidden" name="custom"  value="<?php echo $this->session->userdata('depid');?>" id="custom">
                          <input type="hidden" name="charset" value="UTF%252d8"/>
                          <input type="hidden" name="depositid"  value="<?php echo $this->session->userdata('depid');?>"/>
                          <div class="contact_page_btn" align="center">
                              <button type="submit" class="btn btn-default">Submit Now</button>
                          </div>
                     </div>
                    </div>
                  </form>
                  <?php 
                }
                ?>


                <?php 
              if($form_payment['pay_mode']=='7')
              {
            ?>
                 <form method="post" action="https://www.coinpayments.net/index.php" role="form" id="coform">
                   <div class="col-lg-10 col-lg-offset-2">
                      <div class="form_block">
                        <label class="col-lg-4" >Payment Amount</label>
                        <div class="col-lg-6">
                            <label><?php echo $this->session->userdata('amt');?> <?php echo $form_payment['symbol'];?></label>
                        </div>
                      </div>
                      <div style="clear:both;"><br></div>

                          <div class="form_block">
                          <label class="col-lg-3">Payment Mode</label>
                            <div class="col-lg-9">
                             
                               <label>Coinpayment</label>
                            </div>
                            </div>
                  </div>
                  <div style="clear:both;"><Br></div>
                    <div class="col-sm-9">
                      <div class=" text-center">
                          <input type="hidden" value="_pay" name="cmd">
                          <input type="hidden" value="1" name="reset">
                          <input type="hidden" name="merchant" value="<?php echo $form_payment['merchant_id'];?>">
                          <input type="hidden" name="currency" value="<?php echo $form_payment['symbol'];?>">
                          <input type="hidden" name="amountf" value="<?php echo $this->session->userdata('amt');?>">
                          <input type="hidden" name="item_name" value="Deposit">
                          <input type="hidden" name="item_number" value="<?php echo $this->session->userdata('depid');?>">
                          <input type="hidden" name="on1" value="<?php echo $this->session->userdata('uusersid');?>">
                          <input type="hidden" name="allow_currencies" value="<?php echo $form_payment['symbol'];?>">
                          <input type="hidden" name="want_shipping" value="0">
                          <input type="hidden" name="cancel_return" value="<?php echo $form_payment['cancel_url'];?>"/>
                          <input type="hidden" name="return" value="<?php echo $form_payment['success_url'];?>"/>
                          <input type="hidden" name="notify_url" value="<?php echo $form_payment['ipn_url'];?>"/>
                          <input type="hidden" name="custom"  value="<?php echo $this->session->userdata('depid');?>" id="custom">
                          <div class="contact_page_btn" align="center">
                              <button type="submit" class="btn btn-default">Submit Now</button>
                          </div>
                     </div>
                    </div>
                  </form>
                  <?php 
                }
                ?>


                <?php 
              if($form_payment['pay_mode']=='8')
              {
            ?>
                  <form action="https://perfectmoney.is/api/step1.asp" method="POST">
                   <div class="col-lg-12 col-lg-offset-2">
                      <div class="form_block">
                        <label class="col-lg-4" >Payment Amount</label>
                        <div class="col-lg-6">
                            <label><?php echo $this->session->userdata('amt');?> <?php echo $form_payment['symbol'];?></label>
                        </div>
                      </div>
                      <div style="clear:both;"><br></div>

                          <div class="form_block">
                          <label class="col-lg-3">Payment Mode</label>
                            <div class="col-lg-9">
                             
                               <label>Perfect Money</label>
                            </div>
                            </div>
                  </div>
                  <div style="clear:both;"><Br></div>
                    <div class="col-sm-12">
                      <div class=" text-center">
                        
                         <input type="hidden" name="PAYEE_ACCOUNT" value="<?php echo $form_payment['account_number']; ?>" >
                         <input type="hidden" name="PAYEE_NAME" value="<?php echo $form_payment['account_number']; ?>">
                         <input type="hidden" name="PAYMENT_ID" value="<?php echo $this->session->userdata('depid');?>">
                         <input type="hidden" name="PAYMENT_AMOUNT" value="<?php echo $this->session->userdata('amt');?>">
                         <input type="hidden" name="PAYMENT_UNITS" value="<?php echo $form_payment['symbol'];?>">
                         <input type="hidden" name="cancel_return" value="<?php echo $form_payment['cancel_url'];?>"/>
                         <input type="hidden" name="return" value="<?php echo $form_payment['success_url'];?>"/>
                         <input type="hidden" name="notify_url" value="<?php echo $form_payment['ipn_url'];?>"/>
                         <div class="contact_page_btn" align="center">
                              <button type="submit" class="btn btn-default">Submit Now</button>
                          </div>
                     </div>
                    </div>
                  </form>
                  <?php 
                }
                ?>
                  <div style="clear:both;height:50px;"><Br></div>
                </div>
                                     
           
           </div>
    </div>
    
    </div>
    
  </div>
</div>
</section>
</Br>
</div>

<script src="<?php echo base_url();?>styles/js/jquery-1.12.2.min.js"></script>
<script type="text/javascript">
 $(document).ready(function($) {   


                  'use strict';

     
      document.body.addEventListener('click', copy, true);


      function copy(e) {

        var
          t = e.target,
          c = t.dataset.copytarget,
          inp = (c ? document.querySelector(c) : null);

        if (inp && inp.select) {

          $("#cpy").html('Copied');
          $("#cpy").css('background','green');
          $("#cpy").css('color','white');

          inp.select();

          try {
            document.execCommand('copy');
            inp.blur();
          }
          catch (err) {
             swal({
                title: "<?php echo $this->lang->line('referral_copy_lbl'); ?>",
                confirmButtonColor: "#f5ab35"
            });
          }

        }

      }


    $('.main-table table').dataTable({
          // "paginate": false,
          // "filter": false,
          "Info": false
    });

  });


 function check_payment()
 {

  var min_amt=document.getElementById('amount').value;
  if(min_amt=="")
  {
    document.getElementById('amount_err').innerHTML=" * Pls Enter Amount";
    
  }
  if(min_amt!='')
  {
    var mq =/^[0-9.]+$/;
    if(!mq.test(min_amt))
    {
      document.getElementById('amount_err').innerHTML=" * Invalid amount format";
    }
    else
    {
      document.getElementById('pay_form').submit();
    }

  }



 }

 </script>   


<?php
  $this->load->view('user/common_script');
// $this->load->view('user/result_check');
?>

<?php
$this->load->view('user/footer');
?>

  </body>
</html>
