End of the first part of the front end

This commit is contained in:
2023-06-09 14:44:35 +02:00
parent 1890f730e5
commit 1d16176318
23 changed files with 50383 additions and 89 deletions

1
BackEnd/.idea/.name generated Normal file
View File

@@ -0,0 +1 @@
untitled

6
BackEnd/.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

50000
BackEnd/BD_medium.txt Normal file

File diff suppressed because it is too large Load Diff

100
BackEnd/BD_small.txt Normal file
View File

@@ -0,0 +1,100 @@
Allen;Annie Hall;93;Romance
Allen;Midnight in Paris;94;Comedy
Anderson;The Grand Budapest Hotel;100;Comedy
Anderson;There Will Be Blood;158;Drama
Aronofsky;Black Swan;108;Drama
Bigelow;Point Break;120;Action
Boyle;127 Hours;94;Biography
Boyle;Slumdog Millionaire;120;Drama
Boyle;Trainspotting;94;Drama
Brooks;The Producers;88;Comedy
Burton;Edward Scissorhands;105;Fantasy
Cameron;Avatar;162;Fantasy
Chazelle;La La Land;128;Musical
Chazelle;Whiplash;107;Drama
Coen;Fargo;98;Thriller
Coen;Inside Llewyn Davis;105;Drama
Coen;No Country for Old Men;122;Thriller
Coen;The Big Lebowski;117;Comedy
Coogler;Black Panther;135;Superhero
Coogler;Creed;133;Sports
Coppola;Apocalypse Now;153;War
Coppola;The Godfather;175;Crime
Cuaron;Harry Potter and the Prisoner of Azkaban;142;Fantasy
Cuarón;Children of Men;109;Science Fiction
Del Toro;Pan's Labyrinth;118;Fantasy
Del Toro;The Shape of Water;123;Fantasy
Demme;The Silence of the Lambs;118;Thriller
DuVernay;Selma;128;Biography
Eastwood;Unforgiven;131;Western
Farhadi;A Separation;123;Drama
Fincher;Fight Club;139;Drama
Fincher;Mank;131;Drama
Fincher;Seven;127;Thriller
Fincher;The Social Network;120;Drama
Gerwig;Little Women;135;Drama
Haynes;Carol;118;Romance
Howard;Rush;123;Biography
Jackson;King Kong;187;Adventure
Jackson;The Lord of the Rings: The Fellowship of the Ring;178;Fantasy
Jenkins;If Beale Street Could Talk;119;Romance
Jenkins;Moonlight;111;Drama
Johnson;Brick;110;Mystery
Johnson;Knives Out;130;Mystery
Johnson;Star Wars: The Last Jedi;152;Science Fiction
Jonze;Her;126;Romance
Joon-ho;Parasite;132;Thriller
Kaufman;Eternal Sunshine of the Spotless Mind;108;Romance
Koreeda;Shoplifters;121;Drama
Kubrick;2001: A Space Odyssey;149;Science Fiction
Kubrick;Full Metal Jacket;116;War
Kurosawa;Seven Samurai;207;Action
Lanthimos;The Lobster;119;Comedy
Lee;BlacKkKlansman;135;Drama
Lee;Brokeback Mountain;134;Romance
Lee;Do the Right Thing;120;Drama
Lee;Malcolm X;202;Biography
Lee;The Old Guard;125;Action
Leone;The Good, the Bad and the Ugly;178;Western
Lonergan;Manchester by the Sea;137;Drama
Mackenzie;Hell or High Water;102;Crime
McKay;Step Brothers;98;Comedy
McQueen;12 Years a Slave;134;Drama
McQueen;Widows;129;Thriller
McTiernan;Die Hard;131;Action
Mendes;1917;119;War
Mendes;American Beauty;122;Drama
Mendes;Road to Perdition;117;Crime
Mendes;Skyfall;143;Action
Nolan;Dunkirk;106;War
Nolan;Inception;148;Science Fiction
Nolan;The Dark Knight;152;Action
Payne;Nebraska;115;Drama
Payne;Sideways;127;Comedy
Payne;The Descendants;115;Drama
Peckinpah;The Wild Bunch;145;Western
Peele;Get Out;104;Horror
Polanski;Chinatown;131;Mystery
Refn;Drive;100;Crime
Reiner;The Princess Bride;98;Romance
Sciamma;Portrait of a Lady on Fire;119;Romance
Scorsese;Goodfellas;146;Crime
Scorsese;The Irishman;209;Crime
Scott;Blade Runner;117;Science Fiction
Shyamalan;The Sixth Sense;107;Thriller
Sorkin;Molly's Game;140;Drama
Sorkin;The Trial of the Chicago 7;129;Drama
Spielberg;Jurassic Park;127;Action
Spielberg;Schindler's List;195;Biography
Tarantino;Django Unchained;165;Western
Tarantino;Kill Bill: Vol. 1;111;Action
Tarantino;Once Upon a Time in Hollywood;161;Comedy
Tarantino;Pulp Fiction;154;Crime
Villeneuve;Arrival;116;Science Fiction
Villeneuve;Blade Runner 2049;163;Science Fiction
Villeneuve;Prisoners;153;Thriller
Villeneuve;Sicario;122;Thriller
Waititi;Hunt for the Wilderpeople;101;Comedy
Waititi;Jojo Rabbit;108;Comedy
Waititi;Thor: Ragnarok;130;Superhero
Wright;Baby Driver;112;Action

View File

@@ -55,7 +55,7 @@
}
],
"type" : "INTERNAL",
"value" : "c:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug"
"value" : "c:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug"
},
{
"name" : "CMAKE_CACHE_MAJOR_VERSION",
@@ -431,7 +431,7 @@
}
],
"type" : "STATIC",
"value" : "C:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug/CMakeFiles/pkgRedirects"
"value" : "C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug/CMakeFiles/pkgRedirects"
},
{
"name" : "CMAKE_GENERATOR",
@@ -503,7 +503,7 @@
}
],
"type" : "INTERNAL",
"value" : "C:/Users/BreizhHardware/CLionProjects/untitled"
"value" : "C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd"
},
{
"name" : "CMAKE_INSTALL_PREFIX",
@@ -1131,7 +1131,7 @@
}
],
"type" : "STATIC",
"value" : "C:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug"
"value" : "C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug"
},
{
"name" : "untitled_IS_TOP_LEVEL",
@@ -1155,7 +1155,7 @@
}
],
"type" : "STATIC",
"value" : "C:/Users/BreizhHardware/CLionProjects/untitled"
"value" : "C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd"
}
],
"kind" : "cache",

View File

@@ -434,8 +434,8 @@
"kind" : "cmakeFiles",
"paths" :
{
"build" : "C:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug",
"source" : "C:/Users/BreizhHardware/CLionProjects/untitled"
"build" : "C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug",
"source" : "C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd"
},
"version" :
{

View File

@@ -49,8 +49,8 @@
"kind" : "codemodel",
"paths" :
{
"build" : "C:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug",
"source" : "C:/Users/BreizhHardware/CLionProjects/untitled"
"build" : "C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug",
"source" : "C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd"
},
"version" :
{

View File

@@ -26,7 +26,7 @@
"objects" :
[
{
"jsonFile" : "codemodel-v2-7836d669a1cef3e00c79.json",
"jsonFile" : "codemodel-v2-a3d206450c3dd6c2b2f8.json",
"kind" : "codemodel",
"version" :
{
@@ -35,7 +35,7 @@
}
},
{
"jsonFile" : "cache-v2-6d77b1c4fe700a0db79c.json",
"jsonFile" : "cache-v2-1abe9aa28dc02b05df4e.json",
"kind" : "cache",
"version" :
{
@@ -44,7 +44,7 @@
}
},
{
"jsonFile" : "cmakeFiles-v1-b16e6580a690abf4a570.json",
"jsonFile" : "cmakeFiles-v1-e19dc4e3c64745cd96a3.json",
"kind" : "cmakeFiles",
"version" :
{
@@ -66,7 +66,7 @@
{
"cache-v2" :
{
"jsonFile" : "cache-v2-6d77b1c4fe700a0db79c.json",
"jsonFile" : "cache-v2-1abe9aa28dc02b05df4e.json",
"kind" : "cache",
"version" :
{
@@ -76,7 +76,7 @@
},
"cmakeFiles-v1" :
{
"jsonFile" : "cmakeFiles-v1-b16e6580a690abf4a570.json",
"jsonFile" : "cmakeFiles-v1-e19dc4e3c64745cd96a3.json",
"kind" : "cmakeFiles",
"version" :
{
@@ -86,7 +86,7 @@
},
"codemodel-v2" :
{
"jsonFile" : "codemodel-v2-7836d669a1cef3e00c79.json",
"jsonFile" : "codemodel-v2-a3d206450c3dd6c2b2f8.json",
"kind" : "codemodel",
"version" :
{

View File

@@ -1,5 +1,5 @@
# This is the CMakeCache file.
# For build in directory: c:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug
# For build in directory: c:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug
# It was generated by CMake: C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/cmake/win/x64/bin/cmake.exe
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
@@ -78,7 +78,7 @@ CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=
//Value Computed by CMake.
CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=C:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug/CMakeFiles/pkgRedirects
CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug/CMakeFiles/pkgRedirects
//Convert GNU import libraries to MS format (requires Visual Studio)
CMAKE_GNUtoMS:BOOL=OFF
@@ -211,13 +211,13 @@ CMAKE_STRIP:FILEPATH=C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/app
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
//Value Computed by CMake
untitled_BINARY_DIR:STATIC=C:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug
untitled_BINARY_DIR:STATIC=C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug
//Value Computed by CMake
untitled_IS_TOP_LEVEL:STATIC=ON
//Value Computed by CMake
untitled_SOURCE_DIR:STATIC=C:/Users/BreizhHardware/CLionProjects/untitled
untitled_SOURCE_DIR:STATIC=C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd
########################
@@ -229,7 +229,7 @@ CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=c:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug
CMAKE_CACHEFILE_DIR:INTERNAL=c:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
//Minor version of cmake used to create the current loaded cache
@@ -288,7 +288,7 @@ CMAKE_GENERATOR_PLATFORM:INTERNAL=
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Source directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=C:/Users/BreizhHardware/CLionProjects/untitled
CMAKE_HOME_DIRECTORY:INTERNAL=C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS

View File

@@ -10,12 +10,12 @@ The output was:
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.exe"
The C compiler identification is GNU, found in "C:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug/CMakeFiles/3.25.2/CompilerIdC/a.exe"
The C compiler identification is GNU, found in "C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug/CMakeFiles/3.25.2/CompilerIdC/a.exe"
Detecting C compiler ABI info compiled with the following output:
Change Dir: C:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug/CMakeFiles/CMakeScratch/TryCompile-mcmaig
Change Dir: C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug/CMakeFiles/CMakeScratch/TryCompile-1refy7
Run Build Command(s):C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/ninja/win/x64/ninja.exe cmTC_05db7 && [1/2] Building C object CMakeFiles/cmTC_05db7.dir/CMakeCCompilerABI.c.obj
Run Build Command(s):C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/ninja/win/x64/ninja.exe cmTC_72a57 && [1/2] Building C object CMakeFiles/cmTC_72a57.dir/CMakeCCompilerABI.c.obj
Using built-in specs.
@@ -23,8 +23,8 @@ Configured with: ../gcc-11.2.0/configure --host=x86_64-w64-mingw32 --target=x86_
Target: x86_64-w64-mingw32
Configured with: ../gcc-11.2.0/configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --build=x86_64-alpine-linux-musl --prefix=/win --enable-checking=release --enable-fully-dynamic-string --enable-languages=c,c++ --enable-libatomic --enable-libgomp --enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes --enable-seh-exceptions --enable-shared --enable-static --enable-threads=posix --enable-version-specific-runtime-libs --disable-bootstrap --disable-graphite --disable-libada --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-libquadmath --disable-lto --disable-nls --disable-multilib --disable-rpath --disable-symvers --disable-werror --disable-win32-registry --with-gnu-as --with-gnu-ld --with-system-libiconv --with-system-libz --with-gmp=/win/makedepends --with-mpfr=/win/makedepends --with-mpc=/win/makedepends
Configured with: ../gcc-11.2.0/configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --build=x86_64-alpine-linux-musl --prefix=/win --enable-checking=release --enable-fully-dynamic-string --enable-languages=c,c++ --enable-libatomic --enable-libgomp --enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes --enable-seh-exceptions --enable-shared --enable-static --enable-threads=posix --enable-version-specific-runtime-libs --disable-bootstrap --disable-graphite --disable-libada --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-libquadmath --disable-lto --disable-nls --disable-multilib --disable-rpath --disable-symvers --disable-werror --disable-win32-registry --with-gnu-as --with-gnu-ld --with-system-libiconv --with-system-libz --with-gmp=/win/makedepends --with-mpfr=/win/makedepends --with-mpc=/win/makedepends
Thread model: posix
Supported LTO compression algorithms: zlib
@@ -45,13 +45,13 @@ GNU C17 (GCC) version 11.2.0 (x86_64-w64-mingw32)
ignoring nonexistent directory "/win/include"
ignoring duplicate directory "C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/lib/gcc/../../include"
ignoring duplicate directory "C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/lib/gcc/../../include"
ignoring duplicate directory "C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/11.2.0/include-fixed"
ignoring duplicate directory "C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/include"
ignoring nonexistent directory "/mingw/include"
ignoring nonexistent directory "/mingw/include"
#include "..." search starts here:
@@ -62,9 +62,9 @@ Supported LTO compression algorithms: zlib
C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../include
C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/include-fixed
C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/include
C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/include
End of search list.
GNU C17 (GCC) version 11.2.0 (x86_64-w64-mingw32)
@@ -85,9 +85,9 @@ Parsed C implicit include dir info from above output: rv=done
LIBRARY_PATH=C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/;C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/;C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/lib/../lib/;C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../lib/;C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/lib/;C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../
COLLECT_GCC_OPTIONS='-fdiagnostics-color=always' '-v' '-o' 'CMakeFiles/cmTC_05db7.dir/CMakeCCompilerABI.c.obj' '-c' '-mtune=generic' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_05db7.dir/CMakeCCompilerABI.c.'
COLLECT_GCC_OPTIONS='-fdiagnostics-color=always' '-v' '-o' 'CMakeFiles/cmTC_72a57.dir/CMakeCCompilerABI.c.obj' '-c' '-mtune=generic' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_72a57.dir/CMakeCCompilerABI.c.'
[2/2] Linking C executable cmTC_05db7.exe
[2/2] Linking C executable cmTC_72a57.exe
Using built-in specs.
@@ -95,8 +95,8 @@ Parsed C implicit link information from above output:
COLLECT_LTO_WRAPPER=C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../libexec/gcc/x86_64-w64-mingw32/11.2.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Target: x86_64-w64-mingw32
Configured with: ../gcc-11.2.0/configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --build=x86_64-alpine-linux-musl --prefix=/win --enable-checking=release --enable-fully-dynamic-string --enable-languages=c,c++ --enable-libatomic --enable-libgomp --enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes --enable-seh-exceptions --enable-shared --enable-static --enable-threads=posix --enable-version-specific-runtime-libs --disable-bootstrap --disable-graphite --disable-libada --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-libquadmath --disable-lto --disable-nls --disable-multilib --disable-rpath --disable-symvers --disable-werror --disable-win32-registry --with-gnu-as --with-gnu-ld --with-system-libiconv --with-system-libz --with-gmp=/win/makedepends --with-mpfr=/win/makedepends --with-mpc=/win/makedepends
Thread model: posix
@@ -117,8 +117,8 @@ Parsed C implicit link information from above output:
Parsed C implicit include dir info from above output: rv=done
Parsed C implicit include dir info from above output: rv=done
found start of include info
found start of implicit include info
add: [C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/include]
@@ -128,8 +128,8 @@ Parsed C implicit link information from above output:
end of search list found
collapse include dir [C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/include] ==> [C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/lib/gcc/x86_64-w64-mingw32/11.2.0/include]
collapse include dir [C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../include] ==> [C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/include]
collapse include dir [C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/include-fixed] ==> [C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/lib/gcc/x86_64-w64-mingw32/11.2.0/include-fixed]
collapse include dir [C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/include] ==> [C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/x86_64-w64-mingw32/include]
collapse include dir [C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/include-fixed] ==> [C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/lib/gcc/x86_64-w64-mingw32/11.2.0/include-fixed]
collapse include dir [C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/include] ==> [C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/x86_64-w64-mingw32/include]
implicit include dirs: [C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/lib/gcc/x86_64-w64-mingw32/11.2.0/include;C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/include;C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/lib/gcc/x86_64-w64-mingw32/11.2.0/include-fixed;C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/x86_64-w64-mingw32/include]
@@ -146,14 +146,14 @@ Parsed C implicit link information from above output:
ignore line: [Supported LTO compression algorithms: zlib]
ignore line: [gcc version 11.2.0 (GCC) ]
ignore line: [COLLECT_GCC_OPTIONS='-fdiagnostics-color=always' '-v' '-o' 'CMakeFiles/cmTC_72a57.dir/CMakeCCompilerABI.c.obj' '-c' '-mtune=generic' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_72a57.dir/']
ignore line: [ C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../libexec/gcc/x86_64-w64-mingw32/11.2.0/cc1.exe -quiet -v -iprefix C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/ -D_REENTRANT C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/cmake/win/x64/share/cmake-3.25/Modules/CMakeCCompilerABI.c -quiet -dumpdir CMakeFiles/cmTC_05db7.dir/ -dumpbase CMakeCCompilerABI.c.c -dumpbase-ext .c -mtune=generic -march=x86-64 -version -fdiagnostics-color=always -o C:\Users\BREIZH~1\AppData\Local\Temp\cc4zL7em.s]
ignore line: [GNU C17 (GCC) version 11.2.0 (x86_64-w64-mingw32)]
ignore line: [ C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../libexec/gcc/x86_64-w64-mingw32/11.2.0/cc1.exe -quiet -v -iprefix C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/ -D_REENTRANT C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/cmake/win/x64/share/cmake-3.25/Modules/CMakeCCompilerABI.c -quiet -dumpdir CMakeFiles/cmTC_72a57.dir/ -dumpbase CMakeCCompilerABI.c.c -dumpbase-ext .c -mtune=generic -march=x86-64 -version -fdiagnostics-color=always -o C:\Users\BREIZH~1\AppData\Local\Temp\cc1PsL9r.s]
ignore line: [GNU C17 (GCC) version 11.2.0 (x86_64-w64-mingw32)]
ignore line: [ compiled by GNU C version 11.2.0 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.1 isl version none]
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [ignoring duplicate directory "C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/11.2.0/include"]
ignore line: [ignoring nonexistent directory "/win/include"]
ignore line: [ignoring duplicate directory "C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/lib/gcc/../../include"]
ignore line: [ignoring duplicate directory "C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/11.2.0/include-fixed"]
ignore line: [ignoring duplicate directory "C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/11.2.0/include-fixed"]
ignore line: [ignoring duplicate directory "C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/include"]
ignore line: [ignoring nonexistent directory "/mingw/include"]
ignore line: [#include "..." search starts here:]
@@ -162,9 +162,9 @@ Parsed C implicit link information from above output:
ignore line: [ C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../include]
ignore line: [ C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/include-fixed]
ignore line: [ C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/mingw/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/include]
ignore line: [End of search list.]
ignore line: [End of search list.]
ignore line: [GNU C17 (GCC) version 11.2.0 (x86_64-w64-mingw32)]
ignore line: [ compiled by GNU C version 11.2.0 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.1 isl version none]
ignore line: [ compiled by GNU C version 11.2.0 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.1 isl version none]
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [Compiler executable checksum: 23424b72d090e8b977a96775bde79257]
ignore line: [COLLECT_GCC_OPTIONS='-fdiagnostics-color=always' '-v' '-o' 'CMakeFiles/cmTC_72a57.dir/CMakeCCompilerABI.c.obj' '-c' '-mtune=generic' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_72a57.dir/']

View File

@@ -1,3 +1,3 @@
C:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug/CMakeFiles/untitled.dir
C:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug/CMakeFiles/edit_cache.dir
C:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug/CMakeFiles/rebuild_cache.dir
C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug/CMakeFiles/untitled.dir
C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug/CMakeFiles/edit_cache.dir
C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug/CMakeFiles/rebuild_cache.dir

View File

@@ -1,4 +1,4 @@
C:\Users\BreizhHardware\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\231.9011.31\bin\cmake\win\x64\bin\cmake.exe -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/ninja/win/x64/ninja.exe -G Ninja -S C:\Users\BreizhHardware\CLionProjects\untitled -B C:\Users\BreizhHardware\CLionProjects\untitled\cmake-build-debug
C:\Users\BreizhHardware\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\231.9011.31\bin\cmake\win\x64\bin\cmake.exe -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=C:/Users/BreizhHardware/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/231.9011.31/bin/ninja/win/x64/ninja.exe -G Ninja -S C:\Users\BreizhHardware\Nextcloud\Programation\C\Isen\ProjetFin\BackEnd -B C:\Users\BreizhHardware\Nextcloud\Programation\C\Isen\ProjetFin\BackEnd\cmake-build-debug
-- The C compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
@@ -7,4 +7,4 @@ C:\Users\BreizhHardware\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\231.9011
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug
-- Build files have been written to: C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug

View File

@@ -42,7 +42,7 @@ rule CUSTOM_COMMAND
# Rule for re-running cmake.
rule RERUN_CMAKE
command = C:\Users\BreizhHardware\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\231.9011.31\bin\cmake\win\x64\bin\cmake.exe --regenerate-during-build -SC:\Users\BreizhHardware\CLionProjects\untitled -BC:\Users\BreizhHardware\CLionProjects\untitled\cmake-build-debug
command = C:\Users\BreizhHardware\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\231.9011.31\bin\cmake\win\x64\bin\cmake.exe --regenerate-during-build -SC:\Users\BreizhHardware\Nextcloud\Programation\C\Isen\ProjetFin\BackEnd -BC:\Users\BreizhHardware\Nextcloud\Programation\C\Isen\ProjetFin\BackEnd\cmake-build-debug
description = Re-running CMake...
generator = 1

View File

@@ -1,3 +1,3 @@
Start testing: Jun 09 10:53 Paris, Madrid (heure dété)
Start testing: Jun 09 11:54 Paris, Madrid (heure dété)
----------------------------------------------------------
End testing: Jun 09 10:53 Paris, Madrid (heure dété)
End testing: Jun 09 11:54 Paris, Madrid (heure dété)

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,4 @@
# Install script for directory: C:/Users/BreizhHardware/CLionProjects/untitled
# Install script for directory: C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd
# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
@@ -45,5 +45,5 @@ endif()
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
"${CMAKE_INSTALL_MANIFEST_FILES}")
file(WRITE "C:/Users/BreizhHardware/CLionProjects/untitled/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}"
file(WRITE "C:/Users/BreizhHardware/Nextcloud/Programation/C/Isen/ProjetFin/BackEnd/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}"
"${CMAKE_INSTALL_MANIFEST_CONTENT}")

View File

@@ -19,4 +19,4 @@ Dayton;Bus and the Damned Rat;148;Fantasy
Dayton;The Fangs's Cell;181;Action
Dayton;In the Empire;280;Animation
Dayton;Infernoborn;83;Thriller
Dayton;Into the Undead Blonde;164;Western
Dayton;Into the Undead Blonde;164;Western

View File

@@ -1,3 +1,4 @@
// -----------fonction display-------------
function displayDirector(){
const queryString = window.location.search;
@@ -13,12 +14,15 @@ function displayDirector(){
resultTitle.innerHTML = "Film par " + director + " :<br> Temps de recherche : 1ms";
readAndDisplay();
}
else{
console.warn("Parametre director non trouvé");
}
}
function displayDuree(){
const queryString = window.location.search;
if(queryString.includes("duree")){
@@ -26,6 +30,7 @@ function displayDuree(){
const duree = urlParms.get('duree');
let resultTitle = document.getElementById("resultTitle");
resultTitle.innerHTML = "Film de " + duree + " minutes :<br> Temps de recherche : 1ms";
readAndDisplay();
}
else{
console.warn("Parametre duree non trouvé");
@@ -39,6 +44,7 @@ function displayCategorie(){
const categorie = urlParms.get('categorie');
let resultTitle = document.getElementById("resultTitle");
resultTitle.innerHTML = "Film de la catégorie " + categorie + " :<br> Temps de recherche : 1ms";
readAndDisplay();
}
else{
console.warn("Parametre categorie non trouvé");
@@ -52,6 +58,7 @@ function displayFilm(){
const film = urlParms.get('film');
let resultTitle = document.getElementById("resultTitle");
resultTitle.innerHTML = "Film contenant " + film + " :<br> Temps de recherche : 1ms";
readAndDisplay();
}
else{
console.warn("Parametre film non trouvé");
@@ -63,6 +70,37 @@ function displayAll(){
if(queryString.includes("All")){
let resultTitle = document.getElementById("resultTitle");
resultTitle.innerHTML = "Tous les films :<br> Temps de recherche : 1ms";
const result = readFileByName("../BackEnd/BD_medium.txt");
// Récupère le tableau de films
films = result.split("\n");
if (films.length === 0) {
let alert = document.getElementById("result");
alert.innerHTML = "Aucun film trouvé";
alert.style.display = "block";
alert.style.color = "red";
alert.style.textAlign = "center";
alert.style.fontSize = "30px";
return; // Arrête l'exécution si aucun film n'est trouvé
}
// Retire le \r de chaque élément du tableau
for (let i = 0; i < films.length; i++) {
films[i] = films[i].replace("\r", "");
}
// Split chaque élément du tableau en un tableau de 4 éléments
for (let i = 0; i < films.length; i++) {
films[i] = films[i].split(";");
}
films.sort((a, b) => a[1].localeCompare(b[1]));
// Calculer le nombre total de pages
totalPages = Math.ceil(films.length / filmsPerPage);
// Afficher la première page
displayPage(currentPage);
}
else{
console.warn("Parametre all non trouvé");
@@ -74,22 +112,29 @@ function displayMostMovies(){
if(queryString.includes("MostMovies")){
let resultTitle = document.getElementById("resultTitle");
resultTitle.innerHTML = "Réalisateur avec le plus de films :<br> Temps de recherche : 1ms";
readAndDisplay();
}
else{
console.warn("Parametre mostMovies non trouvé");
}
}
function displayFallBack(){
const queryString = window.location.search;
if(queryString.includes("director") === false && queryString.includes("duree") === false && queryString.includes("categorie") === false && queryString.includes("film") === false && queryString.includes("All") === false && queryString.includes("MostMovies") === false){
let resultTitle = document.getElementById("resultTitle");
resultTitle.innerHTML = "Aucun parametre trouvé";
}
else{
console.warn("Parametre non trouvé");
}
}
function returnToHome(){
window.location.href = "index.html";
}
displayDirector();
displayDuree();
displayCategorie();
displayFilm();
displayAll();
displayMostMovies();
// ------- WRITE FILE -------
function writeFile(id_form,func) {
@@ -140,51 +185,139 @@ function callWrite() {
writeFile("form-findByDirector", )
}
function readAndDisplay(){
const result = readFileByName("../BackEnd/results.txt");
// ------- READ AND DISPLAY -------
let films = [];
let currentPage = 1;
const filmsPerPage = 20;
function readAndDisplay() {
const result = readFileByName("../BackEnd/results.txt");
// Récupère le tableau de films
let films = result.split("\n");
films = result.split("\n");
// Supprime le dernier element du tableau (vide)
films.pop();
// Retire le \r de chaque element du tableau
for(let i = 0;i<films.length;i++){
films[i] = films[i].replace("\r","");
if (films.length === 0) {
let alert = document.getElementById("result");
alert.innerHTML = "Aucun film trouvé";
alert.style.display = "block";
alert.style.color = "red";
alert.style.textAlign = "center";
alert.style.fontSize = "30px";
return; // Arrête l'exécution si aucun film n'est trouvé
}
console.log(films);
// Retire le \r de chaque élément du tableau
for (let i = 0; i < films.length; i++) {
films[i] = films[i].replace("\r", "");
}
// Split chaque element du tableau en un tableau de 4 elements
for(let i = 0;i<films.length;i++){
// Split chaque élément du tableau en un tableau de 4 éléments
for (let i = 0; i < films.length; i++) {
films[i] = films[i].split(";");
}
console.log(films);
films.sort((a, b) => a[1].localeCompare(b[1]));
// Creation de la carte pour chaque film
// Calculer le nombre total de pages
totalPages = Math.ceil(films.length / filmsPerPage);
// Afficher la première page
displayPage(currentPage);
}
function displayPage(page) {
// Calculer l'indice de début et de fin des films pour la page spécifiée
const startIndex = (page - 1) * filmsPerPage;
const endIndex = startIndex + filmsPerPage;
// Obtenir les films de la page actuelle
const currentFilms = films.slice(startIndex, endIndex);
// Vider le contenu des conteneurs
clearContainers();
// Création de la carte pour chaque film de la page actuelle
let containerIndex = 1;
let cardIndex = 0;
for(let i = 0; i < films.length;i++){
for (let i = 0; i < currentFilms.length; i++) {
let container = document.getElementById("resultContentContainer" + containerIndex);
let resultContent = container.querySelector(".resultContent");
if (resultContent.children.length >= 5){
if (resultContent.children.length >= 5) {
// Si le conteneur est plein (déjà 5 cartes), passer au conteneur suivant
containerIndex++;
container = document.getElementById("resultContentContainer" + containerIndex);
resultContent = container.querySelector(".resultContent");
}
addCard(resultContent, films[i][0], films[i][1], films[i][2], films[i][3]);
addCard(resultContent, currentFilms[i][0], currentFilms[i][1], currentFilms[i][2], currentFilms[i][3]);
cardIndex++;
}
// Mettre à jour l'affichage de la pagination
updatePagination(page);
}
function clearContainers() {
for (let i = 1; i <= 4; i++) {
let container = document.getElementById("resultContentContainer" + i);
let resultContent = container.querySelector(".resultContent");
resultContent.innerHTML = "";
}
}
function updatePagination(page) {
// Mettre à jour le numéro de page affiché
let resultTitle = document.getElementById("pageNumbers");
resultTitle.innerText = "Page " + page;
// Afficher ou masquer les boutons de navigation en fonction de la page actuelle
let previousButton = document.getElementById("previousButton");
let nextButton = document.getElementById("nextButton");
if (page === 1) {
previousButton.style.display = "none";
} else {
previousButton.style.display = "block";
}
if (page === totalPages) {
nextButton.style.display = "none";
} else {
nextButton.style.display = "block";
}
}
function goToPreviousPage() {
if (currentPage > 1) {
currentPage--;
displayPage(currentPage);
}
}
function goToNextPage() {
if (currentPage < totalPages) {
currentPage++;
displayPage(currentPage);
}
}
function addCard(container, real, title, duree, categorie){
let card = document.createElement("div");
card.classList.add("card");
card.innerHTML = "Tire : " + title + "<br>Realisateur : " + real + "<br>Durée : " + duree + "<br>Categorie : " + categorie;
card.innerHTML = "Titre : " + title + "<br>Realisateur : " + real + "<br>Durée : " + duree + "<br>Categorie : " + categorie;
container.appendChild(card);
}
readAndDisplay();
// -------------------------
//Appel des fonctions
displayDirector();
displayDuree();
displayCategorie();
displayFilm();
displayAll();
displayMostMovies();
displayFallBack();

View File

@@ -95,18 +95,41 @@ function lockFilmButton(){
}
function unlockDirectorButton(){
document.getElementById("duree").value = "";
document.getElementById("categorie").value = "";
document.getElementById("film").value = "";
document.getElementById("dureeButton").disabled = true;
document.getElementById("categorieButton").disabled = true;
document.getElementById("filmButton").disabled = true;
document.getElementById("directorButton").disabled = false;
}
function unlockDureeButton(){
document.getElementById("director").value = "";
document.getElementById("categorie").value = "";
document.getElementById("film").value = "";
document.getElementById("directorButton").disabled = true;
document.getElementById("categorieButton").disabled = true;
document.getElementById("filmButton").disabled = true;
document.getElementById("dureeButton").disabled = false;
}
function unlockCategorieButton(){
document.getElementById("director").value = "";
document.getElementById("duree").value = "";
document.getElementById("film").value = "";
document.getElementById("directorButton").disabled = true;
document.getElementById("dureeButton").disabled = true;
document.getElementById("categorieButton").disabled = false;
}
function unlockFilmButton(){
document.getElementById("director").value = "";
document.getElementById("duree").value = "";
document.getElementById("categorie").value = "";
document.getElementById("directorButton").disabled = true;
document.getElementById("dureeButton").disabled = true;
document.getElementById("categorieButton").disabled = true;
document.getElementById("filmButton").disabled = false;
}

View File

@@ -13,6 +13,7 @@
</head>
<body>
<h1>Filmothèque <i class="fa-solid fa-film"></i></h1>
<h3 id="pageNumbers"></h3>
<div id="result">
<div id="resultTitleContainer">
<h2 id="resultTitle"></h2>
@@ -34,6 +35,10 @@
</div>
</div>
</div>
<div id="navButton">
<button class="pageButton" id="previousButton" onclick="goToPreviousPage()"><i class="fa-solid fa-arrow-left" style="color: #ffffff;"></i></button>
<button class="pageButton" id="nextButton" onclick="goToNextPage()"><i class="fa-solid fa-arrow-right" style="color: #ffffff;"></i></button><br>
</div>
<button class="searchButton" id="returnToHome" onclick="returnToHome()">Retourner à l'accueil</button><br>
<button id="stop stopResult" onclick="stopServer()">Couper le serveur</button>
<div id="bottom">

View File

@@ -141,4 +141,30 @@ h1{
color: white;
border: none;
cursor: not-allowed;
}
.pageButton{
width: 2em;
height: 2em;
background-color: #3B428A;
border: none;
align-self: center;
margin-bottom: 1em;
cursor: pointer;
}
#navButton{
display: flex;
justify-content: center;
flex-direction: row;
}
#navButton > button{
margin: 1em;
}
#pageNumbers{
display: flex;
justify-content: center;
flex-direction: row;
}