<script type="text/javascript">
    function validate_activationKey(){
        
        var activationKeyname = $("#activationKey_number");
        var pnamemsg = $("#msg_activationKey_number");
        
        if(activationKeyname.val()==''){
            activationKeyname.addClass('error');
            activationKeyname.focus();
            pnamemsg.html('Please enter activationKey number').show();
            return false;
        }else{
            activationKeyname.removeClass('error');
            pnamemsg.hide();
        }
        return true;
    }

</script>
<div class="breadcrumb">
    <h1>ActivationKeys</h1>
    <ul>
        <li><a href="<?php echo SITE_URL.ADMIN_DIR ?>">Dashboard</a></li>
        <li>Add New activation Key</li>
    </ul>
</div>
<div class="widget-body">
    <div class="portlet-body">
                        
    <?php echo (isset($successMsg) && $successMsg!='') ? "<div class='alert alert-success'><button data-dismiss='alert' class='close' type='button'>×</button>".base64_decode($successMsg)."</div>" : '' ; ?>
    <?php echo (isset($failedMsg) && $failedMsg!='') ? "<div class='alert alert-danger'><button data-dismiss='alert' class='close' type='button'>×</button>".base64_decode($failedMsg)."</div>" : '' ?>
   
    <div id="status_msg" style="display: none;"><div class="alert alert-success"><button data-dismiss='alert' class='close' type='button'>×</button>&nbsp;</div></div>
    <div id="alert_msg" style="display: none;"><div class="alert alert-danger"><button data-dismiss='alert' class='close' type='button'>×</button>&nbsp;</div></div>

    </div>
</div>
<div class="separator-breadcrumb border-top"></div>
  <div id="results" >
      <div  id="msg_error_name"></div>
  </div>
<div id="status_msg" style="display: none;"><div class="alert alert-success"><button data-dismiss='alert' class='close' type='button'>×</button>&nbsp;</div></div>

<div class="row">
    <div class="col-md-12">
        <div class="card mb-4">
            <div class="card-body">
                <div class="card-title mb-3">Add New activationKey</div>
                <form action="" id='frm-activationKey' method="post" enctype="multipart/form-data" onsubmit="return validate_activationKey();">
                    <?php if(isset($activationKeyDetail->activationKey_id ) && $activationKeyDetail->activationKey_id !=0) { ?>
                       <input type="hidden" id="activationKey_id" name="activationKey_id" value="<?php echo $activationKeyDetail->activationKey_id; ?>" />
                    <?php } ?>
                    <div class="row">
                        
                        <div class="col-md-6 form-group mb-3">
                            <label for="activationKey_number">ActivationKey Phone number <span class="asterisk">*</span></label>
                            <input type="text" class="form-control" id="activationKey_number" name="activationKey_number" value="<?php echo $activationKeyDetail->activationKey_number ?>" placeholder="Enter activationKey phone number">
                            <div class="invalid-tooltip" id="msg_activationKey_number"></div>
                        </div>
                        <div class="col-md-12">
                            <input type="submit" class="btn btn-primary" id="submit" name="submit" value="Submit">
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>


