"; print_r($_SESSION); print ""; } // session_start(); $this->db = cs4_open(); $template =& loadTemplate( $p ); $template->setVariable('site_top_url',SITE_TOP_URL); $template->setVariable('amount',$_SESSION['param']['amount']); $template->setVariable('site_top_url',SITE_TOP_URL); $mat_list = ""; $unit_arr = get_select_unit_arr(); for($i=1;$i<=10;$i++){ if(!empty($_SESSION['param']['material'.$i])){ if(!empty($_SESSION['param']['amount'.$i]) || $_SESSION['param']['unit'.$i] == "4" || $_SESSION['param']['unit'.$i] == "5") { $mat_list .= "■材料".$i."
\n"; $mat_list .= htmlspecialchars($_SESSION['param']['material'.$i])."
\n"; $mat_list .= $_SESSION['param']['amount'.$i]."".$unit_arr[$_SESSION['param']['unit'.$i]]."
\n"; } } /* if(((array_key_exists('material'.$i,$_SESSION['param'])) and ($_SESSION['param']['material'.$i] != "")) and ((array_key_exists('amount'.$i,$_SESSION['param'])) and ($_SESSION['param']['amount'.$i] != "")) and ((array_key_exists('amount'.$i,$_SESSION['param'])) and ($_SESSION['param']['amount'.$i] != ""))) { $mat_list .= "■材料".$i."
\n"; $mat_list .= htmlspecialchars($_SESSION['param']['material'.$i])."
\n"; $mat_list .= $_SESSION['param']['amount'.$i]."".$unit_arr[$_SESSION['param']['unit'.$i]]."
\n"; } */ } $template->setVariable('mat_list',$mat_list); $template->setVariable('contents_top',BBS_NAME); $template->show(); cs4_close($this->db); } bbs_ingconf($p); ?>