update query for prices

This commit is contained in:
2017-08-22 21:10:44 +10:00
parent c48f31613d
commit d9107c0d48
2 changed files with 15 additions and 7 deletions

View File

@@ -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 (