diff --git a/.travis.yml b/.travis.yml index d3afa02..02cb9b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,3 +13,10 @@ cache: directories: - $HOME/.gradle/caches/ - $HOME/.gradle/wrapper/ + +# Gradlew +before_install: + - chmod +x ./gradlew + +script: + - ./gradlew clean build diff --git a/PlanInteractif_src/build.xml b/PlanInteractif_src/build.xml new file mode 100644 index 0000000..0dafbab --- /dev/null +++ b/PlanInteractif_src/build.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + Builds, tests, and runs the project PlanInteractif0402. + + + diff --git a/PlanInteractif_src/build/generated/classes/org/apache/jsp/Acceuil_jsp.class b/PlanInteractif_src/build/generated/classes/org/apache/jsp/Acceuil_jsp.class new file mode 100644 index 0000000..0b6dd9a Binary files /dev/null and b/PlanInteractif_src/build/generated/classes/org/apache/jsp/Acceuil_jsp.class differ diff --git a/PlanInteractif_src/build/generated/classes/org/apache/jsp/Rcote_jsp.class b/PlanInteractif_src/build/generated/classes/org/apache/jsp/Rcote_jsp.class new file mode 100644 index 0000000..3bd88d0 Binary files /dev/null and b/PlanInteractif_src/build/generated/classes/org/apache/jsp/Rcote_jsp.class differ diff --git a/PlanInteractif_src/build/generated/classes/org/apache/jsp/Recherche1_jsp.class b/PlanInteractif_src/build/generated/classes/org/apache/jsp/Recherche1_jsp.class new file mode 100644 index 0000000..08c0dd2 Binary files /dev/null and b/PlanInteractif_src/build/generated/classes/org/apache/jsp/Recherche1_jsp.class differ diff --git a/PlanInteractif_src/build/generated/classes/org/apache/jsp/Rsous_005fdiscipline_jsp.class b/PlanInteractif_src/build/generated/classes/org/apache/jsp/Rsous_005fdiscipline_jsp.class new file mode 100644 index 0000000..9bbc1f7 Binary files /dev/null and b/PlanInteractif_src/build/generated/classes/org/apache/jsp/Rsous_005fdiscipline_jsp.class differ diff --git a/PlanInteractif_src/build/generated/src/org/apache/jsp/Acceuil_jsp.class.smap b/PlanInteractif_src/build/generated/src/org/apache/jsp/Acceuil_jsp.class.smap new file mode 100644 index 0000000..fb16985 --- /dev/null +++ b/PlanInteractif_src/build/generated/src/org/apache/jsp/Acceuil_jsp.class.smap @@ -0,0 +1,10 @@ +SMAP +Acceuil_jsp.java +JSP +*S JSP +*F ++ 0 Acceuil.jsp +Acceuil.jsp +*L +1,41:44 +*E diff --git a/PlanInteractif_src/build/generated/src/org/apache/jsp/Acceuil_jsp.java b/PlanInteractif_src/build/generated/src/org/apache/jsp/Acceuil_jsp.java new file mode 100644 index 0000000..1ee5113 --- /dev/null +++ b/PlanInteractif_src/build/generated/src/org/apache/jsp/Acceuil_jsp.java @@ -0,0 +1,96 @@ +package org.apache.jsp; + +import javax.servlet.*; +import javax.servlet.http.*; +import javax.servlet.jsp.*; + +public final class Acceuil_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 _jspx_dependants; + + private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; + + public java.util.List 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"); + 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(" Accueil Bibliothèque \n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write("
Modifer les données
\n"); + out.write("

Bienvenu au plan Interactif

\n"); + out.write(" \n"); + out.write("
\n"); + out.write("

Choisissez la methode de recherche :

\n"); + out.write("
\n"); + out.write("\t\t\t

\n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write("
Par Cote :
Par Dicsipline :
Par Sous_Discipline :
\n"); + out.write("\t\t\n"); + out.write("

\n"); + out.write("
\n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write("\n"); + } 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); + } + } +} diff --git a/PlanInteractif_src/build/generated/src/org/apache/jsp/Rcote_jsp.class.smap b/PlanInteractif_src/build/generated/src/org/apache/jsp/Rcote_jsp.class.smap new file mode 100644 index 0000000..3e63cd4 --- /dev/null +++ b/PlanInteractif_src/build/generated/src/org/apache/jsp/Rcote_jsp.class.smap @@ -0,0 +1,17 @@ +SMAP +Rcote_jsp.java +JSP +*S JSP +*F ++ 0 Rcote.jsp +Rcote.jsp +*L +5,26:45 +30:70,9 +31,6:79 +36:85 +37:86,5 +38:91 +38:91,2 +39,12:93 +*E diff --git a/PlanInteractif_src/build/generated/src/org/apache/jsp/Rcote_jsp.java b/PlanInteractif_src/build/generated/src/org/apache/jsp/Rcote_jsp.java new file mode 100644 index 0000000..e90e163 --- /dev/null +++ b/PlanInteractif_src/build/generated/src/org/apache/jsp/Rcote_jsp.java @@ -0,0 +1,116 @@ +package org.apache.jsp; + +import javax.servlet.*; +import javax.servlet.http.*; +import javax.servlet.jsp.*; +import java.sql.ResultSet; + +public final class Rcote_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 _jspx_dependants; + + private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; + + public java.util.List 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(" \n"); + out.write(" \n"); + out.write(" JSP Page\n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write("
\n"); + out.write("

Selectionnez la cote de l'ouvrage désiré :

\n"); + out.write("\n"); + out.write("
\n"); + out.write("
\n"); + out.write(" \n"); + out.write(" \n"); + out.write("\n"); + out.write("
\n"); + out.write("\n"); + out.write(" \n"); + out.write(" \n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("\n"); + out.write("\n"); + } 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); + } + } +} diff --git a/PlanInteractif_src/build/generated/src/org/apache/jsp/Recherche1_jsp.class.smap b/PlanInteractif_src/build/generated/src/org/apache/jsp/Recherche1_jsp.class.smap new file mode 100644 index 0000000..fe450c8 --- /dev/null +++ b/PlanInteractif_src/build/generated/src/org/apache/jsp/Recherche1_jsp.class.smap @@ -0,0 +1,14 @@ +SMAP +Recherche1_jsp.java +JSP +*S JSP +*F ++ 0 Recherche1.jsp +Recherche1.jsp +*L +5,15:45 +21,14:62 +34,2:76 +36,3:78,3 +39,4:87 +*E diff --git a/PlanInteractif_src/build/generated/src/org/apache/jsp/Recherche1_jsp.java b/PlanInteractif_src/build/generated/src/org/apache/jsp/Recherche1_jsp.java new file mode 100644 index 0000000..8f9d719 --- /dev/null +++ b/PlanInteractif_src/build/generated/src/org/apache/jsp/Recherche1_jsp.java @@ -0,0 +1,102 @@ +package org.apache.jsp; + +import javax.servlet.*; +import javax.servlet.http.*; +import javax.servlet.jsp.*; +import PlanInt.Ouvrage; + +public final class Recherche1_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 _jspx_dependants; + + private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; + + public java.util.List 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(" \n"); + out.write(" JSP Page\n"); + out.write(" \n"); + out.write(" \n"); + out.write("

Bienvenue sur Plan interactif BU

\n"); + out.write("

Université Paris Ouest Nanterre La Défense

\n"); + out.write("

\n"); + out.write(" "); + + + Ouvrage livre= new Ouvrage(); + Ouvrage livre1= new Ouvrage(); + Ouvrage livre2= new Ouvrage(); + + + String u=" "; + u= livre.affichEtagere("111", u); + +String d=" "; +d= livre1.affichDiscipline("Philosophie", d); + +String ssdis=" "; +ssdis= livre2.affichSsDiscipline("Géographie universelle ", ssdis); + + out.write("\n"); + out.write("
\n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write("

\n"); + out.write(" \n"); + out.write("\n"); + } 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); + } + } +} diff --git a/PlanInteractif_src/build/generated/src/org/apache/jsp/Rsous_005fdiscipline_jsp.class.smap b/PlanInteractif_src/build/generated/src/org/apache/jsp/Rsous_005fdiscipline_jsp.class.smap new file mode 100644 index 0000000..4a7cdf0 --- /dev/null +++ b/PlanInteractif_src/build/generated/src/org/apache/jsp/Rsous_005fdiscipline_jsp.class.smap @@ -0,0 +1,17 @@ +SMAP +Rsous_005fdiscipline_jsp.java +JSP +*S JSP +*F ++ 0 Rsous_discipline.jsp +Rsous_discipline.jsp +*L +5,26:45 +30:70,9 +31,6:79 +36:85 +37:86,5 +38:91 +38:91,2 +39,12:93 +*E diff --git a/PlanInteractif_src/build/generated/src/org/apache/jsp/Rsous_005fdiscipline_jsp.java b/PlanInteractif_src/build/generated/src/org/apache/jsp/Rsous_005fdiscipline_jsp.java new file mode 100644 index 0000000..124c846 --- /dev/null +++ b/PlanInteractif_src/build/generated/src/org/apache/jsp/Rsous_005fdiscipline_jsp.java @@ -0,0 +1,116 @@ +package org.apache.jsp; + +import javax.servlet.*; +import javax.servlet.http.*; +import javax.servlet.jsp.*; +import java.sql.ResultSet; + +public final class Rsous_005fdiscipline_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 _jspx_dependants; + + private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; + + public java.util.List 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(" \n"); + out.write(" \n"); + out.write(" JSP Page\n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write(" \n"); + out.write("
\n"); + out.write("

Selectionnez la sous-discipline de l'ouvrage désiré :

\n"); + out.write("\n"); + out.write("
\n"); + out.write("
\n"); + out.write(" \n"); + out.write(" \n"); + out.write("\n"); + out.write("
\n"); + out.write("\n"); + out.write(" \n"); + out.write(" \n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("\n"); + out.write("\n"); + } 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); + } + } +} diff --git a/PlanInteractif_src/build/test/classes/.netbeans_automatic_build b/PlanInteractif_src/build/test/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PlanInteractif_src/build/test/classes/.netbeans_update_resources b/PlanInteractif_src/build/test/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PlanInteractif_src/build/test/classes/PlanInt/OuvrageTest.class b/PlanInteractif_src/build/test/classes/PlanInt/OuvrageTest.class new file mode 100644 index 0000000..36b3f30 Binary files /dev/null and b/PlanInteractif_src/build/test/classes/PlanInt/OuvrageTest.class differ diff --git a/PlanInteractif_src/build/web/Acceuil.jsp b/PlanInteractif_src/build/web/Acceuil.jsp new file mode 100644 index 0000000..b2d9cc7 --- /dev/null +++ b/PlanInteractif_src/build/web/Acceuil.jsp @@ -0,0 +1,40 @@ + + + + + Accueil Bibliothèque + + + + + + + + + +
Modifer les données
+

Bienvenu au plan Interactif

+ +
+

Choisissez la methode de recherche :

+
+

+ + + + + + + +
Par Cote :
Par Dicsipline :
Par Sous_Discipline :
+ +

+
+ + + + diff --git a/PlanInteractif_src/build/web/FichierExcel.jsp b/PlanInteractif_src/build/web/FichierExcel.jsp new file mode 100644 index 0000000..7bb02f8 --- /dev/null +++ b/PlanInteractif_src/build/web/FichierExcel.jsp @@ -0,0 +1,31 @@ +<%-- + Document : FichierExcel + Created on : 21 févr. 2016, 18:26:47 + Author : MACYLIA +--%> + +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + + JSP Page + + + <%-- + Bonjour monsieur <%= user.getFirstName() %> <%= user.getLastName() %> --%> + + +
+
+

Choisissez le fichier à télécharger :

+ + + + + +

+
+ + diff --git a/PlanInteractif_src/build/web/META-INF/MANIFEST.MF b/PlanInteractif_src/build/web/META-INF/MANIFEST.MF new file mode 100644 index 0000000..59499bc --- /dev/null +++ b/PlanInteractif_src/build/web/META-INF/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/PlanInteractif_src/build/web/PlanDiscipline.jsp b/PlanInteractif_src/build/web/PlanDiscipline.jsp new file mode 100644 index 0000000..246572a --- /dev/null +++ b/PlanInteractif_src/build/web/PlanDiscipline.jsp @@ -0,0 +1,17 @@ +<%-- + Document : PlanDiscipline + Created on : 24 févr. 2016, 17:47:53 + Author : ibs +--%> + +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + JSP Page + + +

Hello World!

+ + diff --git a/PlanInteractif_src/build/web/Rcote.jsp b/PlanInteractif_src/build/web/Rcote.jsp new file mode 100644 index 0000000..9bb1bd0 --- /dev/null +++ b/PlanInteractif_src/build/web/Rcote.jsp @@ -0,0 +1,49 @@ +<%-- + Document : Rdiscipline + Created on : 21 févr. 2016, 13:39:07 + Author : MACYLIA +--%> + +<%@page import="java.sql.ResultSet"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + + JSP Page + + + + +
+

Selectionnez la cote de l'ouvrage désiré :

+ +
+
+ + + +
+ + + +
+
+
+ + diff --git a/PlanInteractif_src/build/web/Rdiscipline.jsp b/PlanInteractif_src/build/web/Rdiscipline.jsp new file mode 100644 index 0000000..e5c5de1 --- /dev/null +++ b/PlanInteractif_src/build/web/Rdiscipline.jsp @@ -0,0 +1,49 @@ +<%-- + Document : Rdiscipline + Created on : 21 févr. 2016, 13:39:07 + Author : MACYLIA +--%> + +<%@page import="java.sql.ResultSet"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + + JSP Page + + + + +
+

Selectionnez la discipline de l'ouvrage désiré :

+ +
+
+ + + +
+ + + +
+
+
+ + diff --git a/PlanInteractif_src/build/web/Recherche1.jsp b/PlanInteractif_src/build/web/Recherche1.jsp new file mode 100644 index 0000000..31ed7e0 --- /dev/null +++ b/PlanInteractif_src/build/web/Recherche1.jsp @@ -0,0 +1,42 @@ +<%-- + Document : Recherche1 + Created on : 4 févr. 2016, 12:08:33 + Author : ibs +--%> +<%-- +<%@page import="PlanInt.Ouvrage"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + JSP Page + + +

Bienvenue sur Plan interactif BU

+

Université Paris Ouest Nanterre La Défense

+

+ <% + + Ouvrage livre= new Ouvrage(); + Ouvrage livre1= new Ouvrage(); + Ouvrage livre2= new Ouvrage(); + + + String u=" "; + u= livre.affichEtagere("111", u); + +String d=" "; +d= livre1.affichDiscipline("Philosophie", d); + +String ssdis=" "; +ssdis= livre2.affichSsDiscipline("Géographie universelle ", ssdis); +%> +
+ cccc2 + cccc2 + cccc2 +

+ + +--%> \ No newline at end of file diff --git a/PlanInteractif_src/build/web/Rsous_discipline.jsp b/PlanInteractif_src/build/web/Rsous_discipline.jsp new file mode 100644 index 0000000..84687fa --- /dev/null +++ b/PlanInteractif_src/build/web/Rsous_discipline.jsp @@ -0,0 +1,49 @@ +<%-- + Document : Rdiscipline + Created on : 21 févr. 2016, 13:39:07 + Author : MACYLIA +--%> + +<%@page import="java.sql.ResultSet"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + + JSP Page + + + + +
+

Selectionnez la sous-discipline de l'ouvrage désiré :

+ +
+
+ + + +
+ + + +
+
+
+ + diff --git a/PlanInteractif_src/build/web/Thumbs.db b/PlanInteractif_src/build/web/Thumbs.db new file mode 100644 index 0000000..31de9f4 Binary files /dev/null and b/PlanInteractif_src/build/web/Thumbs.db differ diff --git a/PlanInteractif_src/build/web/WEB-INF/Thumbs.db b/PlanInteractif_src/build/web/WEB-INF/Thumbs.db new file mode 100644 index 0000000..e45ab8f Binary files /dev/null and b/PlanInteractif_src/build/web/WEB-INF/Thumbs.db differ diff --git a/PlanInteractif_src/build/web/WEB-INF/classes/.netbeans_automatic_build b/PlanInteractif_src/build/web/WEB-INF/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PlanInteractif_src/build/web/WEB-INF/classes/.netbeans_update_resources b/PlanInteractif_src/build/web/WEB-INF/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PlanInteractif_src/build/web/WEB-INF/classes/PlanInt/Ouvrage.class b/PlanInteractif_src/build/web/WEB-INF/classes/PlanInt/Ouvrage.class new file mode 100644 index 0000000..d4c80d2 Binary files /dev/null and b/PlanInteractif_src/build/web/WEB-INF/classes/PlanInt/Ouvrage.class differ diff --git a/PlanInteractif_src/build/web/WEB-INF/classes/PlanInt/connexion.class b/PlanInteractif_src/build/web/WEB-INF/classes/PlanInt/connexion.class new file mode 100644 index 0000000..e41548b Binary files /dev/null and b/PlanInteractif_src/build/web/WEB-INF/classes/PlanInt/connexion.class differ diff --git a/PlanInteractif_src/build/web/WEB-INF/classes/bdd/Recherche.class b/PlanInteractif_src/build/web/WEB-INF/classes/bdd/Recherche.class new file mode 100644 index 0000000..278bdd9 Binary files /dev/null and b/PlanInteractif_src/build/web/WEB-INF/classes/bdd/Recherche.class differ diff --git a/PlanInteractif_src/build/web/WEB-INF/classes/bdd/Rservlet.class b/PlanInteractif_src/build/web/WEB-INF/classes/bdd/Rservlet.class new file mode 100644 index 0000000..1c4a141 Binary files /dev/null and b/PlanInteractif_src/build/web/WEB-INF/classes/bdd/Rservlet.class differ diff --git a/PlanInteractif_src/build/web/WEB-INF/classes/bdd/Utilitaire.class b/PlanInteractif_src/build/web/WEB-INF/classes/bdd/Utilitaire.class new file mode 100644 index 0000000..0be83e3 Binary files /dev/null and b/PlanInteractif_src/build/web/WEB-INF/classes/bdd/Utilitaire.class differ diff --git a/PlanInteractif_src/build/web/WEB-INF/disciplines_ssdisciplines_cotes_geoUniv.png b/PlanInteractif_src/build/web/WEB-INF/disciplines_ssdisciplines_cotes_geoUniv.png new file mode 100644 index 0000000..cfc67c8 Binary files /dev/null and b/PlanInteractif_src/build/web/WEB-INF/disciplines_ssdisciplines_cotes_geoUniv.png differ diff --git a/PlanInteractif_src/build/web/WEB-INF/glassfish-web.xml b/PlanInteractif_src/build/web/WEB-INF/glassfish-web.xml new file mode 100644 index 0000000..13e0059 --- /dev/null +++ b/PlanInteractif_src/build/web/WEB-INF/glassfish-web.xml @@ -0,0 +1,10 @@ + + + + + + + Keep a copy of the generated servlet class' java code. + + + diff --git a/PlanInteractif_src/build/web/WEB-INF/lib/ojdbc6.jar b/PlanInteractif_src/build/web/WEB-INF/lib/ojdbc6.jar new file mode 100644 index 0000000..01da074 Binary files /dev/null and b/PlanInteractif_src/build/web/WEB-INF/lib/ojdbc6.jar differ diff --git a/PlanInteractif_src/build/web/WEB-INF/mont.jpg b/PlanInteractif_src/build/web/WEB-INF/mont.jpg new file mode 100644 index 0000000..5d254bd Binary files /dev/null and b/PlanInteractif_src/build/web/WEB-INF/mont.jpg differ diff --git a/PlanInteractif_src/build/web/WEB-INF/plan.png b/PlanInteractif_src/build/web/WEB-INF/plan.png new file mode 100644 index 0000000..b0df33d Binary files /dev/null and b/PlanInteractif_src/build/web/WEB-INF/plan.png differ diff --git a/PlanInteractif_src/build/web/WEB-INF/planEtageres38-39.png b/PlanInteractif_src/build/web/WEB-INF/planEtageres38-39.png new file mode 100644 index 0000000..b0df33d Binary files /dev/null and b/PlanInteractif_src/build/web/WEB-INF/planEtageres38-39.png differ diff --git a/PlanInteractif_src/build/web/WEB-INF/salles_disciplines_philo.png b/PlanInteractif_src/build/web/WEB-INF/salles_disciplines_philo.png new file mode 100644 index 0000000..e8a9145 Binary files /dev/null and b/PlanInteractif_src/build/web/WEB-INF/salles_disciplines_philo.png differ diff --git a/PlanInteractif_src/build/web/ciel.jpg b/PlanInteractif_src/build/web/ciel.jpg new file mode 100644 index 0000000..f85c6ea Binary files /dev/null and b/PlanInteractif_src/build/web/ciel.jpg differ diff --git a/PlanInteractif_src/build/web/disciplines_ssdisciplines_cotes_geouniv.png b/PlanInteractif_src/build/web/disciplines_ssdisciplines_cotes_geouniv.png new file mode 100644 index 0000000..cfc67c8 Binary files /dev/null and b/PlanInteractif_src/build/web/disciplines_ssdisciplines_cotes_geouniv.png differ diff --git a/PlanInteractif_src/build/web/gfv3ee6.dpf b/PlanInteractif_src/build/web/gfv3ee6.dpf new file mode 100644 index 0000000..e69de29 diff --git a/PlanInteractif_src/build/web/image.jpg b/PlanInteractif_src/build/web/image.jpg new file mode 100644 index 0000000..d8337f8 Binary files /dev/null and b/PlanInteractif_src/build/web/image.jpg differ diff --git a/PlanInteractif_src/build/web/image2.jpg b/PlanInteractif_src/build/web/image2.jpg new file mode 100644 index 0000000..0b6e873 Binary files /dev/null and b/PlanInteractif_src/build/web/image2.jpg differ diff --git a/PlanInteractif_src/build/web/image3.jpg b/PlanInteractif_src/build/web/image3.jpg new file mode 100644 index 0000000..5acff56 Binary files /dev/null and b/PlanInteractif_src/build/web/image3.jpg differ diff --git a/PlanInteractif_src/build/web/image4.jpg b/PlanInteractif_src/build/web/image4.jpg new file mode 100644 index 0000000..cfafd59 Binary files /dev/null and b/PlanInteractif_src/build/web/image4.jpg differ diff --git a/PlanInteractif_src/build/web/logo.jpg b/PlanInteractif_src/build/web/logo.jpg new file mode 100644 index 0000000..eb1ddf1 Binary files /dev/null and b/PlanInteractif_src/build/web/logo.jpg differ diff --git a/PlanInteractif_src/build/web/mont.jpg b/PlanInteractif_src/build/web/mont.jpg new file mode 100644 index 0000000..5d254bd Binary files /dev/null and b/PlanInteractif_src/build/web/mont.jpg differ diff --git a/PlanInteractif_src/build/web/plan.png b/PlanInteractif_src/build/web/plan.png new file mode 100644 index 0000000..b0df33d Binary files /dev/null and b/PlanInteractif_src/build/web/plan.png differ diff --git a/PlanInteractif_src/build/web/planEtageres38-39.png b/PlanInteractif_src/build/web/planEtageres38-39.png new file mode 100644 index 0000000..b0df33d Binary files /dev/null and b/PlanInteractif_src/build/web/planEtageres38-39.png differ diff --git a/PlanInteractif_src/build/web/salles_disciplines_philo.png b/PlanInteractif_src/build/web/salles_disciplines_philo.png new file mode 100644 index 0000000..d5d1a63 Binary files /dev/null and b/PlanInteractif_src/build/web/salles_disciplines_philo.png differ diff --git a/PlanInteractif_src/build/web/style.css b/PlanInteractif_src/build/web/style.css new file mode 100644 index 0000000..fa05408 --- /dev/null +++ b/PlanInteractif_src/build/web/style.css @@ -0,0 +1,54 @@ +body { +color:blink; +background-color:white; +background-image:url(image3.jpg); +background-attachment:fixed; +margin : auto ; + +} + + +.bordure{ + border:5px solid #FFF; + border-radius: 2px ; + width:50%; + height:50%; + font-family: Tahoma; + font-style: italic; + padding:8px; + margin-left:325px; +} +.tableau{ + margin-left:325px; + padding:8px; +} + +.bouton:hover{ + background-color: lightgrey; + color: white; + transition: all 0.5s ease; +} + +.bouton:focus{ + background-color: grey; + +} +.ruban{ + background-image:url(logo.jpg); + width: 100%; + height: 5em; +} + + +.bouton1:hover{ + background-color: lightgrey; + color: white; + transition: all 0.5s ease; + +} +.bouton1{ + background-color: #FFEBCD; + text-decoration: none; + color: darkslategray; + +} \ No newline at end of file diff --git a/PlanInteractif_src/nbproject/ant-deploy.xml b/PlanInteractif_src/nbproject/ant-deploy.xml new file mode 100644 index 0000000..2d5f877 --- /dev/null +++ b/PlanInteractif_src/nbproject/ant-deploy.xml @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PlanInteractif_src/nbproject/build-impl.xml b/PlanInteractif_src/nbproject/build-impl.xml new file mode 100644 index 0000000..9bd3897 --- /dev/null +++ b/PlanInteractif_src/nbproject/build-impl.xml @@ -0,0 +1,1444 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set build.web.dir + Must set build.generated.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.war + + + + + + + + + +The Java EE server classpath is not correctly set up - server home directory is missing. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Dj2ee.server.home=<app_server_installation_directory> + + +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file) +or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +The libs.CopyLibs.classpath property is not set up. +This property must point to +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part +of NetBeans IDE installation and is usually located at +<netbeans_installation>/java<version>/ant/extra folder. +Either open the project in the IDE and make sure CopyLibs library +exists or setup the property manually. For example like this: + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.jsp.includes + + + + + + + + + + + + + + + + + + + + + + + + + + Must select a file in the IDE or set jsp.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable. + + + Launching ${browse.url} + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PlanInteractif_src/nbproject/genfiles.properties b/PlanInteractif_src/nbproject/genfiles.properties new file mode 100644 index 0000000..dfe98ff --- /dev/null +++ b/PlanInteractif_src/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7d581a9b +build.xml.script.CRC32=5f285c35 +build.xml.stylesheet.CRC32=651128d4@1.75.1.1 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=7d581a9b +nbproject/build-impl.xml.script.CRC32=1c88e04f +nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.75.1.1 diff --git a/PlanInteractif_src/nbproject/private/private.properties b/PlanInteractif_src/nbproject/private/private.properties new file mode 100644 index 0000000..df7e7f3 --- /dev/null +++ b/PlanInteractif_src/nbproject/private/private.properties @@ -0,0 +1,7 @@ +deploy.ant.properties.file=C:\\Users\\ibs\\AppData\\Roaming\\NetBeans\\8.1\\config\\GlassFishEE6\\Properties\\gfv31959547522.properties +j2ee.platform.is.jsr109=true +j2ee.server.domain=C:/Users/ibs/personal_domain +j2ee.server.home=C:/Program Files/glassfish-4.1.1/glassfish +j2ee.server.instance=[C:\\Program Files\\glassfish-4.1.1\\glassfish;C:\\Users\\ibs\\personal_domain]deployer:gfv3ee6wc:localhost:25815 +j2ee.server.middleware=C:/Program Files/glassfish-4.1.1 +user.properties.file=C:\\Users\\ibs\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PlanInteractif_src/nbproject/private/private.xml b/PlanInteractif_src/nbproject/private/private.xml new file mode 100644 index 0000000..f49d328 --- /dev/null +++ b/PlanInteractif_src/nbproject/private/private.xml @@ -0,0 +1,23 @@ + + + + + + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/src/java/bdd/Rservlet.java + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/src/java/bdd/Recherche.java + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/web/FichierExcel.jsp + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/web/Acceuil.jsp + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/web/Rdiscipline.jsp + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/src/java/PlanInt/Ouvrage.java + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/test/PlanInt/OuvrageTest.java + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/web/Rsous_discipline.jsp + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/src/java/PlanInt/connexion.java + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/web/Rcote.jsp + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/src/java/bdd/Utilitaire.java + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/web/WEB-INF/plan.png + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/web/mont.jpg + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/web/Recherche1.jsp + file:/C:/Users/ibs/Documents/NetBeansProjects8.1/PlanInteractif0402/web/PlanDiscipline.jsp + + + diff --git a/PlanInteractif_src/nbproject/project.properties b/PlanInteractif_src/nbproject/project.properties new file mode 100644 index 0000000..34a7458 --- /dev/null +++ b/PlanInteractif_src/nbproject/project.properties @@ -0,0 +1,93 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=true +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.web.dir}/WEB-INF/classes +build.classes.excludes=**/*.java,**/*.form +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +build.web.dir=${build.dir}/web +build.web.excludes=${build.classes.excludes} +client.urlPart= +compile.jsps=false +conf.dir=${source.root}/conf +debug.classpath=${build.classes.dir}:${javac.classpath} +debug.test.classpath=\ + ${run.test.classpath} +display.browser=true +# Files to be excluded from distribution war +dist.archive.excludes= +dist.dir=dist +dist.ear.war=${dist.dir}/${war.ear.name} +dist.javadoc.dir=${dist.dir}/javadoc +dist.war=${dist.dir}/${war.name} +endorsed.classpath=\ + ${libs.javaee-endorsed-api-7.0.classpath} +excludes= +file.reference.ojdbc6.jar=C:\\ojdbc6.jar +includes=** +j2ee.compile.on.save=true +j2ee.copy.static.files.on.save=true +j2ee.deploy.on.save=true +j2ee.platform=1.7-web +j2ee.platform.classpath=${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/cdi-api.jar:${j2ee.server.home}/modules/javax.batch-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.inject.jar:${j2ee.server.home}/modules/javax.interceptor-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar:${j2ee.server.middleware}/mq/lib/jaxm-api.jar +j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar +j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar +j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar +j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar +j2ee.platform.wsit.classpath= +j2ee.server.type=gfv3ee6 +jar.compress=false +javac.classpath=\ + ${file.reference.ojdbc6.jar} +# Space-separated list of extra javac options +javac.compilerargs= +javac.debug=true +javac.deprecation=false +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir}:\ + ${libs.junit_4.classpath}:\ + ${libs.hamcrest.classpath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.preview=true +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +lib.dir=${web.docbase.dir}/WEB-INF/lib +no.dependencies=false +persistence.xml.dir=${conf.dir} +platform.active=default_platform +resource.dir=setup +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +# Space-separated list of JVM arguments used when running a class with a main method or a unit test +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): +runmain.jvmargs= +source.encoding=UTF-8 +source.root=src +src.dir=${source.root}/java +test.src.dir=test +war.content.additional= +war.ear.name=${war.name} +war.name=PlanInteractif0402.war +web.docbase.dir=web +webinf.dir=web/WEB-INF diff --git a/PlanInteractif_src/nbproject/project.xml b/PlanInteractif_src/nbproject/project.xml new file mode 100644 index 0000000..99cc4ac --- /dev/null +++ b/PlanInteractif_src/nbproject/project.xml @@ -0,0 +1,23 @@ + + + org.netbeans.modules.web.project + + + PlanInteractif0402 + 1.6.5 + + + ${file.reference.ojdbc6.jar} + WEB-INF/lib + + + + + + + + + + + + diff --git a/PlanInteractif_src/src/conf/MANIFEST.MF b/PlanInteractif_src/src/conf/MANIFEST.MF new file mode 100644 index 0000000..59499bc --- /dev/null +++ b/PlanInteractif_src/src/conf/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/PlanInteractif_src/src/java/PlanInt/Ouvrage.java b/PlanInteractif_src/src/java/PlanInt/Ouvrage.java new file mode 100644 index 0000000..2e48da7 --- /dev/null +++ b/PlanInteractif_src/src/java/PlanInt/Ouvrage.java @@ -0,0 +1,345 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package PlanInt; +import java.sql.*; // Étape 0 + +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; + +/** + * + * @author ibs + */ +public class Ouvrage { + +String cote; +String etagere; +String discipline; +String ssDiscipline; +String salle; + +public Ouvrage() +{ + +} +public Ouvrage(String cote, String discipline, String ssDiscipline, String etagere, String salle) +{ + this.cote=cote; + this.etagere=etagere; + this.discipline=discipline; + this.ssDiscipline =ssDiscipline; + this.salle=salle; + + + +} + +public String rechercheparcote(String coteSaisie) +{ + +String result=""; +/** Chargement du driver JDBC - Étape 1 */ +try { +Class.forName("oracle.jdbc.driver.OracleDriver"); +} +catch( Exception ex ) { +System.err.println( "Erreur lors du chargement du driver" ); +System.exit(1); +} +try { +/** Connection à la base - Étape 2 */ +//String url="jdbc:oracle:thin:@miage03.dmiage.u-paris10.fr:1521:MIAGE"; +String url ="jdbc:oracle:thin:@//localhost:1521/xe"; +Connection cx = +DriverManager.getConnection (url, "SYSTEM", "SYS"); +/** Création et exécution d'une requête - Étapes 3 & 4 */ +Statement st = cx.createStatement(); +ResultSet rs = st.executeQuery( "SELECT * FROM contenu_bu" ); + +/** Affichage du résultat - Étape 5 */ +int etagere; + +while (rs.next()) { +String cote= rs.getString("cote"); +//System.out.println(cote); +if ( cote.equals(coteSaisie)) + +{ + + String salle = rs.getString("salle"); + //int etagere= Integer.parseInt (rs.getString("etagere")); + String discipline = rs.getString("discipline"); + String ssdiscipline = rs.getString("ssdiscipline"); + String etagerenontraite = rs.getString("etagere"); +result=("Résultats pour la cote: "+cote+" -Salle : "+salle +" -Discipline : "+discipline+" -Sous discipline : "+ssdiscipline+" -Numéro étagère :"+etagerenontraite); + +//int age= rs.getInt("age"); +//System.out.println(nom+" est agé de "+age); +} + + + +} + +/** Fermetures - Étape 6 */ +rs.close(); +st.close(); +cx.close(); +} +catch( SQLException ex ) { +System.err.println( "Erreur lors de la cx à la base" ); +System.exit(1); +} +return result; +} + +public String RechercheParDiscipline(String disc) +{ + String result=" "; + try { +Class.forName("oracle.jdbc.driver.OracleDriver"); +} +catch( Exception ex ) { +System.err.println( "Erreur lors du chargement du driver" ); +System.exit(1); +} +try { +/** Connection à la base - Étape 2 */ +//String url="jdbc:oracle:thin:@miage03.dmiage.u-paris10.fr:1521:MIAGE"; +String url ="jdbc:oracle:thin:@//localhost:1521/xe"; +Connection cx = +DriverManager.getConnection (url, "SYSTEM", "SYS"); +/** Création et exécution d'une requête - Étapes 3 & 4 */ +Statement st = cx.createStatement(); +ResultSet rs = st.executeQuery( "SELECT * FROM contenu_bu" ); + +/** Affichage du résultat - Étape 5 */ + + +while (rs.next()) { +String discipline = rs.getString("discipline"); +//System.out.println(cote); +if ( discipline.equals(disc)) + +{ + + String salle = rs.getString("salle"); + //int etagere= Integer.parseInt (rs.getString("etagere")); + + String cote= rs.getString("cote"); + String ssdiscipline = rs.getString("ssdiscipline"); + String etagerenontraite = rs.getString("etagere"); +result=("Résultats pour la discipline : "+disc+" -Salle : "+salle +" -Sous discipline : "+ssdiscipline+" -Numéro étagère :"+etagerenontraite+" -Racine de cote : "+cote); + +} +} + +/** Fermetures - Étape 6 */ +rs.close(); +st.close(); +cx.close(); +} +catch( SQLException ex ) { +System.err.println( "Erreur lors de la cx à la base" ); +System.exit(1); +} +return result; +} + +public String RechercheParSsDiscipline(String ssDisc) + +{ +/** Chargement du driver JDBC - Étape 1 */ +String result=" "; + try { +Class.forName("oracle.jdbc.driver.OracleDriver"); +} +catch( Exception ex ) { +System.err.println( "Erreur lors du chargement du driver" ); +System.exit(1); +} +try { +String url ="jdbc:oracle:thin:@//localhost:1521/xe"; +Connection cx = +DriverManager.getConnection (url, "SYSTEM", "SYS"); +/** Création et exécution d'une requête - Étapes 3 & 4 */ +Statement st = cx.createStatement(); +ResultSet rs = st.executeQuery( "SELECT * FROM contenu_bu" ); + +/** Affichage du résultat - Étape 5 */ + + +while (rs.next()) { +String ssdiscipline = rs.getString("ssdiscipline"); +//System.out.println(cote); +if ( ssdiscipline.equals(ssDisc)) + +{ + + String salle = rs.getString("salle"); + //int etagere= Integer.parseInt (rs.getString("etagere")); + + String cote= rs.getString("cote"); + String discipline = rs.getString("discipline"); + String etagerenontraite = rs.getString("etagere"); + +result=("Résultats pour la sous discipline : "+ssDisc+" -Salle : "+salle +" - Discipline : "+discipline+" -Numéro étagère :"+etagerenontraite+" -Racine de cote : "+cote); + +} + + + +} + +/** Fermetures - Étape 6 */ +rs.close(); +st.close(); +cx.close(); +} +catch( SQLException ex ) { +System.err.println( "Erreur lors de la cx à la base" ); +System.exit(1); +} +return result; +} + + + public String affichEtagere(String coteSaisie, String urlLue) + +{ +try { +Class.forName("oracle.jdbc.driver.OracleDriver"); +} +catch( Exception ex ) { +System.err.println( "Erreur lors du chargement du driver" ); +System.exit(1); +} +try { +String url ="jdbc:oracle:thin:@//localhost:1521/xe"; +Connection cx = +DriverManager.getConnection (url, "SYSTEM", "SYS"); + + +Statement st = cx.createStatement(); +ResultSet rs = st.executeQuery( "SELECT * FROM Etagere " ); + +while (rs.next()) { +String cotelue = rs.getString("cote"); +if ( cotelue.equals(coteSaisie)) + +{ + urlLue = rs.getString("url"); +} + +} + +rs.close(); +st.close(); +cx.close(); +} +catch( SQLException ex ) { +System.err.println( "Erreur lors de la cx à la base" ); +System.exit(1); +} +return urlLue; +} + + + + /// plan discipline salle + + public String affichDiscipline(String discSaisie, String urlLue) + +{ +try { +Class.forName("oracle.jdbc.driver.OracleDriver"); +} +catch( Exception ex ) { +System.err.println( "Erreur lors du chargement du driver" ); +System.exit(1); +} +try { +String url ="jdbc:oracle:thin:@//localhost:1521/xe"; +Connection cx = +DriverManager.getConnection (url, "SYSTEM", "SYS"); + + +Statement st = cx.createStatement(); +ResultSet rs = st.executeQuery( "SELECT * FROM discipline " ); + +while (rs.next()) { +String disciplinelue = rs.getString("discipline"); +if ( disciplinelue.equals(discSaisie)) + +{ + urlLue = rs.getString("url"); +} + +} + +rs.close(); +st.close(); +cx.close(); +} +catch( SQLException ex ) { +System.err.println( "Erreur lors de la cx à la base" ); +System.exit(1); +} +return urlLue; +} + + + // plan ss discipline + + public String affichSsDiscipline(String ssdiscSaisie, String urlLue) + +{ +try { +Class.forName("oracle.jdbc.driver.OracleDriver"); +} +catch( Exception ex ) { +System.err.println( "Erreur lors du chargement du driver" ); +System.exit(1); +} +try { +String url ="jdbc:oracle:thin:@//localhost:1521/xe"; +Connection cx = +DriverManager.getConnection (url, "SYSTEM", "SYS"); + + +Statement st = cx.createStatement(); +ResultSet rs = st.executeQuery( "SELECT * FROM ssdiscipline " ); + +while (rs.next()) { +String ssdisciplinelue = rs.getString("ssdiscipline"); +if ( ssdisciplinelue.equals(ssdiscSaisie)) + +{ + urlLue = rs.getString("url"); +} + +} + +rs.close(); +st.close(); +cx.close(); +} +catch( SQLException ex ) { +System.err.println( "Erreur lors de la cx à la base" ); +System.exit(1); +} +return urlLue; +} + +} + + + + + diff --git a/PlanInteractif_src/src/java/PlanInt/connexion.java b/PlanInteractif_src/src/java/PlanInt/connexion.java new file mode 100644 index 0000000..277d6de --- /dev/null +++ b/PlanInteractif_src/src/java/PlanInt/connexion.java @@ -0,0 +1,79 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package PlanInt; + +/** + * + * @author ibs + */ +import java.sql.*; // Étape 0 +public class connexion { + + /* +public static void main( String[] args ) { + + Ouvrage livre= new Ouvrage(); + System.out.println("Recherche par cote "); + livre.rechercheparcote("111"); + System.out.println("Recherche par discipline "); + livre.RechercheParDiscipline("Philosophie"); + System.out.println("Recherche par sous discipline "); + livre.RechercheParSsDiscipline("Ontologie "); + + String url=" "; + url = livre.affichEtagere("111", url); + + System.out.println(url); + /* +try { +Class.forName("oracle.jdbc.driver.OracleDriver"); +} +catch( Exception ex ) { +System.err.println( "Erreur lors du chargement du driver" ); +System.exit(1); +} +try { + +String url ="jdbc:oracle:thin:@//localhost:1521/xe"; +Connection cx = +DriverManager.getConnection (url, "SYSTEM", "SYS"); + +Statement st = cx.createStatement(); +ResultSet rs = st.executeQuery( "SELECT * FROM contenu_bu" ); + +/ +int etagere; +while (rs.next()) { + +String etagerenontraite = rs.getString("etagere"); +if ( etagerenontraite.length() == 2) + etagere= Integer.parseInt(etagerenontraite); + + String salle = rs.getString("salle"); + //int etagere= Integer.parseInt (rs.getString("etagere")); + String discipline = rs.getString("discipline"); + String ssdiscipline = rs.getString("ssdiscipline"); + int cote= Integer.parseInt (rs.getString("cote")); +System.out.println(salle+ " "+etagere+" "+discipline+" "+ssdiscipline+" "+cote+" "); + +//int age= rs.getInt("age"); +//System.out.println(nom+" est agé de "+age); +} + + + +rs.close(); +st.close(); +cx.close(); +} +catch( SQLException ex ) { +System.err.println( "Erreur lors de la cx à la base" ); +System.exit(1); +} +} + +}*/ +} \ No newline at end of file diff --git a/PlanInteractif_src/src/java/bdd/Recherche.java b/PlanInteractif_src/src/java/bdd/Recherche.java new file mode 100644 index 0000000..3ea90f9 --- /dev/null +++ b/PlanInteractif_src/src/java/bdd/Recherche.java @@ -0,0 +1,105 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package bdd; + +import PlanInt.Ouvrage; +import java.io.IOException; +import java.io.PrintWriter; +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 MACYLIA + */ +@WebServlet(name = "Recherche", urlPatterns = {"/Recherche"}) +public class Recherche extends HttpServlet { + + protected void processRequest(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + + } + + + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + processRequest(request, response); + } + + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + response.setContentType("text/html;charset=UTF-8"); + PrintWriter out = response.getWriter(); + /* TODO output your page here. You may use following sample code. */ + out.println( "" ); + out.println( "

Résultats de votre recherche

" ); + + Ouvrage ouvrage = new Ouvrage(); + + String rechercheCote = request.getParameter("scote"); + //out.println( rechercheCote ); + //ouvrage.rechercheparcote(rechercheCote); + Ouvrage livre2 = new Ouvrage(); + Ouvrage livre1 = new Ouvrage(); + Ouvrage livre3 = new Ouvrage(); + + if ((rechercheCote) != null) + { + String etg=" "; + etg= livre3.affichEtagere(rechercheCote,etg); + String rslt=""; + rslt=livre3.rechercheparcote(rechercheCote); + out.println(rslt); + out.println(""); + + + } + + + String rechercheDiscipline = request.getParameter("sdiscipline"); + if ((rechercheDiscipline ) != null) + { + String dis=" "; + String rslt=""; + rslt=livre1.RechercheParDiscipline(rechercheDiscipline); + out.println(rslt); + dis= livre1.affichDiscipline(rechercheDiscipline, dis); + + out.println(""); + } + + //ouvrage.RechercheParDiscipline(rechercheDiscipline); + + String rechercheSousDiscipline = request.getParameter("ssousDiscipline"); + if ((rechercheSousDiscipline) != null) + { + //out.println( rechercheSousDiscipline ); + String ssdis=" "; + String rslt=""; + rslt=livre2.RechercheParSsDiscipline(rechercheSousDiscipline); + out.println(rslt); + ssdis= livre2.affichSsDiscipline(rechercheSousDiscipline, ssdis); + out.println(""); + //out.println(ssdis); + } + + //ouvrage.RechercheParSsDiscipline(rechercheSousDiscipline); + + } + + + @Override + public String getServletInfo() { + return "Short description"; + }// + +} diff --git a/PlanInteractif_src/src/java/bdd/Rservlet.java b/PlanInteractif_src/src/java/bdd/Rservlet.java new file mode 100644 index 0000000..0e97104 --- /dev/null +++ b/PlanInteractif_src/src/java/bdd/Rservlet.java @@ -0,0 +1,74 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package bdd; + +import java.io.IOException; +import java.io.PrintWriter; +import javax.servlet.ServletException; +import javax.servlet.annotation.WebServlet; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.*; +import javax.servlet.http.*; +import java.io.*; +/** + * + * @author MACYLIA + */ +@WebServlet(name = "Rservlet", urlPatterns = {"/Rservlet"}) +public class Rservlet extends HttpServlet { + + protected void processRequest(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + + } + + + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + processRequest(request, response); + } + + + @Override + protected void doPost(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + response.setContentType("text/html;charset=UTF-8"); + + PrintWriter out = response.getWriter(); + /* TODO output your page here. You may use following sample code. */ + out.println( "" ); + out.println( "

Hello depuis une servlet

" ); + String recherche = request.getParameter("choixRecherche"); + out.println( recherche ); + + if("cote".equals(recherche)){ + RequestDispatcher rd = request. getRequestDispatcher ("Rcote.jsp"); + rd.forward(request, response); +} + if("dicsipline".equals(recherche)){ + RequestDispatcher rd = request. getRequestDispatcher ("Rdiscipline.jsp"); + rd.forward(request, response); +} + if("sous_dicsipline".equals(recherche)){ + RequestDispatcher rd = request. getRequestDispatcher ("Rsous_discipline.jsp"); + rd.forward(request, response); +} + + out.println( "" ); + + + } + + + @Override + public String getServletInfo() { + return "Short description"; + }// + +} diff --git a/PlanInteractif_src/src/java/bdd/Utilitaire.java b/PlanInteractif_src/src/java/bdd/Utilitaire.java new file mode 100644 index 0000000..17f684e --- /dev/null +++ b/PlanInteractif_src/src/java/bdd/Utilitaire.java @@ -0,0 +1,76 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package bdd; + import java.sql.*; +/** + * + * @author MACYLIA + */ +public class Utilitaire { + + private static ResultSet rs; + private static Statement st ; + private static Connection conn; + + public Utilitaire(){} + static{ + + try{ + + Class.forName("oracle.jdbc.driver.OracleDriver"); + } + catch( Exception ex ) { +System.err.println( "Erreur lors du chargement du driver" ); +System.exit(1); +} +try { +/** Connection à la base - Étape 2 */ +String url ="jdbc:oracle:thin:@//localhost:1521/xe"; + conn=DriverManager.getConnection(url,"SYSTEM", "SYS"); + + st = conn.createStatement(); + rs = st.executeQuery( "SELECT * FROM contenu_bu" ); + + + } + + catch(Exception e){ + + e.printStackTrace(); + + } + + } + + public static Connection getConnection(){ + + return conn; + + } + public static ResultSet getRs(){ + + return rs; + + } + + + public static void CloseConnection() throws SQLException{ + + conn.close(); + + } + public static void CloseResultSet () throws SQLException{ + + rs.close(); + + } + + public static void CloseStatement() throws SQLException{ + + st.close(); + + } +} diff --git a/PlanInteractif_src/test/PlanInt/OuvrageTest.java b/PlanInteractif_src/test/PlanInt/OuvrageTest.java new file mode 100644 index 0000000..629b958 --- /dev/null +++ b/PlanInteractif_src/test/PlanInt/OuvrageTest.java @@ -0,0 +1,125 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package PlanInt; + +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import static org.junit.Assert.*; + +/** + * + * @author ibs + */ +public class OuvrageTest { + + public OuvrageTest() { + } + + @BeforeClass + public static void setUpClass() { + } + + @AfterClass + public static void tearDownClass() { + } + + @Before + public void setUp() { + } + + @After + public void tearDown() { + } + + /** + * Test of rechercheparcote method, of class Ouvrage. + */ + @Test + public void testRechercheparcote() { + System.out.println("rechercheparcote"); + String coteSaisie = ""; + Ouvrage instance = new Ouvrage(); + instance.rechercheparcote(coteSaisie); + // TODO review the generated test code and remove the default call to fail. + //fail("The test case is a prototype."); + } + + /** + * Test of RechercheParDiscipline method, of class Ouvrage. + */ + @Test + public void testRechercheParDiscipline() { + System.out.println("RechercheParDiscipline"); + String disc = ""; + Ouvrage instance = new Ouvrage(); + instance.RechercheParDiscipline(disc); + // TODO review the generated test code and remove the default call to fail. + // fail("The test case is a prototype."); + } + + /** + * Test of RechercheParSsDiscipline method, of class Ouvrage. + */ + @Test + public void testRechercheParSsDiscipline() { + System.out.println("RechercheParSsDiscipline"); + String ssDisc = ""; + Ouvrage instance = new Ouvrage(); + instance.RechercheParSsDiscipline(ssDisc); + // TODO review the generated test code and remove the default call to fail. + // fail("The test case is a prototype."); + } + + /** + * Test of affichEtagere method, of class Ouvrage. + */ + @Test + public void testAffichEtagere() { + System.out.println("affichEtagere"); + String coteSaisie = "111"; + String urlLue = ""; + Ouvrage instance = new Ouvrage(); + String expResult = "planEtageres38-39.png"; + String result = instance.affichEtagere(coteSaisie, urlLue); + assertEquals(expResult, result); + } + + /** + * Test of affichDiscipline method, of class Ouvrage. + */ + @Test + public void testAffichDiscipline() { + System.out.println("affichDiscipline"); + String discSaisie = "Philosophie"; + String urlLue = ""; + Ouvrage instance = new Ouvrage(); + String expResult = "salles_disciplines_philo.png"; + String result = instance.affichDiscipline(discSaisie, urlLue); + assertEquals(expResult, result); + // TODO review the generated test code and remove the default call to fail. + + } + + /** + * Test of affichSsDiscipline method, of class Ouvrage. + */ + @Test + public void testAffichSsDiscipline() { + System.out.println("affichSsDiscipline"); + String ssdiscSaisie = "Géographie universelle "; + String urlLue = ""; + Ouvrage instance = new Ouvrage(); + String expResult = "disciplines_ssdisciplines_cotes_geouniv.png"; + String result = instance.affichSsDiscipline(ssdiscSaisie, urlLue); + assertEquals(expResult, result); + // TODO review the generated test code and remove the default call to fail. + //fail("The test case is a prototype."); + } + +} diff --git a/PlanInteractif_src/web/Acceuil.jsp b/PlanInteractif_src/web/Acceuil.jsp new file mode 100644 index 0000000..b2d9cc7 --- /dev/null +++ b/PlanInteractif_src/web/Acceuil.jsp @@ -0,0 +1,40 @@ + + + + + Accueil Bibliothèque + + + + + + + + + +
Modifer les données
+

Bienvenu au plan Interactif

+ +
+

Choisissez la methode de recherche :

+
+

+ + + + + + + +
Par Cote :
Par Dicsipline :
Par Sous_Discipline :
+ +

+
+ + + + diff --git a/PlanInteractif_src/web/FichierExcel.jsp b/PlanInteractif_src/web/FichierExcel.jsp new file mode 100644 index 0000000..7bb02f8 --- /dev/null +++ b/PlanInteractif_src/web/FichierExcel.jsp @@ -0,0 +1,31 @@ +<%-- + Document : FichierExcel + Created on : 21 févr. 2016, 18:26:47 + Author : MACYLIA +--%> + +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + + JSP Page + + + <%-- + Bonjour monsieur <%= user.getFirstName() %> <%= user.getLastName() %> --%> + + +
+
+

Choisissez le fichier à télécharger :

+ + + + + +

+
+ + diff --git a/PlanInteractif_src/web/PlanDiscipline.jsp b/PlanInteractif_src/web/PlanDiscipline.jsp new file mode 100644 index 0000000..246572a --- /dev/null +++ b/PlanInteractif_src/web/PlanDiscipline.jsp @@ -0,0 +1,17 @@ +<%-- + Document : PlanDiscipline + Created on : 24 févr. 2016, 17:47:53 + Author : ibs +--%> + +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + JSP Page + + +

Hello World!

+ + diff --git a/PlanInteractif_src/web/Rcote.jsp b/PlanInteractif_src/web/Rcote.jsp new file mode 100644 index 0000000..9bb1bd0 --- /dev/null +++ b/PlanInteractif_src/web/Rcote.jsp @@ -0,0 +1,49 @@ +<%-- + Document : Rdiscipline + Created on : 21 févr. 2016, 13:39:07 + Author : MACYLIA +--%> + +<%@page import="java.sql.ResultSet"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + + JSP Page + + + + +
+

Selectionnez la cote de l'ouvrage désiré :

+ +
+
+ + + +
+ + + +
+
+
+ + diff --git a/PlanInteractif_src/web/Rdiscipline.jsp b/PlanInteractif_src/web/Rdiscipline.jsp new file mode 100644 index 0000000..e5c5de1 --- /dev/null +++ b/PlanInteractif_src/web/Rdiscipline.jsp @@ -0,0 +1,49 @@ +<%-- + Document : Rdiscipline + Created on : 21 févr. 2016, 13:39:07 + Author : MACYLIA +--%> + +<%@page import="java.sql.ResultSet"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + + JSP Page + + + + +
+

Selectionnez la discipline de l'ouvrage désiré :

+ +
+
+ + + +
+ + + +
+
+
+ + diff --git a/PlanInteractif_src/web/Recherche1.jsp b/PlanInteractif_src/web/Recherche1.jsp new file mode 100644 index 0000000..31ed7e0 --- /dev/null +++ b/PlanInteractif_src/web/Recherche1.jsp @@ -0,0 +1,42 @@ +<%-- + Document : Recherche1 + Created on : 4 févr. 2016, 12:08:33 + Author : ibs +--%> +<%-- +<%@page import="PlanInt.Ouvrage"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + JSP Page + + +

Bienvenue sur Plan interactif BU

+

Université Paris Ouest Nanterre La Défense

+

+ <% + + Ouvrage livre= new Ouvrage(); + Ouvrage livre1= new Ouvrage(); + Ouvrage livre2= new Ouvrage(); + + + String u=" "; + u= livre.affichEtagere("111", u); + +String d=" "; +d= livre1.affichDiscipline("Philosophie", d); + +String ssdis=" "; +ssdis= livre2.affichSsDiscipline("Géographie universelle ", ssdis); +%> +
+ cccc2 + cccc2 + cccc2 +

+ + +--%> \ No newline at end of file diff --git a/PlanInteractif_src/web/Rsous_discipline.jsp b/PlanInteractif_src/web/Rsous_discipline.jsp new file mode 100644 index 0000000..84687fa --- /dev/null +++ b/PlanInteractif_src/web/Rsous_discipline.jsp @@ -0,0 +1,49 @@ +<%-- + Document : Rdiscipline + Created on : 21 févr. 2016, 13:39:07 + Author : MACYLIA +--%> + +<%@page import="java.sql.ResultSet"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + + JSP Page + + + + +
+

Selectionnez la sous-discipline de l'ouvrage désiré :

+ +
+
+ + + +
+ + + +
+
+
+ + diff --git a/PlanInteractif_src/web/Thumbs.db b/PlanInteractif_src/web/Thumbs.db new file mode 100644 index 0000000..31de9f4 Binary files /dev/null and b/PlanInteractif_src/web/Thumbs.db differ diff --git a/PlanInteractif_src/web/WEB-INF/Thumbs.db b/PlanInteractif_src/web/WEB-INF/Thumbs.db new file mode 100644 index 0000000..e45ab8f Binary files /dev/null and b/PlanInteractif_src/web/WEB-INF/Thumbs.db differ diff --git a/PlanInteractif_src/web/WEB-INF/disciplines_ssdisciplines_cotes_geoUniv.png b/PlanInteractif_src/web/WEB-INF/disciplines_ssdisciplines_cotes_geoUniv.png new file mode 100644 index 0000000..cfc67c8 Binary files /dev/null and b/PlanInteractif_src/web/WEB-INF/disciplines_ssdisciplines_cotes_geoUniv.png differ diff --git a/PlanInteractif_src/web/WEB-INF/mont.jpg b/PlanInteractif_src/web/WEB-INF/mont.jpg new file mode 100644 index 0000000..5d254bd Binary files /dev/null and b/PlanInteractif_src/web/WEB-INF/mont.jpg differ diff --git a/PlanInteractif_src/web/WEB-INF/plan.png b/PlanInteractif_src/web/WEB-INF/plan.png new file mode 100644 index 0000000..b0df33d Binary files /dev/null and b/PlanInteractif_src/web/WEB-INF/plan.png differ diff --git a/PlanInteractif_src/web/WEB-INF/planEtageres38-39.png b/PlanInteractif_src/web/WEB-INF/planEtageres38-39.png new file mode 100644 index 0000000..b0df33d Binary files /dev/null and b/PlanInteractif_src/web/WEB-INF/planEtageres38-39.png differ diff --git a/PlanInteractif_src/web/WEB-INF/salles_disciplines_philo.png b/PlanInteractif_src/web/WEB-INF/salles_disciplines_philo.png new file mode 100644 index 0000000..e8a9145 Binary files /dev/null and b/PlanInteractif_src/web/WEB-INF/salles_disciplines_philo.png differ diff --git a/PlanInteractif_src/web/ciel.jpg b/PlanInteractif_src/web/ciel.jpg new file mode 100644 index 0000000..f85c6ea Binary files /dev/null and b/PlanInteractif_src/web/ciel.jpg differ diff --git a/PlanInteractif_src/web/disciplines_ssdisciplines_cotes_geouniv.png b/PlanInteractif_src/web/disciplines_ssdisciplines_cotes_geouniv.png new file mode 100644 index 0000000..cfc67c8 Binary files /dev/null and b/PlanInteractif_src/web/disciplines_ssdisciplines_cotes_geouniv.png differ diff --git a/PlanInteractif_src/web/image.jpg b/PlanInteractif_src/web/image.jpg new file mode 100644 index 0000000..d8337f8 Binary files /dev/null and b/PlanInteractif_src/web/image.jpg differ diff --git a/PlanInteractif_src/web/image2.jpg b/PlanInteractif_src/web/image2.jpg new file mode 100644 index 0000000..0b6e873 Binary files /dev/null and b/PlanInteractif_src/web/image2.jpg differ diff --git a/PlanInteractif_src/web/image3.jpg b/PlanInteractif_src/web/image3.jpg new file mode 100644 index 0000000..5acff56 Binary files /dev/null and b/PlanInteractif_src/web/image3.jpg differ diff --git a/PlanInteractif_src/web/image4.jpg b/PlanInteractif_src/web/image4.jpg new file mode 100644 index 0000000..cfafd59 Binary files /dev/null and b/PlanInteractif_src/web/image4.jpg differ diff --git a/PlanInteractif_src/web/logo.jpg b/PlanInteractif_src/web/logo.jpg new file mode 100644 index 0000000..eb1ddf1 Binary files /dev/null and b/PlanInteractif_src/web/logo.jpg differ diff --git a/PlanInteractif_src/web/mont.jpg b/PlanInteractif_src/web/mont.jpg new file mode 100644 index 0000000..5d254bd Binary files /dev/null and b/PlanInteractif_src/web/mont.jpg differ diff --git a/PlanInteractif_src/web/plan.png b/PlanInteractif_src/web/plan.png new file mode 100644 index 0000000..b0df33d Binary files /dev/null and b/PlanInteractif_src/web/plan.png differ diff --git a/PlanInteractif_src/web/planEtageres38-39.png b/PlanInteractif_src/web/planEtageres38-39.png new file mode 100644 index 0000000..b0df33d Binary files /dev/null and b/PlanInteractif_src/web/planEtageres38-39.png differ diff --git a/PlanInteractif_src/web/salles_disciplines_philo.png b/PlanInteractif_src/web/salles_disciplines_philo.png new file mode 100644 index 0000000..d5d1a63 Binary files /dev/null and b/PlanInteractif_src/web/salles_disciplines_philo.png differ diff --git a/PlanInteractif_src/web/style.css b/PlanInteractif_src/web/style.css new file mode 100644 index 0000000..fa05408 --- /dev/null +++ b/PlanInteractif_src/web/style.css @@ -0,0 +1,54 @@ +body { +color:blink; +background-color:white; +background-image:url(image3.jpg); +background-attachment:fixed; +margin : auto ; + +} + + +.bordure{ + border:5px solid #FFF; + border-radius: 2px ; + width:50%; + height:50%; + font-family: Tahoma; + font-style: italic; + padding:8px; + margin-left:325px; +} +.tableau{ + margin-left:325px; + padding:8px; +} + +.bouton:hover{ + background-color: lightgrey; + color: white; + transition: all 0.5s ease; +} + +.bouton:focus{ + background-color: grey; + +} +.ruban{ + background-image:url(logo.jpg); + width: 100%; + height: 5em; +} + + +.bouton1:hover{ + background-color: lightgrey; + color: white; + transition: all 0.5s ease; + +} +.bouton1{ + background-color: #FFEBCD; + text-decoration: none; + color: darkslategray; + +} \ No newline at end of file diff --git a/README.md b/README.md index e491a4b..759876e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ +[![Build Status](https://travis-ci.org/Miage-Paris-Ouest/m1c20152016-planinterbu.svg?branch=master)](https://travis-ci.org/Miage-Paris-Ouest/m1c20152016-planinterbu) +

Document de conception du projet II

Plan interactif de la BU (application WEB)

diff --git a/build.gradle b/build.gradle index bbfeb03..4e0b733 100644 --- a/build.gradle +++ b/build.gradle @@ -1 +1,10 @@ apply plugin: 'java' +sourceCompatibility = 1.5 + +repositories { + mavenCentral() +} + +dependencies { + testCompile group: 'junit', name: 'junit', version: '4.11' +} diff --git a/docs/BU-BDIC_2016-02-16_autocad_pour plan interactif.dwg b/docs/BU-BDIC_2016-02-16_autocad_pour plan interactif.dwg new file mode 100644 index 0000000..fa38d01 Binary files /dev/null and b/docs/BU-BDIC_2016-02-16_autocad_pour plan interactif.dwg differ diff --git a/docs/Disciplines projet Plan interactif provisoire - v0.xlsx b/docs/Disciplines projet Plan interactif provisoire - v0.xlsx new file mode 100644 index 0000000..81fd447 Binary files /dev/null and b/docs/Disciplines projet Plan interactif provisoire - v0.xlsx differ diff --git a/docs/Disciplines salle SHS complet pour test.xlsx b/docs/Disciplines salle SHS complet pour test.xlsx new file mode 100644 index 0000000..bd819aa Binary files /dev/null and b/docs/Disciplines salle SHS complet pour test.xlsx differ diff --git a/docs/Note explicative.docx b/docs/Note explicative.docx new file mode 100644 index 0000000..841f619 Binary files /dev/null and b/docs/Note explicative.docx differ diff --git a/docs/Plan SH 2016.jpg b/docs/Plan SH 2016.jpg new file mode 100644 index 0000000..c3e2373 Binary files /dev/null and b/docs/Plan SH 2016.jpg differ diff --git "a/docs/plan SH_avec_numeros etag\303\250res.pdf" "b/docs/plan SH_avec_numeros etag\303\250res.pdf" new file mode 100644 index 0000000..58005a0 Binary files /dev/null and "b/docs/plan SH_avec_numeros etag\303\250res.pdf" differ diff --git "a/docs/plan affiche 2016 simplifi\303\251.indd" "b/docs/plan affiche 2016 simplifi\303\251.indd" new file mode 100644 index 0000000..76e5e7d Binary files /dev/null and "b/docs/plan affiche 2016 simplifi\303\251.indd" differ diff --git "a/docs/plan affiche 2016 simplifi\303\251.pdf" "b/docs/plan affiche 2016 simplifi\303\251.pdf" new file mode 100644 index 0000000..2bcc979 Binary files /dev/null and "b/docs/plan affiche 2016 simplifi\303\251.pdf" differ diff --git a/docs/plan affiche 2016.indd b/docs/plan affiche 2016.indd new file mode 100644 index 0000000..3403c64 Binary files /dev/null and b/docs/plan affiche 2016.indd differ diff --git a/docs/plan affiche 2016_services_salles.pdf b/docs/plan affiche 2016_services_salles.pdf new file mode 100644 index 0000000..7cd86cb Binary files /dev/null and b/docs/plan affiche 2016_services_salles.pdf differ diff --git a/docs/plan d'orientation SH 2016.indd b/docs/plan d'orientation SH 2016.indd new file mode 100644 index 0000000..a66d97b Binary files /dev/null and b/docs/plan d'orientation SH 2016.indd differ diff --git a/docs/plan d'orientation SH 2016.pdf b/docs/plan d'orientation SH 2016.pdf new file mode 100644 index 0000000..29fd205 Binary files /dev/null and b/docs/plan d'orientation SH 2016.pdf differ diff --git a/projet/DESCRIPTION_BDD.md b/projet/DESCRIPTION_BDD.md new file mode 100644 index 0000000..bf2717c --- /dev/null +++ b/projet/DESCRIPTION_BDD.md @@ -0,0 +1,33 @@ +

La base de données

+ +

Les Tables

+

+ Après une bonne lecture du cahier des charges fonctionnel et suite à une bonne analyse, + nous nous sommes décidés d'attribuer 5 tables à notre base de données. +

    +
  • Salle :
  • qui contient les noms de salles +
  • Etagere :
  • qui contient les numéros des étagères +
  • Discipline :
  • permet de stocker les noms des différentes disciplines +
  • SousDiscipline :
  • contient les sous-disciplines +
  • Cote :
  • Il faut savoir que chaque cote a une racine. Raison pour laquelle nous avons créé un attribut "racine" dans cette table, qui définit quelle est la racine de la cote concernée +
+

+
Remarque
+ Certaines tables sont mises à jour, pour contenir l'url de l'image où se trouve la discipline, la sous discipline ou la cote. les tables concernées par les modifications (ajout d'une nouvelle colonne) sont : Cote, Discipline, SousDiscipline. + + +

Conception

+ + + + +

Dépendances

+

+

    +
  • Une salle contient au moins une étagère, mais aussi peut en contenir plusieurs. Tandis q'une étagère définie ne peut être que dans une seule salle
  • +
  • Une salle a plusieurs disciplines dans son enceinte, mais une disciplline ne peut se trouver que dans une salle
  • +
  • La discipline quant à elle, a plusieurs sous-disciplines mais une sous-discipline reste spécifique qu'à une seule discipline
  • +
  • La discipline toujours, peut correspondre à plusieurs racines de cote mais une racine de cote ne peut concernée qu'une discipline bien déterminée.
  • +
+

+ diff --git a/projet/DESCRIPTION_FICHIER.md b/projet/DESCRIPTION_FICHIER.md new file mode 100644 index 0000000..2d26b2e --- /dev/null +++ b/projet/DESCRIPTION_FICHIER.md @@ -0,0 +1,28 @@ +

Le fichier des données

+ +

Format du fichier

+Le fichier de données doit avoir l'extension XLS ! +

Nombre de colonnes du fichier

+Le fichier devra comporter 5 colonnes dans cet ordre : +
    +
  • Salle
  • +
  • Etagère
  • +
  • Discipline
  • +
  • Sous Discipline
  • +
  • Racine de cote
  • +
+
+

Format des colonnes

+

+

    +
  1. Salle: Chaine de caractères
  2. +
  3. Etagère: Il faut donner le numéro d'étagère. Il est possible d'en fournir plusieurs mais à condition de les séparer
  4. +
  5. Discipline: Chaine de caractères
  6. +
  7. Sous Discipline: Chaine de caractères
  8. +
  9. Racine de cote:
  10. Ce sont des numéros. Il est possible de spécifier des plages de valeurs mais seuls trois formats sont + acceptés. Par exemple:
    + - 1 sauf 10 à 17
    + - 1 sauf 11,13,15
    + - 1 à 20
    Donc les mots clef qui sont acceptés sont "sauf" et "à" +
+

diff --git a/projet/DocumentationApplication.md b/projet/DocumentationApplication.md new file mode 100644 index 0000000..8eef5dd --- /dev/null +++ b/projet/DocumentationApplication.md @@ -0,0 +1,55 @@ +

Documentation application

+

1. Traiter les colonnes de la base de donnée (partie 1 du projet)

+

+Une première partie du systèmes permet de traiter les informations contenues dans la base de données, et qui sont formulées (presque) en langage naturel ( utilisation de virgules, de mots clés "sauf", "à" pour définir des intervals...). Une bibliothèque spéciale est incluse "poi" pour récupérer les données du fichier excel, les analyser, traiter, puis les insérer dans la base de donnée vers la fin. +

+

2. Lancer une recherche (partie 2 du projet)

+
+Pour lancer une recherche selon des critères, des requêtes sont mises en place pour extraire les données de la base de donnée traitée dans la partie une. +
Recherche par discipline
+

+Pour rechercher un ouvrage ( document, livre) par discipline, l'utilisateur doit : + +

  • Choisir une recherche par discipline dans le menu principal.
  • +
  • Sélectionner une discipline parmi la liste déroulante.
  • + + +Le plan qui s'affiche, contient les salles, ainsi que la localisation de la discipline sélectionnée parmi les salles. +Un message s'affiche sur la page, et indique toutes les informations relatives à la discipline. +

    + + + + + +
    Recherche par sous discipline
    +

    +Pour rechercher un ouvrage ( document, livre) par sous discipline, l'utilisateur doit : + +

  • Choisir une recherche par sous discipline dans le menu principal.
  • +
  • Sélectionner une sous discipline parmi la liste déroulante.
  • + + +Le plan qui s'affiche, contient les disciplines, ainsi que la localisation de la sous discipline sélectionnée parmi les disciplines. +Un message s'affiche sur la page, et indique toutes les informations relatives à la sous discipline. +

    +

    + + +

    + + +
    Recherche par racine de cote
    +

    +Pour rechercher un ouvrage ( document, livre) par racine de cote, l'utilisateur doit : + +

  • Choisir une recherche par racine de cote dans le menu principal.
  • +
  • Sélectionner une racine de cote parmi la liste déroulante.
  • + + +Le plan qui s'affiche, contient les étagères où peut se trouver la cote sélectionnée. +Un message s'affiche sur la page, et indique les détails de la salle, discipline et sous discipline de la cote sélectionnée +

    + + + diff --git a/projet/ManuelDUtilisation.md b/projet/ManuelDUtilisation.md new file mode 100644 index 0000000..e6a2d2d --- /dev/null +++ b/projet/ManuelDUtilisation.md @@ -0,0 +1,50 @@ +

    Manuel d'utilisation

    +

    1. Lancer une recherche

    +
    +
    Recherche par discipline
    +

    +Pour rechercher un ouvrage ( document, livre) par discipline, l'utilisateur doit : + +

  • Choisir une recherche par discipline dans le menu principal.
  • +
  • Sélectionner une discipline parmi la liste déroulante.
  • + + +Le plan qui s'affiche, contient les salles, ainsi que la localisation de la discipline sélectionnée parmi les salles. +Un message s'affiche sur la page, et indique toutes les informations relatives à la discipline. +

    + + + + + +
    Recherche par sous discipline
    +

    +Pour rechercher un ouvrage ( document, livre) par sous discipline, l'utilisateur doit : + +

  • Choisir une recherche par sous discipline dans le menu principal.
  • +
  • Sélectionner une sous discipline parmi la liste déroulante.
  • + + +Le plan qui s'affiche, contient les disciplines, ainsi que la localisation de la sous discipline sélectionnée parmi les disciplines. +Un message s'affiche sur la page, et indique toutes les informations relatives à la sous discipline. +

    +

    + + +

    + + +
    Recherche par racine de cote
    +

    +Pour rechercher un ouvrage ( document, livre) par racine de cote, l'utilisateur doit : + +

  • Choisir une recherche par racine de cote dans le menu principal.
  • +
  • Sélectionner une racine de cote parmi la liste déroulante.
  • + + +Le plan qui s'affiche, contient les étagères où peut se trouver la cote sélectionnée. +Un message s'affiche sur la page, et indique les détails de la salle, discipline et sous discipline de la cote sélectionnée +

    + + + diff --git a/projet/disciplines_ssdisciplines_cotes.png b/projet/disciplines_ssdisciplines_cotes.png new file mode 100644 index 0000000..9657198 Binary files /dev/null and b/projet/disciplines_ssdisciplines_cotes.png differ diff --git a/projet/mcd.jpg b/projet/mcd.jpg new file mode 100644 index 0000000..5a9012a Binary files /dev/null and b/projet/mcd.jpg differ diff --git a/projet/salles_disciplines.png b/projet/salles_disciplines.png new file mode 100644 index 0000000..5a94f8d Binary files /dev/null and b/projet/salles_disciplines.png differ diff --git a/src/Document.java b/src/Document.java deleted file mode 100644 index 77653cc..0000000 --- a/src/Document.java +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Created by ibs on 28/01/2016. - */ -public class Document { - - private int cote; - - public int getCote() { - return cote; - } - - public void setCote(int cote) { - this.cote = cote; - } - - - public Document(int cote) { - this.cote = cote; - } -} diff --git a/traitementFichierExcel/build.xml b/traitementFichierExcel/build.xml new file mode 100644 index 0000000..ee4db82 --- /dev/null +++ b/traitementFichierExcel/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project testMotClefs. + + + diff --git a/traitementFichierExcel/build/classes/.netbeans_automatic_build b/traitementFichierExcel/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/traitementFichierExcel/build/classes/.netbeans_update_resources b/traitementFichierExcel/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/traitementFichierExcel/build/classes/testmotclefs/TraitementFichierExcel.class b/traitementFichierExcel/build/classes/testmotclefs/TraitementFichierExcel.class new file mode 100644 index 0000000..eedf317 Binary files /dev/null and b/traitementFichierExcel/build/classes/testmotclefs/TraitementFichierExcel.class differ diff --git a/traitementFichierExcel/fichierDeBaseBis.xls b/traitementFichierExcel/fichierDeBaseBis.xls new file mode 100644 index 0000000..072ef1d Binary files /dev/null and b/traitementFichierExcel/fichierDeBaseBis.xls differ diff --git a/traitementFichierExcel/manifest.mf b/traitementFichierExcel/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/traitementFichierExcel/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/traitementFichierExcel/nbproject/build-impl.xml b/traitementFichierExcel/nbproject/build-impl.xml new file mode 100644 index 0000000..da06cf5 --- /dev/null +++ b/traitementFichierExcel/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/traitementFichierExcel/nbproject/genfiles.properties b/traitementFichierExcel/nbproject/genfiles.properties new file mode 100644 index 0000000..ddb6803 --- /dev/null +++ b/traitementFichierExcel/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=fd5d1b39 +build.xml.script.CRC32=d49e2c26 +build.xml.stylesheet.CRC32=8064a381@1.79.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=fd5d1b39 +nbproject/build-impl.xml.script.CRC32=476fccfe +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/traitementFichierExcel/nbproject/private/private.properties b/traitementFichierExcel/nbproject/private/private.properties new file mode 100644 index 0000000..741628f --- /dev/null +++ b/traitementFichierExcel/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\paabdou\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/traitementFichierExcel/nbproject/private/private.xml b/traitementFichierExcel/nbproject/private/private.xml new file mode 100644 index 0000000..0390976 --- /dev/null +++ b/traitementFichierExcel/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/paabdou/Documents/NetBeansProjects/testMotClefs/src/testmotclefs/TraitementFichierExcel.java + + + diff --git a/traitementFichierExcel/nbproject/project.properties b/traitementFichierExcel/nbproject/project.properties new file mode 100644 index 0000000..01cbf93 --- /dev/null +++ b/traitementFichierExcel/nbproject/project.properties @@ -0,0 +1,80 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/testMotClefs.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +file.reference.ojdbc6.jar=C:\\Users\\paabdou\\Downloads\\ojdbc6.jar +file.reference.poi-3.5-FINAL.jar=C:\\Users\\paabdou\\Downloads\\poi-3.5-FINAL.jar +file.reference.poi-ooxml-3.13-20150929.jar=C:\\Users\\paabdou\\Downloads\\poi-bin-3.13-20150929\\poi-3.13\\poi-ooxml-3.13-20150929.jar +includes=** +jar.compress=false +javac.classpath=\ + ${file.reference.poi-ooxml-3.13-20150929.jar}:\ + ${file.reference.poi-3.5-FINAL.jar}:\ + ${file.reference.ojdbc6.jar} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=testmotclefs.TraitementFichierExcel +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/traitementFichierExcel/nbproject/project.xml b/traitementFichierExcel/nbproject/project.xml new file mode 100644 index 0000000..e00420c --- /dev/null +++ b/traitementFichierExcel/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + testMotClefs + + + + + + + + + diff --git a/traitementFichierExcel/src/testmotclefs/TraitementFichierExcel.java b/traitementFichierExcel/src/testmotclefs/TraitementFichierExcel.java new file mode 100644 index 0000000..28c2e67 --- /dev/null +++ b/traitementFichierExcel/src/testmotclefs/TraitementFichierExcel.java @@ -0,0 +1,338 @@ +package testmotclefs; + +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; + +import org.apache.poi.hssf.usermodel.HSSFCell; +import org.apache.poi.hssf.usermodel.HSSFRow; +import org.apache.poi.hssf.usermodel.HSSFSheet; +import org.apache.poi.hssf.usermodel.HSSFWorkbook; +import org.apache.poi.poifs.filesystem.POIFSFileSystem; +import org.apache.poi.ss.usermodel.Cell; +import org.apache.poi.ss.usermodel.Row; +import org.apache.poi.ss.usermodel.Sheet; +import org.apache.poi.ss.usermodel.Workbook; +import org.apache.poi.ss.usermodel.WorkbookFactory; + +public class TraitementFichierExcel { + + public static void main( + String[] args) { + + /* ------------------- CHARGEMENT DU DRIVER POUR LA BASE DE DONNEES -------------------- */ + /** Chargement du driver JDBC - Étape 1 */ + try { + Class.forName("oracle.jdbc.driver.OracleDriver"); + } + catch( Exception ex ) { + System.err.println( "Erreur lors du chargement du driver" ); + System.exit(1); + + } + + /* ----------------------------------------------------------------------- */ + + try { + /* *********************** LIBRAIRIE POI ************************ */ + POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream("fichierDeBaseBis.xls")); + Workbook wb = WorkbookFactory.create(fs); + Sheet sheet = wb.getSheetAt(0); + Row row = null; + Row ligne = null; + Cell salle = null; + Cell etagere = null ; + Cell discipline = null ; + Cell sDiscipline = null ; + Cell cote = null ; + + int totalLigne = 0; + int totalCol = 0; + char virgule = ',' ; + int debut = 1 ; + + int i =0 ; + int nbLigne = 0 ; + + nbLigne= sheet.getPhysicalNumberOfRows() ; + //System.out.println("NB LIGNES : "+ nbLigne) ; + + String aux = " " ; + int commencement = 0, debutPlage=0, finPlage=0 ; + + /* ------------ CONNEXION A LA BASE DE DONNEES --------------- */ + String url="jdbc:oracle:thin:@//localhost:1521/xe"; + + try { + // Etape 2 : connexion a la base de donnees + Connection cx = DriverManager.getConnection (url, "SYSTEM", "paabdou9"); + System.out.println("Connexion a la base de donnees reussie \n"); + + // etape 3: creation d'une zone de description de requetes + Statement req = cx.createStatement(); + //int insert = req.executeUpdate("insert into salle values("+monId+",'"+maSalle+"')") ; + int indice = 1 ; + for (i=1;i2){ + for(int j=0;j<=etagere.getStringCellValue().length()-2;j+=3){ + + int etage = Integer.parseInt(etagere.getStringCellValue().substring(j,j+2)); + + // ON VERIFIE SI LA DERNIERE COLONNE CONTIENT LES MOTS CLEFS SAUF ET à + if(cote.getStringCellValue().contains("sauf") && cote.getStringCellValue().contains("à")){ + + // ********** RECUPERATION DU COMMENCEMENT ******** + aux=Character.toString(cote.getStringCellValue().charAt(0)); + int pos = 1 ; + while (cote.getStringCellValue().charAt(pos)!=' '){ + aux = aux+cote.getStringCellValue().charAt(pos); + pos++ ; + } + commencement = Integer.parseInt((aux)) ; // ON A LA VALEUR DU COMMENCEMENT DANS LA VARIABLE COMMENCEMENT + + + // ********** RECUPERATION DU DEBUT DE PLAGE ******** + pos=cote.getStringCellValue().indexOf('f'); + pos+=2 ; // Pour se positionner sur la plage de nombre + aux=Character.toString(cote.getStringCellValue().charAt(pos)); + pos++; + while (cote.getStringCellValue().charAt(pos)!=' '){ + aux = aux+cote.getStringCellValue().charAt(pos); + pos++ ; // Pour se placer sur le deuxieme chiffre du debut de la plage + } + debutPlage = Integer.parseInt(aux) ; + + + // ********** RECUPERATION DE LA FIN DE PLAGE ******** + pos=cote.getStringCellValue().indexOf('à'); + pos+=2 ; // Pour se positionner sur la plage de nombre + aux="" ; + while (pos=10 && commencement<=99){ + commencement=Integer.parseInt(Character.toString(cote.getStringCellValue().charAt(0))); // On redonne commencement sa valeur initiale + } + if(commencement>=100 && commencement<=999){ + commencement=Integer.parseInt(Character.toString(cote.getStringCellValue().charAt(0)))*10; // On redonne commencement sa valeur initiale + } + + } + } + else{ + for(int m = auxCommencement;m