HEX
Server: Apache/2.2.15 (CentOS)
System: Linux ip-10-0-2-146.eu-west-1.compute.internal 2.6.32-754.35.1.el6.centos.plus.x86_64 #1 SMP Sat Nov 7 11:33:42 UTC 2020 x86_64
User: root (0)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /www/exchange0old/exchange/admin/cache/%%AA^AA6^AA6BFB04%%creditors_overdue_reports.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-17 09:07:04
         compiled from reports/creditors_overdue_reports.html */ ?>
<div id="dialog_two" title="Overdue Balance">
    <script>
        $(function () {
            $("#download_overdue_report").submit(function(){
                $("#html_overdue_report").val($("#overdue_report_table").html());
            });
        });
        function get_overdue_report(country_id){
            var user_id = <?php echo $this->_tpl_vars['organisation']['user_id']; ?>
;
            $(".overdue_wait").show();
            $.ajax({
                type: "POST",
                url: '?do=getreport',
                data: {report_type: 22, user_id: user_id, country_id: country_id},
                success: function (data) {
                    $("#overdue_report_table").html(data);
                    $(".download_overdue_report").show();
                    $(".overdue_wait").hide();
                    $("#country").val(country_id);
                }
            })
        }
    </script>
    <form method="post" action="?do=downloadreport" id="download_overdue_report">
        <input type="hidden" name="country_id" id="country">
        <input type="hidden" name="report_type" value="22">
        <input type="hidden" name="user_id" value="<?php echo $this->_tpl_vars['organisation']['user_id']; ?>
">
        <div style="margin: 10px 0 20px 0">
            <button type="submit" class="download_overdue_report btn btn-info">Download Report</button>
        </div>
        <div class="overdue_wait"></div>
        <div id="overdue_report_table">
        </div>
        <button type="submit" class="download_overdue_report btn btn-info">Download Report</button>
    </form>
</div>
<style>
    .download_overdue_report{display: none}

    .overdue_wait {
        background: url("images/wait.gif");
        height: 200px;
        width: 200px;
        background-position: 50%;
        position: absolute;
        left: 40%;
        top: 30%;
        display: none;
    }
    .ui-dialog .ui-dialog-titlebar-close {
        background-image: url(../css/ui-lightness/images/ui-icons_ef8c08_256x240.png);
        background-position: -97px -129px;
    }
</style>
<script>
    $(function () {
        $("#dialog_two").dialog({
            autoOpen: false,
            width: 1000,
            height: 500,
            modal: true
        });
    });
</script>