<?php
/***************************************************************************
* Product Name : Pointter PHP Content Management System
* Version : V 1.2
* Release Date : 01/02/11
* Copyright : (C) 2011 PangramSoft / Murat Cevik
* Program URL : http://www.pointter.com
* Company URL : http://www.pangramsoft.com
* Email Address : hide@address.com
***************************************************************************/
/****************************************************************************
Pointter PHP Content Management System is licensed under Creative Commons Attribution Non-commercial No Derivatives 3.0 Unported (by-nc-nd) License.
To view a copy of this license, (a) visit http://creativecommons.org/licenses/by-nc-nd/3.0/ or (b) send a letter to Creative Commons, 171 2nd Street,
Suite 300, San Francisco, California, 94105, USA.
You must not remove/modify/alter the copyright informations both visible and invisible forms in the source code and you must not remove/modify/alter
the copyright informations in the footer part of the script including the Pointter image (png format file), hard link and title tag.
Please contact the copyright holder PangramSoft / Murat Cevik for a commercial license to remove the copyright information in the footer part of the script.
*****************************************************************************/
require 'includes/settings_ini.php';
include 'includes/seo.php';
include 'includes/counter.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--This website has been created by Pointter PHP Content Management System and copyrighted by PangramSoft / Murat Cevik.
Please visit http://www.pointter.com for a FREE DOWNLOAD.-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
function showPic (whichpic) {
if (document.getElementById)
{
document.getElementById('placeholder').src = whichpic.href;
if (whichpic.id) {
document.getElementById('desc').childNodes[0].nodeValue = whichpic.id;
} else {
document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
}
return false;
}
else
{
return true;
}
}
</script>
<script type="text/javascript" src="javascript/clock.js"></script>
<script type="text/javascript" src="javascript/toggle.js"></script>
<link type="text/css" rel="stylesheet" href="clock.css"/>
<link type="text/css" rel="stylesheet" href="body.css"/>
<link type="text/css" rel="stylesheet" href="style.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9"/>
<meta name="description" content="<?php echo $desc; ?>"/>
<meta name="keywords" content="<?php echo $meta; ?>"/>
<title><?php echo $title; ?></title>
</head>
<body onload="clock(),slide()">
<!--This Is The Main Table-->
<table class="main" width="1030" align="center" cellspacing="0" cellpadding="0">
<!--This Is The Header Part-->
<tr><td colspan="3" width="1030" align="center">
<?php
include 'header.php';
include 'includes/search.php';
?>
</td></tr><tr>
<!--This Is The Left Column-->
<td width="215" valign="top" align="left">
<?php
include 'includes/column_left.php';
?>
</td>
<!--This Is The Middle Column-->
<td width="600" valign="top" align="center">
<?php
//Take Product Name
$trans=pathinfo(basename($_SERVER['REQUEST_URI']));
$file=$trans[filename].".php";
//Take Product Information
include 'configset/conn.php';
$product_data=mysql_query("SELECT * FROM Products WHERE Url='$file'");
while ($row=mysql_fetch_array($product_data))
{
echo '<table width="590" align="center" cellpadding="5" cellspacing="10">';
echo '<tr><td class="item" align="left"><font style="color:#696969;font-family:Helvetica;font-size:14pt;"><b>'.$row[ProductName].'</b></font><br/><br/>';
echo '<img src="images/'.$row[Image].'" border="0" align="right" width="100" height="100" alt="small image"/>';
echo '</td></tr><tr><td class="item_low" align="left">';
echo $row[Html];
echo '<br/><br/>Page Views:'.$current.'</td></tr></table>';
}
mysql_close($connect);
?>
<br/><br/>
<div>
<?php
include 'configset/conn.php';
$image_data=mysql_query("SELECT * FROM Images WHERE Url='$file' ORDER BY ImageID ASC");
$num_image=mysql_num_rows($image_data);
if ($num_image!=0)
{
while ($row_i=mysql_fetch_array($image_data))
{
//Check Imagesize Width[0] And Height[1]
$org_image='original/'.$row_i[Imagefile];
$size = getimagesize($org_image);
$format_type=$size[0]/$size[1];
if ($format_type>1)
{
$ratio=$size[1]/$size[0];
$height=400*$ratio;
$width=400;
}
else
{
$ratio=$size[0]/$size[1];
$width=400*$ratio;
$height=400;
}
echo ' <a onclick="return showPic(this)" href="original/'.$row_i[Imagefile].'"><img class="photo" src="thumb/'.$row_i[Imagefile].'" border="0" alt="product image"/></a> ';
$last_image=$row_i[Imagefile];
}
echo '<br/><br/>--- CLICK TO ENLARGE PICTURE ---<br/><br/>';
echo '<div id="desc">';
echo '<img id="placeholder" src="original/'.$last_image.'" width="'.$width.'" height="'.$height.'" alt="product image"/></div>';
}
mysql_close($connect);
?>
</div><br/>
<?php
if ($member_onoff==1)
{
echo '<div style="width:570px;border-style:solid;border-width:1px;border-color:#c5c5c5;">';
echo '<div style="text-align:left;padding:5px;">';
include 'configset/conn.php';
$blog_num=mysql_query("SELECT * FROM Blog WHERE Url='$file' ORDER BY BlogID ASC");
$num_total=mysql_num_rows($blog_num);
$num_pages=$num_total/5;
$add=$num_total%5;
if ($num_total==0) echo "There are no comments for this item yet!".'<br/><br/>';
if ($add!=0)
$num_pages++;
//Index Pages
$page=mysql_real_escape_string($_GET[page]);
if ($_GET[page]=="" OR $_GET[page]>$num_pages) $page=1;
$start=$page*5 - 5;
$blog_data=mysql_query("SELECT * FROM Blog WHERE Url='$file' ORDER BY BlogID ASC LIMIT $start,5");
//Print Indexed Page Links
if ($num_total>5)
{
$prev=$page-1;
$next=$page+1;
if ($page>1)
{
echo '<a href="'.$file.'?page='.$prev.'">';
echo '<img src="siteicons/arrow_left.png" align="middle" border="0" alt="arrow_left"/></a> ';
}
for ($i==0;$i<=$num_pages;$i++)
{
if ($i==$page)
echo '<a class="headlist" href="'.$file.'?page='.$i.'">'.$i.'</a> ';
else
echo '<a href="'.$file.'?page='.$i.'">'.$i.'</a> ';
}
if ($next<=$num_pages)
{
echo ' <a href="'.$file.'?page='.$next.'">';
echo '<img src="siteicons/arrow_right.png" border="0" align="middle" alt="arrow_right"/></a>';
}
}
echo '</div><div>';
while ($row=mysql_fetch_array($blog_data))
{
//Get Blogger Details
$blogger=mysql_query("SELECT * FROM Members WHERE EmailAddress='$row[Email]'");
$row_b=mysql_fetch_array($blogger);
//End Of Blogger Details
echo '<table cellpadding="0" cellspacing="0" style="width:560px;"><tr><td style="background-image:url(blog_bar.png);width:560px;height:16px;text-align:right;padding-right:10px;">';
echo $row_b[FirstName]." ".$row_b[LastName]." ".$row[Date];
echo '</td></tr><tr>
<td valign="top" style="border-left-style:solid;border-right-style:solid;border-bottom-style:solid;border-width:1px;border-color:#c5c5c5;width:560px;height:50px;padding-left:10px;padding-top:5px;text-align:left;">';
echo $row[Content];
echo '</td></tr></table><br/>';
}
if (isset($_COOKIE[tuser]) AND isset($_COOKIE[tpass]))
{
echo '<div style="text-align:right;padding-right:5px;"><form action="functions/postcomment.php" method="post">';
echo '<textarea name="content" rows="1" cols="67"></textarea><br/><br/>(Max. 500 Characters)';
echo '<br/><br/><input style="color:#ffffff;background-image:url(blog_bar.png);height:20px;width:100px;" type="submit" value="Comment"/>';
echo '<input type="hidden" name="file" value="'.$file.'"/>';
echo '</form></div>';
}
mysql_close($connect);
echo '<br/></div></div><br/>';
}
?>
</td>
<!--This Is The Right Column-->
<td width="215" valign="top" align="right">
<?php
include 'includes/column_right.php';
?>
</td>
<!--This Is The Footer Part-->
</tr><tr><td colspan="3" width="1030" align="center">
<?php
include 'footer.php';
?>
</td></tr>
<!--End Of Table-->
</table>
<table style="color:#272727;font-family:'Helvetica';font-size:8pt;border-width:1px;border-style:solid;border-top-style:none;border-color:#023f6a;width:1030px;height:30px;" align="center" cellspacing="0" cellpadding="5"><tr><td align="right">
<?php echo "Copyright".' '."©".' '.date(Y).' '."PangramSoft"; ?><a href="http://www.pointter.com" title="Pointter PHP Content Management System"><img src="siteicons/pointter_icon.png" border="0" align="right" alt="pointter icon"/></a></td></tr></table>
</body>
</html>