//2022/01/26 期待値以外はエラー if($_GET['kind'] != "" && !preg_match("/^[0-3]+$/", htmlspecialchars($_GET['kind']))){ header('Location: /english/error/error_handler.html'); } //2022/01/26 期待値以外はエラー if($_GET['disp'] != "" && !preg_match("/^[0-99]+$/", htmlspecialchars($_GET['disp']))){ header('Location: /english/error/error_handler.html'); } //指定の条件の一覧を表示 if($_GET['kind'] == 0){ //年代 $kind = "../xml/year.xml"; }else if($_GET['kind'] == 1){ //タイプ $kind = "../xml/type.xml"; }else if($_GET['kind'] == 2){ //ロケーション $kind = "../xml/area.xml"; }else{ $kind = "../xml/year.xml"; } $kind_xml = simplexml_load_file($kind); //プロジェクト情報の読み込み $url = "../xml/works.xml"; $xml = simplexml_load_file($url); $cnt = 0; //指定のプロジェクトとか年代など if($_GET['year'] != ""){ $now_contents = $_GET['year']; $behind_get = "year=".$_GET['year']; $next_get = "year=".$_GET['year']; $now_get = "year=".$_GET['year']; $year_flg = 1; }else if($_GET['type'] != ""){ $now_contents = $_GET['type']; $behind_get = "type=".$_GET['type']; $next_get = "type=".$_GET['type']; $now_get = "type=".$_GET['type']; $type_flg = 1; }else if($_GET['area'] != ""){ $now_contents = $_GET['area']; $behind_get = "area=".$_GET['area']; $next_get = "area=".$_GET['area']; $now_get = "area=".$_GET['area']; $area_flg = 1; }else{ $now_contents = "2012"; $behind_get = "year=2012"; $next_get = "year=2012"; $now_get = "year=2012"; $year_flg = 1; } $year_url = "../xml/year.xml"; $type_url = "../xml/type.xml"; $area_url = "../xml/area.xml"; $year_xml = simplexml_load_file($year_url); $type_xml = simplexml_load_file($type_url); $area_xml = simplexml_load_file($area_url); $cnt = 0; $cnt2 = 0; $cnt3 = 0; $disp_no = ""; $Alpha_b = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'); //HTML escape_XSS $kind_val=htmlspecialchars($_GET['kind'], ENT_QUOTES, 'UTF-8', false); $now_contents=htmlspecialchars($now_contents, ENT_QUOTES, 'UTF-8', false); $behind_get=htmlspecialchars($behind_get, ENT_QUOTES, 'UTF-8', false); $next_get=htmlspecialchars($next_get, ENT_QUOTES, 'UTF-8', false); $now_get=htmlspecialchars($now_get, ENT_QUOTES, 'UTF-8', false); //各カテゴリーでのまとめ //while($kind_xml->channel->item[$cnt2]->Element){ $cnt = 0; while($xml->channel->item[$cnt]->title){ //指定のプロジェクトとか年代など if($_GET['year'] != ""){ //if(substr_count($xml->channel->item[$cnt]->CompletionYear, $kind_xml->channel->item[$cnt2]->Element) > 0){ if(substr_count($xml->channel->item[$cnt]->CompletionYear, $_GET['year']) > 0){ $category[$cnt3][0] = $xml->channel->item[$cnt]->pno; $category[$cnt3][1] = $xml->channel->item[$cnt]->CompletionYear; $category[$cnt3][2] = $xml->channel->item[$cnt]->sortdate; $sort[$cnt3] = $xml->channel->item[$cnt]->sortdate; $cnt3 ++; } }else if($_GET['type'] != ""){ //if(substr_count($xml->channel->item[$cnt]->Type, $kind_xml->channel->item[$cnt2]->Element) > 0){ if(substr_count($xml->channel->item[$cnt]->Type, $_GET['type']) > 0){ $category[$cnt3][0] = $xml->channel->item[$cnt]->pno; $category[$cnt3][1] = $xml->channel->item[$cnt]->Type; $category[$cnt3][2] = $xml->channel->item[$cnt]->sortdate; $sort[$cnt3] = $xml->channel->item[$cnt]->sortdate; $cnt3 ++; } }else if($_GET['area'] != ""){ //if(substr_count($xml->channel->item[$cnt]->Area, $kind_xml->channel->item[$cnt2]->Element) > 0){ if(substr_count($xml->channel->item[$cnt]->Area, $_GET['area']) > 0){ $category[$cnt3][0] = $xml->channel->item[$cnt]->pno; $category[$cnt3][1] = $xml->channel->item[$cnt]->Area; $category[$cnt3][2] = $xml->channel->item[$cnt]->sortdate; $sort[$cnt3] = $xml->channel->item[$cnt]->sortdate; $cnt3 ++; } } $cnt ++; } //2022/01/26 該当のデータがなければエラー(ギャラリーから以外) if($cnt3 == 0 && $_GET['kind'] != 3){ header('Location: /english/error/error_handler.html'); } //$cnt2 ++; //} //ギャラリーから来た場合 if($_GET['kind'] == 3){ $a_cnt = 0; $cnt3 = 0; while($Alpha_b[$a_cnt]){ $cnt = 0; while($xml->channel->item[$cnt]->title){ if(substr($xml->channel->item[$cnt]->title,0,1) == strtolower($Alpha_b[$a_cnt]) || substr($xml->channel->item[$cnt]->title,0,1) == $Alpha_b[$a_cnt]){ $category[$cnt3][0] = $xml->channel->item[$cnt]->pno; $category[$cnt3][1] = $xml->channel->item[$cnt]->title; $category[$cnt3][2] = $xml->channel->item[$cnt]->sortdate; $sort[$cnt3] = $xml->channel->item[$cnt]->sortdate; $cnt3 ++; } $cnt ++; } $a_cnt ++; } } array_multisort($sort, SORT_DESC, SORT_STRING, $category); //echo $cnt3; $cnt = 0; //現在の番号を取得 while($category[$cnt][0]){ //表示プロジェクトの番号配列を保持 if($category[$cnt][0] == $_GET['id'] && $_GET['disp'] == "" && $disp_no == ""){ $disp_no = $cnt; }else if($_GET['disp'] != ""){ $disp_no = $_GET['disp']; } $cnt ++; } $behind_chg = 0; $next_chg = 0; //前と次の番号 /*if($_GET['id'] == $xml->channel->All){*/ $begind_no = $category[$disp_no-1][0]; //次のページの情報を取得 if($_GET['year'] != ""){ if(substr_count($_GET['year'], $category[$disp_no-1][1]) <= 0){ $behind_get = "year=".$category[$disp_no-1][1]; $behind_chg = 1; } }else if($_GET['type'] != ""){ if(substr_count($_GET['type'], $category[$disp_no-1][1]) <= 0 && substr_count($category[$disp_no-1][1], $_GET['type']) <= 0){ $behind_get = "type=".$category[$disp_no-1][1]; $behind_chg = 1; } }else if($_GET['area'] != ""){ if(substr_count($_GET['area'], $category[$disp_no-1][1]) <= 0){ $behind_get = "area=".$category[$disp_no-1][1]; $behind_chg = 1; } }else{ if($_GET['year'] != $category[$disp_no-1][1]){ $behind_get = "year=".$category[$disp_no-1][1]; $behind_chg = 1; } } $next_no = $category[$disp_no+1][0]; //次のページの情報を取得 if($_GET['year'] != ""){ if(substr_count($_GET['year'], $category[$disp_no+1][1]) <= 0){ $next_get = "year=".$category[$disp_no+1][1]; $next_chg = 1; } }else if($_GET['type'] != ""){ if(substr_count($_GET['type'], $category[$disp_no+1][1]) <= 0 && substr_count($category[$disp_no+1][1], $_GET['type']) <= 0){ $next_get = "type=".$category[$disp_no+1][1]; $next_chg = 1; } }else if($_GET['area'] != ""){ if(substr_count($_GET['area'], $category[$disp_no+1][1]) <= 0 && substr_count($category[$disp_no+1][1], $_GET['area']) <= 0){ $next_get = "area=".$category[$disp_no+1][1]; $next_chg = 1; } }else{ if($_GET['year'] != $category[$disp_no+1][1]){ $next_get = "year=".$category[$disp_no+1][1]; $next_chg = 1; } } $disp_cnt = 0; while($xml->channel->item[$disp_cnt]->title){ if($xml->channel->item[$disp_cnt]->pno == $_GET['id']){ break; } $disp_cnt ++; } //2022/01/26 該当のデータがなければエラー if($xml->channel->item[$disp_cnt]->title == ""){ header('Location: /english/error/error_handler.html'); } ?>
Home > Technology & Services > KAJIMA DESIGN > Works > echo $now_contents ?> > echo htmlspecialchars($bread_list, ENT_QUOTES, 'UTF-8'); ?>
echo nl2br(htmlspecialchars($xml->channel->item[$disp_cnt]->description, ENT_QUOTES, 'UTF-8')); ?>
Client | echo nl2br(htmlspecialchars($xml->channel->item[$disp_cnt]->Client, ENT_QUOTES, 'UTF-8')); ?> |
---|---|
Location | echo htmlspecialchars($xml->channel->item[$disp_cnt]->Location, ENT_QUOTES, 'UTF-8'); ?> |
Floor Area | echo $floor_disp ?> |
Floors | echo htmlspecialchars($xml->channel->item[$disp_cnt]->Floors, ENT_QUOTES, 'UTF-8'); ?> |
Cooperative Architect | echo htmlspecialchars($xml->channel->item[$disp_cnt]->CooperativeArchitect, ENT_QUOTES, 'UTF-8'); ?> |
Basic Design | echo htmlspecialchars($xml->channel->item[$disp_cnt]->BasicDesign, ENT_QUOTES, 'UTF-8'); ?> |
Design Supervision | echo htmlspecialchars($xml->channel->item[$disp_cnt]->DesignSupervision, ENT_QUOTES, 'UTF-8'); ?> |
Construction | echo htmlspecialchars($xml->channel->item[$disp_cnt]->Construction, ENT_QUOTES, 'UTF-8'); ?> |
Architect | echo htmlspecialchars($xml->channel->item[$disp_cnt]->Architect, ENT_QUOTES, 'UTF-8'); ?> |
Design Architect | echo htmlspecialchars($xml->channel->item[$disp_cnt]->DesignArchitect, ENT_QUOTES, 'UTF-8'); ?> |
Hall Design Cooperation | echo htmlspecialchars($xml->channel->item[$disp_cnt]->HallDesignCooperation, ENT_QUOTES, 'UTF-8'); ?> |
Concept Design | echo htmlspecialchars($xml->channel->item[$disp_cnt]->ConceptDesign, ENT_QUOTES, 'UTF-8'); ?> |
Associate Architects | echo htmlspecialchars($xml->channel->item[$disp_cnt]->AssociateArchitects, ENT_QUOTES, 'UTF-8'); ?> |
Design Supervisor Construction Manager | echo htmlspecialchars($xml->channel->item[$disp_cnt]->DesignSupervisorConstructionManager, ENT_QUOTES, 'UTF-8'); ?> |
Supervisor | echo htmlspecialchars($xml->channel->item[$disp_cnt]->Supervisor, ENT_QUOTES, 'UTF-8'); ?> |
Artist | echo htmlspecialchars($xml->channel->item[$disp_cnt]->Artist, ENT_QUOTES, 'UTF-8'); ?> |
Landscape | echo htmlspecialchars($xml->channel->item[$disp_cnt]->Landscape, ENT_QUOTES, 'UTF-8'); ?> |
Lighting Design | echo htmlspecialchars($xml->channel->item[$disp_cnt]->LightingDesign, ENT_QUOTES, 'UTF-8'); ?> |
Artwork | echo htmlspecialchars($xml->channel->item[$disp_cnt]->Artwork, ENT_QUOTES, 'UTF-8'); ?> |
Exhibition | echo htmlspecialchars($xml->channel->item[$disp_cnt]->Exhibition, ENT_QUOTES, 'UTF-8'); ?> |
Plant Design and Construction | echo htmlspecialchars($xml->channel->item[$disp_cnt]->PlantDesignAndConstruction, ENT_QUOTES, 'UTF-8'); ?> |
Sign Design | echo htmlspecialchars($xml->channel->item[$disp_cnt]->SignDesign, ENT_QUOTES, 'UTF-8'); ?> |
Completion | echo htmlspecialchars($xml->channel->item[$disp_cnt]->CompletionMonth, ENT_QUOTES, 'UTF-8'); ?> |
Photographer | echo htmlspecialchars($xml->channel->item[$disp_cnt]->Photographer, ENT_QUOTES, 'UTF-8'); ?> |
Home > Technology & Services > KAJIMA DESIGN > Works > echo $now_contents ?> > echo htmlspecialchars($bread_list, ENT_QUOTES, 'UTF-8'); ?>