function Price() {
this.create_price_tab=create_price_tab;
this.get_pricing=get_pricing
function create_price_tab() {
$('
').attr('id', 'all-pricing-info').appendTo('#fragment-4');
$('#all-pricing-info').append('
pricing
');
get_pricing();
}
function get_pricing() {
var newURL= 'http://www.rocklandsboulders.com/bookings/get_prices';
var json_obj= new Object();
$.getJSON(newURL,json_obj,
function(data){
for(var c in data){
var count=0;
$('#all-pricing-info').append("
"+c+":
");
$('#all-pricing-info').append("
");
$('#product_'+data[c][0]['product']).append("
view information about "+c+" week day (monday to thursday)
£ "+data[c][0]['week_day']+" per day
");
$('#product_'+data[c][0]['product']).append("
weekend day (friday to sunday)
£ "+data[c][0]['weekend_day']+" per day");
$('#product_'+data[c][0]['product']).append("
week (monday to thursday)
£ "+data[c][0]['week']+"");
$('#product_'+data[c][0]['product']).append("
weekend (friday to sunday)
£ "+data[c][0]['weekend']+"");
$('#product_'+data[c][0]['product']).append("
full week
£ "+data[c][0]['full_week']+"");
$('#product_'+data[c][0]['product']).append("
month
£ "+data[c][0]['month']+"");
count++;
}
}
);
}
}