db->fetchArray("SELECT * FROM ".PX."media, ".PX."objects_prefs WHERE media_ref_id = '$rs[id]' AND obj_ref_type = 'exhibit' AND obj_ref_type = media_obj_type ORDER BY media_order ASC, media_id ASC"); // content text if (!$pages) return $s; $i = 1; $a = ''; $b = ''; $total = count($pages); // people will probably want to customize this up foreach ($pages as $go) { $title = ($go['media_title'] == '') ? '' : $go['media_title'] . ' '; $caption = ($go['media_caption'] == '') ? ' ' : $go['media_caption']; $png = ($go['media_mime'] == 'png') ? " class='png'" : ''; $a .= "\n$caption\n"; $x = getimagesize(DIRNAME . GIMGS . '/' . $go['media_file']); $off = ($i == 1) ? "style='display: block;'" : "style='display: none;'"; $next = ($i == $total) ? 1 : $i+1; $b .= "\n

{$title}
{$caption}

\n"; $i++; } // image $s .= "
\n"; $s .= $b; $s .= "
\n"; $s .= "\n\n"; // thumbs $s .= "
\n"; $s .= "
\n"; $s .= $a; $s .= "
\n"; $s .= "
"; $s .= $txt; $s .= "
\n"; // exhibition text make sure process html switch is off - use .css to define 'info' and 'info' class $s .= "
".$rs['content'] ; $s .= "
\n"; $s .= "
\n\n"; return $s; } function dynamicCSS() { return "#d-image img {border: 0px solid #f2f2f2; margin: 9px 0px 0px 0px; } #d-thumbs { margin: 0px 0px 0px 0px;} #d-thumbs img {padding: 0; border: none; height: 40px; width: 40px; } #d-image { }; #text { margin-left: 1em; float: right; width: 200px; }"; #info {width: 800; border: none;} } ?>