Mercurial > epgrec.yaz
comparison cancelReservation.php @ 162:c6c6bd734f18
fix: 立旦膜懇
author | epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp> |
---|---|
date | Sun, 04 Apr 2010 18:14:47 +0900 |
parents | 84220382fea8 |
children |
comparison
equal
deleted
inserted
replaced
161:84220382fea8 | 162:c6c6bd734f18 |
---|---|
17 else if(isset($_GET['reserve_id'])) { | 17 else if(isset($_GET['reserve_id'])) { |
18 $reserve_id = $_GET['reserve_id']; | 18 $reserve_id = $_GET['reserve_id']; |
19 try { | 19 try { |
20 $rec = new DBRecord( RESERVE_TBL, "id" , $reserve_id ); | 20 $rec = new DBRecord( RESERVE_TBL, "id" , $reserve_id ); |
21 $program_id = $rec->program_id; | 21 $program_id = $rec->program_id; |
22 | |
23 if( isset( $_GET['delete_file'] ) ) { | |
24 if( $_GET['delete_file'] == 1 ) { | |
25 $path = INSTALL_PATH."/".$settings->spool."/".$rec->path; | |
26 } | |
27 } | |
22 } | 28 } |
23 catch( Exception $e ) { | 29 catch( Exception $e ) { |
24 // ∟ | 30 // ∟ |
25 } | 31 } |
26 } | 32 } |
33 } | 39 } |
34 catch( Exception $e ) { | 40 catch( Exception $e ) { |
35 // ∟ | 41 // ∟ |
36 } | 42 } |
37 } | 43 } |
38 if( $rec == null ) exit( "Error: 鈭蝝研喋潦敺箸乓整" ); | |
39 | 44 |
40 if( isset( $_GET['delete_file'] ) ) { | |
41 if( $_GET['delete_file'] == 1 ) { | |
42 $path = INSTALL_PATH."/".$settings->spool."/".$rec->path; | |
43 } | |
44 } | |
45 | 45 |
46 | 46 |
47 // 鈭蝝瘨摰銵 | 47 // 鈭蝝瘨摰銵 |
48 try { | 48 try { |
49 Reservation::cancel( $reserve_id, $program_id ); | 49 Reservation::cancel( $reserve_id, $program_id ); |