Ejemplo n.º 1
0
                     // csvファイルの作成
                     $csv = new CSV($io, CSV_PATH, $csv_name, "SJIS");
                     $result = $csv->write(CSV_TEMP);
                     // フラグファイル(?)作成
                     if($result)
                     {
                             touch(preg_replace("/\.csv/", "-F", CSV_PATH.$csv_name));
                     }
                     // csvファイルの作成(予備)
                     $csv = new CSV($io, CSV_PATH_BK, $csv_name, "SJIS");
                     $result = $csv->write(CSV_TEMP);
                     */
 // 完了画面 --------------------------------------------------------------
 if ($decision) {
     $vali = new Validation();
     $isbn = $io->get_param_html("isbn");
     if ($isbn) {
         $Key24 = $io->get_param_html("isbn");
     } else {
         $Key24 = $io->get_param_html("asin");
     }
     $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();
Ejemplo n.º 2
0
                     // csvファイルの作成
                     $csv = new CSV($io, CSV_PATH, $csv_name, "SJIS");
                     $result = $csv->write(CSV_TEMP);
                     // フラグファイル(?)作成
                     if($result)
                     {
                             touch(preg_replace("/\.csv/", "-F", CSV_PATH.$csv_name));
                     }
                     // csvファイルの作成(予備)
                     $csv = new CSV($io, CSV_PATH_BK, $csv_name, "SJIS");
                     $result = $csv->write(CSV_TEMP);
                     */
 // 完了画面 --------------------------------------------------------------
 if ($decision) {
     $vali = new Validation();
     $Key13 = $io->get_param_html("Name");
     $Key14 = $io->get_param_html("ID");
     if ($Key15 == '9999') {
         $Key15 = '9999';
         $pw = '初期化する';
     } else {
         $pw = '初期化しない';
     }
     //データベース更新
     $obj = new UserModel();
     //ID確認
     $result = $obj->GETUserEdit($ActType, $Key1, $Key13, $Key14, $Key15, $Key12);
     if ($result == 0) {
         include HTML_SUCCESS;
     } else {
         $db_error = 'システムエラーです。開発者に連絡してください。';
Ejemplo n.º 3
0
                     // csvファイルの作成
                     $csv = new CSV($io, CSV_PATH, $csv_name, "SJIS");
                     $result = $csv->write(CSV_TEMP);
                     // フラグファイル(?)作成
                     if($result)
                     {
                             touch(preg_replace("/\.csv/", "-F", CSV_PATH.$csv_name));
                     }
                     // csvファイルの作成(予備)
                     $csv = new CSV($io, CSV_PATH_BK, $csv_name, "SJIS");
                     $result = $csv->write(CSV_TEMP);
                     */
 // 完了画面 --------------------------------------------------------------
 if ($decision) {
     $vali = new Validation();
     $Key51 = $io->get_param_html("Name");
     $Key52 = $io->get_param_html("ID");
     //データベース更新
     $obj = new UserModel();
     //ID確認
     $result = $obj->GETUserAdd($ActType, $Key1, $Key51, $Key52);
     if ($result == 3) {
         $dbid_error = '入力されたものと同じIDがあります。再度入力してください。';
         include TEMP_INPUT;
     } elseif ($result == 0) {
         include HTML_SUCCESS;
     } else {
         $db_error = 'システムエラーです。開発者に連絡してください。';
         include TEMP_INPUT;
     }
 } else {