HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: nexper (1054)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nexper/public_html/crm/custom/include/MySugar/javascript/retrievePage.js
/**
 * Created by lewis on 18/02/14.
 */



function retrievePage(page_id){
     retrieveData(page_id);

}

function retrieveData(page_id){
    $.ajax({

        url : "index.php?entryPoint=retrieve_dash_page",
        dataType: 'html',
        type: 'POST',
        data : {
            'page_id' : page_id
        },

        success : function(data) {
            var pageContent = data;

            outputPage(page_id,pageContent)
        },
        error : function(request,error)
        {

        }
})
}

function outputPage(page_id,pageContent){



    $("div[id^=pageNum_]").each(function(){
        $( this ).css( "display", "none" );
        $( this ).empty();

    });

    $( ".active").removeClass( "active" );
    $( "#pageNum_"+ page_id).addClass( "active" );

    $( ".current").removeClass( "current" );
    $( "#pageNum_"+ page_id +"_anchor").addClass( "current" );

    $( "#pageNum_"+ page_id +"_div").css("display", "block");

    $( "#pageNum_"+ page_id +"_div" ).append(pageContent);

//    $("#removeTab_anchor").attr("onclick","removeForm("+ page_id +")");


}