source:
spip-zone/_plugins_/spip_resa/exec/reservation.php
@
30136
Last change on this file since 30136 was 30136, checked in by , 12 years ago | |
---|---|
File size: 402 bytes |
Line | |
---|---|
1 | <?php |
2 | |
3 | function exec_reservation() |
4 | { |
5 | $idCal = _request('id_cal') ; |
6 | $ts = _request('ts') ; |
7 | if( !empty($idCal) && !empty($ts) ) |
8 | { |
9 | if( |
10 | sql_insertq( |
11 | 'spip_resa_reservation', |
12 | array( |
13 | 'id_calendrier' => (int) $idCal, |
14 | 'ts' => (int) $ts |
15 | ) |
16 | ) |
17 | ) |
18 | echo 'Reservation effectuee !' ; |
19 | else |
20 | echo 'Erreur dans l\'enregistrement de la reservation' ; |
21 | } |
22 | } |
Note: See TracBrowser
for help on using the repository browser.