OrderCur=$order_cur
IDTukar=$id_tukar
Order Tkaur=$posisi_tukar"; } //==End Fungsi Pengurutan== function tree_learning($catid, $level, $catid2) { $folico="folico_$catid"; $folder="folder_$catid"; $tree.="
"; $result_art2=mysql_query("SELECT * FROM learning3_master WHERE Catid='$catid2' and Status='1' and (flag=1) ORDER BY ordering ASC") or die("gagal2"); $rows3=array(); while ($row3 = mysql_fetch_assoc($result_art2)) { $rows3[]=$row3; } $jumlah=count($rows3); $sebenarnya=$jumlah-1; for($i=0;$i<$jumlah;$i++){ if($i==0){ $cell1="         "; $cell2=""; } else if($i==$sebenarnya){ $cell1=""; $cell2="         "; } else{ $cell1=""; $cell2=""; } $tree.="
  • "; if(isset($_SESSION['username']) && ($_SESSION['usertype']=="editor")) { $tree.="$cell1 $cell2"; } $tree.= "".$rows3[$i][Title].""; if(isset($_SESSION['username']) && ($_SESSION['usertype']=="editor")) {$tree.=" "; } $tree.="
  • "; } $result2=mysql_query("SELECT * FROM learning3_cat WHERE IDLong LIKE '$catid.%' ORDER BY IDCat ASC") or die("gagal2"); while ($row2 = mysql_fetch_array($result2, MYSQL_BOTH)) { $tree.=""; } $tree.="
    "; return $tree; } // Bwat Breadcumb // Deteksi kat_id ada di child mana? echo ""; echo "
    ".TGL_TODAY."  
    "; //Pilih Topik sesuai ID atau dari awal Tree if (isset($id)){ $result=mysql_query("SELECT * FROM learning3_cat WHERE IDCat ='$id' ") or die("gagal2"); $row = mysql_fetch_array($result, MYSQL_BOTH); $sub =substr_count($row["IDLong"], ".")+1; $id_long=$row["IDLong"]; $id_cat=$row["IDCat"]; $cat_cari="(IDLong LIKE '$id_long.%')"; } else { $sub=1; $cat_cari="(LOCATE(BINARY '.',IDLong)=0)"; } //Tulis Kurs echo "

    Resume

    "; if(isset($_SESSION['username']) && (($_SESSION['usertype']=="editor"))) { echo " Add Resume  "; } echo " Cari Resume
    "; echo "
    "; // echo "
    "; // Cari yang kategori Utama $result=mysql_query("SELECT * FROM learning3_cat WHERE $cat_cari ORDER BY IDLong ASC") or die("gagal son") ; while ($row = mysql_fetch_array($result, MYSQL_BOTH)) { $id_cat=$row["IDCat"]; $catid=$row["IDLong"]; $catid2=$row["IDCat"]; $folico="folico_$catid"; $folder="folder_$catid"; echo "
    ".$row["IDLong"].". "."".$row["Catname"].""; if(isset($_SESSION['username']) && ($_SESSION['usertype']=="editor")) {echo " - "; } echo "
    "; echo tree_learning($catid,$sub, $catid2); } echo "
    " ; echo "
    "; //Tulis Form Pencarian Artikel $hint_jenis="Pilih Jenis Peraturan, bila Semua maka seluruh jenis peraturan dicari.
    Memilih jenis peraturan akan mempersempit dan mempercepat hasil pencarian."; $hint_topik="Pilih Topik/Kategori Resume untuk mempersempit pencarian."; $hint_dest="Cari kata kunci di Judul saja atau isi peraturan lengkap. "; $hint_hit="Pilih jumlah hasil pencarian per halaman."; $hint_str="Silakan isi kata kunci dan metode pencarian.Match=kata persis; And=Artikel mengandung frase1 atau frase2; Or=Artikel mengandung frase1 dan frase2; Klik Bantuan Pencarian untuk lengkapnya"; echo "
    Pencarian Resume
    "; echo "
    "; echo " "; echo "
    Kata Kunci :
    Match  
    AND  
    OR  
    Topik :  
    Cari di :
    Judul  
    Isi  
     
    Hasil per halaman :  

     
    "; print "
    "; //tutup Div kiri echo "

    "; //Tulis Random Artikel u/ JTS , terbaru u/ echo "
    "; // include ("../user/4right_user.php"); include ("../include/4right.php"); echo "
    "; include "../../engine/include/footer.php"; ?>