db = cs4_open(); $this->user = u4user_open(); $template =& loadTemplate( $p ); /* //- 利用者会員登録確認 $db_member = u4user_open(); $user_data = bsc_get_user_profile($db_member,$p['uid'],'0'); u4user_close($db_member); */ //- 表示対象会員登録確認&情報取得 $user_prof = get_UserDetail($this->user,$p['id']); $template->setVariable('mem_nick_nm_title',$user_prof['mem_nick_nm']); $template->setVariable('mem_nick_nm_head',$user_prof['mem_nick_nm']); $template->setVariable('mem_nick_nm',$user_prof['mem_nick_nm']); //$template->setVariable('mem_rank',bsc_get_user_rank($user_data['mem_total_point'])); //$template->setVariable('cook_exp',$user_data['cook_exp'].get_unit($user_data['cook_exp_unit'])); /* if(!empty($user_prof['cook_exp'])){ $template->setCurrentBlock('__CookHistory__'); $template->setVariable('cook_exp',$user_prof['cook_exp']."年"); $template->parseCurrentBlock(); } if(!empty($user_prof['mem_comment'])){ $template->setCurrentBlock('__UserComment__'); $template->setVariable('mem_comment',$user_prof['mem_comment']); $template->parseCurrentBlock(); } */ $where = "mem_no=".$p['id']." and rcp_dlt=0 and rcp_gnr like '2%' order by update_datetime desc "; $ret = cs4_select($this->db,'bsc_r_new',$where); while($row = cs4_fetch_row($ret)){ $rcp_arr[] = $row; } for($i=0;$i < 3;$i++){ $template->setCurrentBlock('__RecipeList__'); $template->setVariable('recipe_id',$rcp_arr[$i]['uniq_id']); $template->setVariable('recipe_name',$rcp_arr[$i]['rcp_nm']); $template->parseCurrentBlock(); } if(count($rcp_arr) > 3){ $template->setCurrentBlock('__More__'); $template->setVariable('mem_no',$p['id']); $template->parseCurrentBlock(); }else{ $template->hideBlock('__More__'); } $template->setVariable('contents_top',BBS_NAME); $template->setVariable('site_top_url',SITE_TOP_URL); $template->show(); cs4_close($this->db); u4user_close($this->user); } bbs_userslist($p); ?>