  <?php  
$sqlcon = "SELECT * FROM api_coupan WHERE api_type='Icubeswire'";
    
      $myquerycon=$conn->query($sqlcon);
   $mydaracon= $myquerycon->fetchAll()  ;
   
   $rows_foundcon = $myquerycon->rowCount();
    if($rows_foundcon==0){
        $stat='0';
    }else{
         $stat='1';
    }

      foreach( $mydaracon as $rowcon ) {
            $con_id  = $rowcon['rowId'];
            $api_key = $rowcon['api_key'];
            $affiliate_id  = $rowcon['affiliate_id'];
            $network_id = $rowcon['network_id'];
         
      }
?>  
 <div class="row">
                                       <div class="col-lg-12 col-md-12">
                                          <div class="merchant-profile-right">
                                             <div class="card-body">
                                                <!--Form Icubeswire  API Key Begin-->
                                                <form class="profile-box" action="forms/icubewire.php" method="post" enctype="multipart/form-data"> 
                                                   <div class="bottom-line">
                                                      <h6 class="h5 mb-5">Icubeswire  API Key</h6>
                                                   </div>
                                                   <div class="row">
                                                      <!--Icubeswire  API Key-->
                                                      <div class="col-md-12">
                                                         <div class="mb-3">
                                                            <label class="fw-bold form-label">Icubeswire  API Key:</label>
                                                            <input type="text" name="<?=SESS_MASTER ?>api_key" value="<?=$api_key?>" class="form-control  validate[required] text-input">
                                                         </div>
                                                      </div>
                                                       <!--Affiliate Id-->
                                                      <div class="col-md-12">
                                                         <div class="mb-3">
                                                            <label class="fw-bold form-label">Affiliate Id:</label>
                                                            <input type="text"  name="<?=SESS_MASTER ?>affiliate_id" value="<?=$affiliate_id?>" class="form-control  validate[required] text-input">
                                                         </div>
                                                      </div>
                                                       <!--Network Id-->
                                                    
                                                      <div class="col-md-12">
                                                         <div class="mb-3">
                                                            <label class="fw-bold form-label">Network Id:</label>
                                                            <input type="text"  name="<?=SESS_MASTER ?>network_id" value="<?=$network_id?>" class="form-control  validate[required] text-input">
                                                         </div>
                                                      </div>
                                                      <!--Save-->
                                                      <div class="col-md-12">
                                                         <button type="button" class="btn btn-primary mb-3">Save</button>
                                                      </div>
                                                   </div>
                                                   <!--Note Bgin-->
                                                   <div class="alert alert-primary fs-14 mt-2" role="alert">
                                                      <strong>Note:</strong>  API requires user authentication. You will need an API key to pass with your requests to provide authentication. 
                                                   </div>
                                                   <!--Note End-->
                                                   <!--Message Begin-->
                                                   <div class="alert alert-primary fs-14 mt-2" role="alert">
                                                      <strong>Message :</strong>    you do not have Icubeswire api, first go to <a href="https://www.icubeswire.com/"> Icubeswire.com</a> and register on affiliate link. then you can get coupon API. 
                                                   </div>
                                                   <!--MEssage End-->
                                                </form>
                                                <!--Form Icubeswire  API Key End-->
                                             </div>
                                          </div>
                                       </div>
                                    </div>