This page was exported from Jurusan Ilmu Komputer FMIPA [ http://ilkom.unila.ac.id ]
Export date: Sun Aug 9 0:50:31 2020 / +0000 GMT

Pendaftaran MK Kapita Selekta


Mata kuliah kapita selekta dibagi menjadi 7 bidang, yaitu:

  1. Sistem Cerdas

  2. SMS Gateway

  3. Sistem informasi

  4. Visualization Programming

  5. Grafika Komputer (Fraktal)

  6. Computer Vision (OpenCV)

  7. Komputasi


Untuk itu kapasitas masing-masing bidang dibatasi sebanyak 28 mahasiswa. Isi form berikut untuk mendaftarkan diri anda. Mahasiswa hanya diperkenankan memilih 1 kali, Bidang yang sudah penuh tidak dapat dipilih lagi.


FORM PENDAFTARAN MK KAPITA SELEKTA

[insert_php]
extract($_GET);
global $wpdb;
$table = $wpdb->prefix . 'bidangmk';
$data_bidang = array("Sistem Cerdas", "SMS Gateway", "Sistem informasi",
"Visualization Programming","Grafika Komputer (Fraktal)","Computer Vision (OpenCV)","Komputasi");

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(){
$data_bidang = array("Sistem Cerdas", "SMS Gateway", "Sistem informasi",
"Visualization Programming","Grafika Komputer (Fraktal)","Computer Vision (OpenCV)","Komputasi");
global $wpdb;
$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("2017-09-02 09:00:00");
$datediff = $date - $current;
// if ($datediff>0){
if (1>0){
// echo "Pendaftaran dibuka pada: Sabtu, 2 September 2017 pukul 09:00";
echo "Pendaftaran ditutup
";
$query = "SELECT bidang, COUNT( bidang ) AS jml
FROM $table
GROUP BY bidang";
$results = $wpdb->get_results($query);
if ($results) {
foreach ($results as $loc) {
echo "
".$data_bidang[$loc->bidang-1]." : ".$loc->jml;
}
}
echo "
";

printData();
} else {
if ($submit) {
$sesi="kapita2017";
$data = $wpdb->get_row( "SELECT count(*) as jml FROM $table WHERE bidang = $bidang" );
if ($data->jml<28) {
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";
}
}

echo "


";
echo "NPM : ";
echo "
Nama : ";
echo "
Pilih Bidang Kapita Selekta: ";
echo"


";
}
[/insert_php]
Post date: 2017-09-01 14:48:29
Post date GMT: 2017-09-01 07:48:29
Post modified date: 2017-09-03 14:49:32
Post modified date GMT: 2017-09-03 07:49:32
Powered by [ Universal Post Manager ] plugin. HTML saving format developed by gVectors Team www.gVectors.com