my friends after the change I made with get my page looks strange if there is no normal if get value. The pictures are under the problem.
Codes:
<!DOCTYPE html>
<html>
<head>
<title>Egoldshop</title>
<link rel="shortcut icon" href="egoldshopicon.ico">
</head>
<body>
<?php
$baglanti1 = new PDO("mysql:hos=localhost;dbname=egoldshopphp","php","");
if ($_POST) {
$aramasonucpost1 = filter_input(INPUT_POST, "arama");
header("Location:egoldarama.php?arama=".$aramasonucpost1);
}else{
}
?>
<div id="tamcerceve">
<div class="baslik" style="background: white;">
<div id="egoldresim">
<a href="egoldshop.php"><img src="sz_egoldshop_photo.jpg" border="0" /></a>
</div>
<form action="egoldshop.php" method="post" name="form">
<input type="submit" name="arama" class="aramab" value="Search">
<input type="text" class="aramat" name="arama">
</form>
<div class="menu">
<ul>
<li><a href="egoldshop.php">Anasayfa</a></li>
<?php
$vericek61 = $baglanti1 -> prepare("select * from menu order by no asc");
$vericek61->execute();
while ($bilgiler61 = $vericek61 -> fetch(PDO::FETCH_ASSOC)) {
$menuid = $bilgiler61['no'];
$vericek64 = $baglanti1 -> prepare("select * from altmenu where anamenuid = ? order by no asc");
$vericek64 -> bindParam(1, $menuid);
$vericek64 -> execute();
$vericek64say = $vericek64 -> rowCount();
if ($vericek64say == 0) {
?>
<li><a href="egoldshop.php?menu=<?php echo($bilgiler61['menuadi']); ?>"><?php echo($bilgiler61['menuadi']); ?></a></li>
<?php
}else{
?>
<li><a href="egoldshop.php?menu=<?php echo($bilgiler61['menuadi']); ?>"><?php echo($bilgiler61['menuadi']); ?></a>
<ul>
<?php
$vericek63 = $baglanti1 -> prepare("select * from altmenu where anamenuid = ? order by no asc");
$vericek63 -> bindParam(1, $menuid);
$vericek63 -> execute();
while ($bilgiler63 = $vericek63 -> fetch(PDO::FETCH_ASSOC)) {
?>
<li><a href="egoldshop.php?altmenu=<?php echo($bilgiler63['menuadi']); ?>"><?php echo($bilgiler63['menuadi']); ?></a></li>
<?php
}
?>
</ul></li>
<?php
}
}
?>
</ul>
</div>
<link rel="stylesheet" href="http://ift.tt/14opFsI">
<script src="http://ift.tt/2nfkus0" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<?php
session_start();
$tarayici = $_SERVER["HTTP_USER_AGENT"];
if (isset($_SESSION['kulad1']) || !empty($_SESSION['kulad1'])) {
$kulad1 = $_SESSION['kulad1'];
$vericek39 = $baglanti1 -> prepare("select * from ozelkullanici where kulad = ?");
$vericek39 -> bindParam(1, $kulad1);
$vericek39 -> execute();
$vericek39say = $vericek39 -> rowCount();
if ($vericek39say == 1) {
header("Location:ozelkul.php");
}else{
}
$kulad1k = strlen($kulad1);
if ($kulad1k == 1) {
?>
<style type="text/css">
#prflmenu1{
position: absolute;
top: 115px;
left: 1000px;
}
input.sepetimb{
position: absolute;
top: 117.5px;
left: 1125px;
}
</style>
<?php
}elseif ($kulad1k == 2) {
?>
<style type="text/css">
#prflmenu1{
position: absolute;
top: 115px;
left: 1000px;
}
input.sepetimb{
position: absolute;
top: 117.5px;
left: 1132.5px;
}
</style>
<?php
}elseif ($kulad1k == 3) {
?>
<style type="text/css">
#prflmenu1{
position: absolute;
top: 115px;
left: 1000px;
}
input.sepetimb{
position: absolute;
top: 117.5px;
left: 1140px;
}
</style>
<?php
}elseif ($kulad1k == 4) {
?>
<style type="text/css">
#prflmenu1{
position: absolute;
top: 115px;
left: 1000px;
}
input.sepetimb{
position: absolute;
top: 117.5px;
left: 1147.5px;
}
</style>
<?php
}elseif ($kulad1k == 5) {
?>
<style type="text/css">
#prflmenu1{
position: absolute;
top: 115px;
left: 1000px;
}
input.sepetimb{
position: absolute;
top: 117.5px;
left: 1155px;
}
</style>
<?php
}elseif ($kulad1k == 6) {
?>
<style type="text/css">
#prflmenu1{
position: absolute;
top: 115px;
left: 1000px;
}
input.sepetimb{
position: absolute;
top: 117.5px;
left: 1162.5px;
}
</style>
<?php
}elseif ($kulad1k == 7) {
?>
<style type="text/css">
#prflmenu1{
position: absolute;
top: 115px;
left: 1000px;
}
input.sepetimb{
position: absolute;
top: 117.5px;
left: 1170px;
}
</style>
<?php
}elseif ($kulad1k == 8) {
?>
<style type="text/css">
#prflmenu1{
position: absolute;
top: 115px;
left: 1000px;
}
input.sepetimb{
position: absolute;
top: 117.5px;
left: 1177.5px;
}
</style>
<?php
}elseif ($kulad1k == 9) {
?>
<style type="text/css">
#prflmenu1{
position: absolute;
top: 115px;
left: 1000px;
}
input.sepetimb{
position: absolute;
top: 117.5px;
left: 1185px;
}
</style>
<?php
}elseif ($kulad1k == 10) {
?>
<style type="text/css">
#prflmenu1{
position: absolute;
top: 115px;
left: 1000px;
}
input.sepetimb{
position: absolute;
top: 117.5px;
left: 1192.5px;
}
</style>
<?php
}
?>
<div id="prflmenu1">
<ul class="profmenu1">
<li><?php echo($kulad1); ?>
<ul>
<li><a href="normalprfl.php">Profile</a></li>
<li><a href="normalabild.php">Settings</a></li>
<li><a href="egoldcikis.php">Log out</a></li>
</ul>
</li>
</ul>
</div>
<input type="button" class="sepetimb" value="Cart" onclick="location='sepet.php'">
<style type="text/css">
#prflmenu1{
width: 100px;
display: inline-block;
padding: 0px;
text-align: center;
cursor: pointer;
}
.profmenu1{
position: absolute;
display: inline-block;
padding: 0px;
margin: 0px;
list-style: none;
}
ul.profmenu1 ul{
position: absolute;
list-style: none;
display: none;
min-width: 140px;
margin-top: 3px;
left: -1px;
}
ul.profmenu1 > li{
float: left;
position: relative;
display: block;
padding: 3px 10px 3px 20px;
min-height: 20px;
}
ul.profmenu1 ul li{
margin: 1px;
text-align: left;
padding: 3px 20px;
}
ul.profmenu1 li > ul{
display: none;
}
ul.profmenu1 li:hover > ul{
position:absolute;
display:block;
padding:0px;
-moz-box-shadow: 5px 5px 5px #888;
-webkit-box-shadow: 5px 5px 5px #888;
box-shadow: 5px 5px 5px #888;
background: white;
}
</style>
<?php
}else{
?>
<input type="button" class="kayitb" value="Register" onclick="location='egoldk.php'">
<input type="button" class="girisb" value="Login" onclick="location='egoldg.php'">
<input type="button" class="sepetimb" value="Cart" onclick="location='sepet.php'">
<style type="text/css">
<?php
if (strstr($tarayici,"Chrome")) {
echo "input.kayitb{";
echo "position: absolute;";
echo "top: 115px;";
echo "right: 150px;";
echo "}";
}elseif (strstr($tarayici,"Firefox")) {
echo "input.kayitb{";
echo "position: absolute;";
echo "top: 115px;";
echo "right: 145px;";
echo "}";
}else {
echo "input.kayitb{";
echo "position: absolute;";
echo "top: 115px;";
echo "right: 100px;";
echo "}";
}
?>
input.girisb{
position: absolute;
top : 115px;
right: 225px;
}
input.sepetimb{
position: absolute;
top: 57.5%;
right: 7.5%;
}
</style>
<?php
}
?>
</div>
<style type="text/css">
*{
margin: 0;
outline: 0;
list-style: none;
text-decoration: none;
}
.menu{
width: 1350px;
height: 35px;
float: left;
background: gray;
position: relative;
top: 185px;
}
.menu a {
width: auto;
height: 35px;
float: left;
font-size: 12px;
color: white;
padding-left: 18px;
padding-right: 18px;
border-right: solid 1px white;
line-height: 35px;
text-decoration: none;
}
.menu li{
width: auto;
height: 46px;
float: left;
position: relative;
}
.menu ul li ul{
width: 180px;
height: auto;
float: left;
position: absolute;
background: #6c6b6b;
top: 35px;
left: 1px;
z-index: 1px;
display: none;
}
.menu ul li ul a{
width: 163px;
height: 30px;
line-height: 30px;
float: left;
padding: 0 0 0 17px;
border-top: dashed 1px gray;
background: none;
}
.menu ul li ul li{
height: 30px;
line-height: 30px;
}
.menu li:hover > ul{
display: block;
}
.menu a:hover{
color: white;
background: black;
}
.menu ul li ul li ul{
width: 180px;
height: auto;
float: left;
position: absolute;
background: #6c6b6b;
top: 0px;
left: 180px;
z-index: 1;
display: none;
}
.baslik{
position: fixed; /* verdiğin top ve left değerlerinde sabit tutan kod 'fixed' yani tarayıcıya göre göreceli*/
width: 100%; /* burayı istediğin şekilde değiştirebilirsin tamamen senin kullanacağın header tasarımına göre ayarladığın width değeri*/
height: 200px; /* burayı istediğin şekilde değiştirebilirsin tamamen senin kullanacağın header tasarımına göre ayarladığın height değeri*/
background: #fff; /* burayı istediğin şekilde değiştirebilirsin yada kullanmayabilirsin örnekte belli olması için siyah rengini verdim*/
z-index: 1000; /* z-index divine üst yada alt katman ayarı yapmanı sağlar 1'in sonuna koyduğun 0 saysısna göre daha yukarda olmasını sağlar. */
top: 0; /* top o divin en yukarı yapışık olması için kendi tasarımına göre değiştirebilirsin */
left: 0; /* left o divin sola yapışık şekilde başlaması için. için kendi tasarımına göre değiştirebilirsin */
}
</style>
<div id="deneme">
<label>egoldshop is the name of Quality, Trust and Good price... The correct address for shopping</label>
</div>
<?php
if (!empty($_GET['menu']) || !empty($_GET['altmenu'])) {
if (isset($_GET['menu'])) {
if (empty($sayfa) || !is_numeric($sayfa)) {
$sayfa = 1;
}
$sayfa = filter_input(INPUT_GET, "sayfa");
$kacar = 20;
$nereden = ($sayfa * $kacar) - $kacar;
$getmenuadi = filter_input(INPUT_GET, "menu");
$vericek2 = $baglanti1 -> prepare ("select * from urunlist where menu = '$getmenuadi' order by no desc limit $nereden,$kacar");
$vericek1 = $baglanti1 -> prepare ("select no from urunlist where menu = '$getmenuadi'");
}elseif (isset($_GET['altmenu'])) {
if (empty($sayfa) || !is_numeric($sayfa)) {
$sayfa = 1;
}
$sayfa = filter_input(INPUT_GET, "sayfa");
$kacar = 20;
$nereden = ($sayfa * $kacar) - $kacar;
$getaltmenuadi = filter_input(INPUT_GET, "altmenu");
$vericek2 = $baglanti1 -> prepare ("select * from urunlist where altmenu = '$getaltmenuadi' order by no desc limit $nereden,$kacar");
$vericek1 = $baglanti1 -> prepare ("select no from urunlist where altmenu = '$getaltmenuadi'");
}
}else{
if (empty($sayfa) || !is_numeric($sayfa)) {
$sayfa = 1;
}
$sayfa = filter_input(INPUT_GET, "sayfa");
$kacar = 20;
$nereden = ($sayfa * $kacar) - $kacar;
$vericek2 = $baglanti1 -> prepare ("select * from urunlist order by no desc limit $nereden,$kacar");
$vericek1 = $baglanti1 -> prepare ("select no from urunlist");
}
$vericek1->execute();
$satirsay = $vericek1->rowCount();
$ssayisi = ceil($satirsay/$kacar);
$vericek2 -> execute();
$i = -1;
echo '<div id="egoldurunbtnler">';
function degistir($deger)
{
$deger= preg_replace("/\s+/", "+", $deger);
$deger= trim($deger);
return $deger;
}
foreach ($vericek2 as $bilgigoster2) {
$i++;
$urunad2 = $bilgigoster2['urunad'];
$urunfiyat2 = $bilgigoster2['urunfiyat'];
$vericek3 = $baglanti1 -> prepare ("select * from urunlistresim where urunad = '$urunad2' limit 1");
$vericek3 -> execute();
foreach ($vericek3 as $bilgigoster3) {
$resimyol3 = $bilgigoster3['resimyol'];
?>
<?php echo "<div id='urunlbtn".$i."'>"; ?>
<a href="urun.php?urun=<?php echo degistir($urunad2); ?>" style="text-decoration: none;color: black;">
<div id="urunrsm" style="position: absolute;left: 37.5px;top: 25px;">
<img id="urunrsmid" src="<?php echo($resimyol3); ?>">
</div>
<br/>
<div id="urunad" style="position: absolute;left: 15px;top: 160px;">
<span><?php echo($urunad2); ?></span>
</div>
<div id="urunfiyat" style="position: absolute;left: 90px;top: 200px;">
<span><?php echo($urunfiyat2); ?> €</span>
</div>
</a>
<?php echo "</div>"; ?>
<?php
}
?>
<style type="text/css">
<?php
if ($i == 4 || $i == 8 || $i == 12 || $i == 16 || $i == 20 || $i == 24 || $i == 28) {
$top1 = $i * 65;
}
$left1 = 25 + $i%4 * 250;
echo "#urunlbtn".$i."{";
echo "position: absolute;";
echo "left : ".$left1."px;";
echo "top : ".$top1."px;";
echo "border: 1px solid black;";
echo "height: 225px;";
echo "width: 200px;";
echo "}";
?>
</style>
<?php
}
echo '</div>';
$baglanti1 = null;
$sayfabyer1 = 600;
$sayfabyer2 = 30;
for ($i=1; $i <= $ssayisi; $i++) {
echo "<a href='egoldshop.php?sayfa={$i}'";
if($i == $sayfa){
echo "class='aktif'";
}
echo "><div id='sayfal'><input type='button' value='{$i}' class='egoldsayfab1{$i}' onclick='location='egoldshop.php?sayfa={$i}''></div></a>";
?>
<style type="text/css">
<?php echo "input.egoldsayfab1{$i}{"; ?>
position: absolute;
top: 1625px;
left: <?php echo ($sayfabyer2 * $i + $sayfabyer1); ?>px;
<?php echo "}"; ?>
</style>
<?php
}
?>
<div id="altfooter">
<input type="image" src="rsz_facebook.png" class="dfacebooki" name="dfacebook" onclick="location='http://ift.tt/2x4msye'">
<input type="image" src="rsz_twitter.png" class="dtwitteri" name="dtwitter" onclick="location='https://twitter.com/e_goldshop'">
<input type="image" src="rsz_instagram.png" class="dinstagrami" name="dinstagram" onclick="location='http://ift.tt/2wi5X4A'">
<div id="dfacebookl">
<a href="http://ift.tt/2x4msye" style="text-decoration: none;color: white;"><label>http://ift.tt/2x5I2Cn;
</div>
<div id="dtwitterl">
<a href="https://twitter.com/e_goldshop" style="text-decoration: none;color: white;"><label>https://twitter.com/e_goldshop</label></a>
</div>
<div id="dinstagraml">
<a href="http://ift.tt/2wi5X4A" style="text-decoration: none;color: white;"><label>http://ift.tt/2wgSUAl;
</div>
<div id="dmaill1">
<label>E-mail : </label>
</div>
<div id="dmaill2">
<label>epitcenter@gmail.com</label>
</div>
</div>
</div>
<style type="text/css">
#deneme{
position: absolute;
top: 250px;
left: 325px;
}
#dsel1{
position: absolute;
top: 45px;
left: 1230px;
}
input.dser1{
position: absolute;
top: 27px;
left: 1210px;
}
#dstl1{
position: absolute;
top: 45px;
left: 1130px;
}
input.dstr1{
position: absolute;
top: 27px;
left: 1110px;
}
#dilsecl{
position: absolute;
top: 45px;
left: 1000px;
}
#deneme{
font-family: cursive;
color: black;
}
<?php
if (strstr($tarayici,"Chrome")) {
echo "input.aramab{";
echo "text-align: center;";
echo "width: 65px;";
echo "position: absolute;";
echo "top: 115px;";
echo "right: 437px;";
echo "}";
}elseif (strstr($tarayici,"Firefox")) {
echo "input.aramab{";
echo "text-align: center;";
echo "width: 66px;";
echo "height: 27.5px;";
echo "position: absolute;";
echo "top: 114px;";
echo "right: 437px;";
echo "}";
}else {
echo "input.aramab{";
echo "text-align: center;";
echo "width: 65px;";
echo "height: 22px;";
echo "position: absolute;";
echo "top: 115px;";
echo "right: 437px;";
echo "}";
}
?>
input.aramat{
width: 400px;
position: absolute;
top: 115px;
right: 500px;
}
#egoldresim{
position: absolute;
left: 75px;
}
#egoldurunbtnler{
position: absolute;
top: 300px;
left: 150px;
height: 1500px;
width: 1000px;
}
input.dfacebooki{
position: absolute;
top: 25px;
left: 25px;
}
#dfacebookl{
position: absolute;
top: 25px;
left: 65px;
}
input.dtwitteri{
position: absolute;
top: 25px;
left: 450px;
}
#dtwitterl{
position: absolute;
top: 25px;
left: 490px;
}
input.dinstagrami{
position: absolute;
top: 25px;
left: 835px;
}
#dinstagraml{
position: absolute;
top: 25px;
left: 875px;
}
#dmaill1{
position: absolute;
top: 65px;
left: 575px;
}
#dmaill2{
position: absolute;
top: 65px;
left: 630px;
}
html, body {
margin:0;
height:165%;
}
#tamcerceve {
min-height:100%;
position:relative;
}
#altfooter {
position:absolute;
bottom:0;
width:100%;
height:100px;
background: rgb(47, 45, 42);
color: white;
text-align:center;
}
</style>
<?php
if(isset($_SESSION['kayit'])){
if ($_SESSION['kayit'] == "basarili") {
?>
<script type="text/javascript">
alert("Registration successful!");
</script>
<?php
}elseif ($_SESSION['kayit'] == "basarisiz") {
?>
<script type="text/javascript">
alert("Please try again and fill in any empty boxes. If you still get the same result, contact us.");
</script>
<?php
}
unset($_SESSION['kayit']);
}else{
}
if(isset($_SESSION['veridegis'])){
if($_SESSION['veridegis'] == "basarili"){
?>
<script type="text/javascript">
alert("Your personal details have been successfuly changed.");
</script>
<?php
}else if($_SESSION['veridegis'] == "basarisiz"){
?>
<script type="text/javascript">
alert("Your personal details have not been changed. Please try again and contact us if you get the same result.");
</script>
<?php
}else if($_SESSION['veridegis'] == "degisyok"){
?>
<script type="text/javascript">
alert("No presonal details have been changed.");
</script>
<?php
}
unset($_SESSION['veridegis']);
}else{
}
?>
</body>
</html>
corresponding area code :
if (!empty($_GET['menu']) || !empty($_GET['altmenu'])) {
if (isset($_GET['menu'])) {
if (empty($sayfa) || !is_numeric($sayfa)) {
$sayfa = 1;
}
$sayfa = filter_input(INPUT_GET, "sayfa");
$kacar = 20;
$nereden = ($sayfa * $kacar) - $kacar;
$getmenuadi = filter_input(INPUT_GET, "menu");
$vericek2 = $baglanti1 -> prepare ("select * from urunlist where menu = '$getmenuadi' order by no desc limit $nereden,$kacar");
}elseif (isset($_GET['altmenu'])) {
if (empty($sayfa) || !is_numeric($sayfa)) {
$sayfa = 1;
}
$sayfa = filter_input(INPUT_GET, "sayfa");
$kacar = 20;
$nereden = ($sayfa * $kacar) - $kacar;
$getaltmenuadi = filter_input(INPUT_GET, "altmenu");
$vericek2 = $baglanti1 -> prepare ("select * from urunlist where altmenu = '$getaltmenuadi' order by no desc limit $nereden,$kacar");
}
}else{
}
HELP PLEASE!
Note : I don't habe a good English. I hope you understand. Pardon me.
Pictures :
http://ift.tt/2wgSV7nhttp://ift.tt/2wgpUbK
Aucun commentaire:
Enregistrer un commentaire