queryAll($sql); if($cont_list){ foreach($cont_list as $key => $val ){ $ct_list[$val["ctryid"]] = $val["name"]; } } */ mb_language( "JA" ); mb_internal_encoding( "UTF-8" ); if( $list1 ){ $count++; foreach( $list1 as $key => $val ){ $m_list[$val->id]["releasedttm"] = $val->releasedttm; $search_arr[$val->id] = $val->siteid; $m_list[$val->id]["siteid"] = $val->siteid; $list[$count]["title"] = $val->title; $list[$count]["mt_url"] = $val->mt_url; $list[$count]["releasedttm"] = $val->releasedttm; $list[$count]["releasedttm2"] = $val->releasedttm2; $list_year = $val->releasedttm; $list_year_arr[$list_year] = $list_year; $list[$count]["mt_flag"] = 1; $list[$count]["site_flag"] = 1; $j_type = ""; $j_type2 = ""; $money = ""; if( $val->project_url != 'http://'){ $list[$count]["mt_url2"] = $val->project_url; } $list[$count]["text3"] = $val->project_classification; if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_self; } else { $list[$count]["text2"] = $val->project_classification_self; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_itaku; } else { $list[$count]["text2"] = $val->project_classification_itaku; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_josei; } else { $list[$count]["text2"] = $val->project_classification_josei; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_others; } else { $list[$count]["text2"] = $val->project_classification_others; } $list[$count]["text2"] = htmlspecialchars_decode($list[$count]["text2"]); $list[$count]["text4"] = $val->project_what_year; $list[$count]["text5"] = $val->project_year_expenses; $list[$count]["finish"] = $val->finish; //助成先タイプ $j_type = $val->project_grant_type; $j_type2 = $val->project_classification; $money = $val->project_year_expenses; $project_place = $val->project_place; if( $form["word"] ){ if( !mb_ereg($form["word"], $list[$count]["title"])){ unset($list[$count]); continue; } } if( $form["s"]){ $flag = false; foreach($form["s"] as $k => $v){ if( $v == "general"){ $flag = true; } } if( !$flag ){ unset($list[$count]); continue; } } if(is_numeric($form["fy"]) and is_numeric($form["ty"]) and $form["fy"]==$form["ty"]){ if( $list[$count]["releasedttm"] >= $form["fy"] and $list[$count]["releasedttm"] <= $form["ty"] ){ } else { unset($list[$count]); continue; } } else { if(is_numeric($form["fy"])){ if( $list[$count]["releasedttm"] >= $form["fy"] ){ } else { unset($list[$count]); continue; } } if(is_numeric($form["ty"])){ if( $form["ty"] and $list[$count]["releasedttm"] <= $form["ty"] ){ } else { unset($list[$count]); continue; } } } if( $form["jc"]){ $l1 = explode(",",$project_place); $flag = false; foreach($form["jc"] as $k => $v ){ foreach( $l1 as $k2 => $v2 ){ if($search_jc_arr[$v] == $v2 ){ $flag = true; break; } } } if(!$flag){ unset($list[$count]); continue; } } if( $form["jk"] == 1){ $l1 = explode(",",$j_type2); $flag = false; foreach( $l1 as $k2 => $v2 ){ if($v2 == "自主" ){ $flag = true; break; } } if(!$flag){ unset($list[$count]); continue; } } elseif($form["jk"] == 2){ $l1 = explode(",",$j_type2); $flag = false; foreach( $l1 as $k2 => $v2 ){ if($v2 == "助成" ){ $flag = true; break; } } if(!$flag){ unset($list[$count]); continue; } } if( $form["yo"]){ $flag = false; foreach($form["yo"] as $k => $v ){ if($v==1){ if($money <= 5000000){ $flag = true; break; } } if($v==2){ if($money >= 5000000 and $money <= 10000000 ){ $flag = true; break; } } if($v==3){ if($money >= 10000000 and $money <= 15000000 ){ $flag = true; break; } } if($v==4){ if($money >= 15000000 and $money <= 20000000 ){ $flag = true; break; } } if($v==5){ if($money >= 20000000 ){ $flag = true; break; } } } if( !$flag ){ unset($list[$count]); continue; } } if($form["gl"] and !$form["gl2"]){ unset($list[$count]); continue; } if($form["gl2"]){ $q_gl = ""; foreach($form["gl2"] as $k => $v ){ if(!is_numeric($v)){ $q_gl[] = $v; } } if($q_gl){ $cate = ""; $cate = explode( "/" , $val->siteid); $flag = false; if($cate){ foreach($q_gl as $k => $v ){ foreach( $cate as $k2 => $v2 ){ if( $v == $v2 ){ $flag = true; } } } } if( !$flag ){ unset($list[$count]); continue; } } } $count++; } } if( $list2 ){ foreach( $list2 as $key => $val ){ $m_list2[$val->id]["releasedttm"] = $val->releasedttm; $search_arr[$val->id] = $val->siteid; $m_list2[$val->id]["siteid"] = $val->siteid; $list[$count]["title"] = $val->title; $list[$count]["mt_url"] = $val->mt_url; $list[$count]["releasedttm"] = $val->releasedttm; $list[$count]["releasedttm2"] = $val->releasedttm2; $list_year = $val->releasedttm; $list_year_arr[$list_year] = $list_year; $list[$count]["site_flag"] = 2; $list[$count]["mt_flag"] = 1; $j_type = ""; $j_type2 = ""; $money = ""; if( $val->project_url != 'http://'){ $list[$count]["mt_url2"] = $val->project_url; } $list[$count]["text3"] = $val->project_classification; if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_self; } else { $list[$count]["text2"] = $val->project_classification_self; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_itaku; } else { $list[$count]["text2"] = $val->project_classification_itaku; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_josei; } else { $list[$count]["text2"] = $val->project_classification_josei; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_others; } else { $list[$count]["text2"] = $val->project_classification_others; } $list[$count]["text2"] = htmlspecialchars_decode($list[$count]["text2"]); $list[$count]["text4"] = $val->project_what_year; $list[$count]["text5"] = $val->project_year_expenses; $list[$count]["finish"] = $val->finish; //助成先タイプ $j_type = $val->project_grant_type; $j_type2 = $val->project_classification; $money = $val->project_year_expenses; $project_place = $val->project_place; if( $form["word"] ){ if( !mb_ereg($form["word"], $list[$count]["title"])){ unset($list[$count]); continue; } } if( $form["s"]){ $flag = false; foreach($form["s"] as $k => $v){ if( $v == "sjcff"){ $flag = true; } } if( !$flag ){ unset($list[$count]); continue; } } if(is_numeric($form["fy"]) and is_numeric($form["ty"]) and $form["fy"]==$form["ty"]){ if( $list[$count]["releasedttm"] >= $form["fy"] and $list[$count]["releasedttm"] <= $form["ty"] ){ } else { unset($list[$count]); continue; } } else { if(is_numeric($form["fy"])){ if( $list[$count]["releasedttm"] >= $form["fy"] ){ } else { unset($list[$count]); continue; } } if(is_numeric($form["ty"])){ if( $form["ty"] and $list[$count]["releasedttm"] <= $form["ty"] ){ } else { unset($list[$count]); continue; } } } if( $form["jc"]){ $l1 = explode(",",$project_place); $flag = false; foreach($form["jc"] as $k => $v ){ foreach( $l1 as $k2 => $v2 ){ if($search_jc_arr[$v] == $v2 ){ $flag = true; break; } } } if(!$flag){ unset($list[$count]); continue; } } if( $form["jk"] == 1){ $l1 = explode(",",$j_type2); $flag = false; foreach( $l1 as $k2 => $v2 ){ if($v2 == "自主" ){ $flag = true; break; } } if(!$flag){ unset($list[$count]); continue; } } elseif($form["jk"] == 2){ $l1 = explode(",",$j_type2); $flag = false; foreach( $l1 as $k2 => $v2 ){ if($v2 == "助成" ){ $flag = true; break; } } if(!$flag){ unset($list[$count]); continue; } } if( $form["yo"]){ $flag = false; foreach($form["yo"] as $k => $v ){ if($v==1){ if($money <= 5000000){ $flag = true; break; } } if($v==2){ if($money >= 5000000 and $money <= 10000000 ){ $flag = true; break; } } if($v==3){ if($money >= 10000000 and $money <= 15000000 ){ $flag = true; break; } } if($v==4){ if($money >= 15000000 and $money <= 20000000 ){ $flag = true; break; } } if($v==5){ if($money >= 20000000 ){ $flag = true; break; } } } if( !$flag ){ unset($list[$count]); continue; } } if($form["gl"] and !$form["gl2"]){ unset($list[$count]); continue; } if($form["gl2"]){ $q_gl = ""; foreach($form["gl2"] as $k => $v ){ if(!is_numeric($v)){ $q_gl[] = $v; } } if($q_gl){ $cate = ""; $cate = explode( "/" , $val->siteid); $flag = false; if($cate){ foreach($q_gl as $k => $v ){ foreach( $cate as $k2 => $v2 ){ if( $v == $v2 ){ $flag = true; } } } } if( !$flag ){ unset($list[$count]); continue; } } } $count++; } } if( $list3 ){ foreach( $list3 as $key => $val ){ $m_list3[$val->id]["releasedttm"] = $val->releasedttm; $search_arr[$val->id] = $val->siteid; $m_list3[$val->id]["siteid"] = $val->siteid; $list[$count]["title"] = $val->title; $list[$count]["mt_url"] = $val->mt_url; $list[$count]["releasedttm"] = $val->releasedttm; $list[$count]["releasedttm2"] = $val->releasedttm2; $list_year = $val->releasedttm; $list_year_arr[$list_year] = $list_year; $list[$count]["site_flag"] = 3; $list[$count]["mt_flag"] = 1; $j_type = ""; $j_type2 = ""; $money = ""; if( $val->project_url != 'http://'){ $list[$count]["mt_url2"] = $val->project_url; } $list[$count]["text3"] = $val->project_classification; if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_self; } else { $list[$count]["text2"] = $val->project_classification_self; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_itaku; } else { $list[$count]["text2"] = $val->project_classification_itaku; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_josei; } else { $list[$count]["text2"] = $val->project_classification_josei; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_others; } else { $list[$count]["text2"] = $val->project_classification_others; } $list[$count]["text2"] = htmlspecialchars_decode($list[$count]["text2"]); $list[$count]["text4"] = $val->project_what_year; $list[$count]["text5"] = $val->project_year_expenses; $list[$count]["finish"] = $val->finish; //助成先タイプ $j_type = $val->project_grant_type; $j_type2 = $val->project_classification; $money = $val->project_year_expenses; $project_place = $val->project_place; if( $form["word"] ){ if( !mb_ereg($form["word"], $list[$count]["title"])){ unset($list[$count]); continue; } } if( $form["s"]){ $flag = false; foreach($form["s"] as $k => $v){ if( $v == "scef"){ $flag = true; } } if( !$flag ){ unset($list[$count]); continue; } } if(is_numeric($form["fy"]) and is_numeric($form["ty"]) and $form["fy"]==$form["ty"]){ if( $list[$count]["releasedttm"] >= $form["fy"] and $list[$count]["releasedttm"] <= $form["ty"] ){ } else { unset($list[$count]); continue; } } else { if(is_numeric($form["fy"])){ if( $list[$count]["releasedttm"] >= $form["fy"] ){ } else { unset($list[$count]); continue; } } if(is_numeric($form["ty"])){ if( $form["ty"] and $list[$count]["releasedttm"] <= $form["ty"] ){ } else { unset($list[$count]); continue; } } } if( $form["jc"]){ $l1 = explode(",",$project_place); $flag = false; foreach($form["jc"] as $k => $v ){ foreach( $l1 as $k2 => $v2 ){ if($search_jc_arr[$v] == $v2 ){ $flag = true; break; } } } if(!$flag){ unset($list[$count]); continue; } } if( $form["jk"] == 1){ $l1 = explode(",",$j_type2); $flag = false; foreach( $l1 as $k2 => $v2 ){ if($v2 == "自主" ){ $flag = true; break; } } if(!$flag){ unset($list[$count]); continue; } } elseif($form["jk"] == 2){ $l1 = explode(",",$j_type2); $flag = false; foreach( $l1 as $k2 => $v2 ){ if($v2 == "助成" ){ $flag = true; break; } } if(!$flag){ unset($list[$count]); continue; } } if( $form["yo"]){ $flag = false; foreach($form["yo"] as $k => $v ){ if($v==1){ if($money <= 5000000){ $flag = true; break; } } if($v==2){ if($money >= 5000000 and $money <= 10000000 ){ $flag = true; break; } } if($v==3){ if($money >= 10000000 and $money <= 15000000 ){ $flag = true; break; } } if($v==4){ if($money >= 15000000 and $money <= 20000000 ){ $flag = true; break; } } if($v==5){ if($money >= 20000000 ){ $flag = true; break; } } } if( !$flag ){ unset($list[$count]); continue; } } if($form["gl"] or $form["gl2"]){ unset($list[$count]); continue; } if($form["gl2"]){ $q_gl = ""; foreach($form["gl2"] as $k => $v ){ if(!is_numeric($v)){ $q_gl[] = $v; } } if($q_gl){ $cate = ""; $cate = explode( "/" , $val->siteid); $flag = false; if($cate){ foreach($q_gl as $k => $v ){ foreach( $cate as $k2 => $v2 ){ if( $v == $v2 ){ $flag = true; } } } } if( !$flag ){ unset($list[$count]); continue; } } } $count++; } } //(笹川汎アジア基金) if( $list4 ){ foreach( $list4 as $key => $val ){ $m_list4[$val->id]["releasedttm"] = $val->releasedttm; $search_arr[$val->id] = $val->siteid; $m_list4[$val->id]["siteid"] = $val->siteid; $list[$count]["title"] = $val->title; $list[$count]["mt_url"] = $val->mt_url; $list[$count]["releasedttm"] = $val->releasedttm; $list[$count]["releasedttm2"] = $val->releasedttm2; $list_year = $val->releasedttm; $list_year_arr[$list_year] = $list_year; $list[$count]["site_flag"] = 4; $list[$count]["mt_flag"] = 1; $j_type = ""; $j_type2 = ""; $money = ""; if( $val->project_url != 'http://'){ $list[$count]["mt_url2"] = $val->project_url; } $list[$count]["text3"] = $val->project_classification; if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_self; } else { $list[$count]["text2"] = $val->project_classification_self; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_itaku; } else { $list[$count]["text2"] = $val->project_classification_itaku; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_josei; } else { $list[$count]["text2"] = $val->project_classification_josei; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_others; } else { $list[$count]["text2"] = $val->project_classification_others; } $list[$count]["text2"] = htmlspecialchars_decode($list[$count]["text2"]); $list[$count]["text4"] = $val->project_what_year; $list[$count]["text5"] = $val->project_year_expenses; $list[$count]["finish"] = $val->finish; //助成先タイプ $j_type = $val->project_grant_type; $j_type2 = $val->project_classification; $money = $val->project_year_expenses; $project_place = $val->project_place; if( $form["word"] ){ if( !mb_ereg($form["word"], $list[$count]["title"])){ unset($list[$count]); continue; } } if( $form["s"]){ $flag = false; foreach($form["s"] as $k => $v){ if( $v == "spaf"){ $flag = true; } } if( !$flag ){ unset($list[$count]); continue; } } if(is_numeric($form["fy"]) and is_numeric($form["ty"]) and $form["fy"]==$form["ty"]){ if( $list[$count]["releasedttm"] >= $form["fy"] and $list[$count]["releasedttm"] <= $form["ty"] ){ } else { unset($list[$count]); continue; } } else { if(is_numeric($form["fy"])){ if( $list[$count]["releasedttm"] >= $form["fy"] ){ } else { unset($list[$count]); continue; } } if(is_numeric($form["ty"])){ if( $form["ty"] and $list[$count]["releasedttm"] <= $form["ty"] ){ } else { unset($list[$count]); continue; } } } if( $form["jc"]){ $l1 = explode(",",$project_place); $flag = false; foreach($form["jc"] as $k => $v ){ foreach( $l1 as $k2 => $v2 ){ if($search_jc_arr[$v] == $v2 ){ $flag = true; break; } } } if(!$flag){ unset($list[$count]); continue; } } if( $form["jk"] == 1){ $l1 = explode(",",$j_type2); $flag = false; foreach( $l1 as $k2 => $v2 ){ if($v2 == "自主" ){ $flag = true; break; } } if(!$flag){ unset($list[$count]); continue; } } elseif($form["jk"] == 2){ $l1 = explode(",",$j_type2); $flag = false; foreach( $l1 as $k2 => $v2 ){ if($v2 == "助成" ){ $flag = true; break; } } if(!$flag){ unset($list[$count]); continue; } } if( $form["yo"]){ $flag = false; foreach($form["yo"] as $k => $v ){ if($v==1){ if($money <= 5000000){ $flag = true; break; } } if($v==2){ if($money >= 5000000 and $money <= 10000000 ){ $flag = true; break; } } if($v==3){ if($money >= 10000000 and $money <= 15000000 ){ $flag = true; break; } } if($v==4){ if($money >= 15000000 and $money <= 20000000 ){ $flag = true; break; } } if($v==5){ if($money >= 20000000 ){ $flag = true; break; } } } if( !$flag ){ unset($list[$count]); continue; } } if($form["gl"] and !$form["gl2"]){ unset($list[$count]); continue; } if($form["gl2"]){ $q_gl = ""; foreach($form["gl2"] as $k => $v ){ if(!is_numeric($v)){ $q_gl[] = $v; } } if($q_gl){ $cate = ""; $cate = explode( "/" , $val->siteid); $flag = false; if($cate){ foreach($q_gl as $k => $v ){ foreach( $cate as $k2 => $v2 ){ if( $v == $v2 ){ $flag = true; } } } } if( !$flag ){ unset($list[$count]); continue; } } } $count++; } } //(笹川太平洋島嶼国基金) if( $list5 ){ foreach( $list5 as $key => $val ){ $m_list5[$val->id]["releasedttm"] = $val->releasedttm; $search_arr[$val->id] = $val->siteid; $m_list5[$val->id]["siteid"] = $val->siteid; $list[$count]["title"] = $val->title; $list[$count]["mt_url"] = $val->mt_url; $list[$count]["releasedttm"] = $val->releasedttm; $list[$count]["releasedttm2"] = $val->releasedttm2; $list_year = $val->releasedttm; $list_year_arr[$list_year] = $list_year; $list[$count]["site_flag"] = 5; $list[$count]["mt_flag"] = 1; $j_type = ""; $j_type2 = ""; $money = ""; if( $val->project_url != 'http://'){ $list[$count]["mt_url2"] = $val->project_url; } $list[$count]["text3"] = $val->project_classification; if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_self; } else { $list[$count]["text2"] = $val->project_classification_self; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_itaku; } else { $list[$count]["text2"] = $val->project_classification_itaku; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_josei; } else { $list[$count]["text2"] = $val->project_classification_josei; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_others; } else { $list[$count]["text2"] = $val->project_classification_others; } $list[$count]["text2"] = htmlspecialchars_decode($list[$count]["text2"]); $list[$count]["text4"] = $val->project_what_year; $list[$count]["text5"] = $val->project_year_expenses; $list[$count]["finish"] = $val->finish; //助成先タイプ $j_type = $val->project_grant_type; $j_type2 = $val->project_classification; $money = $val->project_year_expenses; $project_place = $val->project_place; if( $form["word"] ){ if( !mb_ereg($form["word"], $list[$count]["title"])){ unset($list[$count]); continue; } } if( $form["s"]){ $flag = false; foreach($form["s"] as $k => $v){ if( $v == "spinf"){ $flag = true; } } if( !$flag ){ unset($list[$count]); continue; } } if(is_numeric($form["fy"]) and is_numeric($form["ty"]) and $form["fy"]==$form["ty"]){ if( $list[$count]["releasedttm"] >= $form["fy"] and $list[$count]["releasedttm"] <= $form["ty"] ){ } else { unset($list[$count]); continue; } } else { if(is_numeric($form["fy"])){ if( $list[$count]["releasedttm"] >= $form["fy"] ){ } else { unset($list[$count]); continue; } } if(is_numeric($form["ty"])){ if( $form["ty"] and $list[$count]["releasedttm"] <= $form["ty"] ){ } else { unset($list[$count]); continue; } } } if( $form["jc"]){ $l1 = explode(",",$project_place); $flag = false; foreach($form["jc"] as $k => $v ){ foreach( $l1 as $k2 => $v2 ){ if($search_jc_arr[$v] == $v2 ){ $flag = true; break; } } } if(!$flag){ unset($list[$count]); continue; } } if( $form["jk"] == 1){ $l1 = explode(",",$j_type2); $flag = false; foreach( $l1 as $k2 => $v2 ){ if($v2 == "自主" ){ $flag = true; break; } } if(!$flag){ unset($list[$count]); continue; } } elseif($form["jk"] == 2){ $l1 = explode(",",$j_type2); $flag = false; foreach( $l1 as $k2 => $v2 ){ if($v2 == "助成" ){ $flag = true; break; } } if(!$flag){ unset($list[$count]); continue; } } if( $form["yo"]){ $flag = false; foreach($form["yo"] as $k => $v ){ if($v==1){ if($money <= 5000000){ $flag = true; break; } } if($v==2){ if($money >= 5000000 and $money <= 10000000 ){ $flag = true; break; } } if($v==3){ if($money >= 10000000 and $money <= 15000000 ){ $flag = true; break; } } if($v==4){ if($money >= 15000000 and $money <= 20000000 ){ $flag = true; break; } } if($v==5){ if($money >= 20000000 ){ $flag = true; break; } } } if( !$flag ){ unset($list[$count]); continue; } } if($form["gl"] and !$form["gl2"]){ unset($list[$count]); continue; } if($form["gl2"]){ $q_gl = ""; foreach($form["gl2"] as $k => $v ){ if(!is_numeric($v)){ $q_gl[] = $v; } } if($q_gl){ $cate = ""; $cate = explode( "/" , $val->siteid); $flag = false; if($cate){ foreach($q_gl as $k => $v ){ foreach( $cate as $k2 => $v2 ){ if( $v == $v2 ){ $flag = true; } } } } if( !$flag ){ unset($list[$count]); continue; } } } $count++; } } //笹川中東イスラム基金 if( $list6 ){ foreach( $list6 as $key => $val ){ $m_list6[$val->id]["releasedttm"] = $val->releasedttm; $search_arr[$val->id] = $val->siteid; $m_list6[$val->id]["siteid"] = $val->siteid; $list[$count]["title"] = $val->title; $list[$count]["mt_url"] = $val->mt_url; $list[$count]["releasedttm"] = $val->releasedttm; $list[$count]["releasedttm2"] = $val->releasedttm2; $list_year = $val->releasedttm; $list_year_arr[$list_year] = $list_year; $list[$count]["site_flag"] = 6; $list[$count]["mt_flag"] = 1; $j_type = ""; $j_type2 = ""; $money = ""; if( $val->project_url != 'http://'){ $list[$count]["mt_url2"] = $val->project_url; } $list[$count]["text3"] = $val->project_classification; if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_self; } else { $list[$count]["text2"] = $val->project_classification_self; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_itaku; } else { $list[$count]["text2"] = $val->project_classification_itaku; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_josei; } else { $list[$count]["text2"] = $val->project_classification_josei; } if( $list[$count]["text2"] ){ $list[$count]["text2"] .= $val->project_classification_others; } else { $list[$count]["text2"] = $val->project_classification_others; } $list[$count]["text2"] = htmlspecialchars_decode($list[$count]["text2"]); $list[$count]["text4"] = $val->project_what_year; $list[$count]["text5"] = $val->project_year_expenses; $list[$count]["finish"] = $val->finish; //助成先タイプ $j_type = $val->project_grant_type; $j_type2 = $val->project_classification; $money = $val->project_year_expenses; $project_place = $val->project_place; if( $form["word"] ){ if( !mb_ereg($form["word"], $list[$count]["title"])){ unset($list[$count]); continue; } } if( $form["s"]){ $flag = false; foreach($form["s"] as $k => $v){ if( $v == "smeif"){ $flag = true; } } if( !$flag ){ unset($list[$count]); continue; } } if(is_numeric($form["fy"]) and is_numeric($form["ty"]) and $form["fy"]==$form["ty"]){ if( $list[$count]["releasedttm"] >= $form["fy"] and $list[$count]["releasedttm"] <= $form["ty"] ){ } else { unset($list[$count]); continue; } } else { if(is_numeric($form["fy"])){ if( $list[$count]["releasedttm"] >= $form["fy"] ){ } else { unset($list[$count]); continue; } } if(is_numeric($form["ty"])){ if( $form["ty"] and $list[$count]["releasedttm"] <= $form["ty"] ){ } else { unset($list[$count]); continue; } } } if( $form["jc"]){ $l1 = explode(",",$project_place); $flag = false; foreach($form["jc"] as $k => $v ){ foreach( $l1 as $k2 => $v2 ){ if($search_jc_arr[$v] == $v2 ){ $flag = true; break; } } } if(!$flag){ unset($list[$count]); continue; } } if( $form["jk"] == 1){ $l1 = explode(",",$j_type2); $flag = false; foreach( $l1 as $k2 => $v2 ){ if($v2 == "自主" ){ $flag = true; break; } } if(!$flag){ unset($list[$count]); continue; } } elseif($form["jk"] == 2){ $l1 = explode(",",$j_type2); $flag = false; foreach( $l1 as $k2 => $v2 ){ if($v2 == "助成" ){ $flag = true; break; } } if(!$flag){ unset($list[$count]); continue; } } if( $form["yo"]){ $flag = false; foreach($form["yo"] as $k => $v ){ if($v==1){ if($money <= 5000000){ $flag = true; break; } } if($v==2){ if($money >= 5000000 and $money <= 10000000 ){ $flag = true; break; } } if($v==3){ if($money >= 10000000 and $money <= 15000000 ){ $flag = true; break; } } if($v==4){ if($money >= 15000000 and $money <= 20000000 ){ $flag = true; break; } } if($v==5){ if($money >= 20000000 ){ $flag = true; break; } } } if( !$flag ){ unset($list[$count]); continue; } } if($form["gl"] and !$form["gl2"]){ unset($list[$count]); continue; } if($form["gl2"]){ $q_gl = ""; foreach($form["gl2"] as $k => $v ){ if(!is_numeric($v)){ $q_gl[] = $v; } } if($q_gl){ $cate = ""; $cate = explode( "/" , $val->siteid); $flag = false; if($cate){ foreach($q_gl as $k => $v ){ foreach( $cate as $k2 => $v2 ){ if( $v == $v2 ){ $flag = true; } } } } if( !$flag ){ unset($list[$count]); continue; } } } $count++; } } //ページャーの調整 if( $_POST['ex'] == 'page' ){ //ページャーの作成 $max_page = ceil(count($list)/10) ; //1ページの表示数 $view_num = 10;//表示する数 //↓すでにこのページにいたら・・・ if( is_numeric($_POST['page'])){ $now_page = $_POST['page'];//$_POSTでもらった数字が現在のページ $start = ($now_page-1)*$view_num;//表示スタート数(何個目から表示するか?) } if( !is_numeric($now_page)){ $start = 0; $now_page = 1; } } ################## # /MT ################## //カテゴリーの作成 list($c1,$c2,$c3) = getProjyectsCategory($m_list); list($c2_1,$c2_2,$c2_3) = getProjyectsCategory($m_list2); //笹川汎アジア基金 list($c4_1,$c4_2,$c4_3) = getProjyectsCategory($m_list4); if($c4_2){ foreach( $c4_2 as $key => $val ){ asort($val); $c4_2[$key] = $val; } } if($c4_3){ foreach( $c4_3 as $key => $val ){ foreach( $val as $kk => $vv ){ asort($vv); //print_r($val); //exit; $c4_3[$key][$kk] = $vv; } } } //笹川太平洋島嶼国基金 list($c5_1,$c5_2,$c5_3) = getProjyectsCategory($m_list5); if($c5_2){ foreach( $c5_2 as $key => $val ){ asort($val); $c5_2[$key] = $val; } } if($c5_3){ foreach( $c5_3 as $key => $val ){ foreach( $val as $kk => $vv ){ asort($vv); //print_r($val); //exit; $c5_3[$key][$kk] = $vv; } } } //笹川中東イスラム基金 list($c6_1,$c6_2,$c6_3) = getProjyectsCategory($m_list6); if($c6_2){ foreach( $c6_2 as $key => $val ){ asort($val); $c6_2[$key] = $val; } } if($c6_3){ foreach( $c6_3 as $key => $val ){ foreach( $val as $kk => $vv ){ asort($vv); //print_r($val); //exit; $c6_3[$key][$kk] = $vv; } } } // if($c3){ foreach( $c3 as $key => $val ){ foreach( $val as $kk => $vv ){ asort($vv); //print_r($val); //exit; $c3[$key][$kk] = $vv; } } } if($c2){ foreach( $c2 as $key => $val ){ asort($val); $c2[$key] = $val; } } if($c2_2){ foreach( $c2_2 as $key => $val ){ asort($val); $c2_2[$key] = $val; } } if($c2_3){ foreach( $c2_3 as $key => $val ){ foreach( $val as $kk => $vv ){ asort($vv); //print_r($val); //exit; $c2_3[$key][$kk] = $vv; } } } // print_r($c3); ?> 事業の検索 | 笹川平和財団
  1. ホーム
  2. 事業紹介
  3. 事業の検索

事業の検索

SPFの一般事業、各基金の事業をキーワード、基本項目、重点支援分野(ガイドライン等)から検索することができます。基本項目のみ、重点支援分野検索のみ、また両方を組み合わせて検索することができます。

条件に合う事業はありませんでした。

フリーワードで検索する

条件を選んで検索する

基本項目を選ぶ

一般基金/基金
                 
             

地域
※Windowsでは「Ctrlキー」、Macは「commandキー」を押しながらクリックすると複数選択ができます。
事業区分
年度
From~
To    
実施年度事業費




重点支援分野(プログラム)を選ぶ

「一般事業と各基金の事業は、重点支援分野を定めた事業方針(ガイドライン等)に基づき事業を実施しています。 上記の「一般事業/基金」のカテゴリーから選択した項目を対象に、さらに事業方針から事業を絞り込み検索できます。


チェックをすべて外す

検索結果一覧

設定された検索条件
【一般基金/基金】 $v ){ if($l!=0){ echo "、"; } echo $search_s_arr[$v]; $l++; } ?>
【地域】 $v ){ if($l!=0){ echo "、"; } echo $search_jc_arr[$v]; $l++; } ?>
【事業区分】
【年度】FromTo
【実施年度事業費】 $v ){ if($l!=0){ echo "、"; } echo $search_yo_arr[$v]; $l++; } ?>
【重点支援分野(ガイドライン)】ガイドライン項目
= 2 ){ ?>
$val ){ $sort_data[$key] = $val["releasedttm"]; } array_multisort($sort_data, SORT_DESC, $list); while( $start < $finish ){ if( !$list[$start]["title"] ){ break; } if( $list[$start]["mt_flag"] == 1 ){ ?>

一般 日中 汎アジア 島嶼国 中東 中欧

"> ">
形態
事業費

形態
事業費

ページトップ