$value) { $$name = $value; } }elseif(isset($_SESSION["logink"])){ $kojinval = Kojin::_view($KAIIN_ID); foreach($kojinval as $row){ foreach ($row as $key => $val){ $$key = $val; } } $c_name = $LOGIN_NAME; $c_kana = $kanamei; // $cd_yubin = ""; // $cd_ken = ""; // $j_shi = ""; // $j_ban = ""; $c_tel = $tel; $c_mail= $mail1; $c_mail_k= $mail1; $c_naiyo= "0"; $c_com = ""; // お問合せ情報取得 }else{ $c_name = ""; $c_kana = ""; $cd_yubin = ""; $cd_ken = ""; $j_shi = ""; $j_ban = ""; $c_tel = ""; $c_mail= ""; $c_mail_k= ""; $c_naiyo= "0"; $c_com = ""; } // 住所 県名 $kenval = Ken::_view(); $kenList_yu = ""; foreach($kenval as $row) { if($row[0] == $cd_ken){ $kenList_yu = $kenList_yu."\n"; }else{ $kenList_yu = $kenList_yu."\n"; } } // 郵便番号 住所 $kenData = ""; $j = 1; foreach($kenval as $row){ if($j == count($kenval)){ $kenData = $kenData."\"".$row[1]."\""; }else{ $kenData = $kenData."\"".$row[1]."\","; } $j++; } $KENALL = "[".$kenData."]"; // 問合せ内容 for($i=0; $i<5; $i++){ if($i == $c_naiyo){ $checked[$i] = "selected"; }else{ $checked[$i] = ""; } } // 検索 県名 $kenval = Kenlist::_view(); $kenList = ""; foreach($kenval as $row) { if($row[0] == "08"){ $kenList = $kenList."\n"; }else{ $kenList = $kenList."\n"; } } $kenList1 = $kenList; $kenList2 = $kenList1; // 検索 企業名 $kigyoval = Kigyo::_isList(); if($kigyoval <> 0){ $kigyoList = ""; foreach($kigyoval as $row) { $kigyoList = $kigyoList."\n"; } } ?>