<div class="ss_frame_preview">
This preview is designed to show the frame image for the style selected above. <br/>
For a full preview showing thumbnails and your images, save this record.<br/><br/>

<?php
if (!empty($rdata['Style'])) {
     $style_rn = $rdata['Style'];
} elseif (!empty($_POST['data']['Slideshows'][$selected_rn]['Style'])) {
     $style_rn = $_POST['data']['Slideshows'][$selected_rn]['Style'];
}
if (empty($style_rn)) $style_rn = 2;

$preview_img = get_field_val('Slideshow_Styles','Preview_Image',"record_number = '$style_rn'");
?>

<img src="<?php print SC_STORE_DIR_DYN."/$preview_img" ?>" alt="" />
</div>