//ems javascript

//show each booth box
function showBooth(eb_id, event_id, eb_left, eb_top) 
{              
    var ajax = new Ajax();
    ajax.post2html( "../../ems/ajax/edit_ems.php", "booth_info", [
    ["mode", "show_booth"],
    ["booth_id", encodeURI(eb_id)],
    ["event_id", encodeURI(event_id)],
    ["eb_left", encodeURI(eb_left)],
    ["eb_top", encodeURI(eb_top)]
    ] );                      
}

//show each booth box
function showBooth_attendee(eb_id, event_id, eb_left, eb_top) 
{              
    var ajax = new Ajax();
    ajax.post2html( "../../ems/ajax/edit_ems.php", "booth_info_attendee", [
    ["mode", "show_booth_attendee"],
    ["booth_id", encodeURI(eb_id)],
    ["event_id", encodeURI(event_id)],
    ["eb_left", encodeURI(eb_left)],
    ["eb_top", encodeURI(eb_top)]
    ] );                      
}

//show each booth box
function showBooth_my(eb_id, event_id, eb_left, eb_top) 
{              
    var ajax = new Ajax();
    ajax.post2html( "../../ems/ajax/edit_ems.php", "booth_info", [
    ["mode", "show_booth"],
    ["booth_type", "my"],
    ["booth_id", encodeURI(eb_id)],
    ["event_id", encodeURI(event_id)],
    ["eb_left", encodeURI(eb_left)],
    ["eb_top", encodeURI(eb_top)]
    ] );                      
}

//show each booth box - admin
function showBooth_admin(eb_id, event_id, eb_left, eb_top) 
{              
    var ajax = new Ajax();
    ajax.post2html( "../../ems/ajax/edit_ems.php", "booth_info", [
    ["mode", "show_booth_admin"],
    ["booth_id", encodeURI(eb_id)],
    ["event_id", encodeURI(event_id)],
    ["eb_left", encodeURI(eb_left)],
    ["eb_top", encodeURI(eb_top)]
    ] );                      
}
//Close booth layer
function closeBooth(event_id) 
{              
    var ajax = new Ajax();
    ajax.post2html( "../../ems/ajax/edit_ems.php", "booth_info", [
    ["mode", "close_booth"],          
    ["event_id", encodeURI(event_id)]
    ] );
                       
}

//Close booth layer
function closeBooth_attendee(event_id) 
{              
    var ajax = new Ajax();
    ajax.post2html( "../../ems/ajax/edit_ems.php", "booth_info_attendee", [
    ["mode", "close_booth"],          
    ["event_id", encodeURI(event_id)]
    ] );
                       
}

//Close booth layer
function closeBooth_admin(event_id) 
{              
    var ajax = new Ajax();
    ajax.post2html( "../../ems/ajax/edit_ems.php", "booth_info", [
    ["mode", "close_booth_admin"],          
    ["event_id", encodeURI(event_id)]
    ] );
                       
}
//Delete Booth
function delBooth(eventId, booth_id) 
{              
    var ajax = new Ajax();
    ajax.post2html( "../../ems/ajax/edit_ems.php", "booth_background", [
    ["mode", "del_booth"],          
    ["event_id", encodeURI(eventId)],
    ["booth_id", encodeURI(booth_id)]
    ] );
                       
}

//Update Booth
function updateBooth(eventId, booth_id, eb_name, b_left, b_top, b_width, b_height, b_price, b_size, b_status, b_exhibitor) 
{                
    var ajax = new Ajax();
    ajax.post2html( "../../ems/ajax/edit_ems.php", "booth_background", [
    ["mode", "update_booth"],          
    ["event_id", encodeURI(eventId)],
    ["booth_id", encodeURI(booth_id)],
    ["booth_name", encodeURI(eb_name)],
    ["b_left", encodeURI(b_left)],
    ["b_top", encodeURI(b_top)],
    ["b_width", encodeURI(b_width)],
    ["b_height", encodeURI(b_height)],
    ["b_price", encodeURI(b_price)],
    ["b_size", encodeURI(b_size)],
    ["b_status", encodeURI(b_status)],
    ["b_exhibitor", encodeURI(b_exhibitor)]
    ] );
                       
}

