Skip to content
Snippets Groups Projects
Commit 40ba15cb authored by Theo Vienne's avatar Theo Vienne
Browse files

je sais plus c'est quoi ce commit

parent aa2c2d68
Branches
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ public class Calendrier extends HttpServlet { ...@@ -32,7 +32,7 @@ public class Calendrier extends HttpServlet {
int month = cal.get(Calendar.MONTH); int month = cal.get(Calendar.MONTH);
int day = cal.get(Calendar.DAY_OF_MONTH); int day = cal.get(Calendar.DAY_OF_MONTH);
String[] days = { "Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vrendredi", "Samedi" }; String[] days = { "Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi" };
String[] months = { String[] months = {
"Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Janvier", "Février", "Mars", "Avril", "Mai", "Juin",
"Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre" "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"
...@@ -40,8 +40,9 @@ public class Calendrier extends HttpServlet { ...@@ -40,8 +40,9 @@ public class Calendrier extends HttpServlet {
cal.set(Calendar.DAY_OF_MONTH, 1); cal.set(Calendar.DAY_OF_MONTH, 1);
int firstDayOfWeek = cal.get(Calendar.DAY_OF_WEEK) - 1; int firstDayOfWeek = cal.get(Calendar.DAY_OF_WEEK) - 1;
int daysInMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH); int daysInMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH);
out.println("<h2><button><</button>");
out.println("<h2>" + months[(month)] + " - " + year + "</h2>"); out.println(months[(month)] + " - " + year);
out.println("<button>></button></h2>");
out.println("<table border='1' style='width:50%; text-align:center;'>"); out.println("<table border='1' style='width:50%; text-align:center;'>");
out.println("<tr>"); out.println("<tr>");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment