From 8b6a3d226ffc075110dee5e0ee86a09198a57106 Mon Sep 17 00:00:00 2001 From: fawwazmuhammad Date: Sat, 4 Oct 2014 17:39:00 +0700 Subject: [PATCH 1/7] Udah bisa ngeread --- includes/database.php | 14 ++++ index.php | 120 +++++++++++++++++++++++++++++++ post.php | 162 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 296 insertions(+) create mode 100644 includes/database.php create mode 100644 index.php create mode 100644 post.php diff --git a/includes/database.php b/includes/database.php new file mode 100644 index 0000000..3237008 --- /dev/null +++ b/includes/database.php @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..ae864c9 --- /dev/null +++ b/index.php @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Simple Blog + + + + + +
+ + + +
+
+ +
+
+ + + +
+ + + + + + + + + \ No newline at end of file diff --git a/post.php b/post.php new file mode 100644 index 0000000..b11d57d --- /dev/null +++ b/post.php @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Simple Blog | Apa itu Simple Blog? + + + + + +
+ + + +
+ + +
+
+ +

+

+
+
+ + +
+
+
+ + +
+ +

Komentar

+ +
+
+ + + + + + +
+ + + +
+
+ +
    + +
  • +
    +

    +
    +
    + +
  • + + +
+
+
+ +
+ + + +
+ + + + + + + + + \ No newline at end of file From 23877c9f4739bf698a448208dac72c3e56f5d1f9 Mon Sep 17 00:00:00 2001 From: fawwazmuhammad Date: Sat, 11 Oct 2014 00:20:41 +0700 Subject: [PATCH 2/7] added new_post.php --- new_post.php | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 new_post.php diff --git a/new_post.php b/new_post.php new file mode 100644 index 0000000..8017247 --- /dev/null +++ b/new_post.php @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Simple Blog | Tambah Post + + + + + +
+ + + +
+ + +

-

+ +
+
+

Tambah Post

+ +
+
+ + + + + + +
+ + + +
+
+
+
+ +
+ + + +
+ + + + + + + + + \ No newline at end of file From 8fb0f479ec5ad4ac6dc112744fc7657f1d55eb93 Mon Sep 17 00:00:00 2001 From: fawwazmuhammad Date: Sun, 12 Oct 2014 06:51:49 +0700 Subject: [PATCH 3/7] better javascript but still not know why doesnt work --- includes/utama.js | 78 +++++++++++++++++++++++++ index.old.php | 120 ++++++++++++++++++++++++++++++++++++++ index.php | 27 +++++---- new_post.php | 69 ++++++++++++++++++++-- new_post_action.php | 10 ++++ post.html => post.old.php | 58 ++++++++++++------ post.php | 72 ++++++++++++++++++----- 7 files changed, 383 insertions(+), 51 deletions(-) create mode 100644 includes/utama.js create mode 100644 index.old.php create mode 100644 new_post_action.php rename post.html => post.old.php (69%) diff --git a/includes/utama.js b/includes/utama.js new file mode 100644 index 0000000..5dbb285 --- /dev/null +++ b/includes/utama.js @@ -0,0 +1,78 @@ +(function() { + var onDomReadyIdentifier = 'onDomReady'; + var isBound = false; + var readyList = []; + if (window[onDomReadyIdentifier] && typeof window[onDomReadyIdentifier] == 'function') { + return; + } + var whenReady = function() { +// Make sure body exists, at least, in case IE gets a little overzealous. +// This is taked directly from jQuery's implementation. +if (!document.body) { + return setTimeout(whenReady, 13); +} +for (var i=0; i + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Simple Blog + + + + + +
+ + + +
+
+ +
+
+ + + +
+ + + + + + + + + \ No newline at end of file diff --git a/index.php b/index.php index ae864c9..3e858ca 100644 --- a/index.php +++ b/index.php @@ -38,9 +38,9 @@
@@ -62,17 +62,17 @@ $result = mysqli_query($conection, "SELECT * from post"); while($row = mysqli_fetch_array($result)){ - echo '
  • '; - echo '
    '; - echo '

    '.$row['judul'].'

    '; - echo '
    '.$row['tanggal'].'
    '; - echo '
    Featured
    '; - echo '
    '; - echo '

    '.$row['konten'].'…

    '; - echo '

    '; - echo 'Edit | Hapus'; - echo '

    '; - echo '
  • '; + echo '
  • '; + echo '
    '; + echo '

    '.$row['judul'].'

    '; + echo '
    '.$row['tanggal'].'
    '; + echo '
    Featured
    '; + echo '
    '; + echo '

    '.$row['konten'].'…

    '; + echo '

    '; + echo 'Edit | Hapus'; + echo '

    '; + echo '
  • '; } ?> @@ -101,7 +101,6 @@
    - diff --git a/new_post.php b/new_post.php index 8017247..159939b 100644 --- a/new_post.php +++ b/new_post.php @@ -1,3 +1,10 @@ + @@ -38,9 +45,9 @@
    @@ -64,8 +71,9 @@
    - + +
    @@ -93,7 +101,7 @@ - + @@ -107,6 +115,57 @@ function(){(g[s].q=g[s].q||[]).push(arguments)});g[s].s=+new Date; z.parentNode.insertBefore(t,z)}(window,document,'script','ga')); ga('create',ga_ua);ga('send','pageview'); + - \ No newline at end of file + + \ No newline at end of file diff --git a/new_post_action.php b/new_post_action.php new file mode 100644 index 0000000..54a636e --- /dev/null +++ b/new_post_action.php @@ -0,0 +1,10 @@ + + +
    - + +
    - -

    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

    @@ -80,25 +102,24 @@

    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! …

      -
    • +
    - +