OSDN Git Service

fix: ミス修正
authorepgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
Sun, 4 Apr 2010 09:14:47 +0000 (18:14 +0900)
committerepgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
Sun, 4 Apr 2010 09:14:47 +0000 (18:14 +0900)
cancelReservation.php
templates/recordedTable.html

index 08aec3c..207e2c8 100755 (executable)
@@ -19,6 +19,12 @@ else if(isset($_GET['reserve_id'])) {
        try {
                $rec = new DBRecord( RESERVE_TBL, "id" , $reserve_id );
                $program_id = $rec->program_id;
+               
+               if( isset( $_GET['delete_file'] ) ) {
+                       if( $_GET['delete_file'] == 1 ) {
+                               $path = INSTALL_PATH."/".$settings->spool."/".$rec->path;
+                       }
+               }
        }
        catch( Exception $e ) {
                // 無視
@@ -35,13 +41,7 @@ if( $program_id ) {
                // 無視
        }
 }
-if( $rec == null ) exit( "Error: 予約レコードが取得出来ません" );
 
-if( isset( $_GET['delete_file'] ) ) {
-       if( $_GET['delete_file'] == 1 ) {
-               $path = INSTALL_PATH."/".$settings->spool."/".$rec->path;
-       }
-}
 
 
 // 予約取り消し実行
index 5a418be..aa34e07 100755 (executable)
@@ -37,6 +37,7 @@
                                        alert(data);
                                }
                                else {
+//                                     alert(data);
                                        $('#resid_' + id ).hide();
                                        $('#floatBox4Dialog').dialog('close');
                                }