Open Realty Flash Gallery / Galerie
Flash Gallery for Real Estate Software "Open Realty".
Load the SimpleViewer down.
Create a PHP-File (for example --> flash.php) with this Code and save in your Page Base-Folder:
<?php
require_once(dirname(__FILE__) . '/include/common.php');
$id = $_GET["id"];
if ($id){
$dbcontent = mysql_connect($db_server,$db_user,$db_password);
mysql_select_db($db_database, $dbcontent)
or die;
$result = mysql_query("SELECT * FROM `default_en_listingsimages`", $dbcontent);
if (!$result) {
exit;
} else{
print '<?xml version="1.0" encoding="UTF-8" ?>
<simpleviewerGallery maxImageWidth = "450" maxImageHeight = "450" textColor = "0xffffff" frameColor = "0xffffff" frameWidth = "5" stagePadding = "40" thumbnailColumns = "3" thumbnailRows = "4" navPosition = "left" title = "" enableRightClickOpen = "false" backgroundImagePath = "" imagePath = "images/listing_photos/" thumbPath = "images/listing_photos/">';
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
if ($row[6] == $id){
printf ("\n<image>\n<filename>%s</filename>\n<caption><![CDATA[%s]]></caption>\n</image>", $row[3], $row[5]);
}}
print "</simpleviewerGallery>";
mysql_close($dbcontent);
}
}
?>
Add Javascript swfobject .js to your Template. Add a HTML-Code to listing_detail_.....html :
<div id="flashcontent" style=""></div>
<script type="text/javascript">
var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "0", "#88909B");
fo.addVariable("xmlDataPath", "flash.php?id={listingid}");
fo.write("flashcontent");
</script>
Finish.

Neueste Kommentare
vor 1 Tag 9 Stunden
vor 2 Tage 15 Stunden
vor 2 Tage 20 Stunden
vor 4 Tage 18 Stunden
vor 5 Tage 15 Stunden
vor 1 Woche 13 Stunden
vor 1 Woche 1 Tag
vor 1 Woche 2 Tage
vor 1 Woche 2 Tage
vor 1 Woche 2 Tage