ヒカリ Q&A   - もっと聞きたい・もっと言いたい -
ホーム $text

"); } //HTMLフッター ←フッターは共通になったので使用してません。 function m_html_f(){ $c_date = date("Y"); echo("
ホーム 刊行書籍バイヤーズガイドオンライン資料請求光ブロードバンドフォーラム
レーザーエキスポWDMマトリクス個人情報について

Copyright © ${c_date} The Optronics Co., Ltd. All rights reserved.
"); } //タイトル function m_title($text,$text2){ echo("
${text} ${text2}

"); } //メッセージ function m_message($text){ echo("
$text
"); } //ナビゲーションボタン function m_button($text,$how,$url,$target){ if($how == 'back'){ $action = "javascript:history.go(-1);"; } elseif($how == 'href'){ $action = "javascript:location.href='$url';"; } else{ ; } echo("
"); } //エラー出力 function m_error($title,$text){ m_html_h('エラー'); m_message("$title"); m_message("$text"); m_button('前のページへ戻る','back','','_self'); m_html_f(); if ($con) pg_close($con); exit; } //エラーログ function m_errorlog($msg,$scr,$lin,$errmsg){ global $DOCUMENT_ROOT; $gdate = date("Y-m-d"); $gtime = date("H:i:s"); $lt = date("Y-m"); $file = $DOCUMENT_ROOT."/honda/adm/log/error".$lt.".log"; if(!fopen("$file","a")) die("logフォルダの存在・パーミッションを確認してください"); error_log("$gdate\t$gtime\t$scr\t$lin\t$msg\t$errmsg\n",3,$file); if ($con) pg_close($con); exit; } //euc2jis function m_euc2jis($text){ return i18n_convert($text,"JIS","EUC"); # $tmp = tempnam("/tmp", "xxx"); # $fp = popen("/usr/local/bin/nkf > $tmp", "w"); # fputs($fp, $text); # pclose($fp); # $text = implode(file($tmp), ""); # @unlink($tmp); # return $text; } //MIMEエンコード function m_mime($text){ return i18n_mime_header_encode($text); # $text = m_euc2jis($text); # $text = "=?iso-2022-jp?B?".base64_encode($text)."=?="; # return $text; } ?>