<script type="text/javascript">
// Global function for exporting payout data - accessible outside jQuery ready blocks
function exportPayoutData() {
    // Get form data if exists or create default export data
    var form = jQuery("#payout-report");
    var formData = form.length > 0 ? form.serialize() : "";
    
    // Create a hidden form for export
    var exportForm = jQuery("<form>", {
        "method": "POST",
        "action": "https://mlm.forsa-business.dz/wp-content/plugins/BMW/includes/admin/export.php"
    });
    
    // Add the current form data
    if (formData) {
        var params = formData.split("&");
        params.forEach(function(param) {
            var pair = param.split("=");
            if (pair.length === 2) {
                exportForm.append(jQuery("<input>", {
                    "type": "hidden",
                    "name": decodeURIComponent(pair[0]),
                    "value": decodeURIComponent(pair[1])
                }));
            }
        });
    }
    
    // Add export specific parameters
    exportForm.append(jQuery("<input>", {
        "type": "hidden",
        "name": "export_csv",
        "value": "1"
    }));
    
    exportForm.append(jQuery("<input>", {
        "type": "hidden",
        "name": "filename",
        "value": "bmw-payouts-report"
    }));
    
    // Submit the form to trigger download
    jQuery("body").append(exportForm);
    exportForm.submit();
    exportForm.remove();
}
</script>
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://mlm.forsa-business.dz/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://mlm.forsa-business.dz/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://mlm.forsa-business.dz/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://mlm.forsa-business.dz/wp-sitemap-posts-product-1.xml</loc></sitemap><sitemap><loc>https://mlm.forsa-business.dz/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://mlm.forsa-business.dz/wp-sitemap-taxonomies-product_cat-1.xml</loc></sitemap><sitemap><loc>https://mlm.forsa-business.dz/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
