'; print ' '; print ''; print 'FAMSI Home Icon   FAMSI Resources'; print '
'; print ''; if($record_cnt>=0) { echo '


'; echo '

'; echo '
'; echo '

Your selection(s) from the Schele Drawings Collection

'; for ($i=0; $i<$record_cnt; $i++) { $row = mysql_fetch_array($result); if($row['image_file_num']){ $k++; $image=trim($row['image_file_num']); $path_len = strlen($image); while ($path_len < 4) { $image = '0'.$image; $path_len = strlen($image); } //find position of the last / from image path $imageStart=strrpos($image,'/') + 1; //retrieve image name and length $imageName = substr($image,$imageStart); $im_len = strlen($imageName); //get path $plen = ($path_len - $im_len); $path = substr($image,0,$plen); //add tn for thumbnail $thumbnail="_tn_".$imageName; $image = $path . $thumbnail; } print ''; print ''; print ''; print '
'; print ''; if($row['site']) { $fields = array($row['site']); display_fields('Site',$fields,$search); } if($row['schele_number']) { $fields = array($row['schele_number']); display_fields('Schele Number',$fields,$search); } if($row['description']) { $fields = array($row['description']); display_fields('Description',$fields,$search); } if($row['current_location']) { $fields = array($row['current_location']); display_fields('Current Location',$fields,$search); } if($row['hieroglyph']) { print ''; } if($row['arch_feature']) { $fields = array($row['arch_feature']); display_fields('Architectural Feature',$fields,$search); } if($row['artifact']) { $fields = array($row['artifact']); display_fields('Artifact',$fields,$search); } if($row['chronological_era']) { $fields = array($row['chronological_era']); display_fields('Chronological Era',$fields,$search); } if($row['notes']) { $fields = array($row['notes']); display_fields('Notes',$fields,$search); } if($row['culture']) { $fields = array($row['culture']); display_fields('Culture',$fields,$search); } if($row['object_size']) { $fields = array($row['object_size']); display_fields('Object Size',$fields,$search); } if($row['icon_features']) { $fields = array($row['icon_features']); display_fields('Iconographic Features',$fields,$search); } if($row['publications']) { $fields = array($row['publications']); display_fields('Publications',$fields,$search); } if($row['url']) { $fields = array($row['url']); display_fields('URL Info',$fields,$search); } print '
Hieroglyph:  '; if($row['hieroglyph'] == 0) { $chg_city = 'No'; } else if($row['hieroglyph'] == 1) { $chg_city = 'Yes'; } else { print ''.$row['hieroglyph'] .''; } print $chg_city; print ' 
'; if($row['image_file_num']){ print ''; print 'Schele Image
'; print 'Click to view high resolution in a new window
'; } else { print 'No Image Available

deselect image'; print '
'; print '
'; } do_select_buttons($table); do_html_footer(); } else { echo '

'; echo 'FAMSI Research Materials

'; echo '

'; echo '

'; echo '
'; echo '


'; echo 'You have not made any selections.

'; echo 'Use Back button on your browser to continue.

'; echo '


'; } ?>