foreach ($results as $result) { $localName = $result['Image']['localName']; $full_image = getFullURLFromFileName($localName); $Thumb_image = getThumbURLFromFileName($localName); $detail_author = $result['Creator']; $detail_author = explode(', ', $detail_author[0]); $detail_title = $result['Title']; $detail_country = $result['Country']; $detail_city = $result['City']; $detail_date_original = ""; $date_ = $result['Date Original']; if ($result['Date Original']['day']) { $detail_date_original .= $date_['day'] . " "; } if ($result['Date Original']['month']) { $detail_date_original .= getChMonth($date_['month']) . " "; } if ($result['Date Original']['year']) { $detail_date_original .= $date_['year']; } $detail_description = $result['Description']; $detail_description_french = $result['Description French']; $detail_resource_identifier = $result['Resource Identifier']; $detail_current_box = $result['Current Box']; $detail_original_format = $result['Original Format']; $detail_genre = $result['Genre']; echo "<div class='large-7 columns'>\n\t\t\t\t\t\t<div class='panel' id='detail_image'>\n\t\t\t\t\t\t\t<img src='{$full_image}' width='500' height='555' alt='Sakaly' />\n\t\t\t\t\t\t</div>\n\t\t\t\t \t </div>"; echo "<div class='large-5 columns'>\n\t\t\t\t\t\t\t<div class='panel'>\n\t\t\t\t\t\t\t\t<p class='detail_author'>" . $detail_author[1] . " " . $detail_author[0] . "</p>\n\t\t\t\t\t\t\t\t<p><strong>" . $detail_title . "</strong></p>\n\t\t\t\t\t\t\t\t<p><strong>" . $detail_city . " " . $detail_country . "</strong></p>\n\t\t\t\t\t\t\t\t<p><strong>" . $detail_date_original . "</strong></p>\n\n\t\t\t\t\t\t\t\t<p>" . $detail_description . "</p>\n\t\t\t\t\t\t\t\t<p>" . $detail_description_french . " </p>\n\n\t\t\t\t\t\t\t\t<p><strong>Unique Identifier:</strong> " . $detail_resource_identifier . "</p>\n\t\t\t\t\t\t\t\t<p><strong>Box Number:</strong> " . $detail_current_box . "</p>\n\n\t\t\t\t\t\t\t\t<p><strong>Format:</strong> " . $detail_original_format . "</p>\n\t\t\t\t\t\t\t\t<p><strong>Genre:</strong> " . $detail_genre . "</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>"; } echo "</div>"; }
foreach ($results as $result) { $localName = $result['Thumbnail']['localName']; $file = getFullURLFromFileName($localName); $image = getThumbURLFromFileName($localName); $home_author = $result['Photographer']; $home_title = $result['Title']; $home_date = $result['Date']; $home_location = $result['Location']; //$object_kid = getBetween($result['URL'],"/","/"); $home_URL = $result['URL']; @(print "<li>\n\t\t\t\t\t\t\t\t\t\t<img src='{$file}' width='1000' height='1131' />\n\t\t\t\t\t\t\t\t\t\t <div class='home_caption'>\n\t\t\t\t\t\t\t\t\t\t\t\t<p class='home_author'>{$home_author}</p>\n\t\t\t\t\t\t\t\t\t\t\t\t<p class='home_title'>{$home_title}</p>\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<div class='home_captionDate'><p>"); if ($home_date['day']) { echo $home_date['day'] . " "; } if ($home_date['month']) { echo getChMonth($home_date['month']) . " "; } if ($home_date['year']) { echo $home_date['year']; } echo "</p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{$home_location}</p>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<p id='viewFullRecord'><a href='{$home_URL}'>VIEW FULL RECORD</a></p>\n\t\t\t\t\t\t\t\t\t\t</div> \n\t\t\t\t\t\t\t\t\t</li>"; } ?> </ul> </div> </div> </div> <div class="large-5 columns"> <div class="panel">
$localName = $result['Thumbnail']['localName']; array_push($file, getFullURLFromFileName($localName)); array_push($image, getThumbURLFromFileName($localName)); array_push($pic_photographer, $result['Photographer']); array_push($pic_title, $result['Title']); array_push($pic_date, $result['Date']); array_push($pic_location, $result['Location']); } $pic_date_string = array(); foreach ($pic_date as $value) { $str_date = ""; if ($value['day']) { $str_date .= $value['day'] . " "; } if ($value['month']) { $str_date .= getChMonth($value['month']) . " "; } if ($value['year']) { $str_date .= $value['year']; } array_push($pic_date_string, $str_date); } $about_obejct = $_GET['title']; $about_obejct_array = getBettweenUppercase($about_obejct); $about_obejct_array = array_filter($about_obejct_array); $search = ""; end($about_obejct_array); $lastElementKey = key($about_obejct_array); foreach ($about_obejct_array as $k => $v) { if ($k == $lastElementKey) { $search .= $v . "%";
foreach ($list_Genre as $value) { $num = count_item_times($array_Genre, $value); array_push($count_genre, $num); } ?> <div class="row"> <div class="large-8 columns"> <div class="panel" id="search_results"> <div id="search_top"> <h5><strong><a href="search.php">SEARCH AGAIN</a></strong></h5> <h4 class="search_term">Showing Results For: "<?php if (@$_GET['ad_search_date']) { echo $_GET['ad_search_date']; } else { if (@$_GET['search_item']) { echo getChMonth($_GET['search_item']); } else { echo $search_item; } } ?> "</h4> <h5 class="search_results" id = 'number_search_results'><?php $num_results = count($results); /* if ($search_item != $_GET['ad_search_date'] ) { for($i = 0; $i < count($results) ; $i++) { if ($array_date_month[$i] != $_GET['ad_search_date']) { $num_results = $num_results - 1; } } }*/
@array_multisort($Date_Original, SORT_ASC, $Resource_Identifier, SORT_ASC, $results); foreach ($results as $result) { //var_dump($result['Date Original']); //var_dump($result['Resource Identifier']); $localName = $result['Image']['localName']; $file = getFullURLFromFileName($localName); $image = getThumbURLFromFileName($localName); $phpoto_grapher = $result['Creator']['0']; $phpoto_grapher_arr = explode(",", $phpoto_grapher); $phpoto_grapher = $phpoto_grapher_arr[1] . "," . $phpoto_grapher_arr[0]; $str_date = ""; if ($result['Date Original']['day']) { $str_date .= $result['Date Original']['day'] . " "; } if ($result['Date Original']['month']) { $str_date .= getChMonth($result['Date Original']['month']) . " "; } if ($result['Date Original']['year']) { $str_date .= $result['Date Original']['year']; } $date_original = $str_date; $str_location = ""; if ($result['City']) { $str_location .= $result['City'] . ", "; } if ($result['Date Original']['month']) { $str_location .= $result['Country']; } $city_country = $str_location; $title = $result['Title']; $date_range = $result['Date Range'];