update query for prices
This commit is contained in:
@@ -25,8 +25,10 @@ function booking_price_admin()
|
||||
'booking_edit' => t('Edit Price'),
|
||||
);
|
||||
|
||||
$result = db_query("SELECT pid, booking_eventid, booking_price, booking_late_price, booking_late_buttonid, booking_price_descrip, booking_buttonid, booking_price_active, " .
|
||||
"booking_depositonly from {booking_price}");
|
||||
$result = db_query("SELECT pid, p.booking_eventid, booking_price, booking_late_price, booking_late_buttonid, booking_price_descrip, " .
|
||||
"booking_buttonid, booking_price_active, booking_depositonly, e.booking_eventname" .
|
||||
"from {booking_price} p " .
|
||||
"inner join {booking_event} e on e.booking_eventid = p.booking_eventid");
|
||||
|
||||
foreach($result as $data)
|
||||
{
|
||||
@@ -63,6 +65,12 @@ function booking_price_admin()
|
||||
'#value' => t('Set Inactive'),
|
||||
);
|
||||
|
||||
$form['submit_current'] = array
|
||||
(
|
||||
'#type' => 'submit',
|
||||
'#value' => t('Change to current event'),
|
||||
);
|
||||
|
||||
//watchdog('booking', 'Setting button form: @info', array ('@info' => var_export($form, TRUE)));
|
||||
|
||||
return array (
|
||||
|
Reference in New Issue
Block a user