Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA1-1617-D3TI107
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Franciskus Partogu Hamonangan Napitupulu
PA1-1617-D3TI107
Commits
79005422
Commit
79005422
authored
May 24, 2017
by
Franciskus Partogu Hamonangan Napitupulu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mwmpwerbaiki form inputan artikel
parent
47a9f038
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
17 deletions
+56
-17
addarticle.php
addarticle.php
+5
-4
style.css
css/style.css
+39
-1
editarticle.php
editarticle.php
+12
-12
Tembakau Bagi Penderita Diabetes.jpg
images/Tembakau Bagi Penderita Diabetes.jpg
+0
-0
No files found.
addarticle.php
View file @
79005422
...
...
@@ -17,12 +17,13 @@
<div
class=
"register"
>
<div
class=
"container"
>
<h2>
Tambah Data Artikel
</h2>
<div
class=
"login-form-grids"
>
<h5>
Data Artikel
</h5>
<div
class=
"login-form-grids1"
>
<center><h1>
Data Artikel
</h1S></center>
<br>
<form
action=
"addarticle_process.php"
method=
"POST"
enctype=
"multipart/form-data"
>
<input
type=
"text"
name=
"judul_artikel"
placeholder=
"Judul Artikel"
required=
" "
><br>
<textarea
name=
"isi_artikel"
placeholder=
"Isi Artikel
"
required=
" "
></textarea>
<br><br>
Pilih File Gambar :
<br>
<textarea
name=
"isi_artikel"
placeholder=
"Isi Artikel"
style=
"width:100%; height:450px
"
required=
" "
></textarea>
<br><br>
<b>
Pilih File Gambar :
</b><br>
<br>
<input
type=
"file"
name=
"gambar_artikel"
accept=
"img/*"
required=
" "
>
<input
type=
"submit"
name=
"tambah"
value=
"tambah"
>
</form>
...
...
css/style.css
View file @
79005422
...
...
@@ -935,7 +935,45 @@ a.w3_agile_vimeo:hover{
.login-form-grids
::-webkit-input-placeholder
{
color
:
#999
;
}
.forgot
a
{
.login-form-grids1
{
width
:
85%
;
padding
:
3em
;
background
:
#F7F7F9
;
margin
:
3em
auto
0
;
}
.login-form-grids1
input
[
type
=
"email"
],
.login-form-grids1
input
[
type
=
"password"
],
.login-form-grids1
input
[
type
=
"text"
]
{
outline
:
none
;
border
:
1px
solid
#DBDBDB
;
padding
:
10px
10px
10px
10px
;
font-size
:
14px
;
color
:
#999
;
display
:
block
;
width
:
100%
;
}
.login-form-grids1
input
[
type
=
"password"
]
{
margin
:
1em
0
0
;
}
.forgot
{
margin
:
1.5em
0
0
;
}
.login-form-grids1
input
[
type
=
"submit"
]
{
outline
:
none
;
border
:
none
;
padding
:
10px
0
;
font-size
:
1em
;
color
:
#fff
;
display
:
block
;
width
:
100%
;
background
:
#3399cc
;
margin
:
1.5em
0
0
;
}
.login-form-grids1
input
[
type
=
"submit"
]
:hover
{
background
:
#fe9126
;
}
.login-form-grids1
::-webkit-input-placeholder
{
color
:
#999
;
}
a
{
color
:
#212121
;
font-size
:
14px
;
text-decoration
:
none
;
...
...
editarticle.php
View file @
79005422
...
...
@@ -17,8 +17,8 @@
<div
class=
"register"
>
<div
class=
"container"
>
<h2>
Edit Data Artikel
</h2>
<div
class=
"login-form-grids"
>
<
h5>
Data Artikel
</h5
>
<div
class=
"login-form-grids
1
"
>
<
center><h1>
Data Artikel
</h1S></center
>
<?php
$id_article
=
mysqli_real_escape_string
(
$koneksi
,
$_GET
[
'id'
]);
$cari
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_artikel WHERE id_artikel='
$id_article
'"
)
or
die
(
mysqli_error
());
...
...
@@ -26,21 +26,21 @@
?>
<form
action=
"editarticle_process.php"
method=
"POST"
enctype=
"multipart/form-data"
>
<input
type=
"hidden"
name=
"id"
placeholder=
"id_artikel"
value=
"
<?php
echo
$data
[
'id_artikel'
]
?>
"
>
<b>
Judul Artikel :
</b>
<input
type=
"text"
name=
"judul_artikel"
placeholder=
"Judul Artikel"
value=
"
<?php
echo
$data
[
'judul_artikel'
]
?>
"
>
<b>
<br>
Isi Artikel :
<br>
</b>
<textarea
name=
"isi_artikel"
placeholder=
"
<?php
echo
$data
[
'isi_artikel'
]
?>
"
value=
"
<?php
echo
$data
[
'isi_artikel'
]
?>
"
></textarea
>
<b>
<br>
Gambar :
<br>
</b>
<b>
Judul Artikel :
</b>
<input
type=
"text"
name=
"judul_artikel"
style=
"width:100%"
placeholder=
"Judul Artikel"
value=
"
<?php
echo
$data
[
'judul_artikel'
]
?>
"
><br
>
<b>
Isi Artikel :
</b>
<textarea
name=
"isi_artikel"
style=
"width:100%; height:450px"
placeholder=
"
<?php
echo
$data
[
'isi_artikel'
]
?>
"
value=
"
<?php
echo
$data
[
'isi_artikel'
]
?>
"
></textarea><br
>
<b>
File Gambar :
</b>
<input
type=
"file"
name=
"gambar_artikel"
value=
" "
>
<input
type=
"submit"
name=
"edit"
value=
"edit"
>
<input
type=
"submit"
name=
"edit"
value=
"edit"
>
</form>
</div>
<?php
}
?>
</div>
<div
class=
"register-home"
>
<a
href=
"processarticle.php"
>
BATAL
</a>
</div>
<div
class=
"register-home"
>
<a
href=
"processarticle.php"
>
BATAL
</a>
</div>
</div>
</div>
<!-- //register -->
...
...
images/Tembakau Bagi Penderita Diabetes.jpg
0 → 100644
View file @
79005422
57.4 KB
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