<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: random_center_photo_panel.php
| Version: 1.0
| Author: jikaka
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (file_exists(INFUSIONS."random_photo_center_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."random_photo_center_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."random_photo_center_panel/locale/English.php";
}
$result=dbquery(
"SELECT ta.album_id,album_title,photo_id,photo_title,photo_thumb2 FROM ".$db_prefix."photo_albums ta ".
"JOIN ".$db_prefix."photos USING (album_id) ORDER BY RAND() LIMIT 1"
);
//opentable($locale['rpc100']);
if (dbrows($result)!= "0") {
//echo "<br><table width='700' border='0' cellpadding='0' cellspacing='0'><tr>";
while($data = dbarray($result)) {
//echo "<td width='1%' align='center' valign='top' class='tbl'>";
echo "<style> p.pos_rel{position:relative;top:-16px;left:-8px;}</style>";
echo "<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='side'>";
echo "<p class='pos_rel'><img src='".PHOTOS."album_".$data['album_id']."/".$data['photo_thumb2']."' width='700' height='150' title='".$data['photo_title']."' alt='".$data['photo_title']."' border='0'></a></p>";
echo "<br /><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."'></a>";
//echo "<br />".$locale['rpc101']."<br /><a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."' title='".$data['album_title']."'>".$data['album_title']."</a>";
//echo "</td>";
}
//echo "</tr></table>";
} else {
echo $locale['rpc102'];
}
//closetable();
?>
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: random_center_photo_panel.php
| Version: 1.0
| Author: jikaka
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (file_exists(INFUSIONS."random_photo_center_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."random_photo_center_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."random_photo_center_panel/locale/English.php";
}
$result=dbquery(
"SELECT ta.album_id,album_title,photo_id,photo_title,photo_thumb2,photo_filename FROM ".$db_prefix."photo_albums ta ".
"JOIN ".$db_prefix."photos USING (album_id) ORDER BY RAND() LIMIT 1"
);
//opentable($locale['rpc100']);
if (dbrows($result)!= "0") {
//echo "<br><table width='700' border='0' cellpadding='0' cellspacing='0'><tr>";
while($data = dbarray($result)) {
//echo "<td width='1%' align='center' valign='top' class='tbl'>";
echo "<style> p.pos_rel{position:relative;top:-16px;left:-8px;}</style>";
echo "<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='side'>";
echo "<p class='pos_rel'><img src='".PHOTOS."album_".$data['album_id']."/".$data['photo_filename']."' title='".$data['photo_title']."' alt='".$data['photo_title']."' border='0'></a></p>";
echo "<br /><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."'></a>";
//echo "<br />".$locale['rpc101']."<br /><a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."' title='".$data['album_title']."'>".$data['album_title']."</a>";
//echo "</td>";
}
//echo "</tr></table>";
} else {
echo $locale['rpc102'];
}
//closetable();
?>
Category Forum
Panels and InfusionsLabels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions