require "../blog/admin/db.inc"; $ls = urldecode($_GET['ls']); $enc_ls = $_GET['ls']; $br = urldecode($_GET['br']); $enc_br = $_GET['br']; $limit = 5; $os = $_GET['os']; if ($os == "") { $os = 0; } print '
'.$ls.' | '; if ($br == "") { $sql = "SELECT * FROM blog WHERE bl_elements = '$ls' AND bl_ct_id = 'd71bd8a0b6a6aa54edba64547c91a574' ORDER BY bl_date DESC"; $url = 'life_style.php?ls='.$enc_ls; } else { $sql = "SELECT * FROM blog WHERE bl_elements = '$ls' AND bl_brand = '$br' AND bl_ct_id = 'd71bd8a0b6a6aa54edba64547c91a574' ORDER BY bl_date DESC"; $url = 'life_style.php?ls='.$enc_ls.'&br='.$enc_br; } $result = $db->query($sql); $allcnt = $result->numrows(); if ($os > 0) { $bos = $os - $limit; print 'BACK'; } else { print 'BACK'; } $nowos = $os / $limit + 1; $maxos = ceil($allcnt / $limit); print ' < '.$nowos.'/'.$maxos.' >'; if ($allcnt > $os + $limit) { $nos = $os + $limit; print 'NEXT'; } else { print 'NEXT'; } print ' |
';
$imagefile = "../blog/blog_img/".$bl_id.".jpg";
if (file_exists($imagefile))
{
$size = GetImageSize($imagefile);
$width = $size[0];
$height = $size[1];
if ($width > 180)
{
$height = (int)(180 / $width * $height);
$width = 180;
}
print ' |
'.ereg_replace("\r\n|\r|\n" , " " , mb_substr($bl_text , 0 ,100)).' .....商品詳細ページ |