File: /home/httpd/html/tubeshemale.com/public_html/templates_OLD_JUNK/template.gallery_content.php
<div id="videoleft">
<div class="contents">
<div id="player">
<div id="photoGallery">
<?
$cacheName = "images".$rrow[record_num];
$cacheResult = getCache($cacheName);
if($cacheResult) {
$farray = $cacheResult;
}
else {
$result = mysql_query("SELECT images.* FROM images WHERE gallery = '$rrow[record_num]'");
while($row = mysql_fetch_assoc($result)) {
$farray[] = $row;
}
setCache($cacheName,$farray,$overall_cache_time);
}
if(is_array($farray)) {
foreach($farray as $row) {
?>
<div class="content-photoitem-thumb">
<a href="<? echo $gallery_url; ?>/<? echo $rrow[filename]; ?>/<? echo $row[filename]; ?>"><img class="img" src="<? echo $gallery_url; ?>/<? echo $rrow[filename]; ?>/thumbs/<? echo $row[filename]; ?>" alt="<? echo $row[title]; ?>"></a>
</div>
<?
}
} else {
echo "This gallery contains no images!";
}
?>
<!-- id="photoGallery" --></div>
<!-- id="player" --></div>
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4f994de2201f941a"></script>
<!-- AddThis Button END -->
<div id="vid_sponsor"><img src="/images/468.jpg" /></div>
<div class="title-wrapper">
<div class="title">
<div class="title-right">
<? echo $rrow[title]; ?> <!-- class="title-right" --></div>
<!-- class="title" --></div>
<div class="ratetxt">Rated:</div>
<? include($basepath.'/rating/_drawrating.php'); echo rating_bar($_GET[id],5); ?>
<!-- class="title-wrapper" --></div>
<div class="clear"></div>
<div id="player-text-box"><div id="player-desc">
<? echo $rrow[description]; ?>
<!-- id="player-desc" --></div>
<div id="player-info">
Categories:
<? /* Usage: buildChannels(record_num,mode);
mode can be 'channels' or 'search' */
echo buildChannels($rrow[record_num],'channels');
?>
<br>
Tags:
<? /* Usage: buildTags(string,'seperator');
seperator should be a string, such as ' ', or ','. By default, it uses a comma. */
echo buildTags($rrow[keywords]);
?>
<br>
<div id="player-bottom">
<span>Added on :<? echo $rrow[encoded_date]; ?></span>
<span>Views: <? echo $rrow[views]; ?></span>
<span>Submitted by: <a href='<? echo $basehttp; ?>/profiles/<? echo $rrow[submitter]; ?>.html'><? echo $rrow[username]; ?></a></span>
<!-- id="player-info-left" --></div>
<!-- id="player-info" --></div></div>
<div id="player-info-right">
<a href="<? echo $basehttp; ?>/action.php?action=add_favorites&id=<? echo $rrow[record_num]; ?>">ADD TO FAVORITES</a>
<!-- id="player-info-right" --></div>
<div class="clear"></div>
<!-- class="contents" --></div>
<!-- div id="left" --></div>
<div id="videoright" class="top_content">
<img src="/images/promo.jpg" class="add">
<img src="/images/promo.jpg" class="add">
<img src="/images/promo.jpg" class="add">
</div>
<div class="clear"></div>
<div class="full-title-wrapper">
<div class="title">
<div class="title-right">
Comments
<!-- class="title-right" --></div>
<!-- class="title" --></div>
<!-- class="title-wrapper" --></div>
<div class="clear"></div>
<div class="contents">
<div id="ajaxComments"><!-- comments will display here --></div>
<script language="javascript">
$("#ajaxComments").load("<? echo $basehttp; ?>/templates/template.ajax_comments.php?id=<? echo $_GET[id]; ?>");
function reloadComments() {
$("#ajaxComments").load("<? echo $basehttp; ?>/templates/template.ajax_comments.php?id=<? echo $_GET[id]; ?>");
}
</script>
<? if($_SESSION[userid]) { ?>
<form class="comments-form" id="myform" name="comments" action="javascript:get(document.getElementById('myform')); reloadComments();">
<input type='hidden' name='id' id='id' value='<? echo $rrow[record_num]; ?>'>
<span name="myspan" id="myspan"></span>
<textarea name="comment" id="comment"></textarea><br>
<input type="submit" name="button" id="button" value="Post Comment">
</form>
<? } else { ?>
<p>You must be logged in to post comments. Please <a href='/login.php'>login</a> or <a href='/signup.php'>signup (free)</a>.</p>
<? } ?>
<!-- class="contents" --></div>
<div class="full-title-wrapper">
<div class="title">
<div class="title-right">
Related Content
<!-- class="title-right" --></div>
<!-- class="title" --></div>
<!-- class="title-wrapper" --></div>
<?
/* Usage: showRelated("String To Search", Template To Use, ID To Exclude, Number To Display); */
showRelated("$rrow[keywords] $rrow[title]",$basepath.'/templates/template.content_item.php',$rrow[record_num],8);
?>
<!-- class="title-right" --></div>
<!-- class="title" --></div>
<!-- class="title-wrapper" --></div>