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
c3d317ae
Commit
c3d317ae
authored
May 23, 2017
by
Franciskus Partogu Hamonangan Napitupulu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perbaikan
parent
e905def1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
12 deletions
+24
-12
editarticle.php
editarticle.php
+1
-1
editbook.php
editbook.php
+1
-1
editcomment.php
editcomment.php
+10
-5
editcomment_process.php
editcomment_process.php
+3
-3
editprofile.php
editprofile.php
+1
-1
processcomment.php
processcomment.php
+8
-1
No files found.
editarticle.php
View file @
c3d317ae
...
...
@@ -20,7 +20,7 @@
<div
class=
"login-form-grids"
>
<h5>
Data Artikel
</h5>
<?php
$id_article
=
mysqli_real_escape_string
(
$_GET
[
'id'
]);
$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
());
while
(
$data
=
mysqli_fetch_array
(
$cari
)){
?>
...
...
editbook.php
View file @
c3d317ae
...
...
@@ -20,7 +20,7 @@
<div
class=
"login-form-grids"
>
<h5>
Data Buku
</h5>
<?php
$id_buku
=
mysqli_real_escape_string
(
$_GET
[
'id'
]);
$id_buku
=
mysqli_real_escape_string
(
$
koneksi
,
$
_GET
[
'id'
]);
$cari
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_buku WHERE isbn='
$id_buku
'"
)
or
die
(
mysqli_error
());
while
(
$data
=
mysqli_fetch_array
(
$cari
))
{
?>
...
...
editcomment.php
View file @
c3d317ae
...
...
@@ -26,7 +26,7 @@
<!-- comment -->
<div
class=
"about"
>
<div
class=
"w3_agileits_contact_grids"
>
<div
class=
"col-md-12 w3_agileits_contact_grid_right"
>
<div
class=
"col-md-12 w3_agileits_contact_grid_right"
>
<br>
<?php
$query
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_komentar ORDER BY tanggal DESC"
)
or
die
(
mysqli_error
());
$masukan
=
mysqli_num_rows
(
$query
);
...
...
@@ -36,11 +36,16 @@
while
(
$row
=
mysqli_fetch_array
(
$query
))
{
echo
"<b>"
.
$row
[
'nama_pengirim'
]
.
"</b>"
.
" "
.
" | "
.
" "
.
"<i>"
.
$row
[
'tanggal'
]
.
"</i>"
.
"<br />"
.
$row
[
'komentar'
]
.
"<br />"
;
$row
[
'tanggal'
]
.
"</i>"
.
"<br />"
.
$row
[
'komentar'
]
.
"<br />"
.
$row
[
'tanggapan'
]
.
"<br />"
;
echo
'
<form action="contact_process.php" method="POST"">
<textarea name="balas_komentar" placeholder="Tanggapan Anda..." required=""></textarea>
<input type="submit" name="balsan" value="kirim">
<form class="col-md-" action="editcomment_process.php" method="POST"">
<span class="input input--ichiro">
<input class="input__field input__field--ichiro" type="text" id="input-25" name="tanggapan" placeholder="Tanggapan Anda..." required="" />
<label class="input__label input__label--ichiro" for="input-25">
<span class="input__label-content input__label-content--ichiro">Tanggapan Komentar</span>
</label>
</span>
<input type="submit" name="kirim" value="kirim">
</form>
'
;
echo
"<hr>"
;
...
...
editcomment_process.php
View file @
c3d317ae
<?php
include
'koneksi.php'
;
$
balasan
=
$_POST
[
'balas
an'
];
$tanggal_
balsan
=
$_POST
[
'tanggal_bals
an'
];
$
tanggapan
=
$_POST
[
'tanggap
an'
];
$tanggal_
tanggapan
=
$_POST
[
'tanggal_tanggap
an'
];
$query
=
mysqli_query
(
$koneksi
,
"INSERT INTO t_komentar VALUES('', '', '', '', '
$
balas
an
', NOW())"
);
$query
=
mysqli_query
(
$koneksi
,
"INSERT INTO t_komentar VALUES('', '', '', '', '
$
tanggap
an
', NOW())"
);
if
(
$query
)
{
echo
"<script>alert('Terimakasih
$username
telah menanggapi masukan !'); window.location = 'processcomment.php'</script>"
;
}
else
{
...
...
editprofile.php
View file @
c3d317ae
...
...
@@ -20,7 +20,7 @@
<div
class=
"login-form-grids"
>
<h5>
Informasi Data Diri
</h5>
<?php
$id_nama
=
mysqli_real_escape_string
(
$_GET
[
'id'
]);
$id_nama
=
mysqli_real_escape_string
(
$
koneksi
,
$
_GET
[
'id'
]);
$cari
=
mysqli_query
(
$koneksi
,
"SELECT * FROM t_user WHERE id_user='
$id_nama
'"
)
or
die
(
mysqli_error
());
while
(
$data
=
mysqli_fetch_array
(
$cari
))
{
?>
...
...
processcomment.php
View file @
c3d317ae
...
...
@@ -44,6 +44,8 @@
<th>
Pengirim
</th>
<th>
Komentar
</th>
<th>
Tanggal
</th>
<th>
Tanggapan
</th>
<th>
Tanggal Ditanggapi
</th>
<th>
Opsi
</th>
</tr>
</thead>
...
...
@@ -56,9 +58,14 @@
<td
class=
"invert"
>
<?php
echo
$data
[
'nama_pengirim'
];
?>
</td>
<td
class=
"invert"
>
<?php
echo
$data
[
'komentar'
];
?>
</td>
<td
class=
"invert"
>
<?php
echo
$data
[
'tanggal'
];
?>
</td>
<td
class=
"invert"
>
<?php
echo
$data
[
'tanggapan'
];
?>
</td>
<td
class=
"invert"
>
<?php
echo
$data
[
'tanggal_tanggapan'
];
?>
</td>
<td
class=
"invert"
>
<div
class=
"rem"
>
<div>
<a
href=
"editcomment.php?id=
<?php
echo
$data
[
'id_komentar'
];
?>
"
>
<img
src=
"images/edit.png"
/>
</a>
<a
href=
'deletecomment_process.php?id=
<?php
echo
$data
[
'id_komentar'
];
?>
'
}"
>
<img
src=
"images/close_1.png"
/>
</a>
...
...
@@ -75,7 +82,7 @@
}
else
{
echo
'
<tr><td colspan="
5
" align="center" style="background-color:#ffffff"> Data komentar kosong ! </td></tr></table>
<tr><td colspan="
7
" align="center" style="background-color:#ffffff"> Data komentar kosong ! </td></tr></table>
'
;
}
?>
...
...
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