This page was exported from Jurusan Ilmu Komputer FMIPA [ http://ilkom.unila.ac.id ]
Export date: Sat Aug 8 23:59:45 2020 / +0000 GMT

Pendaftaran Mata Kuliah Kapita Selekta


Mata Kuliah Pilihan, yaitu:

  1. Kapita Selekta Programming Basic (Bagi yang Kurang Memguasai Pemrograman)

  2. Kapita Selekta Software Metrics

  3. Kapita Selekta Sistem Cerdas

  4. Kapita Selekta Sistem informasi

  5. Kapita Selekta Visualization Programming

  6. Kapita Selekta Computer Vision (OpenCV)

  7. Kapita Selekta Komputasi

  8. Kapita Selekta Spatial Enterprise Planning

  9. Kapita Selekta Location Base Service

  10. Kapita Selekta Enterprise Resouces Planning

  11. Kapita Selekta Inovasi Teknologi Bisnis

  12. Kapita Selekta Perl


Untuk Pilihan Minat kapasitas masing-masing mata kuliah dibatasi sebanyak 13 mahasiswa, kecuali yang programming basic sebanyak 24 mahasiswa.

[insert_php]
extract($_GET);
global $wpdb;
global $table;
global $data_bidang;
$table = $wpdb->prefix . 'bidangmk';
$data_bidang = array("Programming Basic","Software Metrics","Sistem Cerdas","Sistem informasi",
"Visualization Programming","Computer Vision (OpenCV)","Komputasi",
"Spatial Enterprise Planning","Location Base Service","Enterprise Resouces Planning",
"Inovasi Teknologi Bisnis","Bahasa Perl");
function getRealIpAddr()
{
if (!empty($_SERVER['HTTP_CLIENT_IP']))
{
$ip=$_SERVER['HTTP_CLIENT_IP'];
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
}
else
{
$ip=$_SERVER['REMOTE_ADDR'];
}
return $ip;
}

function printData(){
global $data_bidang;
global $wpdb;
$wpdb->show_errors();
$table = $wpdb->prefix . 'bidangmk';
$query = "SELECT npm, nama, bidang from $table ORDER BY npm";
$results = $wpdb->get_results($query);
if ($results) {
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
foreach ($results as $data) {
echo "";
echo "";
echo "";
echo "";
echo "";
}
echo "
NPMNAMABIDANG
".$data->npm."".$data->nama."".$data_bidang[$data->bidang-1]."
";
}
}

date_default_timezone_set("Asia/Jakarta");
$current = strtotime(date("Y-m-d H:i:s"));
$date = strtotime("2018-08-11 17:05:00");
$datediff = $date - $current;
// die(" ini datediff ".$datediff);
if ($datediff>0){
//if (1>0){
echo "Pendaftaran dibuka pada: Sabtu, 11 Agustus 2018 pukul 17:00";
// echo "Pendaftaran ditutup
";


// echo "
";

// printData();
} else {
if ($submit) {
//$sesi="mkpilihan_genap2018";
$next=1;
if ($sesi=='kapita_gjl1819') {
if ($bidang>=13) $next=0;
}
if ($next==0) {
echo "DATA GAGAL DISIMPAN. Kemungkinan Kesalahan:

1. Anda Belum Memilih Pilihan 1. Anda Harus Memilih Pilihan 1 Terlebih Dahulu.

2. Pilihan 1 Anda Bukan Salah satu MK Minat SI atau Ilkom

3. Anda memilih pilihan 3 tetapi anda belum memilih pilihan 1 dan 2.

4. Anda memilih pilihan 4 tetapi anda belum memilih pilihan 1, 2 dan 3.
";
} else {
$data = $wpdb->get_row( "SELECT count(*) as jml
FROM $table
WHERE bidang = $bidang
AND sesi = '$sesi'" );
$jml_max =15;
if ($bidang==1) $jml_max =24;
if ($data->jml<$jml_max) {
if ($wpdb->insert(
$table,
array(
'npm' => $npm,
'nama' => $nama,
'bidang' => $bidang,
'sesi' => $sesi,
'ip_address'=>getRealIpAddr()
)
)) {echo "DATA DISIMPAN";}
else { echo "DATA GAGAL DISIMPAN. NPM ANDA HANYA BOLEH MENDAFTAR 1 KALI";}

} else {
echo "MAAF KELAS SUDAH PENUH, SILAHKAN PILIH BIDANG LAIN";
}
}
}
function listResult($s) {
global $wpdb;
global $table;
global $data_bidang;
$kuery = "SELECT bidang, COUNT( bidang ) AS jml
FROM $table
WHERE sesi ='$s'
GROUP BY bidang";
//die ("ini ".$kuery);

$results = $wpdb->get_results($kuery);
if ($results) {
foreach ($results as $loc) {
echo "
".$data_bidang[$loc->bidang-1]." : ".$loc->jml;
}
}
}
echo "
Bidang Kapita Selekta";
listResult('kapita_gjl1819');


echo "

FORM PENDAFTARAN MK PILIHAN


";
echo "
No Pilihan:
";
echo "NPM : ";
echo "
Nama : ";
echo "
Pilih Bidang MK: ";
echo"


";
}
[/insert_php]
Post date: 2018-08-11 15:38:37
Post date GMT: 2018-08-11 08:38:37
Post modified date: 2018-08-12 06:29:33
Post modified date GMT: 2018-08-11 23:29:33
Powered by [ Universal Post Manager ] plugin. HTML saving format developed by gVectors Team www.gVectors.com