Tarih: 2009-03-27, 22:54:55 Mesaj konusu: 3 blogu birlestirip tek yapmak
Kod:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* Andrei Orlov http://www.x-prices.com */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* Additional security checking code 2003 by chatserv */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
if (eregi("block-Aser_Shop.php",$_SERVER[PHP_SELF])) {
Header("Location: index.php");
die();
}
global $db, $user, $c o o k i e;
$Asers_Shop = "Asers_Shop"; //Module name as folder name
if(is_user($user)) {
c o o k i edecode($user);
$auth_name = $c o o k i e[1];
$result = $db->sql_query("SELECT * FROM asershop_orders WHERE uname='$auth_name'");
$numrows = $db->sql_numrows($result);
if($numrows > 0) {
}
}
$cid = $_GET['cid'];
$lid = $_GET['lid'];
$name = $_GET['name'];
if(!isset($cid) && isset($lid) && $name == "$Asers_Shop") {
$result = $db->sql_query("SELECT cid FROM asershop_products WHERE lid = '$lid'");
list($cid)=$db->sql_fetchrow($result);
}
$content .= "<center><a href=\"modules.php?name=$Asers_Shop&s_op=viewcart\"><img src = \"modules/$Asers_Shop/images/your_cart.gif\" border =\"0\"></a></center>";
$content .= "<font class=\"option\"><strong><big>·</big></strong> <a href=\"modules.php?name=$Asers_Shop\">MAĞAZA</a></font><br>";
if ($name != "$Asers_Shop" || !isset($cid)) {
$result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='0' order by title");
while(list($cid, $title) = $db->sql_fetchrow($result)) {
$content .= "<font class=\"content\"><strong><big>·</big></strong> <a href=\"modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid\">$title</a></font><br>";
}
$content .= $content_c;
} else {
$result = $db->sql_query("SELECT parentid, title FROM asershop_categories WHERE cid='$cid'");
$row = $db->sql_fetchrow($result);
$parentid = intval($row['parentid']);
$title = $row['title'];
$title3 = "<img src=\"images/arrow.gif\" border=\"0\"><font class=\"content\"><strong><big> </big></strong><a href=modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid>$title</a></font>";
$ptitle = getparentmenulink($parentid,"",$Asers_Shop);
$content .= $ptitle;
$content .= $title3;
$result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='$cid' order by title");
while($row = $db->sql_fetchrow($result)) {
$cid1 = intval($row['cid']);
$title = $row['title'];
$content .= "<br><font class=\"content\"> <a href=modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid1>$title</a>";
}
$sql = "SELECT cid, title, parentid FROM asershop_categories WHERE parentid='$parentid' and cid != '$cid'";
$result1 = $db->sql_query($sql);
while($row = $db->sql_fetchrow($result1)) {
$cid1 = intval($row['cid']);
$ptitle1 = $row['title'];
$parentid = $row['parentid'];
$parentmenu .= "<br><font class=\"content\"><strong><big>+</big></strong> <a href=modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid1>$ptitle1</a>";
}
$content .= $parentmenu;
if ($parentid != 0) {
while($parentid != 0) {
$result = $db->sql_query("SELECT cid, parentid FROM asershop_categories WHERE cid='$parentid'");
$row = $db->sql_fetchrow($result);
$parentid = $row['parentid'];
$cid3 = $row['cid'];
}
$result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='0' and cid != '$cid3' order by title");
while(list($cid, $title) = $db->sql_fetchrow($result)) {
$endcontent .= "<br><font class=\"content\"><strong><big>·</big></strong> <a href=\"modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid\">$title</a></font>";
}
}
$content .= $endcontent;
$content .= "<br>".$content_c;
}
function getparentmenulink($parentid,$ptitle,$Asers_Shop) {
global $db;
$parentid = intval($parentid);
if ($parentid!=0) {
$sql = "SELECT cid, title, parentid FROM asershop_categories WHERE cid='$parentid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$cid = intval($row['cid']);
$title = $row['title'];
$parentid = $row['parentid'];
$ptitle="<font class=\"content\"><strong><big>·</big></strong> <a href=modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid>$title</a></font><br>".$ptitle;
}
if ($parentid!=0) {
$ptitle=getparentmenulink($parentid,$ptitle,$Asers_Shop);
}
return $ptitle;
}
?>
Kod:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* Andrei Orlov http://www.x-prices.com */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* Additional security & Abstraction layer conversion */
/* 2003 chatserv */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
if (eregi("block-Last_Added_Products.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
global $db;
$result = $db->sql_query("SELECT config_value from asershop_config where config_name='currency'");
list($currency) = $db->sql_fetchrow($result);
$Asers_Shop = "Asers_Shop";
$a = 1;
$result = $db->sql_query("SELECT lid, cid, title, price FROM asershop_products ORDER BY date desc, hits LIMIT 0,10");
while ($row = $db->sql_fetchrow($result)) {
$lid = intval($row['lid']);
$cid = intval($row['cid']);
$title = stripslashes($row['title']);
$price = $row['price'];
$content .= "$a: <a href=\"modules.php?name=$Asers_Shop&s_op=viewproductdetails&lid=$lid&cid=$cid\">$title - $currency$price</a><br><br>";
$a++;
}
$content .= "<center><a href=\"modules.php?name=$Asers_Shop&s_op=search&query=*&R1=title&orderby=dateD\">History</a></center>"
?>
Kod:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* Andrei Orlov http://www.x-prices.com */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* Additional security & Abstraction layer conversion */
/* 2003 chatserv */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
if (eregi("block-Top10_Products.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
global $db;
$Asers_Shop = "Asers_Shop";
$result = $db->sql_query("SELECT config_value from asershop_config where config_name='currency'");
list($currency) = $db->sql_fetchrow($result);
$a = 1;
$result = $db->sql_query("SELECT lid, cid, title, price FROM asershop_products ORDER BY hits DESC LIMIT 0,10");
while ($row = $db->sql_fetchrow($result)) {
$lid = intval($row['lid']);
$cid = intval($row['cid']);
$title = stripslashes($row['title']);
$price = $row['price'];
$content .= "$a: <a href=\"modules.php?name=$Asers_Shop&s_op=viewproductdetails&lid=$lid&cid=$cid\">$title - $currency$price</a><br><br>";
$a++;
}
?>
aser shop bloklari 3 unu tek blok yapıp orta blokta gostermek icin yardim rica ediyorum.
Merhaba.. cektirmek istedigin blok dosylarini ana dizine atip yan yana 3 tane table taglari kullanarak yaptigin bir blokta i f r a m e olarak cektirebilirsin en basit sekli..bu olsa gerek..
enterasan bir fikirde .normalde blok birlestirme oluyor benim orta bloklarim hep uclu.son populer gibi bloklari tek blok olarwak ortada veriyorum .bunda da sagdakileri 3 blogu menu poupler son urunler olarak birlestirmmk istiyorum.orta blok icin.
Kayıt: Jan 02, 2006 Mesajlar: 1660 Konum: Diyarbakır
Tarih: 2009-03-31, 20:06:42 Mesaj konusu:
Bak ben bunu aylardır yapmayı istiyorum da yapamıyom =) ama ben 3'lü değilde 2 blocku yan yana ekletmek istiyorum bu sayede i,stediğim block'lar 2'li istediğim block'larda 3'lü oalcak
global ile başlayıp php bitiş koduna kadar olan kodları <td tag'ları içine alırsanız istediğiniz veriyi istediğiniz bloktaki veriyi, istediğiniz yere çekersiniz
if (eregi("block-juglanin.php",$_SERVER[PHP_SELF])) {
Header("Location: index.php");
die();
}
global $db, $user, $c o o k i e;
$content .="
<table>
<tr><td>";
// 1.blok kod başlangıcı
$Asers_Shop = "Asers_Shop"; //Module name as folder name
if(is_user($user)) {
cooki edecode($user);
$auth_name = $c o o k i e[1];
$result = $db->sql_query("SELECT * FROM asershop_orders WHERE uname='$auth_name'");
$numrows = $db->sql_numrows($result);
if($numrows > 0) {
}
}
$cid = $_GET['cid'];
$lid = $_GET['lid'];
$name = $_GET['name'];
if(!isset($cid) && isset($lid) && $name == "$Asers_Shop") {
$result = $db->sql_query("SELECT cid FROM asershop_products WHERE lid = '$lid'");
list($cid)=$db->sql_fetchrow($result);
}
$content .= "<center><a href=\"modules.php?name=$Asers_Shop&s_op=viewcart\"><img src = \"modules/$Asers_Shop/images/your_cart.gif\" border =\"0\"></a></center>";
$content .= "<font class=\"option\"><strong><big>·</big></strong> <a href=\"modules.php?name=$Asers_Shop\">MAĞAZA</a></font><br>";
if ($name != "$Asers_Shop" || !isset($cid)) {
$result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='0' order by title");
while(list($cid, $title) = $db->sql_fetchrow($result)) {
$content .= "<font class=\"content\"><strong><big>·</big></strong> <a href=\"modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid\">$title</a></font><br>";
}
$content .= $content_c;
} else {
$result = $db->sql_query("SELECT parentid, title FROM asershop_categories WHERE cid='$cid'");
$row = $db->sql_fetchrow($result);
$parentid = intval($row['parentid']);
$title = $row['title'];
$title3 = "<img src=\"images/arrow.gif\" border=\"0\"><font class=\"content\"><strong><big> </big></strong><a href=modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid>$title</a></font>";
$ptitle = getparentmenulink($parentid,"",$Asers_Shop);
$content .= $ptitle;
$content .= $title3;
$result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='$cid' order by title");
while($row = $db->sql_fetchrow($result)) {
$cid1 = intval($row['cid']);
$title = $row['title'];
$content .= "<br><font class=\"content\"> <a href=modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid1>$title</a>";
}
$sql = "SELECT cid, title, parentid FROM asershop_categories WHERE parentid='$parentid' and cid != '$cid'";
$result1 = $db->sql_query($sql);
while($row = $db->sql_fetchrow($result1)) {
$cid1 = intval($row['cid']);
$ptitle1 = $row['title'];
$parentid = $row['parentid'];
$parentmenu .= "<br><font class=\"content\"><strong><big>+</big></strong> <a href=modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid1>$ptitle1</a>";
}
$content .= $parentmenu;
if ($parentid != 0) {
while($parentid != 0) {
$result = $db->sql_query("SELECT cid, parentid FROM asershop_categories WHERE cid='$parentid'");
$row = $db->sql_fetchrow($result);
$parentid = $row['parentid'];
$cid3 = $row['cid'];
}
$result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='0' and cid != '$cid3' order by title");
while(list($cid, $title) = $db->sql_fetchrow($result)) {
$endcontent .= "<br><font class=\"content\"><strong><big>·</big></strong> <a href=\"modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid\">$title</a></font>";
}
}
$content .= $endcontent;
$content .= "<br>".$content_c;
}
function getparentmenulink($parentid,$ptitle,$Asers_Shop) {
global $db;
$parentid = intval($parentid);
if ($parentid!=0) {
$sql = "SELECT cid, title, parentid FROM asershop_categories WHERE cid='$parentid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$cid = intval($row['cid']);
$title = $row['title'];
$parentid = $row['parentid'];
$ptitle="<font class=\"content\"><strong><big>·</big></strong> <a href=modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid>$title</a></font><br>".$ptitle;
}
if ($parentid!=0) {
$ptitle=getparentmenulink($parentid,$ptitle,$Asers_Shop);
}
return $ptitle;
}
$content .="</td>";
//2. blok kod başlangıcı
$content .="<td>";
global $db;
$result = $db->sql_query("SELECT config_value from asershop_config where config_name='currency'");
list($currency) = $db->sql_fetchrow($result);
$Asers_Shop = "Asers_Shop";
$a = 1;
$result = $db->sql_query("SELECT lid, cid, title, price FROM asershop_products ORDER BY date desc, hits LIMIT 0,10");
while ($row = $db->sql_fetchrow($result)) {
$lid = intval($row['lid']);
$cid = intval($row['cid']);
$title = stripslashes($row['title']);
$price = $row['price'];
$content .= "$a: <a href=\"modules.php?name=$Asers_Shop&s_op=viewproductdetails&lid=$lid&cid=$cid\">$title - $currency$price</a><br><br>";
$a++;
}
$content .= "<center><a href=\"modules.php?name=$Asers_Shop&s_op=search&query=*&R1=title&orderby=dateD\">History</a></center>";
$content .="</td>";
// 3. blok kod başlangıcı
$content .="<td>";
global $db;
$result = $db->sql_query("SELECT config_value from asershop_config where config_name='currency'");
list($currency) = $db->sql_fetchrow($result);
$a = 1;
$result = $db->sql_query("SELECT lid, cid, title, price FROM asershop_products ORDER BY hits DESC LIMIT 0,10");
while ($row = $db->sql_fetchrow($result)) {
$lid = intval($row['lid']);
$cid = intval($row['cid']);
$title = stripslashes($row['title']);
$price = $row['price'];
$content .= "$a: <a href=\"modules.php?name=$Asers_Shop&s_op=viewproductdetails&lid=$lid&cid=$cid\">$title - $currency$price</a><br><br>";
$a++;
}
http://s1.dosya.tc/aser.txt.html
3 blogu tek dosyay attım arkadaslar.mersoy verdiniz kodlarla sag blok gittti.bukadar ugrasmamistim bir blokla nedense is cikardi bana
$Asers_Shop = "Asers_Shop"; //Module name as folder name
if(is_user($user)) {
c o o k i edecode($user);
$auth_name = $c o o k i e[1];
$result = $db->sql_query("SELECT * FROM asershop_orders WHERE uname='$auth_name'");
$numrows = $db->sql_numrows($result);
if($numrows > 0) {
}
}
$cid = $_GET['cid'];
$lid = $_GET['lid'];
$name = $_GET['name'];
if(!isset($cid) && isset($lid) && $name == "$Asers_Shop") {
$result = $db->sql_query("SELECT cid FROM asershop_products WHERE lid = '$lid'");
list($cid)=$db->sql_fetchrow($result);
}
$content .= "<center><a href=\"modules.php?name=$Asers_Shop&s_op=viewcart\"><img src = \"modules/$Asers_Shop/images/your_cart.gif\" border =\"0\"></a></center>";
$content .= "<font class=\"option\"><strong><big>·</big></strong> <a href=\"modules.php?name=$Asers_Shop\">MAĞAZA</a></font><br>";
if ($name != "$Asers_Shop" || !isset($cid)) {
$result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='0' order by title");
while(list($cid, $title) = $db->sql_fetchrow($result)) {
$content .= "<font class=\"content\"><strong><big>·</big></strong> <a href=\"modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid\">$title</a></font><br>";
}
$content .= $content_c;
} else {
$result = $db->sql_query("SELECT parentid, title FROM asershop_categories WHERE cid='$cid'");
$row = $db->sql_fetchrow($result);
$parentid = intval($row['parentid']);
$title = $row['title'];
$title3 = "<img src=\"images/arrow.gif\" border=\"0\"><font class=\"content\"><strong><big> </big></strong><a href=modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid>$title</a></font>";
$ptitle = getparentmenulink($parentid,"",$Asers_Shop);
$content .= $ptitle;
$content .= $title3;
$result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='$cid' order by title");
while($row = $db->sql_fetchrow($result)) {
$cid1 = intval($row['cid']);
$title = $row['title'];
$content .= "<br><font class=\"content\"> <a href=modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid1>$title</a>";
}
$sql = "SELECT cid, title, parentid FROM asershop_categories WHERE parentid='$parentid' and cid != '$cid'";
$result1 = $db->sql_query($sql);
while($row = $db->sql_fetchrow($result1)) {
$cid1 = intval($row['cid']);
$ptitle1 = $row['title'];
$parentid = $row['parentid'];
$parentmenu .= "<br><font class=\"content\"><strong><big>+</big></strong> <a href=modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid1>$ptitle1</a>";
}
$content .= $parentmenu;
if ($parentid != 0) {
while($parentid != 0) {
$result = $db->sql_query("SELECT cid, parentid FROM asershop_categories WHERE cid='$parentid'");
$row = $db->sql_fetchrow($result);
$parentid = $row['parentid'];
$cid3 = $row['cid'];
}
$result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='0' and cid != '$cid3' order by title");
while(list($cid, $title) = $db->sql_fetchrow($result)) {
$endcontent .= "<br><font class=\"content\"><strong><big>·</big></strong> <a href=\"modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid\">$title</a></font>";
}
}
$content .= $endcontent;
$content .= "<br>".$content_c;
}
function getparentmenulink($parentid,$ptitle,$Asers_Shop) {
global $db;
$parentid = intval($parentid);
if ($parentid!=0) {
$sql = "SELECT cid, title, parentid FROM asershop_categories WHERE cid='$parentid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$cid = intval($row['cid']);
$title = $row['title'];
$parentid = $row['parentid'];
$ptitle="<font class=\"content\"><strong><big>·</big></strong> <a href=modules.php?name=$Asers_Shop&s_op=viewproduct&cid=$cid>$title</a></font><br>".$ptitle;
}
if ($parentid!=0) {
$ptitle=getparentmenulink($parentid,$ptitle,$Asers_Shop);
}
return $ptitle;
}
$content .="</td>";
// 3. blok kod başlangıcı
$content .="<td>";
global $db;
$result = $db->sql_query("SELECT config_value from asershop_config where config_name='currency'");
list($currency) = $db->sql_fetchrow($result);
$a = 1;
$result = $db->sql_query("SELECT lid, cid, title, price FROM asershop_products ORDER BY hits DESC LIMIT 0,5");
while ($row = $db->sql_fetchrow($result)) {
$lid = intval($row['lid']);
$cid = intval($row['cid']);
$title = stripslashes($row['title']);
$price = $row['price'];
$content .= "$a: <a href=\"modules.php?name=$Asers_Shop&s_op=viewproductdetails&lid=$lid&cid=$cid\">$title - $currency$price</a><br><br>";
$a++;
}
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız