Mercurial > epgrec.yaz
annotate deleteKeyword.php @ 77:cb7da56c4198
modified: Keyword.class.php
modified: config.php.sample
modified: index.php
modified: install/step1.php
modified: keywordTable.php
modified: programTable.php
modified: simpleReservation.php
modified: templates/index.html
modified: templates/keywordTable.html
modified: templates/programTable.html
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Wed, 24 Feb 2010 20:22:19 +0900 |
parents | f5a9f0eb4858 |
children |
rev | line source |
---|---|
1 | 1 <?php |
2 include_once('config.php'); | |
3 include_once( INSTALL_PATH . '/DBRecord.class.php' ); | |
4 include_once( INSTALL_PATH . '/Reservation.class.php' ); | |
5 include_once( INSTALL_PATH . '/reclib.php' ); | |
6 include_once( INSTALL_PATH . '/Keyword.class.php' ); | |
7 | |
8 if( isset($_GET['keyword_id'])) { | |
9 try { | |
10 $rec = new Keyword( "id", $_GET['keyword_id'] ); | |
11 $rec->delete(); | |
12 } | |
13 catch( Exception $e ) { | |
14 exit( "Error:" . $e->getMessage() ); | |
15 } | |
16 } | |
17 else exit( "Error:キーワードIDが指定されていません" ); | |
18 ?> |