Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
002c00f
user: view add
adwisatya Nov 19, 2014
03457b8
Delete user
adwisatya Nov 20, 2014
22af70f
View and delete user
adwisatya Nov 20, 2014
afd90bc
update user
adwisatya Nov 20, 2014
6aa63e1
Update engine
adwisatya Nov 20, 2014
45f470d
JSP & Java:post and user almost done
adwisatya Nov 24, 2014
c1bcd03
Merge branch 'master' of https://github.com/IF3110-II-13/IF3110-02-Si…
adwisatya Nov 24, 2014
6b7a602
User and post almost done
adwisatya Nov 24, 2014
fa20eda
User and post almost done
adwisatya Nov 24, 2014
b2a46c8
Posting hampir selesai
adwisatya Nov 24, 2014
66ef81e
Komentar -oke
adwisatya Nov 25, 2014
20b8153
Update post oke
adwisatya Nov 25, 2014
0c2b9b5
Navigasi oke
adwisatya Nov 25, 2014
e1e4d31
ADmin
adwisatya Nov 25, 2014
6e915a1
Fitu dasar oke
adwisatya Nov 25, 2014
b6f829e
Sync sama Eclipse
muntahailmi Nov 28, 2014
a88e889
login
adwisatya Nov 28, 2014
6805132
Merge branch 'master' of https://github.com/IF3110-II-13/IF3110-02-Si…
adwisatya Nov 28, 2014
44b73fa
ilmi
adwisatya Nov 28, 2014
bbf4efc
Sync sama Eclipse
muntahailmi Nov 29, 2014
d73474a
Gabung sama login
muntahailmi Nov 29, 2014
38d01a5
Penambahan User managemen
adwisatya Nov 30, 2014
753150b
User Management
adwisatya Dec 1, 2014
6af00d6
edit
adwisatya Dec 1, 2014
33c3722
edit
adwisatya Dec 1, 2014
72301b0
Merge branch 'aryya'
adwisatya Dec 1, 2014
0bbe0c5
Cleaning directory
adwisatya Dec 1, 2014
ee9a89f
CRUD User 0.7
adwisatya Dec 1, 2014
ab58855
Update User
adwisatya Dec 1, 2014
1a5d6b0
update user ok
adwisatya Dec 1, 2014
0cdbfaa
Gabung 75% ok
muntahailmi Dec 1, 2014
35eceb7
Soft delete
adwisatya Dec 1, 2014
7bda6bf
Owner
adwisatya Dec 1, 2014
30fc354
Library
adwisatya Dec 1, 2014
6b9ce92
Benerin Flow sama Layout
muntahailmi Dec 1, 2014
7f4b980
Niatnya sih upload gambar
adwisatya Dec 1, 2014
2f76450
WYSIWYG
adwisatya Dec 1, 2014
0669616
Add Recover Post, Fix Delete User
muntahailmi Dec 1, 2014
3b08108
Prohibit access to page
muntahailmi Dec 1, 2014
3d0a8f0
Finalisasi
adwisatya Dec 1, 2014
f25cfc6
automatic form
adwisatya Dec 1, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.classpath
.settings/*
.project
build/*
71 changes: 71 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="Tubes2WBD" default="default" basedir=".">
<description>Builds, tests, and runs the project Tubes2WBD.</description>
<import file="nbproject/build-impl.xml"/>
<!--

There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:

-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-dist: called before archive building
-post-dist: called after archive building
-post-clean: called after cleaning build products
-pre-run-deploy: called before deploying
-post-run-deploy: called after deploying

Example of pluging an obfuscator after the compilation could look like

<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>

For list of available properties check the imported
nbproject/build-impl.xml file.


Other way how to customize the build is by overriding existing main targets.
The target of interest are:

init-macrodef-javac: defines macro for javac compilation
init-macrodef-junit: defines macro for junit execution
init-macrodef-debug: defines macro for class debugging
do-dist: archive building
run: execution of project
javadoc-build: javadoc generation

Example of overriding the target for project execution could look like

<target name="run" depends="<PROJNAME>-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>

Notice that overridden target depends on jar target and not only on
compile target as regular run target does. Again, for list of available
properties which you can use check the target you are overriding in
nbproject/build-impl.xml file.

-->
</project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 20 additions & 0 deletions build/generated/src/org/apache/jsp/edit_jsp.class.smap
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
SMAP
edit_jsp.java
JSP
*S JSP
*F
+ 0 edit.jsp
edit.jsp
*L
5,59:48
64,5:108
68,4:113
72:117,3
73,2:120
75:122,3
76,2:125
78,2:127,3
80,4:133
85:139,2
86,40:141
*E
193 changes: 193 additions & 0 deletions build/generated/src/org/apache/jsp/edit_jsp.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import User.userPaket;
import Post.Post;
import User.User;
import Post.PostBean;

public final class edit_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {

private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

private static java.util.List<String> _jspx_dependants;

private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector;

public java.util.List<String> getDependants() {
return _jspx_dependants;
}

public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {

PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;

try {
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
_jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");

out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("<!DOCTYPE html>\n");
out.write("<!DOCTYPE html>\n");
out.write("<html>\n");
out.write("<head>\n");
out.write("\n");
out.write("<meta charset=\"utf-8\">\n");
out.write("<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n");
out.write("<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\">\n");
out.write("<meta name=\"description\" content=\"Simple Blog\">\n");
out.write("<meta name=\"author\" content=\"Bangsatya\">\n");
out.write("\n");
out.write("<!-- Twitter Card -->\n");
out.write("<meta name=\"twitter:card\" content=\"summary\">\n");
out.write("<meta name=\"twitter:site\" content=\"omfgitsasalmon\">\n");
out.write("<meta name=\"twitter:title\" content=\"Simple Blog\">\n");
out.write("<meta name=\"twitter:description\" content=\"Simple Blog\">\n");
out.write("<meta name=\"twitter:creator\" content=\"Bangsatya Blog\">\n");
out.write("<meta name=\"twitter:image:src\" content=\"{{! TODO: ADD GRAVATAR URL HERE }}\">\n");
out.write("\n");
out.write("<meta property=\"og:type\" content=\"article\">\n");
out.write("<meta property=\"og:title\" content=\"Simple Blog\">\n");
out.write("<meta property=\"og:description\" content=\"Deskripsi Blog\">\n");
out.write("<meta property=\"og:image\" content=\"{{! TODO: ADD GRAVATAR URL HERE }}\">\n");
out.write("<meta property=\"og:site_name\" content=\"Simple Blog\">\n");
out.write("\n");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"assets/css/screen.css\" />\n");
out.write("<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"img/favicon.ico\">\n");
out.write("\n");
out.write("<!--[if lt IE 9]>\n");
out.write(" <script src=\"http://html5shim.googlecode.com/svn/trunk/html5.js\"></script>\n");
out.write("<![endif]-->\n");
out.write("\n");
out.write("<title>Simple Blog of Bangsatya | Edit Post</title>\n");
out.write("\n");
out.write("\n");
out.write("</head>\n");
out.write("\n");
out.write("<body class=\"default\">\n");
out.write("<div class=\"wrapper\">\n");
out.write("\n");
out.write("<nav class=\"nav\" >\n");
out.write(" <a style=\"border:none;\" id=\"logo\" href=\"index.jsp\"><h1>Simple<span>-</span>Blog</h1></a>\n");
out.write(" <ul class=\"nav-primary\">\n");
out.write(" <li><a href=\"new_post.jsp\">+ Edit Post</a></li>\n");
out.write(" </ul>\n");
out.write("</nav>\n");
out.write("\n");
out.write("<article class=\"art simple post\" style=\"margin-top:50px;\">\n");
out.write(" <div class=\"art-body\" style=\"margin-top:70px\">\n");
out.write(" <div class=\"art-body-inner\">\n");
out.write(" <h2>Edit Post</h2>\n");
out.write("\t\t\t");

PostBean pBean = new PostBean();
String id = request.getParameter("id");
pBean.ViewPost(id);


out.write("\n");
out.write(" <div id=\"contact-area\">\n");
out.write(" <form method=\"post\" action=\"handler/updatePost.jsp\">\n");
out.write(" <label for=\"Judul\">Judul</label>\n");
out.write(" <input type=\"text\" name=\"judul\" id=\"Judul\" value=\"");
out.println(pBean.getJudul());
out.write("\">\n");
out.write("\t\t\n");
out.write(" <label for=\"Tanggal\">Tanggal:</label>\n");
out.write(" <input type=\"text\" name=\"tanggal\" id=\"Tanggal\" value=\"");
out.println(pBean.getTanggal());
out.write("\">\n");
out.write(" \n");
out.write(" <label for=\"Konten\">Konten:</label><br>\n");
out.write(" <textarea name=\"konten\" rows=\"20\" cols=\"20\" id=\"Konten\">");
out.println(pBean.getKonten());
out.write("</textarea>\n");
out.write("\t\t\t\t\t<input type=\"hidden\" name=\"nomor\" value=\"");
out.println(id);
out.write("\">\n");
out.write(" <input type=\"submit\" name=\"submit\" value=\"Simpan\" class=\"submit-button\" onclick=\"\">\n");
out.write(" </form>\n");
out.write(" </div>\n");
out.write("\t\t\t");



out.write("\n");
out.write(" </div>\n");
out.write(" </div>\n");
out.write("\n");
out.write("</article>\n");
out.write("\n");
out.write("<footer class=\"footer\">\n");
out.write(" <div class=\"back-to-top\"><a href=\"\">Back to top</a></div>\n");
out.write(" <!-- <div class=\"footer-nav\"><p></p></div> -->\n");
out.write(" <div class=\"psi\">&Psi;</div>\n");
out.write(" <aside class=\"offsite-links\">\n");
out.write(" Asisten IF3110 /\n");
out.write(" <a class=\"rss-link\" href=\"rss/rss.php\">RSS</a> /\n");
out.write(" <br>\n");
out.write(" <a class=\"twitter-link\" href=\"http://twitter.com/YoGiiSinaga\">Yogi</a> /\n");
out.write(" <a class=\"twitter-link\" href=\"http://twitter.com/sonnylazuardi\">Sonny</a> /\n");
out.write(" <a class=\"twitter-link\" href=\"http://twitter.com/fathanpranaya\">Fathan</a> /\n");
out.write(" <br>\n");
out.write(" <a class=\"twitter-link\" href=\"#\">Renusa</a> /\n");
out.write(" <a class=\"twitter-link\" href=\"#\">Kelvin</a> /\n");
out.write(" <a class=\"twitter-link\" href=\"#\">Yanuar</a> /\n");
out.write(" \n");
out.write(" </aside>\n");
out.write("</footer>\n");
out.write("</div>\n");
out.write("<script>\n");
out.write(" var today = new Date();\n");
out.write(" var dd = today.getDate();\n");
out.write(" var mm = today.getMonth()+1; //January is 0!\n");
out.write(" var yyyy = today.getFullYear();\n");
out.write(" if(dd<10) {\n");
out.write(" dd='0'+dd\n");
out.write(" } \n");
out.write(" if(mm<10) {\n");
out.write(" mm='0'+mm\n");
out.write(" } \n");
out.write(" document.getElementById(\"Tanggal\").value= yyyy + \"-\" + mm + \"-\" + dd;\n");
out.write("</script>\n");
out.write("\n");
out.write("</body>\n");
out.write("</html>");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
else throw new ServletException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
29 changes: 29 additions & 0 deletions build/generated/src/org/apache/jsp/index_jsp.class.smap
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
SMAP
index_jsp.java
JSP
*S JSP
*F
+ 0 index.jsp
index.jsp
*L
1,49:48
49:96,3
51,17:100
67,7:117
74,4:125
77,3:129
80:132,6
81,2:138,3
83:144
84:145,3
85,2:148
86,2:150
87:152
88:153,5
89:158,3
90,4:161
94,3:166
96,7:169
102:175,2
103,16:177
*E
Loading