$val){ $template->setCurrentBlock('__List__'); $template->setVariable('rpc_id',$val['nb_recipe_id']); $template->setVariable('ymd_val',$p['eat_ymd']); $template->setVariable('type_val',$p['type']); $template->setVariable('rcp_name',$val['nb_recipe_name']); $template->setVariable('amount',$val['amount']); $template->setVariable('cal',$val['calorie']); $template->parseCurrentBlock(); } if( 1 < $p['page']){ $template->setCurrentBlock('__PagePrev__'); $template->setVariable('page',($p['page'] - 1)); $template->setVariable('genre_val',$p['org_genre']); $template->setVariable('kind_val',$p['org_kind']); $template->setVariable('ymd_val',$p['eat_ymd']); $template->setVariable('type_val',$p['type']); $template->parseCurrentBlock(); } if( ($p['page'] * NB_UNKS_RCP_LIST) < $total){ $template->setCurrentBlock('__PageNext__'); $template->setVariable('page',($p['page'] + 1)); $template->setVariable('genre_val',$p['org_genre']); $template->setVariable('kind_val',$p['org_kind']); $template->setVariable('ymd_val',$p['eat_ymd']); $template->setVariable('type_val',$p['type']); $template->parseCurrentBlock(); } $template->setVariable('contents_name',NOTEBOOK_NAME); $template->show(); } nb_input_meal_list( $p ); ?>