Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kelompok Whatever #58

Open
wants to merge 134 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
a069d57
starting
raymondlukanta Apr 1, 2013
6329f28
file
raymondlukanta Apr 1, 2013
45f3cbe
coba
YuliantiOenang Apr 1, 2013
a415f1e
kk
raymondlukanta Apr 1, 2013
c7c47a8
coba2
YuliantiOenang Apr 1, 2013
692d1d2
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 1, 2013
d9bad36
hh
YuliantiOenang Apr 1, 2013
bee9909
kkk
YuliantiOenang Apr 1, 2013
c8e3787
hapus
raymondlukanta Apr 1, 2013
51849ac
delete bin
YuliantiOenang Apr 3, 2013
d01cfdc
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 3, 2013
17885ad
hapus
raymondlukanta Apr 3, 2013
c285b71
add lib
raymondlukanta Apr 3, 2013
707f204
index
Apr 3, 2013
fa9de64
Validator
Apr 3, 2013
78bc7cb
update index
raymondlukanta Apr 3, 2013
41e30d3
Profil 1
YuliantiOenang Apr 4, 2013
f2e7a65
tes
YuliantiOenang Apr 4, 2013
ac69cbf
add
raymondlukanta Apr 4, 2013
67a917a
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
raymondlukanta Apr 4, 2013
2dda840
fix
raymondlukanta Apr 4, 2013
1f90617
Profile 2
YuliantiOenang Apr 4, 2013
56ad2bb
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 4, 2013
90c7178
Apr 4, 2013
fcdcc95
Validasi Register
Apr 4, 2013
e462d07
dashboard dan javascript index
Apr 4, 2013
8dfd2a0
EditProfil1
YuliantiOenang Apr 5, 2013
1d3490b
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 5, 2013
70a1ea5
tes
raymondlukanta Apr 5, 2013
cd64de3
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
raymondlukanta Apr 5, 2013
da97422
baru
raymondlukanta Apr 5, 2013
6f3e844
ignore
YuliantiOenang Apr 5, 2013
1bea36b
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 5, 2013
efcae53
tes
raymondlukanta Apr 5, 2013
c85e9fd
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 5, 2013
937b971
gitignore
raymondlukanta Apr 5, 2013
77df241
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 5, 2013
bc95744
coba
YuliantiOenang Apr 5, 2013
547e83e
addtask & ignore some files
raymondlukanta Apr 6, 2013
6f8b391
f
raymondlukanta Apr 6, 2013
2694f70
delete hasil eksperimen upload file
raymondlukanta Apr 6, 2013
5c686e6
taskdetails1
YuliantiOenang Apr 7, 2013
1d52a77
make task
raymondlukanta Apr 7, 2013
097d748
raymond
raymondlukanta Apr 7, 2013
097ffe0
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 8, 2013
e2f5111
coba
YuliantiOenang Apr 8, 2013
b737fa3
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 8, 2013
834ae5e
AddFile.java GetUsers.java
raymondlukanta Apr 8, 2013
aa0dca4
tt
raymondlukanta Apr 8, 2013
697a157
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
raymondlukanta Apr 8, 2013
e871059
update task details
YuliantiOenang Apr 8, 2013
6f32451
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 8, 2013
068873e
TASK DETAIL UPDATE (deadline+tag+assignee beres)
YuliantiOenang Apr 8, 2013
311e942
remove assignee updated+remove comment+add comment(belum beres)
YuliantiOenang Apr 8, 2013
b93ec2c
profile sudah bisa diedit dengan benar
YuliantiOenang Apr 9, 2013
2a53249
taskdetails link ke profile assignee
YuliantiOenang Apr 9, 2013
0af4ff7
hapus upload_file_multipale.jsp dan upload.jsp
raymondlukanta Apr 9, 2013
162e134
ubah dikit
raymondlukanta Apr 9, 2013
3d9d934
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
raymondlukanta Apr 9, 2013
6d28af2
menyempurnakan addtask
raymondlukanta Apr 10, 2013
eea1972
profil beres :)
YuliantiOenang Apr 10, 2013
4a76e4b
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 10, 2013
13f3183
membenahi hasil search user
raymondlukanta Apr 10, 2013
b46a0c8
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
raymondlukanta Apr 10, 2013
b899e83
hapus addtask.jsp
raymondlukanta Apr 10, 2013
1208f75
komentar pada task details selesai :)
YuliantiOenang Apr 10, 2013
d9b2ee9
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 10, 2013
7c297cf
tampilin attachment sudah beres.. tinggal paginasi :)
YuliantiOenang Apr 10, 2013
b87d1d9
benerin style css.. :)
YuliantiOenang Apr 10, 2013
37d8652
ChangeTaskStatus.java dan autocomplete search
raymondlukanta Apr 10, 2013
33ac7fe
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
raymondlukanta Apr 10, 2013
249caf4
Tambahin sesi di profil.. di task details belum beres (yg di tambah d…
YuliantiOenang Apr 11, 2013
24571da
memperbaiki header
raymondlukanta Apr 11, 2013
753a69a
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
raymondlukanta Apr 11, 2013
4c5605f
Insya Allah sudah selesai
raymondlukanta Apr 11, 2013
d21e3d2
task details dengan paginasi
YuliantiOenang Apr 12, 2013
5644e9e
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 12, 2013
1ec139e
ubah query search
raymondlukanta Apr 12, 2013
59f4a29
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
raymondlukanta Apr 12, 2013
7c5d431
Logout
Apr 12, 2013
ac74781
Dashboard dan Index
Apr 12, 2013
c0757d5
dimodif
Apr 12, 2013
1296760
add+remove comment sudah berpaginasi :)
YuliantiOenang Apr 12, 2013
46d9f33
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 12, 2013
c782c2b
Dashboard n Register
Apr 12, 2013
4b2b35a
DB dan kelas index
Apr 12, 2013
66d180e
Memperbaiki query autocomplete
raymondlukanta Apr 12, 2013
2e781be
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
raymondlukanta Apr 12, 2013
8262aa0
final
YuliantiOenang Apr 12, 2013
a239198
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 12, 2013
e336fd9
menghapus komentar
raymondlukanta Apr 12, 2013
60f22e0
Apr 12, 2013
eabd2ab
Dashboard dan revisi css
Apr 12, 2013
6a25171
DeleteTask.java SelectCategory.java
Apr 12, 2013
79f36b0
Login.java
Apr 12, 2013
f14aadb
Dump DB
Apr 12, 2013
c707086
final
raymondlukanta Apr 12, 2013
594fa0e
Apr 12, 2013
42e9494
Apr 12, 2013
1e43d1f
Nambahin persistent session dan realtime update
Apr 12, 2013
ac72f83
Segala hal yg berhubungan dgn kategori
Apr 12, 2013
8a3e218
Apr 12, 2013
c5e319d
Persistent Session
Apr 12, 2013
15f3422
revisi lagi ternyata ada yg salah
Apr 12, 2013
a8b1109
EDIT task detail sama profil
YuliantiOenang Apr 12, 2013
d6b46a4
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 12, 2013
5e3a6ec
AddKomen
YuliantiOenang Apr 13, 2013
8d344eb
dumb sql
raymondlukanta Apr 13, 2013
9ab0687
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
raymondlukanta Apr 13, 2013
9049fd1
SQL...
YuliantiOenang Apr 13, 2013
d083f58
perbaiki maketask
raymondlukanta Apr 13, 2013
f2c24d9
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
raymondlukanta Apr 13, 2013
32fbee9
Apr 13, 2013
51e78c8
revisi
Apr 13, 2013
888bebd
memperbaiki search
raymondlukanta Apr 13, 2013
d043b6d
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
raymondlukanta Apr 13, 2013
aa813a4
Apr 13, 2013
e000736
revisi lagi :P
Apr 13, 2013
1852bc1
edit db
YuliantiOenang Apr 13, 2013
efc79ca
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 13, 2013
47a8948
Dump DB
Apr 13, 2013
452df5e
edit sql
YuliantiOenang Apr 13, 2013
3d381ab
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 13, 2013
edd7b25
update query task selesai ma belum selesai
YuliantiOenang Apr 13, 2013
254bb4d
Avatar
Apr 13, 2013
7e78b00
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 13, 2013
f2b4f82
Apr 13, 2013
6b6da87
Dump DB
Apr 13, 2013
7939004
sql update
YuliantiOenang Apr 13, 2013
edbb36b
Merge branch 'master' of https://github.com/rymdemon/IF3038-2013
YuliantiOenang Apr 13, 2013
c49c121
update sql
YuliantiOenang Apr 13, 2013
4b262a3
edit profile
YuliantiOenang Apr 13, 2013
8aa40aa
hapus folder tubes3 yg tidak terpakai
raymondlukanta Apr 20, 2013
ddad042
Menambahkan MEMBER.md
raymondlukanta Apr 22, 2013
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
6 changes: 6 additions & 0 deletions MEMBER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
NIM | NAMA | MAIL | GITHUB_ID |
------------|-------------------|-----------------------------------|-----------------------|
13510059 | Yulianti Oenang | [email protected] | YuliantiOenang |
13510063 | Raymond Lukanta | [email protected] | rymdemon |
13510081 | Devin Hoesen | [email protected] | V1nz |
---------------------------------------------------------------------------------------------
11 changes: 11 additions & 0 deletions TubesProgin3/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Netbeans Files #
nbproject/
build/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml

# Java Files #
*.class
1 change: 1 addition & 0 deletions TubesProgin3/Note.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
header yg udah bener ada di SearchResult.jsp
71 changes: 71 additions & 0 deletions TubesProgin3/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="TubesProgin3" default="default" basedir=".">
<description>Builds, tests, and runs the project TubesProgin3.</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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions TubesProgin3/src/conf/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

72 changes: 72 additions & 0 deletions TubesProgin3/src/java/tubes3/AddCategory.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tubes3;

import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.ResultSet;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
*
* @author Devin
*/
@WebServlet(name = "AddCategory", urlPatterns = {"/AddCategory"})
public class AddCategory extends HttpServlet {

private Tubes3Connection db;
private Connection connection;

public AddCategory(){
db = new Tubes3Connection();
connection = db.getConnection();
}

public int addCateg(String nama, String maker, String users) {
users = users.replaceAll("\\s", "");
String userlist[] = users.split(",");
int IDKategori = 0;
try {
db.nonReturnQuery(connection, "INSERT INTO kategori(judul, username) VALUES ('" + nama + "', '" + maker + "')");
ResultSet qresult = db.coba(connection, "SELECT LAST_INSERT_ID()");
qresult.first();
IDKategori = qresult.getInt("LAST_INSERT_ID()");
db.nonReturnQuery(connection, "INSERT INTO usercateg VALUES ('" + IDKategori + "', '" + maker + "')");
for(String user : userlist)
db.nonReturnQuery(connection, "INSERT INTO usercateg VALUES ('" + IDKategori + "', '" + user + "')");
return IDKategori;
}
catch (Exception ex) {
System.out.println("Exception is ;" + ex);
}
return -1;
}

@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out = response.getWriter();
out.write(addCateg(request.getParameter("name"), (String)request.getSession().getAttribute("bananauser"), request.getParameter("users")));
}

@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {}

/**
* Returns a short description of the servlet.
*
* @return a String containing servlet description
*/
@Override
public String getServletInfo() {
return "Short description";
}// </editor-fold>
}
156 changes: 156 additions & 0 deletions TubesProgin3/src/java/tubes3/AddFile.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tubes3;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.Part;

/**
*
* @author Raymond
*/
@WebServlet(name = "AddFile", urlPatterns = {"/AddFile"})
@MultipartConfig
public class AddFile extends HttpServlet {

private Tubes3Connection db;
private Connection connection;

public AddFile() {
super();

}

// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
/**
* Handles the HTTP
* <code>GET</code> method.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String username = request.getParameter("user");
String nama = request.getParameter("tugas");
String tag = request.getParameter("tag");
String deadline = request.getParameter("deadline");
String kategori = request.getParameter("kategori");
// System.out.println(username + nama+asignee+tag+deadline+kategori);
db = new Tubes3Connection();
connection = db.getConnection();
String insertTugas = "INSERT INTO tugas (`IDKategori`, `deadline`, `name`, `tag`, `username`) VALUES (?, ?, ?, ?, ?)";
PreparedStatement insTugas;
ResultSet res;
int rs;
String maxID = null;
try {
insTugas = connection.prepareStatement(insertTugas);
insTugas.setString(1, kategori);
insTugas.setString(2, deadline);
insTugas.setString(3, nama);
insTugas.setString(4, tag);
insTugas.setString(5, username);
rs = insTugas.executeUpdate();
String maxIDTask = "SELECT max(IDTask) FROM tugas";
res = db.coba(connection, maxIDTask);
res.first();
maxID = res.getString(1);

String insertPelampiran = "INSERT INTO pelampiran (`IDTugas`, `lampiran`) VALUES (?, ?)";
PreparedStatement insPelampiran;


for (Part part : request.getParts()) {
//System.out.println("PART:" + part.getHeaderNames());
InputStream is = request.getPart(part.getName()).getInputStream();
int i = is.available();
byte[] b = new byte[i];
is.read(b);
String fileName = getFileName(part);
//System.out.println("FILE:" + fileName);
if (fileName != null && !fileName.equals("")) {
insPelampiran = connection.prepareStatement(insertPelampiran);
insPelampiran.setString(1, maxID);
insPelampiran.setString(2, "upload/"+fileName);
//System.out.println("fileName");

rs = insPelampiran.executeUpdate();
FileOutputStream os = new FileOutputStream(getServletContext().getRealPath("/") + "upload/" + fileName);
//System.out.println(getServletContext().getRealPath("/") + fileName);
os.write(b);
os.close();
}
is.close();
}
String insertPenugasan = "INSERT INTO penugasan (`username`, `IDTask`) VALUES (?, ?)";
PreparedStatement insPenugasan;
insPenugasan = connection.prepareStatement(insertPenugasan);
insPenugasan.setString(2, maxID);
String[] assignee = request.getParameterValues("asignee");
int i = 0;
while (i < assignee.length && assignee[i] != null) {
if (!assignee[i].equals("")) {
insPenugasan.setString(1, assignee[i]);
rs = insPenugasan.executeUpdate();
}
i++;
}
insPenugasan.setString(1, username);
rs = insPenugasan.executeUpdate();
} catch (SQLException e) {
System.out.println(e.getMessage());
}
response.sendRedirect("taskdetails.jsp?id="+maxID);
}

private String getFileName(Part part) {
//System.out.println("partgetContentType:" + part.getContentType());
//System.out.println("partgetHeaderNames:" + part.getHeaderNames());


// String partHeader = part.getHeader("content-disposition");
//if (part.getHeader("content-type") != null) {
for (String cd : part.getHeader("content-disposition").split(";")) {
//System.out.println("CD:" + cd);
if (cd.trim().startsWith("filename")) {
return cd.substring(cd.indexOf('=') + 1).trim().replace("\"", "");
}
}
//}
return null;
}

@Override
protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
doGet(request, response);
}

/**
* Returns a short description of the servlet.
*
* @return a String containing servlet description
*/
@Override
public String getServletInfo() {
return "Short description";
}// </editor-fold>
}
Loading