Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FormulirUTBK
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oppir hutapea
FormulirUTBK
Commits
33e88ac2
Commit
33e88ac2
authored
Jul 18, 2019
by
Oppir hutapea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
penambahan field pilihan 1 dan 2
parent
58af10c5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
8 deletions
+45
-8
formulir.sql
formulir.sql
+4
-2
index.php
index.php
+36
-3
upload_proses.php
upload_proses.php
+5
-3
No files found.
formulir.sql
View file @
33e88ac2
...
@@ -27,13 +27,15 @@ CREATE TABLE `mahasiswa_baru` (
...
@@ -27,13 +27,15 @@ CREATE TABLE `mahasiswa_baru` (
`tanggal_lahir`
date
DEFAULT
NULL
,
`tanggal_lahir`
date
DEFAULT
NULL
,
`asal`
varchar
(
200
)
DEFAULT
NULL
,
`asal`
varchar
(
200
)
DEFAULT
NULL
,
`nisn`
int
(
50
)
DEFAULT
NULL
,
`nisn`
int
(
50
)
DEFAULT
NULL
,
`nps
m
`
int
(
50
)
DEFAULT
NULL
,
`nps
n
`
int
(
50
)
DEFAULT
NULL
,
`no_peserta`
int
(
50
)
DEFAULT
NULL
,
`no_peserta`
int
(
50
)
DEFAULT
NULL
,
`tanggal_pelaksanaan`
date
DEFAULT
NULL
,
`tanggal_pelaksanaan`
date
DEFAULT
NULL
,
`no_handphone`
int
(
20
)
DEFAULT
NULL
,
`no_handphone`
int
(
20
)
DEFAULT
NULL
,
`pilihan_1`
varchar
(
200
)
DEFAULT
NULL
,
`pilihan_2`
varchar
(
200
)
DEFAULT
NULL
,
`sertifikat`
varchar
(
200
)
DEFAULT
NULL
,
`sertifikat`
varchar
(
200
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
67
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
72
DEFAULT
CHARSET
=
latin1
;
/*Data for the table `mahasiswa_baru` */
/*Data for the table `mahasiswa_baru` */
...
...
index.php
View file @
33e88ac2
...
@@ -88,8 +88,8 @@
...
@@ -88,8 +88,8 @@
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"title"
>
NPS
M
</label>
<label
class=
"title"
>
NPS
N
</label>
<input
type=
"text"
name=
"nps
m"
class=
"form-control"
placeholder=
"NPSM
"
required=
""
>
<input
type=
"text"
name=
"nps
n"
class=
"form-control"
placeholder=
"NPSN
"
required=
""
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"title"
>
Nomor Peserta UTBK
</label>
<label
class=
"title"
>
Nomor Peserta UTBK
</label>
...
@@ -103,11 +103,44 @@
...
@@ -103,11 +103,44 @@
<label
class=
"title"
>
No Handphone
</label>
<label
class=
"title"
>
No Handphone
</label>
<input
type=
"text"
name=
"no_handphone"
class=
"form-control"
placeholder=
"No Handphone"
required=
""
>
<input
type=
"text"
name=
"no_handphone"
class=
"form-control"
placeholder=
"No Handphone"
required=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"title"
>
Pilihan 1
</label>
<select
name=
"pilihan_1"
class=
"form-control"
id=
"exampleFormControlSelect1"
>
<option>
-
</option>
<option>
D-III Teknik Informatika
</option>
<option>
D-III Teknik Komputer
</option>
<option>
D-IV Teknik Informatika
</option>
<option>
S1 Teknik Informatika
</option>
<option>
S1 Sistem Informasi
</option>
<option>
S1 Teknik Elektro
</option>
<option>
S1 Manajemen Rekayasa
</option>
<option>
S1 Teknik Bioproses
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"title"
>
Pilihan 2
</label>
<select
name=
"pilihan_2"
class=
"form-control"
id=
"exampleFormControlSelect1"
>
<option>
-
</option>
<option>
D-III Teknik Informatika
</option>
<option>
D-III Teknik Komputer
</option>
<option>
D-IV Teknik Informatika
</option>
<option>
S1 Teknik Informatika
</option>
<option>
S1 Sistem Informasi
</option>
<option>
S1 Teknik Elektro
</option>
<option>
S1 Manajemen Rekayasa
</option>
<option>
S1 Teknik Bioproses
</option>
</select>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"title"
>
Sertifikat
</label>
<label
class=
"title"
>
Sertifikat UTBK
</label>
<p>
Cth Nama file : Sertifikat_utbk_nisn.pdf
</p>
<input
type=
"file"
name=
"sertifikat"
class=
"form-control"
placeholder=
"NISN"
required=
""
>
<input
type=
"file"
name=
"sertifikat"
class=
"form-control"
placeholder=
"NISN"
required=
""
>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
type=
"submit"
class=
"btn btn-primary"
onclick=
"return checkData()"
>
<button
type=
"submit"
class=
"btn btn-primary"
onclick=
"return checkData()"
>
<i
class=
"glyphicon glyphicon-plus"
></i>
Tambah
<i
class=
"glyphicon glyphicon-plus"
></i>
Tambah
...
...
upload_proses.php
View file @
33e88ac2
...
@@ -10,19 +10,21 @@ include 'function.php';
...
@@ -10,19 +10,21 @@ include 'function.php';
$tanggal_lahir
=
$_POST
[
'tanggal_lahir'
];
$tanggal_lahir
=
$_POST
[
'tanggal_lahir'
];
$asal
=
$_POST
[
'asal'
];
$asal
=
$_POST
[
'asal'
];
$nisn
=
$_POST
[
'nisn'
];
$nisn
=
$_POST
[
'nisn'
];
$nps
m
=
$_POST
[
'npsm
'
];
$nps
n
=
$_POST
[
'npsn
'
];
$no_peserta
=
$_POST
[
'no_peserta'
];
$no_peserta
=
$_POST
[
'no_peserta'
];
$tanggal_pelaksanaan
=
$_POST
[
'tanggal_pelaksanaan'
];
$tanggal_pelaksanaan
=
$_POST
[
'tanggal_pelaksanaan'
];
$no_handphone
=
$_POST
[
'no_handphone'
];
$no_handphone
=
$_POST
[
'no_handphone'
];
$pilihan_1
=
$_POST
[
'pilihan_1'
];
$pilihan_2
=
$_POST
[
'pilihan_2'
];
$sertifikat
=
$_FILES
[
'sertifikat'
][
'name'
];
$sertifikat
=
$_FILES
[
'sertifikat'
][
'name'
];
move_uploaded_file
(
$_FILES
[
'sertifikat'
][
'tmp_name'
],
"file/"
.
$sertifikat
);
move_uploaded_file
(
$_FILES
[
'sertifikat'
][
'tmp_name'
],
"file/"
.
$sertifikat
);
$input
=
mysqli_query
(
$conn
,
"INSERT INTO mahasiswa_baru (nama,tempat_lahir,tanggal_lahir,asal,nisn,nps
m,no_peserta,tanggal_pelaksanaan,no_handphone,sertifikat) VALUES ('
$nama
','
$tempat_lahir
','
$tanggal_lahir
','
$asal
','
$nisn
','
$npsm
','
$no_peserta
','
$tanggal_pelaksanaan
','
$no_handphone
','
$sertifikat
')"
);
$input
=
mysqli_query
(
$conn
,
"INSERT INTO mahasiswa_baru (nama,tempat_lahir,tanggal_lahir,asal,nisn,nps
n,no_peserta,tanggal_pelaksanaan,no_handphone,pilihan_1,pilihan_2,sertifikat) VALUES ('
$nama
','
$tempat_lahir
','
$tanggal_lahir
','
$asal
','
$nisn
','
$npsn
','
$no_peserta
','
$tanggal_pelaksanaan
','
$no_handphone
','
$pilihan_1
','
$pilihan_2
','
$sertifikat
')"
);
if
(
$input
){
if
(
$input
){
// echo "<script>alert('Data Berhasil Ditambah');document.location.href='
upload
.php'</script>";
// echo "<script>alert('Data Berhasil Ditambah');document.location.href='
index
.php'</script>";
echo
"<script>alert('Data Berhasil Ditambah');document.location.href='http://spmb.del.ac.id/'</script>"
;
echo
"<script>alert('Data Berhasil Ditambah');document.location.href='http://spmb.del.ac.id/'</script>"
;
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment