From 8f5af81ee04a41df066d65757c77481f890f28d8 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:13:03 +0700 Subject: [PATCH 01/24] Create ajaxcomment.js --- assets/js/ajaxcomment.js | 63 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 assets/js/ajaxcomment.js diff --git a/assets/js/ajaxcomment.js b/assets/js/ajaxcomment.js new file mode 100644 index 0000000..c0ac4f2 --- /dev/null +++ b/assets/js/ajaxcomment.js @@ -0,0 +1,63 @@ +function submitcomment(ID){ + var name = document.getElementById('Nama').value; + var email = document.getElementById('Email').value; + var comment = document.getElementById('Komentar').value; + + if (valcomment(name, email, comment)){ + if (window.XMLHttpRequest){ //kode untuk IE7+, Firefox, Opera, Safari + xmlhttp = new XMLHttpRequest(); + } + else{ + xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); + } + + xmlhttp.onreadystatechange = function(){ + if (xmlhttp.readyState == 4 && xmlhttp.status == 200){ + document.getElementById("kom").innerHTML=xmlhttp.responseText; + } + } + xmlhttp.open("GET","submit_comm.php?ID="+ID +"&Nama="+name +"&Komentar="+comment, true); + xmlhttp.send(); + } + else{ + return false; + } +} + +function listcomment(ID){ + if (window.XMLHttpRequest){ //kode untuk IE7+, Firefox, Opera, Safari + xmlhttp = new XMLHttpRequest(); + } + else{ + xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); + } + xmlhttp.onreadystatechange = function(){ + if (xmlhttp.readyState == 4 && xmlhttp.status == 200){ + document.getElementById("kom").innerHTML=xmlhttp.responseText; + } + } + xmlhttp.open("GET","show_comment.php?ID="+ID, true); + xmlhttp.send(); +} + +function valcomment(name, email, comment){ + if(name == null || name == "" || email == null || email == "" || comment == "" || comment == null){ + alert('Semua data harus diisi dengan benar!'); + return false; + } + else if(email != null || email != ""){ + var surel =/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; + if(surel.test(email) == false){ + alert('Email yang dimasukkan tidak valid!'); + return false; + } + else{ + document.forms["comment-area"].reset(); + return true; + } + } + else{ + document.forms["comment-area"].reset(); + return true; + } +} From 197d2d84140d6f338cb320162b58d98bf7ab5b71 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:13:59 +0700 Subject: [PATCH 02/24] Create valdelete.js --- assets/js/valdelete.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 assets/js/valdelete.js diff --git a/assets/js/valdelete.js b/assets/js/valdelete.js new file mode 100644 index 0000000..01de074 --- /dev/null +++ b/assets/js/valdelete.js @@ -0,0 +1,5 @@ +valdelete(ID) + { + if(confirm("Hapus blog?")) + location.href='delete.php?ID='+ID; + } From a84ba8eb04605b50eb5c2ec519fd52fe21fa285d Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:15:08 +0700 Subject: [PATCH 03/24] Create validate.js --- assets/js/validate.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 assets/js/validate.js diff --git a/assets/js/validate.js b/assets/js/validate.js new file mode 100644 index 0000000..0eadf74 --- /dev/null +++ b/assets/js/validate.js @@ -0,0 +1,23 @@ +function validate(){ + var title = document.getElementById('Judul'); + var date = document.getElementById('Tanggal'); + var content = document.getElementById('Konten'); + var today = new Date(); + if(title.value == null || title.value == "" || date.value == null || date.value == "" || content.value == null || content.value ==""){ + alert('Semua data harus diisi sebelum menyimpan!'); + return false; + } + else if(date.value != null || date.value != ""){ + var tgl = date.value; + var arrtgl = tgl.split("-"); + tglinput = new Date(); + tglinput.setFullYear(arrtgl[0], arrtgl[1]-1, arrtgl[2]); + if(today > tglinput){ + alert('Tanggal yang dimasukkan tidak boleh tanggal yang sudah lalu!'); + return false; + } + } + else{ + return true; + } + } From 9001ef161b40654f596ffad3538c940678c17b4a Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:16:24 +0700 Subject: [PATCH 04/24] Update screen.css --- assets/css/screen.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/css/screen.css b/assets/css/screen.css index 1d8fdf3..12ef8b8 100644 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -233,7 +233,7 @@ div.cover > img { } /* Contains the time, title and subtitle for an article */ .art-header-inner { - position: fixed; + position: relative; top: 300px; left: 50%; margin-left: -490px; @@ -840,7 +840,7 @@ hr.featured-article:after { } #contact-area textarea { - height: 90px; + height: 500px; } #contact-area textarea:focus, #contact-area input:focus { @@ -858,4 +858,4 @@ label { margin-right: 15px; width: 100px; padding-top: 5px; -} \ No newline at end of file +} From f9b6325dd778dd243a80012a0ff22f1498e1b9d1 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:19:08 +0700 Subject: [PATCH 05/24] Delete index.html --- index.html | 114 ----------------------------------------------------- 1 file changed, 114 deletions(-) delete mode 100644 index.html diff --git a/index.html b/index.html deleted file mode 100644 index 07cff0b..0000000 --- a/index.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Simple Blog - - - - - -
- - - -
-
- -
-
- - - -
- - - - - - - - \ No newline at end of file From 3d9690380a36debcaab530846492b84c1365d226 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:19:26 +0700 Subject: [PATCH 06/24] Delete new_post.html --- new_post.html | 111 -------------------------------------------------- 1 file changed, 111 deletions(-) delete mode 100644 new_post.html diff --git a/new_post.html b/new_post.html deleted file mode 100644 index fc4e18e..0000000 --- a/new_post.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Simple Blog | Tambah Post - - - - - -
- - - -
- - -

-

- -
-
-

Tambah Post

- -
-
- - - - - - -
- - - -
-
-
-
- -
- - - -
- - - - - - - - \ No newline at end of file From 76d51237acef5665fa71d3c27e74fda5e8a13f31 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:24:01 +0700 Subject: [PATCH 07/24] Update screen.css --- assets/css/screen.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/css/screen.css b/assets/css/screen.css index 12ef8b8..1672c73 100644 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -233,10 +233,10 @@ div.cover > img { } /* Contains the time, title and subtitle for an article */ .art-header-inner { - position: relative; + /* position: fixed; */ top: 300px; left: 50%; - margin-left: -490px; + margin-left: 150px; } .art-time, .art-title, @@ -273,7 +273,7 @@ div.cover > img { /* Body */ .art-body { - position: relative; + /*position: relative; */ width: 100%; background: #fff; z-index: 100; @@ -840,7 +840,7 @@ hr.featured-article:after { } #contact-area textarea { - height: 500px; + height: 90px; } #contact-area textarea:focus, #contact-area input:focus { From c568206c7665eb51c8ec16f3f50a7e34fba8e9fd Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:25:00 +0700 Subject: [PATCH 08/24] Delete post.html --- post.html | 140 ------------------------------------------------------ 1 file changed, 140 deletions(-) delete mode 100644 post.html diff --git a/post.html b/post.html deleted file mode 100644 index c0b6f9e..0000000 --- a/post.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Simple Blog | Apa itu Simple Blog? - - - - - -
- - - -
- -
-
- -

Apa itu Simple Blog?

-

-
-
- -
-
-
-

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Blanditiis aliquam minus consequuntur amet nulla eius, neque beatae, nostrum possimus, officiis eaque consectetur. Sequi sunt maiores dolore, illum quidem eos explicabo! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magnam consequuntur consequatur molestiae saepe sed, incidunt sunt inventore minima voluptatum adipisci hic, est ipsa iste. Nobis, aperiam provident quae. Reprehenderit, iste.

-

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Asperiores animi tenetur nam delectus eveniet iste non culpa laborum provident minima numquam excepturi rem commodi, officia accusamus eos voluptates obcaecati. Possimus?

- -
- -

Komentar

- -
-
- - - - - - -
- - - -
-
- -
    -
  • -
    -

    Jems

    -
    2 menit lalu
    -
    -

    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis repudiandae quae natus quos alias eos repellendus a obcaecati cupiditate similique quibusdam, atque omnis illum, minus ex dolorem facilis tempora deserunt! …

    -
  • - -
  • -
    -

    Kave

    -
    1 jam lalu
    -
    -

    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis repudiandae quae natus quos alias eos repellendus a obcaecati cupiditate similique quibusdam, atque omnis illum, minus ex dolorem facilis tempora deserunt! …

    -
  • -
-
-
- -
- - - -
- - - - - - - - \ No newline at end of file From a81cdf8dd48ed1daa5144748cf0ad20cdf57a23e Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:26:28 +0700 Subject: [PATCH 09/24] Create delete.php --- delete.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 delete.php diff --git a/delete.php b/delete.php new file mode 100644 index 0000000..4730cad --- /dev/null +++ b/delete.php @@ -0,0 +1,13 @@ + From 42f2d4290c61fe1e52c541f5601b389f680cf6b5 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:27:15 +0700 Subject: [PATCH 10/24] Create edit.php --- edit.php | 128 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 edit.php diff --git a/edit.php b/edit.php new file mode 100644 index 0000000..05d5b1c --- /dev/null +++ b/edit.php @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Simple Blog | Edit Post + + + + + +
+ + + +
+ + +

-

+ +
+
+

Edit Post

+ + +
+ + + + + + +
+ + + + +
+ + +
+ "; + } + ?> +
+
+ + + + + + + + + + + + + + From 16e0de7afbe98dc6f39e892baffb1e5e5e98e94f Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:27:53 +0700 Subject: [PATCH 11/24] Update screen.css --- assets/css/screen.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/css/screen.css b/assets/css/screen.css index 1672c73..12ef8b8 100644 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -233,10 +233,10 @@ div.cover > img { } /* Contains the time, title and subtitle for an article */ .art-header-inner { - /* position: fixed; */ + position: relative; top: 300px; left: 50%; - margin-left: 150px; + margin-left: -490px; } .art-time, .art-title, @@ -273,7 +273,7 @@ div.cover > img { /* Body */ .art-body { - /*position: relative; */ + position: relative; width: 100%; background: #fff; z-index: 100; @@ -840,7 +840,7 @@ hr.featured-article:after { } #contact-area textarea { - height: 90px; + height: 500px; } #contact-area textarea:focus, #contact-area input:focus { From 025be2b4c310471664ad0a2b9a41a9fd02c67771 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:28:32 +0700 Subject: [PATCH 12/24] Create index.php --- index.php | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 index.php diff --git a/index.php b/index.php new file mode 100644 index 0000000..fd7a5e9 --- /dev/null +++ b/index.php @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Simple Blog + + + + + +
+ + + +
+
+ +
+
+ + + +
+ + + + + + + + + From 86bce6625a76343e75891b5f369a19dc1ada71c9 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:29:04 +0700 Subject: [PATCH 13/24] Create new_post.php --- new_post.php | 116 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 new_post.php diff --git a/new_post.php b/new_post.php new file mode 100644 index 0000000..a6ddcb2 --- /dev/null +++ b/new_post.php @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Simple Blog | Tambah Post + + + + + +
+ + + +
+ + +

-

+ +
+
+

Tambah Post

+ + + +
+
+ + + + + + +
+ + + + +
+ + +
+
+
+ +
+ + + +
+ + + + + + + + From c252a22d74d2a185b6b1410c3a186fa6864874ef Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:29:36 +0700 Subject: [PATCH 14/24] Create post.php --- post.php | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 post.php diff --git a/post.php b/post.php new file mode 100644 index 0000000..d6c8ad4 --- /dev/null +++ b/post.php @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Simple Blog | Apa itu Simple Blog? + + + + + +
+ + + +
+ +
+
+ ".$tabel['Tanggal']." +

".$tabel['Judul']."

+

+ "; + } + mysqli_close($con); + ?> +
+
+ +
+
+
+ ".$tabel['Konten']."

+ "; + } + mysqli_close($con); + ?> +
+ +

Komentar

+ +
+
+ + + + + + +
+ + + +
+
+ +
    +
    +
    + +
    + + + +
    + + + + + + + + + From 691026454c894bed90edbee721e2c0c3bb4af455 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:30:17 +0700 Subject: [PATCH 15/24] Create show_comment.php --- show_comment.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 show_comment.php diff --git a/show_comment.php b/show_comment.php new file mode 100644 index 0000000..c3a8e32 --- /dev/null +++ b/show_comment.php @@ -0,0 +1,24 @@ + +
    +

    ".$tabel['Nama']."

    +
    2 menit lalu
    +
    +

    ".$tabel['Komentar']."…

    + + "; + } + mysqli_close($con); +?> + + From 14aaa24b040f5ecf9f4a07ac5928f20cd44b1af9 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:30:41 +0700 Subject: [PATCH 16/24] Create submit.php --- submit.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 submit.php diff --git a/submit.php b/submit.php new file mode 100644 index 0000000..2a0c564 --- /dev/null +++ b/submit.php @@ -0,0 +1,21 @@ + From a67a2962dc30d38341fd3308f375afc28c09acba Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:31:33 +0700 Subject: [PATCH 17/24] Create submit_comm.php --- submit_comm.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 submit_comm.php diff --git a/submit_comm.php b/submit_comm.php new file mode 100644 index 0000000..ae823e9 --- /dev/null +++ b/submit_comm.php @@ -0,0 +1,30 @@ + +
    +

    ".$tabel['Nama']."

    +
    2 menit lalu
    +
    +

    ".$tabel['Komentar']."…

    + + "; + } + + mysqli_close($con); +?> From 69c2879b4df66a973c7dae37a65b38fcec65af39 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 02:32:06 +0700 Subject: [PATCH 18/24] Create submit_edit.php --- submit_edit.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 submit_edit.php diff --git a/submit_edit.php b/submit_edit.php new file mode 100644 index 0000000..682946a --- /dev/null +++ b/submit_edit.php @@ -0,0 +1,21 @@ + From 4e79ad0af0079b197737c815025e116f92a1cc15 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 05:40:05 +0700 Subject: [PATCH 19/24] Update show_comment.php --- show_comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/show_comment.php b/show_comment.php index c3a8e32..218fb8d 100644 --- a/show_comment.php +++ b/show_comment.php @@ -5,7 +5,7 @@ } $Id = $_GET['ID']; - $res = mysqli_query($con, "SELECT * FROM komen WHERE ID=$Id;"); + $res = mysqli_query($con, "SELECT * FROM komen WHERE ID=$Id ORDER BY Waktu DESC;"); while($tabel = mysqli_fetch_array($res)){ echo" From ece4e7a888b9fc61e888718f6c69b959c67a6877 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 05:40:35 +0700 Subject: [PATCH 20/24] Update submit_comm.php --- submit_comm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submit_comm.php b/submit_comm.php index ae823e9..5b3af0b 100644 --- a/submit_comm.php +++ b/submit_comm.php @@ -13,7 +13,7 @@ mysqli_query($con, "INSERT INTO komen (ID, Nama, Waktu, Komentar) VALUES ('$id', '$name', '$time', '$comment')"); - $res = mysqli_query($con, "SELECT * FROM komen WHERE ID=$id"); + $res = mysqli_query($con, "SELECT * FROM komen WHERE ID=$id ORDER BY Waktu DESC"); while($tabel = mysqli_fetch_array($res)){ echo"
  • From 593d2baaad33b87bf00ff152f793f23330f0f75f Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 06:02:23 +0700 Subject: [PATCH 21/24] Update submit_comm.php --- submit_comm.php | 53 ++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 44 insertions(+), 9 deletions(-) diff --git a/submit_comm.php b/submit_comm.php index 5b3af0b..1f481a4 100644 --- a/submit_comm.php +++ b/submit_comm.php @@ -15,15 +15,50 @@ $res = mysqli_query($con, "SELECT * FROM komen WHERE ID=$id ORDER BY Waktu DESC"); while($tabel = mysqli_fetch_array($res)){ - echo" -
  • -
    -

    ".$tabel['Nama']."

    -
    2 menit lalu
    -
    -

    ".$tabel['Komentar']."…

    -
  • - "; + $selisih = time() - strtotime($tabel['Waktu']); + if($selisih > 3600){ + $Jam = floor($selisih/3600); + if($Jam >= 24){ + $Hari = $Jam - 24; + $Jam = $Jam - 24; + $selisih %= 3600; + $Menit = floor($selisih/60); + echo " +
  • +
    +

    ".$tabel['Nama']."

    +
    {$Hari} hari {$Jam} jam {$Menit} menit
    +
    +

    ".$tabel['Komentar']."…

    +
  • + "; + } + else{ + $selisih %= 3600; + $Menit = floor($selisih/60); + echo " +
  • +
    +

    ".$tabel['Nama']."

    +
    {$Jam} jam {$Menit} menit
    +
    +

    ".$tabel['Komentar']."…

    +
  • + "; + } + } + else{ + $Menit = floor ($selisih/60); + echo " +
  • +
    +

    ".$tabel['Nama']."

    +
    {$Menit} menit
    +
    +

    ".$tabel['Komentar']."…

    +
  • + "; + } } mysqli_close($con); From 7b5a485578f216512ada224624586073bccf9a90 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 06:03:00 +0700 Subject: [PATCH 22/24] Update show_comment.php --- show_comment.php | 56 ++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 47 insertions(+), 9 deletions(-) diff --git a/show_comment.php b/show_comment.php index 218fb8d..2d03bbb 100644 --- a/show_comment.php +++ b/show_comment.php @@ -1,22 +1,60 @@ -
    -

    ".$tabel['Nama']."

    -
    2 menit lalu
    -
    -

    ".$tabel['Komentar']."…

    - - "; + $selisih = time() - strtotime($tabel['Waktu']); + if($selisih > 3600){ + $Jam = floor($selisih/3600); + if($Jam >= 24){ + $Hari = $Jam - 24; + $Jam = $Jam - 24; + $selisih %= 3600; + $Menit = floor($selisih/60); + echo " +
  • +
    +

    ".$tabel['Nama']."

    +
    {$Hari} hari {$Jam} jam {$Menit} menit
    +
    +

    ".$tabel['Komentar']."…

    +
  • + "; + } + else{ + $selisih %= 3600; + $Menit = floor($selisih/60); + echo " +
  • +
    +

    ".$tabel['Nama']."

    +
    {$Jam} jam {$Menit} menit
    +
    +

    ".$tabel['Komentar']."…

    +
  • + "; + } + } + else{ + $Menit = floor ($selisih/60); + echo " +
  • +
    +

    ".$tabel['Nama']."

    +
    {$Menit} menit
    +
    +

    ".$tabel['Komentar']."…

    +
  • + "; + } } mysqli_close($con); ?> From e734512a4de3cd357c6f4eeeb7c1922918e667e9 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 06:13:30 +0700 Subject: [PATCH 23/24] Update post.php --- post.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/post.php b/post.php index d6c8ad4..359565c 100644 --- a/post.php +++ b/post.php @@ -29,7 +29,21 @@ -Simple Blog | Apa itu Simple Blog? + Simple Blog | ".$tabel['Judul']." + "; + } + mysqli_close($con); + ?> From a1dc35aa44b1595fee7782980f971d9a87a62001 Mon Sep 17 00:00:00 2001 From: Aldyaka Mushofan Date: Wed, 15 Oct 2014 06:44:36 +0700 Subject: [PATCH 24/24] Update valdelete.js --- assets/js/valdelete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/valdelete.js b/assets/js/valdelete.js index 01de074..21501e5 100644 --- a/assets/js/valdelete.js +++ b/assets/js/valdelete.js @@ -1,4 +1,4 @@ -valdelete(ID) +function valdelete(ID) { if(confirm("Hapus blog?")) location.href='delete.php?ID='+ID;