<?php /* Template Name: Trafik Durumu */ ?><?php include(TEMPLATEPATH . '/header.php'); ?><?php $sehir = $_GET['sehir']; $harita = $_GET['harita']; if(empty($harita)) { $harita = "istanbul";} ?><?php wp_reset_query(); ?>
Trafik - Yol Durumu

Bir Şehir Seçiniz

<?php if ($harita == "istanbul" or $sehir == "istanbul") { ?><?php } ?><?php if ($harita == "ankara" or $sehir == "ankara") { ?><?php } ?><?php if ($harita == "izmir" or $sehir == "izmir") { ?><?php } ?>
<?php $str = file_get_contents(TEMPLATEPATH . '/datalar.json'); $json = json_decode($str); foreach($json->sehirler as $item) { if($item->id == $harita) { ?><?php } } ?>
<?php include(TEMPLATEPATH . '/footer.php'); ?>