db = u4user_open(); $user_prof = bsc_get_user_profile($this->db,$p['uid'],'1'); u4user_close($this->db); /* if(empty($user_prof['email'])){ header("Location: ".BSC_BASE_URL."mail_reg/mail_send.php?uid=NULLGWDOCOMO&p[contents]=support"); exit; } */ $template =& loadTemplate( $p ); $template->setVariable('mail_addr',$user_prof['email']); if('1' != $p['type']){ $template->setCurrentBlock('__NewInq__'); $template->setVariable('genre',$p['genre']); $template->setVariable('title_val',$p['title']); $template->parseCurrentBlock(); } $template->setVariable('body',$p['body']); $template->setVariable('mail_post',htmlspecialchars($user_prof['email'])); if('1' != $p['type']){ $template->setCurrentBlock('__NewInqHid__'); $template->setVariable('genre_post',$p['genre']); $template->setVariable('title_post',htmlspecialchars(trim($p['title']))); //$template->setVariable('title_post',mb_convert_kana(htmlspecialchars(trim($p['title'])),"KV")); $template->setVariable('type_post','0'); $template->parseCurrentBlock(); }else{ $template->setVariable('type_post','1'); $template->setVariable('inq_id_post',$p['inq_id']); } if(!empty($p['p_no'])){ $template->setCurrentBlock('__ItemNo__'); $template->setVariable('p_no',$p['p_no']); $template->parseCurrentBlock(); } if(!empty($p['mode'])){ $template->setCurrentBlock('__Mode__'); $template->setVariable('mode',$p['mode']); $template->parseCurrentBlock(); } $template->setVariable('body_post',htmlspecialchars(trim($p['body']))); //$template->setVariable('body_post',mb_convert_kana(htmlspecialchars(trim($p['body'])),"KV")); $template->show(); } support_input( $p ); ?>