} $Key25 = $io->get_param_html("title"); $Key26 = $select01->get_selected_text(); $Key27 = $io->get_param_html("pub"); $Key28 = $io->get_param_html("writer"); $Key29 = $io->get_param_html("into"); $Key30 = $io->get_param_html("year"); $Key31 = $io->get_param_html("amazon"); $Key32 = $io->get_param_html("remarks"); //データベース更新 $obj = new BookModel(); $result = $obj->GETBookAdd($ActType, $Key1, $Key24, $Key25, $Key26, $Key27, $Key28, $Key29, $Key30, $Key31, $Key32); if ($result == 0) { //coverテーブルに同じISBNが登録されているか確認する $obj = new BookModel(); $result = $obj->GETCoverIsbn($ActType, $Key0, $Key24); if ($result == 0) { //登録されていればすでに登録されています。表紙を変更する場合は編集がめんいってね include HTML_SUCCESS_2; } elseif ($result == 1) { //登録されていなければISBN登録し、選択画面へ $obj = new BookModel(); $result = $obj->GETCoverIsbnAdd($ActType, $Key24, $dspCoverIsbn); if ($result == 0) { //ISBN登録完了すればsuc画面へ移動し、画像登録へ include HTML_SUCCESS; } else { include HTML_FAILURE; } } else { $db_error = 'システムエラーです。開発者に連絡してください。';
} $Key25 = $io->get_param_html("title"); $Key26 = $select01->get_selected_text(); $Key27 = $io->get_param_html("pub"); $Key28 = $io->get_param_html("writer"); $Key29 = $io->get_param_html("into"); $Key30 = $io->get_param_html("year"); $Key31 = $io->get_param_html("amazon"); $Key32 = $io->get_param_html("remarks"); //データベース更新 $obj = new BookModel(); $result = $obj->GETBookEDIT($ActType, $Key1, $Key24, $Key25, $Key26, $Key27, $Key28, $Key29, $Key30, $Key31, $Key32, $Key20); if ($result == 0) { //coverテーブルに同じISBNが登録されているか確認する $obj = new BookModel(); $result = $obj->GETCoverIsbn($ActType, $Key24, $dspCoverIsbn); $Key22 = '/admin/book_add/tmp_cover/' . $dspCoverIsbn[1]; if ($result == 0) { //登録されていればすでに登録されています。表紙を変更する場合は編集がめんいってね $obj = new BookModel(); $result = $obj->GETNewBooknum($ActType, $dspNewBooknum); if ($result == 0) { include HTML_SUCCESS_2; } } elseif ($result == 1) { //登録されていなければISBN登録し、選択画面へ $obj = new BookModel(); $result = $obj->GETCoverIsbnAdd($ActType, $Key24); if ($result == 0) { $obj = new BookModel(); $result = $obj->GETNewBooknum($ActType, $dspNewBooknum);