Şimdi Ara

PHP MENÜLERİ ALTTAN ÜSTTE ALAMIYORUM LÜTFEN YARDIM EDİN.

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
3 Misafir - 3 Masaüstü
5 sn
4
Cevap
0
Favori
219
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • yardım lazım



  • <header class="">
    </div>
    </div>

    <div class="container-fluid">
    <div class="header-top">
    <?php if(TEKLIFFORMU){?>
    <div class="head-btn">
    <div class="btn-item">
    <div class="icon"><i class="fa fa-handshake-o"></i></div>
    <div class="content"><a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=javascript:;" data-href="javascript:;" ><?=@$dil['teklif_formu'];?></a></div>
    </div>
    </div>
    <?php }?>
    <div class="lang">
    <?php
    $DILSorgu = $db->prepare("SELECT * FROM diller ORDER BY sira ASC");
    $DILSorgu->execute();
    $DILislem = $DILSorgu->fetchALL(PDO::FETCH_ASSOC);?>
    <?php foreach ( $DILislem as $DILSonuc ){?>
    <?php $index = end($DILSonuc);?>
    <a href="javascript:;" class="dildegis" data-id="<?=@$DILSonuc['id'];?>">
    <?=($_SESSION['k_dil'] == $DILSonuc['id']) ? "<strong>" : '';?>
    <?php if($DILSonuc['bayrak']){?>
    <img src="<?=TEMA;?>/uploads/diller/kucuk/<?=@$DILSonuc['bayrak'];?>" style="max-width: 25px;">
    <?php }?>
    <?php echo $DILSonuc['adi'];?>
    <?=($_SESSION['k_dil'] == $DILSonuc['id']) ? "</strong>" : '';?>
    </a><?php echo($DILSonuc['id'] != $index ? '' : '<span> / </span>');?>
    <?php }?>
    </div>
    </div>
    </div>
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
    <span class="icon-bar"></span>
    </button>
    </header>
    <!-- <button class="c-hamburger c-hamburger--htx mobil-toggle"> -->
    <!-- <span>toggle menu</span> -->
    <!-- </button> -->
    <div class="mobile-menu">
    <a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=javascript:;" class="mobile-back" data-href="javascript:;" class="mobile-back" ><img src="<?php echo TEMA;?>/assets/img/menu-back.png" alt="<?php echo FIRMAADI;?>"></a>
    <a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=javascript:;" class="mobile-close" data-href="javascript:;" class="mobile-close" ><img src="<?php echo TEMA;?>/assets/img/kapat.png" alt="<?php echo FIRMAADI;?>"></a>
    <h2><?=@$dil['menu'];?></h2>
    <ul class="level-1">
    <?php $MENUSorgu = $db->prepare("SELECT * FROM menu WHERE menu_ust = ? AND dil = ? ORDER BY menu_sira ASC");
    $MENUSorgu->execute(array("0",$_SESSION['k_dil']));
    $MENUislem = $MENUSorgu->fetchALL(PDO::FETCH_ASSOC);?>
    <?php foreach ( $MENUislem as $MENUSonuc ){?>
    <?php $altvarmi = $db->query("SELECT * FROM menu WHERE menu_ust = '{$MENUSonuc['id']}' AND dil = '{$_SESSION['k_dil']}' ORDER BY id DESC LIMIT 1")->rowCount();?>
    <li <?php echo($altvarmi > 0 ? 'class="mobil-drop"' : '');?>><a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=<?php echo($MENUSonuc['menu_url'] == "0" ? $MENUSonuc['link'] : $MENUSonuc['menu_url']); ?>" data-href="<?php echo($MENUSonuc['menu_url'] == "0" ? $MENUSonuc['link'] : $MENUSonuc['menu_url']); ?>" ><?php echo($altvarmi > 0 ? '<i class="fa fa-arrows"></i>' : '<i class="fa fa-arrow-right"></i>');?><?php echo $MENUSonuc['menu_isim']; ?></a>
    <?php $ALTMENUSorgu = $db->prepare("SELECT * FROM menu WHERE menu_ust = ? AND dil = ? ORDER BY menu_sira ASC");
    $ALTMENUSorgu->execute(array($MENUSonuc['id'],$_SESSION['k_dil']));
    $ALTMENUislem = $ALTMENUSorgu->fetchALL(PDO::FETCH_ASSOC);?>
    <?php if($ALTMENUSorgu->rowCount()){?>
    <ul class="level-2">
    <?php foreach ( $ALTMENUislem as $ALTMENUSonuc ){?>
    <li><a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=<?php echo($ALTMENUSonuc['menu_url'] == "0" ? $ALTMENUSonuc['link'] : $ALTMENUSonuc['menu_url']); ?>" data-href="<?php echo($ALTMENUSonuc['menu_url'] == "0" ? $ALTMENUSonuc['link'] : $ALTMENUSonuc['menu_url']); ?>" ><i class="fa fa-caret-right"></i><?php echo $ALTMENUSonuc['menu_isim']; ?></a></li>
    <?php }?>
    </ul>
    <?php }?>
    </li>
    <?php }?>
    </ul>
    </div>
    <?php
    $iphone = stristr(@$_SERVER['HTTP_USER_AGENT'],"iPhone");
    $android = stristr(@$_SERVER['HTTP_USER_AGENT'],"Android");
    $webos = stristr(@$_SERVER['HTTP_USER_AGENT'],"webOS");
    $bberry = stristr(@$_SERVER['HTTP_USER_AGENT'],"BlackBerry");
    $ipod = stristr(@$_SERVER['HTTP_USER_AGENT'],"iPod");
    if ($iphone || $android || $webos || $ipod || $bberry == true)
    {
    ?>
    <div class="slider">
    <div class="swiper-container main-slide">
    <!-- Insert to your webpage where you want to display the slider -->
    <div id="amazingslider-wrapper-1" style="display:block;position:relative;max-width:1920px;margin:191px auto 0px;">
    <div id="amazingslider-1" style="display:block;position:relative;margin:0 auto;">
    <ul class="amazingslider-slides" style="display:none;">
    <?php $Sorgu = $db->prepare("SELECT * FROM slider WHERE durum = ? AND dil = ?");
    $Sorgu->execute(array("1",$_SESSION['k_dil']));
    $islem = $Sorgu->fetchALL(PDO::FETCH_ASSOC);?>
    <?php foreach ( $islem as $Sonuc ){?>
    <li><img src="<?php echo TEMA;?>/uploads/slider/<?php echo $Sonuc['resim']?>" alt="<?php echo $Sonuc['adi']?>" title="<?php echo $Sonuc['adi']?>" data-description="<?php echo $Sonuc['aciklama']?>" />
    <a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=<?php echo $Sonuc['url']?>" <?php echo($Sonuc['sekme'] == 1 ? 'target="_blank"' : '');?>><button class="as-btn-blue-medium" data-href="<?php echo $Sonuc['url']?>" <?php echo($Sonuc['sekme'] == 1 ? 'target="_blank"' : '');?>><button class="as-btn-blue-medium" ><?=@$dil['detay'];?></button></a></li>
    <?php }?>
    </ul>
    </div>
    </div>
    <!-- End of body section HTML codes -->


    </div>
    </div>
    <?php }else{?>
    <div class="slider">
    <div class="swiper-container main-slide">
    <div class="swiper-wrapper">
    <?php $Sorgu = $db->prepare("SELECT * FROM slider WHERE durum = ? AND dil = ?");
    $Sorgu->execute(array("1",$_SESSION['k_dil']));
    $islem = $Sorgu->fetchALL(PDO::FETCH_ASSOC);?>
    <?php foreach ( $islem as $Sonuc ){?>
    <div class="swiper-slide" style="background-image:url(<?php echo TEMA;?>/uploads/slider/<?php echo $Sonuc['resim']?>);">
    <div class="slider-content">
    <div class="container">
    <div class="slide-text">
    <h4><a href="<?php echo $Sonuc['url']?>" <?php echo($Sonuc['sekme'] == 1 ? 'target="_blank"' : '');?>><?php echo $Sonuc['adi']?></a></h4>
    <?php echo $Sonuc['aciklama']?>
    <a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=<?php echo $Sonuc['url']?>" <?php echo($Sonuc['sekme'] == 1 ? 'target="_blank"' : '');?> class="btn sliderbtn btn-blue" data-href="<?php echo $Sonuc['url']?>" <?php echo($Sonuc['sekme'] == 1 ? 'target="_blank"' : '');?> class="btn sliderbtn btn-blue" ><?=@$dil['detay'];?> <i class="fa fa-angle-right"></i></a> </div>
    </div>
    </div>
    </div>
    <?php }?>
    </div>
    </div>
    <div class="slider-button draw">
    <a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=javascript:;" class="prev" data-href="javascript:;" class="prev" ><i class="fa fa-angle-up"></i></a>
    <a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=javascript:;" class="next" data-href="javascript:;" class="next" ><i class="fa fa-angle-down"></i></a>
    </div>

    <?php } ?>


    <?php if($moduller['alan1'] == "1"){?>
    <div class="slider-haber">
    <div class="swiper-container haber-slide">
    <div class="swiper-wrapper">
    <?php $Sorgu = $db->prepare("SELECT * FROM haberler WHERE durum = ? AND dil = ?");
    $Sorgu->execute(array("1",$_SESSION['k_dil']));
    $islem = $Sorgu->fetchALL(PDO::FETCH_ASSOC);?>
    <?php foreach ( $islem as $Sonuc ){?>
    <div class="swiper-slide">
    <div class="haber-item">
    <div class="date">
    <div class="day"><?php echo substr(strip_tags($Sonuc['tarih']),0,2);?></div>
    <div class="mounth"><?php echo substr(strip_tags($Sonuc['tarih']),3,3);?></div>
    </div>
    <div class="content">
    <p><?php echo $Sonuc['adi']?></p>
    <a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=haber/<?php echo $Sonuc['seo']?>.html" data-href="haber/<?php echo $Sonuc['seo']?>.html" ><i class="fa fa-caret-right"></i><?=@$dil['detaylar'];?></a>
    </div>
    </div>
    </div>
    <?php }?>
    </div>
    </div>
    <div class="haber-button">
    <a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=javascript:;" class="prev" data-href="javascript:;" class="prev" ><i class="fa fa-angle-left"></i></a>
    <a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=javascript:;" class="next" data-href="javascript:;" class="next" ><i class="fa fa-angle-right"></i></a>
    </div>
    <div class="ajanslar"><a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=haberler.html" data-href="haberler.html" ><i class="fa fa-newspaper-o"></i><?=@$dil['haberler'];?></a></div>
    <div class="all-news"><a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=haberler.html" data-href="haberler.html" ><i class="fa fa-caret-right"></i><?=@$dil['tum_haberler'];?></a></div>
    </div>
    <?php }?>
    <div class="main-menu">
    <ul >
    <?php $MENUSorgu = $db->prepare("SELECT * FROM menu WHERE menu_ust = ? AND dil = ? ORDER BY menu_sira ASC");
    $MENUSorgu->execute(array("0",$_SESSION['k_dil']));
    $MENUislem = $MENUSorgu->fetchALL(PDO::FETCH_ASSOC);?>
    <?php foreach ( $MENUislem as $MENUSonuc ){?>
    <?php $altvarmi = $db->query("SELECT * FROM menu WHERE menu_ust = '{$MENUSonuc['id']}' AND dil = '{$_SESSION['k_dil']}' ORDER BY id DESC LIMIT 1")->rowCount();?>
    <li><a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=<?php echo($MENUSonuc['menu_url'] == "0" ? $MENUSonuc['link'] : $MENUSonuc['menu_url']); ?>" data-href="<?php echo($MENUSonuc['menu_url'] == "0" ? $MENUSonuc['link'] : $MENUSonuc['menu_url']); ?>" ><?php echo $MENUSonuc['menu_isim']; ?></a>
    <?php $ALTMENUSorgu = $db->prepare("SELECT * FROM menu WHERE menu_ust = ? AND dil = ? ORDER BY menu_sira ASC");
    $ALTMENUSorgu->execute(array($MENUSonuc['id'],$_SESSION['k_dil']));
    $ALTMENUislem = $ALTMENUSorgu->fetchALL(PDO::FETCH_ASSOC);?>
    <?php if($ALTMENUSorgu->rowCount()){?>
    <div class="drop-wrap">
    <ul>
    <?php foreach ( $ALTMENUislem as $ALTMENUSonuc ){?>
    <li><a data-test="test" rel="nofollow" style="word-wrap: break-word;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode1&messageId=142374972&url=<?php echo($ALTMENUSonuc['menu_url'] == "0" ? $ALTMENUSonuc['link'] : $ALTMENUSonuc['menu_url']); ?>" data-href="<?php echo($ALTMENUSonuc['menu_url'] == "0" ? $ALTMENUSonuc['link'] : $ALTMENUSonuc['menu_url']); ?>" ><i class="fa fa-caret-right"></i> <?php echo $ALTMENUSonuc['menu_isim']; ?></a></li>
    <?php }?>
    </ul>
    </div>
    <?php }?>
    </li>
    <?php }?>
    </ul>

    <div class="close-main">
    <button class="c-hamburger c-hamburger1--htx">
    <span>toggle menu</span>
    </button>
    </div>
    </div>
    </div>




  • <?php $MENUSorgu = $db->prepare("SELECT * FROM menu WHERE menu_ust = ? AND dil = ? ORDER BY menu_sira ASC");

    ASC YERİNE DESC kullanacaksın



    < Bu mesaj bu kişi tarafından değiştirildi OneDev -- 16 Mart 2020; 16:49:52 >
  • 
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.