diff --git a/.gem/ruby/1.9.1/cache/bundler-1.8.0.gem b/.gem/ruby/1.9.1/cache/bundler-1.8.0.gem old mode 100644 new mode 100755 diff --git a/.gem/ruby/1.9.1/cache/rmagick-2.13.4.gem b/.gem/ruby/1.9.1/cache/rmagick-2.13.4.gem old mode 100644 new mode 100755 diff --git a/.gem/specs/rubygems.org%80/latest_specs.4.8 b/.gem/specs/rubygems.org%80/latest_specs.4.8 old mode 100644 new mode 100755 diff --git a/.gem/specs/rubygems.org%80/quick/Marshal.4.8/bundler-1.8.0.gemspec b/.gem/specs/rubygems.org%80/quick/Marshal.4.8/bundler-1.8.0.gemspec old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.mysql_history b/.mysql_history old mode 100644 new mode 100755 diff --git a/SRC/.env.example b/SRC/.env.example old mode 100644 new mode 100755 diff --git a/SRC/app/Http/Middleware/RedirectIfNotAdmin.php b/SRC/app/Http/Middleware/RedirectIfNotAdmin.php old mode 100644 new mode 100755 diff --git a/SRC/app/Http/routes.php b/SRC/app/Http/routes.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Auteur.php b/SRC/app/Models/Auteur.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Datation.php b/SRC/app/Models/Datation.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Description.php b/SRC/app/Models/Description.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Designation.php b/SRC/app/Models/Designation.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Domaine.php b/SRC/app/Models/Domaine.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Jeu.php b/SRC/app/Models/Jeu.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/ListeOeuvre.php b/SRC/app/Models/ListeOeuvre.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Matiere.php b/SRC/app/Models/Matiere.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Oeuvre.php b/SRC/app/Models/Oeuvre.php old mode 100644 new mode 100755 diff --git a/SRC/app/Models/Technique.php b/SRC/app/Models/Technique.php old mode 100644 new mode 100755 diff --git a/SRC/bootstrap/home.css b/SRC/bootstrap/home.css old mode 100644 new mode 100755 diff --git a/SRC/init/table.sql b/SRC/init/table.sql old mode 100644 new mode 100755 diff --git a/SRC/public/css/.DS_Store b/SRC/public/css/.DS_Store old mode 100644 new mode 100755 diff --git a/SRC/public/css/admin.css b/SRC/public/css/admin.css old mode 100644 new mode 100755 diff --git a/SRC/public/css/chosen-sprite.png b/SRC/public/css/chosen-sprite.png old mode 100644 new mode 100755 diff --git a/SRC/public/css/chosen-sprite@2x.png b/SRC/public/css/chosen-sprite@2x.png old mode 100644 new mode 100755 diff --git a/SRC/public/css/chosen.min.css b/SRC/public/css/chosen.min.css old mode 100644 new mode 100755 diff --git a/SRC/public/css/game.css b/SRC/public/css/game.css old mode 100644 new mode 100755 diff --git a/SRC/public/css/home.css b/SRC/public/css/home.css old mode 100644 new mode 100755 diff --git a/SRC/public/css/navbar.css b/SRC/public/css/navbar.css old mode 100644 new mode 100755 diff --git a/SRC/public/css/referent.css b/SRC/public/css/referent.css old mode 100644 new mode 100755 diff --git a/SRC/public/js/ListeOeuvre.js b/SRC/public/js/ListeOeuvre.js old mode 100644 new mode 100755 index 6f8006b..e402692 --- a/SRC/public/js/ListeOeuvre.js +++ b/SRC/public/js/ListeOeuvre.js @@ -79,20 +79,32 @@ $('#search_button, #previous, #next').click(function(event) { } $('#oeuvreRes').empty(); - dataSend = { - _token : $('#_tokenRes').val(), - auteur: $('#auteur').val(), - designation: $('#designation').val(), - matiere: $('#matiere').val(), - domaine: $('#domaine').val(), - technique: $('#technique').val(), - debut: $('#debut').val(), - fin: $('#fin').val() - }; - $.post(url, - dataSend, - function( data ) { - if (data.length == 0 ) + dataSend = "_token = $('#_tokenRes').val()," + +"auteur = ('#auteur').val()," + +"designation = $('#designation').val()," + +"matiere = $('#matiere').val()," + +"domaine = $('#domaine').val()," + +"technique = $('#technique').val()," + +"debut = $('#debut').val()," + +"fin = $('#fin').val()"; + + var r = new XMLHttpRequest(); + r.open("POST", url, true); + r.onreadystatechange = function () { + if (r.readyState != 4 || r.status != 200) + { + $("#oeuvreRes").append('
' + +'Oouups! Il y a un problème.

' + +'' + +'
' + ); + + return; + } + data = r.responseText; + if (data.length == 0 ) $("#oeuvreRes").append("Aucune Oeuvre Trouvé.."); data.data.forEach( function(el) { $("#oeuvreRes").append('
' @@ -114,18 +126,9 @@ $('#search_button, #previous, #next').click(function(event) { $("#next").attr('href', data.next_page_url); $("#next").parent().removeClass('disabled'); } - - }, "json" ) - - .fail(function() { - $("#oeuvreRes").append('
' - +'Oouups! Il y a un problème.

' - +'' - +'
' - ); - }); + + }; + r.send(dataSend); }); diff --git a/SRC/public/js/chosen.jquery.js b/SRC/public/js/chosen.jquery.js old mode 100644 new mode 100755 diff --git a/SRC/public/pictures/.DS_Store b/SRC/public/pictures/.DS_Store old mode 100644 new mode 100755 diff --git a/SRC/public/pictures/homePic/.DS_Store b/SRC/public/pictures/homePic/.DS_Store old mode 100644 new mode 100755 diff --git a/SRC/public/pictures/homePic/home.png b/SRC/public/pictures/homePic/home.png old mode 100644 new mode 100755 diff --git a/SRC/public/pictures/pic/.DS_Store b/SRC/public/pictures/pic/.DS_Store old mode 100644 new mode 100755 diff --git a/SRC/public/pictures/pic/Game.png b/SRC/public/pictures/pic/Game.png old mode 100644 new mode 100755 diff --git a/SRC/public/pictures/pic/home.png b/SRC/public/pictures/pic/home.png old mode 100644 new mode 100755 diff --git a/SRC/public/pictures/referent/.DS_Store b/SRC/public/pictures/referent/.DS_Store old mode 100644 new mode 100755 diff --git a/SRC/public/pictures/referent/wkszt8.jpg b/SRC/public/pictures/referent/wkszt8.jpg old mode 100644 new mode 100755 diff --git a/SRC/public/pictures/setting_picture/.DS_Store b/SRC/public/pictures/setting_picture/.DS_Store old mode 100644 new mode 100755 diff --git a/SRC/public/pictures/setting_picture/delete_icon.png b/SRC/public/pictures/setting_picture/delete_icon.png old mode 100644 new mode 100755 diff --git a/SRC/public/pictures/setting_picture/fond.jpg b/SRC/public/pictures/setting_picture/fond.jpg old mode 100644 new mode 100755 diff --git a/SRC/resources/views/.DS_Store b/SRC/resources/views/.DS_Store old mode 100644 new mode 100755 diff --git a/SRC/resources/views/one_referent_game.blade.php b/SRC/resources/views/one_referent_game.blade.php old mode 100644 new mode 100755 diff --git a/SRC/resources/views/referent_games.blade.php b/SRC/resources/views/referent_games.blade.php old mode 100644 new mode 100755 diff --git a/UML/diagramClass2.0.png b/UML/diagramClass2.0.png new file mode 100644 index 0000000..80dccc7 Binary files /dev/null and b/UML/diagramClass2.0.png differ