PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/productjuly1video/champdoms.click/admin-panel/pages/prosys-settings/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/productjuly1video/champdoms.click/admin-panel/pages/prosys-settings/content.html

<div class="container-fluid">
    <div class="block-header">
        <h2>Pro System > Settings</h2>
    </div>
    <!-- Vertical Layout -->
    <div class="row">
        <div class="col-lg-8 col-md-8 ">
            <div class="card">
                <div class="header">
                    <h2 class="pull-left">Pro System Settings</h2>
                    <button class="btn btn-danger pull-right" onclick="PT_RemoveSubscriptions('expired',this);">Cancel Expired Subscriptions</button>
                    <div class="clear"></div>
                </div>

                <div class="body">
                    <div class="alert alert-success prosys-settings-alert"></div>
                    <div class="alert alert-warning">
                        <i class="fa fa-fw fa-exclamation-triangle"></i> <strong>Note:</strong> To enable recurring payments, please follow the steps below, and use the link listed.
                            <br>
                            Link: {{CONFIG site_url}}/pro.php
                            <br>
                            <a href="{{CONFIG site_url}}/upload/step1.png" style="color: #fff" target="_blank">Step1</a>
                            <br>
                            <a href="{{CONFIG site_url}}/upload/step2.png" style="color: #fff" target="_blank">Step2</a>
                      </div>
                    <form class="prosys-settings" method="POST">
                        <label for="go_pro">Pro system</label>
                        <div class="form-group">
                            <input type="radio" name="go_pro" id="go_pro-enabled" value="on" <?php echo ($pt->config->go_pro == 'on') ? 'checked': '';?>>
                            <label for="go_pro-enabled">Enabled</label>
                            <input type="radio" name="go_pro" id="go_pro-disabled" value="off" <?php echo ($pt->config->go_pro == 'off') ? 'checked': '';?>>
                            <label for="go_pro-disabled" class="m-l-20">Disabled</label>
                        </div>
                        
                        <label for="recurring_payment">Recurring Payment</label>
                        <div class="form-group">
                            <input type="radio" name="recurring_payment" id="recurring_payment-enabled" value="on" <?php echo ($pt->config->recurring_payment == 'on') ? 'checked': '';?>>
                            <label for="recurring_payment-enabled">Enabled</label>
                            <input type="radio" name="recurring_payment" id="recurring_payment-disabled" value="off" <?php echo ($pt->config->recurring_payment == 'off') ? 'checked': '';?>>
                            <label for="recurring_payment-disabled" class="m-l-20">Disabled</label>
                        </div>
                        <div class="form-group form-float">
                            <div class="form-line">
                                <input type="number" id="user_max_import" name="user_max_import" class="form-control" value="{{CONFIG user_max_import}}">
                                <label class="form-label">Free users import limit</label>
                            </div>
                        </div>
                        <div class="form-group form-float">
                            <div class="form-line">
                                <input type="number" id="pro_pkg_price" name="pro_pkg_price" class="form-control" value="{{CONFIG pro_pkg_price}}">
                                <label class="form-label">Pro Package Price</label>
                            </div>
                        </div>
                        <button type="submit" class="btn btn-primary m-t-15 waves-effect">Save</button>
                    </form>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>

    <!-- #END# Vertical Layout -->
<script>


function PT_RemoveSubscriptions(type,self){
    if (!type || type != 'expired' || !self){
        return false;
    }

    else if(type == 'expired'){
        $(self).text("{{LANG please_wait}}").attr('disabled', 'true');
        $.ajax({
            url: '{{LINK aj/go_pro/remove_expired}}',
            type: 'GET',
            dataType: 'json'
        })
        .done(function() {
            $('.payment-settings-alert').html('<i class="fa fa-check"></i> Expired Subscriptions was deleted successfully!');
            setTimeout(function () {
                $('.payment-settings-alert').empty();
            }, 2000);
            $(self).text('Cancel Expired Subscriptions').removeAttr('disabled');
        })
        .fail(function() {
            console.log("error");
        })
    }
}

$(function() {
    var form_prosys_settings = $('form.prosys-settings');

    form_prosys_settings.ajaxForm({
        url: '{{LINK aj/ap/save-settings}}',
        beforeSend: function() {
            form_prosys_settings.find('button[type="submit"]').text("{{LANG please_wait}}");
        },
        success: function(data) {
            if (data.status == 200) {
            	form_prosys_settings.find('button[type="submit"]').text('Save');
            	$('.prosys-settings-alert').html('<i class="fa fa-check"></i> Settings updated successfully');
            	setTimeout(function () {
            		$('.prosys-settings-alert').empty();
            	}, 2000);
            }
        }
    });
});
</script>