1
You're looking for some 4images templates and styles? Then visit this thread to show websites with 4images templates to download.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
$result = $site_db->query('select cat_id,cat_name from 4images_categories where cat_id <> 60 and cat_id <> 61 order by cat_order');
$tab_head="<TABLE STYLE='width:auto;border:0px solid gray'>";
$tab_tail="</TABLE>";
$tab_body='';
$tdx=1;
$trs='<TR>';
$tre='</TR>';
$goo=0;
$cat_link='./categories.php?cat_id=';
//$row['cat_name']
$gscript='<script type="text/javascript"><!--
google_ad_client = "xxxx";
/* 336x280, created 5/13/09 */
google_ad_slot = "xxxx";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';
$cat_thum_img_border_color='#F5F5DC';
while ($row = mysql_fetch_assoc($result))
{
if($tdx==1)
{
$rlt = $site_db->query('select count(*) from 4images_images where cat_id='.$row['cat_id']);
$rw=mysql_fetch_row($rlt);
$rfolder=$row['cat_id'].'/';
$rfile=RandomFile($folder='./data/thumbnails/'.$rfolder, $extensions='jpg');
$img="<img onmouseover='zload(this)' onmouseout='bye()' style='border:1px solid ".$cat_thum_img_border_color."' alt='".$row['cat_name']."' src='".$rfile."'>";
if($goo==0)
{
//$tab_body=$tab_body.$trs."<td class='catAds' rowspan='3'><img style='border:1px dotted #CCCCCC' src='./data/farm_336x280.jpg'></td><td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>";
$tab_body=$tab_body.$trs."<td class='catAds' rowspan='3'>".$gscript."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>";
$goo=1;
}
else
{
$tab_body=$tab_body."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>";
}
}
if($tdx<4 && $tdx>1)
{
$rfolder=$row['cat_id'].'/';
$rfile=RandomFile($folder='./data/thumbnails/'.$rfolder, $extensions='jpg');
$img="<img onmouseover='zload(this)' onmouseout='bye()' style='border:1px solid ".$cat_thum_img_border_color."' alt='".$row['cat_name']."' src='".$rfile."'>";
$tab_body=$tab_body."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>";
}
if($tdx==4)
{
$rfolder=$row['cat_id'].'/';
$rfile=RandomFile($folder='./data/thumbnails/'.$rfolder, $extensions='jpg');
$img="<img onmouseover='zload(this)' onmouseout='bye()' style='border:1px solid ".$cat_thum_img_border_color."' alt='".$row['cat_name']."' src='".$rfile."'>";
/*
if($goo==0)
{
$tab_body=$tab_body."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td><td class='catthumb' rowspan='3'><img style='border:1px dotted #CCCCCC' src='./data/farm_336x280.jpg'></td>".$tre;
$goo=1;
}
else*/
{
$tab_body=$tab_body."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>".$tre;
}
$tdx=0;
}
$tdx=$tdx+1;
}