- Ad
- ZEKİ
- Soyad
- AYGÜN
- Katılım
- 18 Ocak 2019
- Konum
- Yalova
- Konular
- 777
- Mesajlar
- 2,932
- Ticaret - 0%
- Meslek
- Webmaster & SEO
Detay
- Meslek
- Webmaster & SEO
- Tecrübe
- 12 Yıl
- Uzmanlık alanları
- Web tasarım, PHP, SEO, Seslendirme, Video montaj
- İş referanslarım
- youtube.com/channel/UC0EKnd0EWBefw9Wrqw_wrAA
- Üyelik tipi
-
- Bireysel
Hesap
-
ZEKİ AYGÜN
HESAP NO; 1237-0056746
ŞUBE: DOSAB BURSA
İBAN: TR69 0004 6012 3788 8000 0567 46
Hesap
-
ZEKİ AYGÜN
HESAP NO: 497-6640783
ŞUBE: GEMLİK
İBAN: TR60 0006 2000 4970 0006 6407 83
Photoshop
-
- Orta düzey50%
İllüstratör
-
- Başlangıç düzeyi30%
UI / UX tasarım
-
- İleri düzey90%
PHP
-
- Orta düzey50%
CSS3
-
- İleri düzey90%
JavaScript
-
- Orta düzey50%
Bu lılarla rahatlıkla php de çalıştırabilirsiniz tüm iller
Kod:<html> <head> <title>İl ilçe</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> </head> <body> <form action="" method="post"> <div class="container"> <div class="row"> <div class="col-md-12"><h1>Nöbetçi Eczaneler</h1></div> <div class="col-md-3"> <select name="il" id="il" class="form-control"> <option value="">Seçin...</option> </select> </div> <div class="col-md-3"> <select name="ilce" id="ilce" class="form-control" disabled="disabled"> <option value="">Seçin...</option> </select> </div> <div> <button type="submit" class="btn btn-succes">Gönder</button> </div> <?php function harfDegistir($Deger){ $bul = @$_POST[$Deger]; $bulunacak = array('A','B','C','Ç','D','E','F','G','Ğ','H','I','İ','J','K','L','M','N','O','Ö','P','R','S','Ş','T','U','Ü','V','Y','Z'); $degistir = array('a','b','c','c','d','e','f','g','g','h','i','i','j','k','l','m','n','o','o','p','r','s','s','t','u','u','v','y','z'); $sonuc=str_replace($bulunacak, $degistir, $bul); return $sonuc; } $bulil='il'; $bulilce='ilce'; if(@$_POST["ilce"]==""){ } else{ $site = "https://www.mynet.com/".harfDegistir($bulil)."/".harfDegistir($bulilce)."-nobetci-eczaneler"; $bolme = ('@<div class="col-7">.*?</div>@si'); $bolme2 = ('@<p><strong>Adres:</strong>.*?</p>@si'); $bolme3 = ('@<p><strong>Telefon:</strong>.*?</p>@si'); $arama = file_get_contents($site); preg_match_all($bolme,$arama,$ezcaneadi); preg_match_all($bolme2,$arama,$eczaneadres); preg_match_all($bolme3,$arama,$eczanetel); if(@$ezcaneadi[0][0]!="") { $salaksacma = array($ezcaneadi); $eczaneSayisiSay = (count($salaksacma[0],1)-1); ?> <table class="table"> <thead> <tr> <th scope="col">#</th> <th scope="col">Eczane Adı</th> <th scope="col">Adres</th> <th scope="col">Telefon</th> </tr> </thead> <tbody> <?php for ($i=0; $i < $eczaneSayisiSay; $i++) { ?> <tr> <th scope="row"><?php echo $i+1; ?></th> <td> <?php echo $ezcaneadi[0][$i]; ?></td> <td><?php echo $eczaneadres[0][$i]; ?></td> <td><?php echo $eczanetel[0][$i]; ?> </td> </tr> <?php } ?> </tbody> </table> <?php }else{ ?> <table class="table"> <thead> <tr> <th><center>Kayıt Bulunamadı</center></th> </tr></thead></table> <?php } } ?> </div> </div> </form> <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script> $.getJSON("il-bolge.json", function(sonuc){ $.each(sonuc, function(index, value){ var row=""; row +='<option value="'+value.il+'">'+value.il+'</option>'; $("#il").append(row); }) }); $("#il").on("change", function(){ var il=$(this).val(); $("#ilce").attr("disabled", false).html("<option value=''>Seçin..</option>"); $.getJSON("il-ilce.json", function(sonuc){ $.each(sonuc, function(index, value){ var row=""; if(value.il==il) { row +='<option value="'+value.ilce+'">'+value.ilce+'</option>'; $("#ilce").append(row); } }); }); }); </script> </body> </html> [CENTER]
İçeriği görebilmek için üye olunuz
Benzer konular
- Cevaplar
- 0
- Görüntüleme
- 82
- Cevaplar
- 0
- Görüntüleme
- 91
- Cevaplar
- 0
- Görüntüleme
- 241
- Cevaplar
- 0
- Görüntüleme
- 228
- Cevaplar
- 2
- Görüntüleme
- 302