Cari Daerah





file==NULL) { ?> id_iklan' and iklan_hari='$tgl_skrg'"); $kj = mysql_fetch_object($data_kj); if ($kj->ip==$ip) { } else { $data_log="INSERT INTO pengunjung_iklan (id_iklan,ip,iklan_hari) values ('".$iklan_tk3->id_iklan."','".$ip."','".$tgl_skrg."')"; $log = mysql_query($data_log); } if($iklan_tk3->typefile=="swf") { ?>
file==NULL) { ?> id_iklan' and iklan_hari='$tgl_skrg'"); $kj = mysql_fetch_object($data_kj); if ($kj->ip==$ip) { } else { $data_log="INSERT INTO pengunjung_iklan (id_iklan,ip,iklan_hari) values ('".$iklan_tk4->id_iklan."','".$ip."','".$tgl_skrg."')"; $log = mysql_query($data_log); } if($iklan_tk4->typefile=="swf") { ?>
file==NULL) { ?> id_iklan' and iklan_hari='$tgl_skrg'"); $kj = mysql_fetch_object($data_kj); if ($kj->ip==$ip) { } else { $data_log="INSERT INTO pengunjung_iklan (id_iklan,ip,iklan_hari) values ('".$iklan_tk2->id_iklan."','".$ip."','".$tgl_skrg."')"; $log = mysql_query($data_log); } if($iklan_tk2->typefile=="swf") { ?>

nama_prov ?> / nama_kabkot ?> / nama_kec ?>

nama_prov ?> / nama_kabkot ?>

nama_prov ?>

Pencarian Sekolah

                                                                                                                                                                                                                                                                       



    1) { //previous button if ($page > 1) if($string!=NULL) { $prev_.= "
  • <
  • "; } else if($_GET['search']!=NULL) { $prev_.= "
  • <
  • "; } else { $prev_.= "
  • <
  • "; } else{ } //pages if ($lastpage < 5 + ($adjacents * 2)) //not enough pages to bother breaking it up { $first=''; for ($counter = 1; $counter <= $lastpage; $counter++) { if ($counter == $page) $pagination.= "
  • ".$counter."
  • "; else if($string!=NULL) { $pagination.= "
  • ".$counter."
  • "; } else { $pagination.= "
  • ".$counter."
  • "; } } $last=''; } elseif($lastpage > 3 + ($adjacents * 2)) //enough pages to hide some { //close to beginning; only hide later pages $first=''; if($page < 1 + ($adjacents * 2)) { for ($counter = 1; $counter < 4 + ($adjacents * 2); $counter++) { if ($counter == $page) $pagination.= "
  • ".$counter."
  • "; else if($string!=NULL) { $pagination.= "
  • ".$counter."
  • "; } else { $pagination.= "
  • ".$counter."
  • "; } } if($string!=NULL) { $last.= "
  • >>
  • "; } else { $last.= "
  • >>
  • "; } } //in middle; hide some front and some back elseif($lastpage - ($adjacents * 2) > $page && $page > ($adjacents * 2)) { if($string!=NULL) { $first.= "
  • <<
  • "; } else { $first.= "
  • <<
  • "; } for ($counter = $page - $adjacents; $counter <= $page + $adjacents; $counter++) { if ($counter == $page) $pagination.= "
  • ".$counter."
  • "; else if($string!=NULL) { $pagination.= "
  • ".$counter."
  • "; } else { $pagination.= "
  • ".$counter."
  • "; } } if($string!=NULL) { $last.= "
  • >>
  • "; } else { $last.= "
  • >>
  • "; } } //close to end; only hide early pages else { $first.= "
  • First
  • "; for ($counter = $lastpage - (2 + ($adjacents * 2)); $counter <= $lastpage; $counter++) { if ($counter == $page) $pagination.= "
  • ".$counter."
  • "; else if($string!=NULL) { $pagination.= "
  • ".$counter."
  • "; } else { $pagination.= "
  • ".$counter."
  • "; } } $last=''; } } if ($page < $counter - 1) if($string!=NULL) { $next_.= "
  • >
  • "; } else { $next_.= "
  • >
  • "; } else{ } $pagination = "
      ".$first.$prev_.$pagination.$next_.$last; $pagination.= "
    "; } echo $pagination; $i=0; $str=""; $i=0; $strrr1 =""; while ($row = mysql_fetch_object ($query)) { if($i % 3 == 0) { if ($pv !=NULL and $kb==NULL and $kc==NULL) { $data_iklan = mysql_query("SELECT * from iklandaerah where id_prov='$pv' and id_kabkot='' and id_kec='' limit $wew,1"); $rowiklan = mysql_fetch_object($data_iklan); $str .= is_null($rowiklan->link) ? "":""; $wew++; } else if ($pv !=NULL and $kb!=NULL and $kc==NULL) { $data_iklan = mysql_query("SELECT * from iklandaerah where id_prov='$pv' and id_kabkot='$kb' and id_kec='' limit $wew,1"); $rowiklan = mysql_fetch_object($data_iklan); $str .= is_null($rowiklan->link) ? "":""; $wew++; } else if ($pv !=NULL and $kb!=NULL and $kc!=NULL) { $data_iklan = mysql_query("SELECT * from iklandaerah where id_prov='$pv' and id_kabkot='$kb' and id_kec='$kc' limit $wew,1"); $rowiklan = mysql_fetch_object($data_iklan); $str .= is_null($rowiklan->link) ? "":""; $wew++; } else { $data_iklan = mysql_query("SELECT * from iklandaerah ORDER BY id_prov,id_kabkot,id_kec limit $wew,1"); $rowiklan = mysql_fetch_object($data_iklan); $str .= is_null($rowiklan->link) ? "":""; $wew++; } } // Ini Data Sekolah if ($row['paket']=="Free") { $data_sl = mysql_query("SELECT count(kode) as counter FROM `sekolah_kunjungan` where kode ='".$row['kode']."' and tgl_kunjungan between '".$row2->range_awal."' AND '".$row2->range_akhir."' "); $sl = mysql_fetch_object($data_sl); $data_dk = mysql_query("SELECT count(kode) as counter FROM `sekolah_dukung` where kode ='".$row['kode']."'"); $dk = mysql_fetch_object($data_dk); $str.="
  • counter."');\" >

    ".$row['nama_sekolah']."

    Dilihat : ".$sl->counter."
    : ".$row['alamat']."
  • "; } else if ($row['paket']=="Statis_Premium" and $row['diskon']=="Ya" or $row['paket']=="Slideshow_Premium" and $row['diskon']=="Ya" or $row['paket']=="Flash_Premium" and $row['diskon']=="Ya") { $jd = $row['link']; $data_sl = mysql_query("SELECT count(kode) as counter FROM `sekolah_kunjungan` where kode ='".$row['kode']."' and tgl_kunjungan between '".$row2->range_awal."' AND '".$row2->range_akhir."' "); $sl = mysql_fetch_object($data_sl); if ($row['induk_kuliah']=="YA") { $str.="
  • ".$row['nama_sekolah']."

    Dilihat : ".$sl->counter."
    : ".$row['alamat']."
  • "; } else { $str.="
  • ".$row['nama_sekolah']."

    Dilihat : ".$sl->counter."
    : ".$row['alamat']."
  • "; } } else { $jd = $row['link']; $data_sl = mysql_query("SELECT count(kode) as counter FROM `sekolah_kunjungan` where kode ='".$row['kode']."' and tgl_kunjungan between '".$row2->range_awal."' AND '".$row2->range_akhir."' "); $sl = mysql_fetch_object($data_sl); if ($row['induk_kuliah']=="YA") { $str.="
  • ".$row['nama_sekolah']."

    Dilihat : ".$sl->counter."
    : ".$row['alamat']."
  • "; } else { $str.="
  • ".$row['nama_sekolah']."

    Dilihat : ".$sl->counter."
    : ".$row['alamat']."
  • "; } } $i++; ?>