Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: overview_quickactions.php
<div class="tab-pane" id="tab_1_3"> <div class="tab-container tab-left"> <div class="row"> <div class="col-md-3"> <!-- <ul class="nav nav-tabs flat-tabs"> --> <ul class="nav nav-tabs nav-tabs-solid border-0"> <li class="w-100"> <a class="active nav-link" data-toggle="tab" href="#tab_1-1"> <i style="color: #324148 !important;" class="fa fa-cog"></i> <?php echo $this->lang->line('BE_LBL_328'); ?> </a> <span class="after"></span> </li> <li class="w-100"> <a class="nav-link" data-toggle="tab" href="#tab_1-5"> <i style="color: #324148 !important;" class="fa icon-pencil" data-toggle="tooltip" data-placement="top" title="Edit"></i> <?php echo $this->lang->line('BE_LBL_310'); ?> </a> </li> <li class="w-100"> <a class="nav-link" data-toggle="tab" href="#tab_1-2"> <i style="color: #324148 !important;" class="fa fa-lock"></i> <?php echo $this->lang->line('BE_PWD_HEADING'); ?> </a> </li> <li class="w-100"> <a class="nav-link" data-toggle="tab" href="#tab_1-3"> <i style="color: #324148 !important;" class="fa icon-eye"></i> <?php echo $this->lang->line('BE_LBL_923'); ?> </a> </li> <li class="w-100"> <a class="nav-link" data-toggle="tab" href="#tab_1-4"> <i style="color: #324148 !important;" class="fa fa-envelope"></i> Send Custom Email </a> </li> <li class="w-100"> <a class="nav-link" data-toggle="tab" href="#tab_1-6"> <i style="color: #324148 !important;" class="fa fa-dollar"></i> Allowed Payment Methods </a> </li> <li class="w-100"> <a class="nav-link" data-toggle="tab" href="#tab_1-7"> <i style="color: #324148 !important;" class="fa fa-file"></i> Required Documents </a> </li> </ul> </div> <div class="col-md-9"> <div class="tab-content"> <div id="tab_1-1" class="tab-pane active"> <div class="margiv-top-10"> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> name="btnChPwd" id="btnChPwd" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary"><?php echo $this->lang->line('BE_LBL_331'); ?></button> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> name="btnChPin" id="btnChPin" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary"><?php echo $this->lang->line('BE_LBL_650'); ?></button> <input style="background-color:#f44336 !important;color:#fff !important;" type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> value="<?php echo $this->lang->line('BE_LBL_321'); ?>" class="btn btn-danger" onClick="deleteClient();" /> <img style="display:none;" id="statusLoader" src="<?php echo base_url();?>assets/images/loading.gif" border="0" alt="Please wait..." /> <input type="hidden" name="id" id="id" value="<?php echo $USER_ID_BTNS; ?>" /> </div> </div> <div id="tab_1-2" class="tab-pane "> <div class="form-group row"> <div class="col-md-4"> <input type="text" class="form-control" placeholder="Password" maxlength="20" name="txtPass" id="txtPass" /> </div> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> id="btnChangePwd" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary ThemeColorButton">Change Password and Notify Client</button> <img style="display:none;" id="statusLoader98" src="<?php echo base_url();?>assets/img/loading.gif" border="0" alt="Please wait..." /> </div> </div> <div id="tab_1-3" class="tab-pane "> <form action="<?php echo base_url($this->config->item('apanel_name').'/services/overview'.get_query_string()); ?>" method="post"> <div class="form-group"> <label class="control-label">IP:*</label> <textarea class="form-control" rows="5" name="txtIP"><?php if($rsAllowedIPs){$count = count($rsAllowedIPs);$i=1;foreach($rsAllowedIPs as $rsAllowedIP){ echo trim($rsAllowedIP->IP).($count > 1?"\n":"");}} ?></textarea> <span class="form-text text-muted" style="font-size:11px;"> Seperated By Enter / New Line</span> </div> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('BE_GNRL'); ?></label> <textarea class="form-control" name="txtComments" rows="3"></textarea> </div> <div class="mt-2"> <button type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary ThemeColorButton"><?php echo $this->lang->line('BE_LBL_72'); ?></button> <input type="hidden" name="id" id="id" value="<?php echo $USER_ID_BTNS; ?>" /> </div> </form> </div> <div id="tab_1-5" class="tab-pane "> <form action="#" class=""> <?php echo form_open(base_url($this->config->item('apanel_name').'/services/overview'.get_query_string()));?> <div class="table-responsive"> <table class="table table-bordered table-striped"> <tr> <td> <?php echo $this->lang->line('BE_LBL_329'); ?> </td> <td> <label class="uniform-inline"> <input type="radio" class="chkSelect" name="rdAllowCrdtTransfr" id="rdAllowCrdtTransfr1" <?php if($transferCredits == '1') echo 'checked'?> /> Yes </label> <label class="uniform-inline"> <input type="radio" class="chkSelect" name="rdAllowCrdtTransfr" id="rdAllowCrdtTransfr2" <?php if($transferCredits == '0') echo 'checked'?> /> No </label> </td> </tr> <tr> <td> Can Buy Credits </td> <td> <label class="uniform-inline"> <input type="radio" name="rdBuyCr" value="1" id="rdBuyCr1" <?php if($buyCr == '1') echo 'checked'?> />Yes </label> <label class="uniform-inline"> <input type="radio" name="rdBuyCr" value="0" id="rdBuyCr2" <?php if($buyCr == '0') echo 'checked'?> />No </label> </td> </tr> <tr <?php if($buyCr == '1') echo 'style="display:none;"'?>> <td> Reason: </td> <td> <textarea class="form-control" name="payment_hide_comment"><?php echo $payment_hide_comment; ?></textarea> </td> </tr> <tr> <td> Auto Fill Credits </td> <td> <label class="uniform-inline"> <input type="radio" name="rdAutoFillCrdts" id="rdAutoFillCrdts1" <?php if($autoFillCredits == '1') echo 'checked'?> /> Yes </label> <label class="uniform-inline"> <input type="radio" name="rdAutoFillCrdts" id="rdAutoFillCrdts2" <?php if($autoFillCredits == '0') echo 'checked'?> /> No </label> </td> </tr> <tr> <td> Remove All Services From Client's Account </td> <td> <label class="uniform-inline"> <input type="radio" name="rdRmvSrvcs" id="rdRmvSrvcs1" <?php if($rmvAllSrvcs == '1') echo 'checked'?> /> Yes </label> <label class="uniform-inline"> <input type="radio" name="rdRmvSrvcs" id="rdRmvSrvcs2" <?php if($rmvAllSrvcs == '0') echo 'checked'?> /> No </label> </td> </tr> <tr> <td> <?php echo $this->lang->line('BE_LBL_571'); ?> </td> <td> <label class="uniform-inline"> <input type="radio" class="chkSelect" name="rdAPIAllowed" id="rdAPIAllowed1" <?php if($API_ALLOWED == '1') echo 'checked'?> /> Yes </label> <label class="uniform-inline"> <input type="radio" class="chkSelect" name="rdAPIAllowed" id="rdAPIAllowed2" <?php if($API_ALLOWED == '0') echo 'checked'?> /> No </label> </td> </tr> <tr> <td> Activate/Deactivate Client Account </td> <td> <label class="uniform-inline"> <input type="radio" class="chkSelect" name="rdActivate" id="rdUserStatus1" onclick="showReason();" <?php if($status == '0') echo 'checked'?> /> Activate </label> <label class="uniform-inline"> <input type="radio" class="chkSelect" name="rdActivate" id="rdActivate2" onclick="showReason();" <?php if($status == '1') echo 'checked'?> /> Deactivate </label> </td> </tr> <tr id="rwReason" <?php if($status != '1') echo 'style="display:none;"'?>> <td> Deactivation Reason </td> <td> <textarea class="form-control" rows="3" id="txtReason" name="txtReason"><?php echo $reason ?></textarea> </td> </tr> <tr> <td> Client Group </td> <td> <?php $price_data=fetch_price_plan_data();?> <!-- <label class="uniform-inline"></label> --> <select name="planId" id="planId" class="form-control select2me" style="width:200px;"> <option value="0"><?php echo $this->lang->line('BE_LBL_623').'...';?></option> <?php FillCombo($planId, $price_data); ?> </select> </td> </tr> </table> </div> <div class="mt-2"> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> name="btnSave" id="btnSave" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary ThemeColorButton"><?php echo $this->lang->line('BE_LBL_72'); ?></button> <img style="display:none;" id="statusLoader99" src="<?php echo base_url();?>assets/images/loading.gif" border="0" alt="Please wait..." /> </div> <?php echo form_close();?> </div> <div id="tab_1-4" class="tab-pane"> <div class="form-group"> <label class="control-label">Newsletter:*</label> <select name="ltrId" id="ltrId" class="form-control select2me" data-placeholder="Select..."> <?php include APPPATH.'scripts/newsltrsdropdown.php';?> </select> </div> <div class="form-group"> <textarea name="quickNewsletter" id="" rows="10" class="form-control ckeditor"></textarea> </div> <div class="mt-2"> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> name="btnSendEml" id="btnSendEml" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary ThemeColorButton">Send Email</button> <img style="display:none;" id="statusLoader97" src="<?php echo base_url();?>assets/images/loading.gif" border="0" alt="Please wait..." /> </div> </div> <div id="tab_1-6" class="tab-pane"> <h3><b>Select Payment Methods</b></h3> <?php $checkbox_html = fetch_payment_methods_html(get_defined_vars()); ?> <?php echo form_open(base_url($this->config->item('apanel_name').'/services/overview'.get_query_string()));?> <div class="form-group"> <label class="col-md-3 control-label"><?php echo $this->lang->line('BE_LBL_124'); ?>:</label> <div class="col-md-4"> <?php echo $checkbox_html; ?> </div> </div> <div class="mt-2"> <button type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary ThemeColorButton"><?php echo $this->lang->line('BE_LBL_72'); ?></button> <input type="hidden" name="id" id="id" value="<?php echo $USER_ID_BTNS; ?>" /> <input type="hidden" name="hdRmvPMs" /> </div> <?php echo form_close(); ?> </div> <div id="tab_1-7" class="tab-pane"> <h3><b>Required Documents</b></h3> <form class="form-required-documents" name="validate"> <div class="form-group"> <label class="col-md-3 control-label"><?php echo 'Add Document Field' /*$this->lang->line('BE_LBL_124')*/; ?>:</label> <div class="col-md-4"> <div class="required-documents"> <input type="text" name="field_label[]" class="field_label" placeholder="Enter Field Label!" required> <input type="hidden" name="id" id="id" value="<?php echo $USER_ID_BTNS; ?>" /> <input type="button" value="+" class="field_label_add" name="field_label_add" onclick="javascript:void(0);" /> </div> <br /> <button type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary ThemeColorButton field_label_add_submit"><?php echo $this->lang->line('BE_LBL_72'); ?></button> <?php //echo $checkbox_html; ?> </div> </div> </form> <div class="fields_active"> <?php if($rsDocsReq){ ?> <form action="#" class="form-active-documents"> <?php //echo form_open(base_url($this->config->item('apanel_name').'/services/overview'.get_query_string()));?> <div class="table-responsive" id="flds_name_1"> <table class="table table-bordered table-striped"> <?php foreach($rsDocsReq as $row){?> <tr> <td> <?php echo $row->fLabel; ?> </td> <td> <label class="uniform-inline"> <input type="radio" value="1" class="chkSelect" name="<?php echo 'rdAllowdocfld['.$row->id.']';?>" <?php if($row->docsStatus == '1') echo 'checked'?> /> Yes </label> <label class="uniform-inline"> <input type="radio" class="chkSelect" name="<?php echo 'rdAllowdocfld['.$row->id.']';?>" value="0" <?php if($row->docsStatus == '0') echo 'checked'?> /> No </label> <input type="hidden" name="id[]" id="id" value="<?php echo $row->id; ?>" /> </td> <td> <?php if($row->docsFile!=''){?><a href="<?php echo base_url('assets/').$row->docsFile; ?>" target="_blank" class="btn btn-primary"><?php echo $this->lang->line('BE_VIEW_DOC'); ?></a> <?php }?> </td> </tr> <?php } ?> </table> </div> <div class="mt-2"> <button type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary ThemeColorButton fields_active_submit"><?php echo $this->lang->line('BE_LBL_72'); ?></button> </div> </form> <?php } ?> </div> </div> </div> </div> <!--end col-md-9--> </div> </div> </div> <!--end tab-pane--> <script type="text/javascript" src="<?php echo base_url('assets/plugins/ckeditor/ckeditor.js'); ?>"></script> <script type="text/javascript"> $(document).on('click', '.field_label_add', function() { var html = '<div class="field_label_remove" ><input type="text" name="field_label[]" placeholder="Enter Field Label!" class="field_label" required /> <input type="button" value=" - " class="field_label_remove_btn" name="field_label_add" /></div>'; console.log(html) $('.required-documents').append(html); }); //const removeButton = document.createElement('button'); $(document).on('click', '.field_label_remove_btn', function(e) { e.target.closest(".field_label_remove").remove(); }); $(document).on('click', '.fields_active_submit', function() { //alert('here'); var formData = $('.form-active-documents').serializeArray(); $.ajax({ type: "POST", url: "<?php echo base_url($this->config->item('apanel_name').'/services/activeDocField');?>", data: formData, dataType: "json", encode: true, success: function(data) { alert(data.message); }, }).done(function (data) { console.log(data); }); event.preventDefault(); }); $(document).on('click', '.field_label_add_submit', function() { var x = $('.field_label').val(); if (x==null || x=="") { alert("You must enter a value in the field label!"); return false; } //alert('here'); var formData = $('.form-required-documents').serializeArray(); var id = document.getElementById('id').value; $.ajax({ type: "POST", url: "<?php echo base_url($this->config->item('apanel_name').'/services/addDocField');?>", data: formData, dataType: "json", encode: true, success: function(data) { alert(data.message); window.location.href = '<?php echo base_url($this->config->item('apanel_name').'/services/overview'); ?>?id='+id; /* $('#flds_name_1').hide(); setTimeout(function() { $('#flds_name').show(); $("#flds_name").load(" #flds_tbl"); }, 1000)*/ //return data; }, }).done(function (data) { // get data // empty table // $.each loop, table create console.log(data); }); event.preventDefault(); }); function deleteClient() { var id = document.getElementById('id').value; if(id != '') { if(confirm('<?php echo $this->lang->line('BE_LBL_150'); ?>')) window.location.href = '<?php echo base_url($this->config->item('apanel_name').'/clients/delete_user'); ?>?id='+id; } else { alert('Invalid Client'); } } $(function(){ $('[name="ltrId"]').change(function(){ try { // debugger; var nl = $(this).find('option:selected').data('nl'); nl = nl ? nl.trim() : ''; CKEDITOR.instances['quickNewsletter'].setData(nl); }catch(e){ // console.log(e.message); } }).trigger('change'); $('[name="rdBuyCr"]').change(function(){ if($(this).val() == 0) { $('[name=payment_hide_comment]').closest('tr').show(); }else{ $('[name=payment_hide_comment]').closest('tr').hide(); } }); $('[name="rdBuyCr"]:checked').trigger('change'); }); function ValidateIPaddress(ipaddress) { if (/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(myForm.emailAddr.value)) { return (true) } alert("You have entered an invalid IP address!") return (false) } </script>