Execute($sql); if ( !$rs ) { //エラーが発生した場合、停止 $error_description = $db->ErrorMsg(); Exception(E002, '[Live Camera詳細取得SQL実行エラー]:' . $error_description . " : " . $sql); exit; } else { //正常終了 //データがあれば配列に格納 if (!$rs->EOF) { //recordsetの内容取得し、データ格納 $Show_Datetime = fncViewDate($rs->fields['update_datetime'],"Y/m/d"); $facilities_no = $rs->fields['facilities_no']; $Status = $rs->fields['status']; $Info_Text1 = ConvertTagNl2br($rs->fields['info_text1']); $Info_Text2 = ConvertTagNl2br($rs->fields['info_text2']); $Image_File[1] = $rs->fields['image_file1']; $Image_File[2] = $rs->fields['image_file2']; $Image_File[3] = $rs->fields['image_file3']; $Image_File[4] = $rs->fields['image_file4']; $Caption1 = $rs->fields['image_caption1']; $Caption2 = $rs->fields['image_caption2']; $Caption3 = $rs->fields['image_caption3']; $Caption4 = $rs->fields['image_caption4']; } else { //対象データがなければエラー扱い $err_message = ERR_MSG_NODATA_USER_PAGE; require(TEMPLATE_EXCEPTION); exit; } } //☆画像1?4 //登録済み画像ファイルがあればそのサムネイルを作成 for ($i=1; $i<=4; $i++){ if ($Image_File[$i]){ $img_thumb[$i] = ""; } else { $img_thumb[$i] = ""; } } //☆画像キャプション1?4 //キャプションがあるものはタグを付与 if ($Caption1){ $Caption1 = "

" . $Caption1 . "

"; } if ($Caption2){ $Caption2 = "

" . $Caption2 . "

"; } if ($Caption3){ $Caption3 = "

" . $Caption3 . "

"; } if ($Caption4){ $Caption4 = "

" . $Caption4 . "

"; } //============================================================================== // HTML出力 //============================================================================== //HTML require (LIVE_CAMERA_TEMPLATE_TYPE1); exit; ?>