This page was exported from Jurusan Ilmu Komputer FMIPA [ http://ilkom.unila.ac.id ] Export date:Tue Jan 31 6:37:00 2023 / +0000 GMT ___________________________________________________ Title: Jadwa Kuliah Semester Genap Tahun Akademik 2016/2017 --------------------------------------------------- [insert_php] extract($_GET); global $wpdb; $table = $wpdb->prefix . 'posts'; $values = array('all' => __('All Locations', 'wcs3')); $query = "SELECT ID, post_type, post_title FROM $table WHERE post_type = 'wcs3_location' or post_type = 'wcs3_instructor'"; $results = $wpdb->get_results($query); if ($results) { foreach ($results as $loc) { if ($loc->post_type=='wcs3_location') $location_values[$loc->ID]=$loc->post_title; else $instructor_values[$loc->ID]=$loc->post_title; } } sort($location_values); sort($instructor_values); echo " "; echo "Pilih Ruang : "; echo "Semua"; foreach ($location_values as $key=>$value){ echo "$value"; } echo ""; echo "Pilih Dosen : "; echo "Semua"; foreach ($instructor_values as $key=>$value){ echo "$value"; } echo ""; echo" "; $ruang = (empty($location)||$location=="All")?"":"location="$location""; $dosen = (empty($instructor)||$instructor=="All")?"":"instructor="$instructor""; echo "Ruang: $location Dosen: $instructorMonTueWedThuFriSatSun7:309:2011:1013:3015:20"; [/insert_php] --------------------------------------------------- Images: --------------------------------------------------- --------------------------------------------------- Post date: 2017-02-27 02:49:45 Post date GMT: 2017-02-26 19:49:45 Post modified date: 2017-02-27 18:11:38 Post modified date GMT: 2017-02-27 11:11:38 ____________________________________________________________________________________________ Export of Post and Page as text file has been powered by [ Universal Post Manager ] plugin from www.gconverters.com