From ed69a55c724d9d4d3f993ed033eb80d9c22cd1b0 Mon Sep 17 00:00:00 2001 From: SkanderWS1 Date: Sat, 27 May 2023 17:16:57 +0200 Subject: [PATCH 1/5] commit 1 --- build/classes/gui/Main.fxml | 30 +++++++++++ build/classes/gui/SignIn.fxml | 50 +++++++++++++++++ build/classes/gui/SignUp.fxml | 59 +++++++++++++++++++++ build/classes/service/TerrainService.class | Bin 4989 -> 5016 bytes nbproject/private/private.properties | 2 +- src/gui/Main.fxml | 30 +++++++++++ src/gui/SignIn.fxml | 50 +++++++++++++++++ src/gui/SignUp.fxml | 59 +++++++++++++++++++++ 8 files changed, 279 insertions(+), 1 deletion(-) create mode 100644 build/classes/gui/Main.fxml create mode 100644 build/classes/gui/SignIn.fxml create mode 100644 build/classes/gui/SignUp.fxml create mode 100644 src/gui/Main.fxml create mode 100644 src/gui/SignIn.fxml create mode 100644 src/gui/SignUp.fxml diff --git a/build/classes/gui/Main.fxml b/build/classes/gui/Main.fxml new file mode 100644 index 0000000..c34d5a5 --- /dev/null +++ b/build/classes/gui/Main.fxml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/build/classes/padler/FXMLDocumentController.class b/build/classes/padler/FXMLDocumentController.class new file mode 100644 index 0000000000000000000000000000000000000000..d9294ec21a3f71891cfee47511084784f4c943ba GIT binary patch literal 5748 zcmbVQd3+pI9sj;$li6&hNgAMS=(V&dP1818Xt~;Qq-{#0xk%EMLKP;vlVsZ6nPq0S zO;A)&R6J0;LA>y&7bul(F9p06QM|3U;)w^|ih}6(y_wnFw4wFmADMZ-H^28gzwh_^ zZ6131$o&A;h}8*fz)c!n9LGx%sKU*0yflHA;pKJc#4YuB1zssvuab{fCvYoXQ;*l; zHc7rNf!7D*8zlM01oC*3hBw#YEx0{_X510STjl#s`FL9#Zm z+yTQj*9o)?7Hr?jncFPS8p)cSw(aS5foycWVo3HHc;emL;GhN%rnJ0)( zJGSpS+0?K(;cvFgY({eD4bR)_xEX=gNLpY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?HXD zANP9PM#)}`_HdUms)=34x}rfLiUAIi`A|tzYN+B4ARLnQ?h80bHIlYA)|f~0N(sHF zp;0of%^sC9mMBwoC*^D5D%n83tSqTzM%uf3@@R?ugsOBN>m|}kq?*Wv?zOn3Oix6G zV+VsB#RleVD>EkbZSf=(!qo1EiPDwkDr#o``kF_4FPdUZ%qCeW+&5P!mUey;cQDqS wB~CRJlr(uxQP>fhP=!H!%{@dVU*cPQ#mwC6n>In3BqnhJ9(1YzoyLj30j62=@c;k- literal 0 HcmV?d00001 diff --git a/build/classes/padler/dashboard.fxml b/build/classes/padler/dashboard.fxml new file mode 100644 index 0000000..0c17074 --- /dev/null +++ b/build/classes/padler/dashboard.fxml @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+
+
+
+
+
diff --git a/build/classes/padler/database.class b/build/classes/padler/database.class new file mode 100644 index 0000000000000000000000000000000000000000..307aabd74ecacd0b29b10fa3a0c43310952bd83c GIT binary patch literal 853 zcmZ`%-BQy)7(GjWlGfC=K?)T`5z)44;)Pe>cvJL-7H24f*PC=HscBM@h0(Xd8)dxk z0emROZ#Qu|iezRtyJydy?|diu`Rn@+0I%?}id(p6;(iqycwpk8iA@uas@TF~1KU-Y zcw*qGfeu6Ybr1#e4MU;RJ!UBOoXfu`jGV==asz`=?ffj{ z(ZqfG$rp2(-L8!!_dgE#JhxLF#pj7H-UZ5V?T;Bpm9}7^MoNA>b7r5(hcg{}zO$DE z7a}pxwa~*eh7E=8Xu^)`hN|V$IF&B-C#XTnCy8Up00Yl0ynw^7tULSLn*~=@tN#-V zLt{aH?@cKlA}yeP$Ww~bIEj-3KBFGCJ6S4PeI%10n(XFLYDiz87+YFHrJFT04pBu*z|6GCUY zQqn!rk?s;Yfr5-fn^Ct-o9^9ouXL|}+uyIH&wF>0PB#9d|9tcP-tm0T`+j#%{r8ba z0c^%U!`J~Uj2vuf@->KHT*dJ)7QhN&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v3`?N0jqe&jq_Wme3fIdexKKK z<0#%7pQNCkBuy*swfOqbjV0xKr8kCieY0L9PZ!fE>wX3K=(AydhXs;reKuWJqT!rf zf{|l-It7@S!m*nv70&xY3sa($D%EmS09_F4civ*+Oyc^g$?zn<`NoJyCQmW%!!VVh zmweo)*3idDptY6nv1`tI4!P~7VdW|M$|7spX%h|n4&4C-J5hyzysi9156F|}^eq2Q z&-aIY4dwVAvwc2i-IP<2B}8{0()vW-%41IOzT=S*{tU;u-h zDN;bGM$|n`xhnPtu3*98DO5+)0z$0?)Ub<$-EpmqH8uq-9B65|h^lEUQgDerT*TtG zY19R9=nR$(Mj{0)y^LiSuv}>`V8wZwiZQw#ETL24-1Sh|HgUBDH=>n$9o%i>gV&Dz z*x)$ZLWg=$hrQV6gmS=hn@(bwQlhh+#d0xzj_EzWfJ`L{NpkbC(0+2n7Q)UI`{&VXg|8ZFFD2JT1^n;n@R49yO9L zYc8Y7rOlv28-fxOOq*ra%vsB9gg3SM;4Prlow^Vg(B@8EmbM?u2(GB4^F)H%T zMYoSQ^&Pf!TaY_tbWfL9d7Ae! zN-RUT&$$Jcl}iOn{!|Dd|BWse%}NxH@G@N#S9&O(igdVCWKwxZ5vVHiuQMoYYo5ji z1v}~=!VMSjoFdd41?mDeMK-%&7jWYlH24IbTNK#h6IeFjPuDgtT|uAHCD=Mh5RhI$ zCeIR5XD!LoNbXIL9Vs$?!qccp^( zE~2iRUzTH@-c9V~L`_TU)K)4>!t|7F@RU`z@OHMHqgua% beofWa)HF1&TigFnw`h38F`q%!>5u&n6WM2r diff --git a/build/classes/service/DiponibiliteTerrainService.class b/build/classes/service/DiponibiliteTerrainService.class deleted file mode 100644 index 264cdd079b9c9338a8274f8b779d668a36445f74..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 319 zcmah^yH3MU3_VWsfDmZaA3z`mU?2+{h^44g)DEq>-vkR>g&TC6S6ot>!G-<2VTCEj)fn<|xT-j34g%BtzG`OE8Lzog%nM?}4nhPJmhZ653 zv50XsoNvy#f1h9P9{{d#>EOb_l);vHA(UpAxXTUS@gU=Q8a%EyBGxnSnW4XuY0h=2 z1ex6^s^HaDrG75-TJXH^pSa>LLJRdkPr<;boTCI!ZnKPG?0R+OQp+q@%0kZ=rY$(9 z(hK_Onc&@9n3$2mCi;6QGe+o|`u_a}b76BZD7K={;k@cF`37X2W@-Qc diff --git a/build/classes/service/TerrainService.class b/build/classes/service/TerrainService.class deleted file mode 100644 index 6a512116620214e162e021fe6d360703af965d79..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5016 zcmb7Id3;pW75?7LkT;n;S;8g)Iv`6DvLGsI0>Kc1rVK#{LZKUvnMZhJ@@ANM6O&S` zEq1kb)6zm)yBDyuRVx!Bt=iJnZkFzg-50y>i&(|)-1lY+p}$}MdGFnO&ppd`zH{!K zdFualYA*WeDkL3ZC+gE!($I^L|~EfKsG2O_u&cUR+WI4ECl591v=4n;5<`$Y1v z?0IJm-i3GTxJOjd?0aPVUKzYk$NR(hKo}pCsSkzmVKIHA2K_iHUlcwT!M*s1*gr11 zK3ap1;jpZITpsty<9>NO5XL8D?Lm2*s74+mVVn$OG=hh4DvVEt@hKe-hw(@RtMF)q zx;`zB&&cDnj?e1&oQCRn%5khAJLPDY9@}FMnl0JA$(Bx;jk}y~(-6$MmWFAi)n3s``(SQuA#V<_CwdWaq`%G8uW~{H)jbdwcggG>GZYq zx*6N)qs@yLd%S%P31CiD`pK^$qvU!5l$jqf=FrG zFvw8sghhQcXC^w5Nt&yx_YCG-JJ}Mmvx1-&r^$kooypuz+2VRY5YQy0Bnp+>@_jQZ z5gkq!P@O+Uc11zCk8WFgn~pD#JiT_GW4gHvfmm>!XXEVB5SCC@4|gXdA>H+36*D0= zm$YssE@34V#39NtQ#F~?E!j0{juKV5bb=%#Y3s@|uwmyOvQ{N_x@cD+duVzq8kV0w zStL)l&!TZXk9bL2YYQ2tR`RS_3>nyfn{<59z?bltfiL4L25!KO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V7J%zdB0mfUb2N*LHXuOC6jBOC=(Sqi`) zvn7*kK_XQ&7x5d_4$k_CnB2kJ@u08wO1@=Bb;FWJu`rL-rEc!2ou$-zUA)>?TdB+; sUA&II)K^y3!0dG1N44b+mTRgSSJRdYy0zy2bc=?)4lsma<;F{&1Bt=oy#N3J diff --git a/build/classes/utils/DataSource.class b/build/classes/utils/DataSource.class deleted file mode 100644 index b088836d16a9844d8ca49cd4c8e2837cff3d4fd8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1542 zcma)6?{^bL6upy#Y_e?IkfsfwVo|^*K-coy7Enx61=8{(HHvJyMZf^ zuWiX~X}i*E+4U%Jyw;*XrW>ljlWoOiM~2}GKiD9k>Fo$i^#I{>*RJ@Ur<#%Ddm7_- zVI;jKG5K0Ia@^2fl98p1$pPPIQ-PW=jo$RK?$5=tRx&)M~fAu7WkW?#5uh zDcyz)9PRfv6N;6K!^-t1wdzh&b^5ha(WVm$jMXFA{C-7t`l#bA72O}OD$JHf@?ua$ zH&*0%Jc}c(nY|{K9nEiI*wvg4w{QmU3!K^7SZ^-0UlP1v+pg|m(+?xNBR7<*0t?e9 zvg^S2BMT?>8Wv8WXy6MAU*f)n(|E_g0}BsP6F3pic88;#Q4t5>C<7}NR`G~8FkpFj z3<9}-Pu;*{3s3OWK;6O`zB16T@HM`%@C@Htco**xG`#*t>s!1{f$2g1rNG%%!HV=` zO9h;-9@XH^1y*K{is%3A{MVchajCxyBh{u@{4N>wHRt&DV=6SFPL*s^Qk1 zjt+7?;zkhE;+q&YU2&;zV%XYhEO;%G;ql-}oQ(JMgn7BG7T<|oqt#={68q13ZdAoy zz7bfqP#lq0Z7aUabiLZBKCKFz8im&}geOTxpwh4Uc8NITXfKC$);0tGg??s>r3TLO z&oIUR&M_pkSh-4Qp~jX%jV(1wYijAxCK*BTLtuv9Z%EMxmdmdo%K5}TlI47AAIHl1 z^gfJod5;@=boXGqMrI$`U6}df2e5uXp_U&%z{G3hc5y;nJV5>@W}U`7|8ZlibC!9_ ztP567p}^G?ay*}A{Sq0>;{!&{;5s9#_>dlWmY|=bcaFKp3+H3j7r4$L@fQKYV9)%F z<&ecknC*9RC+-6%>|*i{jQxu7XRlEB8I$yXBsvlE87D8`0@6h0h}C(M5IH6(k!)`$ cHmxqMyUq@=>3H)}%+u-x^w|kqj4NFF8(h9>3jhEB diff --git a/src/Padeler/Test.java b/src/Padeler/Test.java deleted file mode 100644 index cf409b0..0000000 --- a/src/Padeler/Test.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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 Padeler; - -import entite.Club; -import entite.Terrain; - -import java.util.List; - - -import service.ClubService; -import service.TerrainService; -import utils.DataSource; -/** - * - * @author wiemhjiri - */ -public class Test { - - public static void main(String[] args) { - DataSource ds1=DataSource.getInstance(); - - - - List l = null ; - ClubService cs = new ClubService(); - System.out.println("size"+cs.readAll().size()); - - Club club = new Club() ; - club.setName("club2"); - club.setAdresse("tunis"); - cs.insert(club); - - cs.readAll().forEach(System.out::println); - - cs.readById(1) ; - Club club2 = new Club() ; - club2=cs.readById(1) ; - - System.out.println("object from DB: "+ club2); - - TerrainService tr = new TerrainService() ; - - tr.readAll().forEach(System.out::println) ; - - System.out.println("test fin"+tr.readById(1)); - - - Terrain t1 = new Terrain (); - t1.setName("terrain 2 "); - t1.setStatus(1); - Club club1 = new Club() ; - club1.setIdClub(1); - t1.setClub(club1); - - tr.insert(t1); - - - - - - - - } - -} diff --git a/src/entite/Club.java b/src/entite/Club.java deleted file mode 100644 index 068631e..0000000 --- a/src/entite/Club.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 entite; - -import entite.Terrain ; -import java.util.ArrayList; -import java.util.List; - -/** - * - * @author oussama.hadjahmed - */ -public class Club { - - private int idClub ; - private String name; - private String adresse; - private List terrains = new ArrayList(0); - - - - public Club() { - } - - public Club(int idClub , String name, String adresse) { - this.idClub = idClub ; - this.name = name; - this.adresse = adresse; - } - - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getAdresse() { - return adresse; - } - - public void setAdresse(String adresse) { - this.adresse = adresse; - } - - public int getIdClub() { - return idClub; - } - - public void setIdClub(int idClub) { - this.idClub = idClub; - } - - public List getTerrains() { - return terrains; - } - - public void setTerrains(List terrains) { - this.terrains = terrains; - } - - - @Override - public String toString() { - return "Club{" + "idClub=" + idClub + ", name=" + name + ", adresse=" + adresse + '}'; - } - - - - - - -} diff --git a/src/entite/Disponibiliteterrain.java b/src/entite/Disponibiliteterrain.java deleted file mode 100644 index 87704d8..0000000 --- a/src/entite/Disponibiliteterrain.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * 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 entite; - -import entite.Terrain; - -import java.sql.Date; - -/** - * - * @author oussama.hadjahmed - */ -public class Disponibiliteterrain { - - private int idDisponibiliteTerrain; - private Date Date; - private int temps1; - private int temps2; - private int temps3; - private int temps4; - private int temps5; - private int temps6; - private int temps7; - private int temps8; - private int temps9; - private int temps10; - private int temps11; - private int temps12; - private int temps13; - private int temps14; - private Terrain terrain; - - public Disponibiliteterrain() { - } - - public Disponibiliteterrain(int idDisponibiliteTerrain, Date Date, int temps1, int temps2, int temps3, int temps4, int temps5, int temps6, int temps7, int temps8, int temps9, int temps10, int temps11, int temps12, int temps13, int temps14, Terrain terrain) { - this.idDisponibiliteTerrain = idDisponibiliteTerrain; - this.Date = Date; - this.temps1 = temps1; - this.temps2 = temps2; - this.temps3 = temps3; - this.temps4 = temps4; - this.temps5 = temps5; - this.temps6 = temps6; - this.temps7 = temps7; - this.temps8 = temps8; - this.temps9 = temps9; - this.temps10 = temps10; - this.temps11 = temps11; - this.temps12 = temps12; - this.temps13 = temps13; - this.temps14 = temps14; - this.terrain = terrain; - } - - public Disponibiliteterrain(Date Date, int temps1, int temps2, int temps3, int temps4, int temps5, int temps6, int temps7, int temps8, int temps9, int temps10, int temps11, int temps12, int temps13, int temps14, Terrain terrain) { - this.Date = Date; - this.temps1 = temps1; - this.temps2 = temps2; - this.temps3 = temps3; - this.temps4 = temps4; - this.temps5 = temps5; - this.temps6 = temps6; - this.temps7 = temps7; - this.temps8 = temps8; - this.temps9 = temps9; - this.temps10 = temps10; - this.temps11 = temps11; - this.temps12 = temps12; - this.temps13 = temps13; - this.temps14 = temps14; - this.terrain = terrain; - } - - public int getIdDisponibiliteTerrain() { - return idDisponibiliteTerrain; - } - - public void setIdDisponibiliteTerrain(int idDisponibiliteTerrain) { - this.idDisponibiliteTerrain = idDisponibiliteTerrain; - } - - public Date getDate() { - return Date; - } - - public void setDate(Date Date) { - this.Date = Date; - } - - public int getTemps1() { - return temps1; - } - - public void setTemps1(int temps1) { - this.temps1 = temps1; - } - - public int getTemps2() { - return temps2; - } - - public void setTemps2(int temps2) { - this.temps2 = temps2; - } - - public int getTemps3() { - return temps3; - } - - public void setTemps3(int temps3) { - this.temps3 = temps3; - } - - public int getTemps4() { - return temps4; - } - - public void setTemps4(int temps4) { - this.temps4 = temps4; - } - - public int getTemps5() { - return temps5; - } - - public void setTemps5(int temps5) { - this.temps5 = temps5; - } - - public int getTemps6() { - return temps6; - } - - public void setTemps6(int temps6) { - this.temps6 = temps6; - } - - public int getTemps7() { - return temps7; - } - - public void setTemps7(int temps7) { - this.temps7 = temps7; - } - - public int getTemps8() { - return temps8; - } - - public void setTemps8(int temps8) { - this.temps8 = temps8; - } - - public int getTemps9() { - return temps9; - } - - public void setTemps9(int temps9) { - this.temps9 = temps9; - } - - public int getTemps10() { - return temps10; - } - - public void setTemps10(int temps10) { - this.temps10 = temps10; - } - - public int getTemps11() { - return temps11; - } - - public void setTemps11(int temps11) { - this.temps11 = temps11; - } - - public int getTemps12() { - return temps12; - } - - public void setTemps12(int temps12) { - this.temps12 = temps12; - } - - public int getTemps13() { - return temps13; - } - - public void setTemps13(int temps13) { - this.temps13 = temps13; - } - - public int getTemps14() { - return temps14; - } - - public void setTemps14(int temps14) { - this.temps14 = temps14; - } - - public Terrain getTerrain() { - return terrain; - } - - public void setTerrain(Terrain terrain) { - this.terrain = terrain; - } - -} diff --git a/src/entite/Terrain.java b/src/entite/Terrain.java deleted file mode 100644 index 5350e04..0000000 --- a/src/entite/Terrain.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 entite; - -import entite.Club; -import entite.Disponibiliteterrain; -import java.util.ArrayList; -import java.util.List; - -/** - * - * @author oussama.hadjahmed - */ -public class Terrain { - - private int idTerrain; - private String name; - private int status; - private Club club; - private List disponibiliteterrain = new ArrayList(0); - - public Terrain() { - } - - public Terrain(int idTerrain, String name, int status, Club club) { - this.idTerrain = idTerrain; - this.name = name; - this.status = status; - this.club = club; - } - - public int getIdTerrain() { - return idTerrain; - } - - public void setIdTerrain(int idTerrain) { - this.idTerrain = idTerrain; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public int getStatus() { - return status; - } - - public void setStatus(int status) { - this.status = status; - } - - public Terrain(int idTerrain, String name, int status) { - this.idTerrain = idTerrain; - this.name = name; - this.status = status; - } - - public Club getClub() { - return club; - } - - public void setClub(Club club) { - this.club = club; - } - - @Override - public String toString() { - return "Terrain{" + "idTerrain=" + idTerrain + ", name=" + name + ", status=" + status + ", club=" + club.getIdClub() + '}'; - } - -} diff --git a/src/gui/AcceuilController.java b/src/gui/AcceuilController.java deleted file mode 100644 index b4e237c..0000000 --- a/src/gui/AcceuilController.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 gui; - -import java.net.URL; -import java.util.ResourceBundle; -import javafx.fxml.Initializable; - -/** - * FXML Controller class - * - * @author oussama.hadjahmed - */ -public class AcceuilController implements Initializable { - - /** - * Initializes the controller class. - */ - @Override - public void initialize(URL url, ResourceBundle rb) { - // TODO - } - -} diff --git a/src/gui/FXMain.java b/src/gui/FXMain.java deleted file mode 100644 index 8dc2662..0000000 --- a/src/gui/FXMain.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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 gui; - -import java.io.IOException; -import javafx.application.Application; -import javafx.scene.Parent; -import javafx.scene.Scene; -import javafx.stage.Stage; -import javafx.fxml.FXMLLoader; - -/** - * - * @author oussama.hadjahmed - */ -public class FXMain extends Application { - - @Override - public void start(Stage primaryStage) throws IOException { - - //String filepath ="C:\\Users\\oussama.hadjahmed\\Desktop\\ESPRIT\\PIDEV\\ConnexionBD1cinfo2\\src\\gui"+; - - Parent root = FXMLLoader.load(getClass().getResource("acceuil.fxml")); - Scene scene = new Scene(root); - primaryStage.setTitle("Hello World!"); - primaryStage.setScene(scene); - primaryStage.show(); - } - - /** - * @param args the command line arguments - */ - public static void main(String[] args) { - launch(args); - } - -} diff --git a/src/gui/Main.fxml b/src/gui/Main.fxml deleted file mode 100644 index c34d5a5..0000000 --- a/src/gui/Main.fxml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - + + + + + + diff --git a/src/padler/FXMLDocumentController.java b/src/padler/FXMLDocumentController.java new file mode 100644 index 0000000..eecb8ee --- /dev/null +++ b/src/padler/FXMLDocumentController.java @@ -0,0 +1,132 @@ +/* + * 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 padler; + +import de.jensd.fx.glyphs.fontawesome.FontAwesomeIconView; +import java.net.URL; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.ResourceBundle; +import javafx.event.ActionEvent; +import javafx.fxml.FXML; +import javafx.fxml.FXMLLoader; +import javafx.fxml.Initializable; +import javafx.scene.Parent; +import javafx.scene.Scene; +import javafx.scene.control.Alert; +import javafx.scene.control.Alert.AlertType; +import javafx.scene.control.Button; +import javafx.scene.control.Label; +import javafx.scene.control.PasswordField; +import javafx.scene.control.TextField; +import javafx.scene.input.MouseEvent; +import javafx.scene.layout.AnchorPane; +import javafx.stage.Stage; +import javafx.stage.StageStyle; + +/** + * + * @author Esprit + */ +public class FXMLDocumentController implements Initializable { + + @FXML + private AnchorPane main_form; + + @FXML + private TextField username; + + @FXML + private PasswordField password; + + @FXML + private Button loginbtn; + + @FXML + private FontAwesomeIconView close; + + private Connection connect; + private PreparedStatement prepare; + private ResultSet result; + + private double x = 0; + private double y = 0; + + + public void loginAdmin(){ + + String sql = "SELECT * FROM user WHERE firstName = ? and password = ?"; + + connect = database.connectDb(); + + try{ + prepare = connect.prepareStatement(sql); + prepare.setString(1, username.getText()); + prepare.setString(2, password.getText()); + + result = prepare.executeQuery(); + Alert alert; + + if(username.getText().isEmpty() || password.getText().isEmpty()){ + alert = new Alert(AlertType.ERROR); + alert.setTitle("Error Message"); + alert.setHeaderText(null); + alert.setContentText("Please fill all blank fields"); + alert.showAndWait(); + }else{ + if(result.next()){ + + + alert = new Alert(AlertType.INFORMATION); + alert.setTitle("Information Message"); + alert.setHeaderText(null); + alert.setContentText("Successfully Login"); + alert.showAndWait(); + + loginbtn.getScene().getWindow().hide(); + Parent root = FXMLLoader.load(getClass().getResource("dashboard.fxml")); + Stage stage = new Stage(); + Scene scene = new Scene(root); + + root.setOnMousePressed((MouseEvent event) ->{ + x = event.getSceneX(); + y = event.getSceneY(); + }); + + root.setOnMouseDragged((MouseEvent event) ->{ + stage.setX(event.getScreenX() - x); + stage.setY(event.getScreenY() - y); + }); + + stage.initStyle(StageStyle.TRANSPARENT); + stage.setScene(scene); + stage.show(); + + }else{ + alert = new Alert(AlertType.ERROR); + alert.setTitle("Error Message"); + alert.setHeaderText(null); + alert.setContentText("Wrong Username/Password"); + alert.showAndWait(); + } + } + + }catch(Exception e){e.printStackTrace();} + + } + + + public void close(){ + System.exit(0); + } + + @Override + public void initialize(URL url, ResourceBundle rb) { + // TODO + } + +} diff --git a/src/padler/LoginDesign.css b/src/padler/LoginDesign.css new file mode 100644 index 0000000..efe8aa6 --- /dev/null +++ b/src/padler/LoginDesign.css @@ -0,0 +1,54 @@ +/* +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. +*/ +/* + Created on : 28 mai 2023, 03:47:32 + Author : Esprit +*/ +.left-form{ + -fx-background-color:linear-gradient(to bottom right, #272b3f, #256b51); + -fx-border-color:#000; + -fx-border-width:.4px 0px .4px .4px; +} +.right-form{ + -fx-background-color:#fff; + -fx-border-color:#000; + -fx-border-width:.4px .4px .4px 0px; +} + +.close{ + -fx-background-color:transparent; + -fx-cursor:hand; +} +.close:hover{ + -fx-background-color:#ff3547; +} +.textfield{ + -fx-background-color:linear-gradient(to bottom, #efefef, #eee); + -fx-background-radius:4px; + -fx-border-color:#000; + -fx-border-width:.4px; + -fx-border-radius:4px; + -fx-font-size:13px; + -fx-font-family:"Arial"; + +} +.textfield:focused{ + -fx-background-color:#fff; + -fx-border-color:linear-gradient(to bottom right, #272b3f, #256b51); + -fx-border-width:.8px; +} + +.login-btn{ + -fx-background-color:linear-gradient(to bottom, #278f96,#2d645f); + -fx-background-radius:5px; + -fx-text-fill:#fff; + -fx-font-size:14px; + -fx-font-family:"Arial"; + -fx-cursor:hand; +} +.login-btn:hover{ + -fx-background-color:linear-gradient(to bottom, #21a7ae,#368981); +} \ No newline at end of file diff --git a/src/padler/Padler.java b/src/padler/Padler.java new file mode 100644 index 0000000..f1c991c --- /dev/null +++ b/src/padler/Padler.java @@ -0,0 +1,65 @@ +/* + * 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 padler; + +import javafx.scene.input.MouseEvent; +import javafx.application.Application; +import javafx.fxml.FXMLLoader; +import javafx.scene.Parent; +import javafx.scene.Scene; +import javafx.stage.Stage; +import javafx.stage.StageStyle; + + +/** + * + * @author Esprit + */ +public class Padler extends Application { + + private double x = 0; + private double y = 0; + + @Override + public void start(Stage stage) throws Exception { + Parent root = FXMLLoader.load(getClass().getResource("FXMLDocument.fxml")); + + + Scene scene = new Scene(root); + + root.setOnMousePressed((MouseEvent event) ->{ + x = event.getSceneX(); + y = event.getSceneY(); + }); + + root.setOnMouseDragged((MouseEvent event) ->{ + stage.setX(event.getScreenX() - x); + stage.setY(event.getScreenY() - y); + + stage.setOpacity(.8); + }); + + root.setOnMouseReleased((MouseEvent event) ->{ + stage.setOpacity(1); + }); + + stage.initStyle(StageStyle.TRANSPARENT); + + stage.setScene(scene); + stage.show(); + } + + + + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + launch(args); + } + +} diff --git a/src/padler/dashboard.fxml b/src/padler/dashboard.fxml new file mode 100644 index 0000000..0c17074 --- /dev/null +++ b/src/padler/dashboard.fxml @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+
+
+
+
+
diff --git a/src/padler/database.java b/src/padler/database.java new file mode 100644 index 0000000..76f3258 --- /dev/null +++ b/src/padler/database.java @@ -0,0 +1,29 @@ +/* + * 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 padler; + + +import java.sql.Connection; +import java.sql.DriverManager; + + +/** + * + * @author Esprit + */ +public class database { + public static Connection connectDb(){ + + try{ + + Class.forName("com.mysql.jdbc.Driver"); + + Connection connect = DriverManager.getConnection("jdbc:mysql://localhost/padeler", "root", ""); + return connect; + }catch(Exception e){e.printStackTrace();} + return null; + } +} diff --git a/src/service/ClubService.java b/src/service/ClubService.java deleted file mode 100644 index c56963c..0000000 --- a/src/service/ClubService.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * 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 service; - -import entite.Club; -import java.sql.Connection; -import java.sql.PreparedStatement; -import java.sql.SQLException; -import java.sql.Statement; -import java.sql.ResultSet; -import java.util.ArrayList; - -import java.util.List; -import java.util.logging.Level; -import java.util.logging.Logger; -import utils.DataSource; - -/** - * - * @author oussama.hadjahmed - */ -public class ClubService implements Iservice { - - private Connection connexion; - private Statement ste; - private PreparedStatement pst; - private ResultSet rs; - - public ClubService() { - connexion = DataSource.getInstance().getCnx(); - - } - - @Override - public void insert(Club c) { - String requete = "insert into Club (name,adresse) values('" + c.getName() + "','" + c.getAdresse() + "')"; - - try { - ste = connexion.createStatement(); - ste.executeUpdate(requete); - } catch (SQLException ex) { - Logger.getLogger(ClubService.class.getName()).log(Level.SEVERE, null, ex); - } - - } - - @Override - public List readAll() { - String requete = "select * from club"; - List list = new ArrayList<>(); - try { - ste = connexion.createStatement(); - rs = ste.executeQuery(requete); - while (rs.next()) { - Club c = new Club(rs.getInt("idClub"), rs.getString("name"), rs.getString("adresse")); - list.add(c); - } - } catch (SQLException ex) { - Logger.getLogger(ClubService.class.getName()).log(Level.SEVERE, null, ex); - } - return list; - } - - @Override - public Club readById(int id) { - Club c = new Club(); - - try { - - String requete = "SELECT * FROM club WHERE idClub=" + Integer.toString(id); - pst = connexion.prepareStatement(requete); - rs = pst.executeQuery(requete); - - while (rs.next()) { - c.setIdClub(rs.getInt("idClub")); - c.setName(rs.getString("name")); - c.setAdresse(rs.getString("adresse")); - } - } catch (SQLException ex) { - Logger.getLogger(ClubService.class.getName()).log(Level.SEVERE, null, ex); - } - return c; - } - - @Override - public void delete(int id) { - try { - String requete = "DELETE FROM club WHERE idClub = ?"; - pst = connexion.prepareStatement(requete); - pst.setInt(1, id); - int rowsDeleted = pst.executeUpdate(); - if (rowsDeleted > 0) { - System.out.println("Le club avec l'ID " + id + " a été supprimé avec succès."); - } else { - System.out.println("Aucun club trouvé avec l'ID " + id + ". La suppression a échoué."); - } - - } catch (SQLException ex) { - Logger.getLogger(ClubService.class.getName()).log(Level.SEVERE, null, ex); - } - - } - - @Override - public void update(Club t) { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - -} diff --git a/src/service/DiponibiliteTerrainService.java b/src/service/DiponibiliteTerrainService.java deleted file mode 100644 index 3ce8fa9..0000000 --- a/src/service/DiponibiliteTerrainService.java +++ /dev/null @@ -1,14 +0,0 @@ -/* - * 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 service; - -/** - * - * @author oussama.hadjahmed - */ -public class DiponibiliteTerrainService { - -} diff --git a/src/service/Iservice.java b/src/service/Iservice.java deleted file mode 100644 index 57b933b..0000000 --- a/src/service/Iservice.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * 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 service; - -import java.util.List; - -/** - * - * @author wiemhjiri - */ -public interface Iservice { - void insert(T t); - List readAll(); - T readById(int id); - void delete(int id); - void update(T t); - -} diff --git a/src/service/TerrainService.java b/src/service/TerrainService.java deleted file mode 100644 index ff98a4c..0000000 --- a/src/service/TerrainService.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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 service; - -import entite.Club; -import entite.Terrain; -import java.sql.Connection; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Statement; -import java.util.ArrayList; -import java.util.List; -import java.util.logging.Level; -import java.util.logging.Logger; -import utils.DataSource; - -/** - * - * @author oussama.hadjahmed - */ -public class TerrainService implements Iservice { - - private Connection connexion; - private Statement ste; - private PreparedStatement pst; - private ResultSet rs; - - public TerrainService() { - connexion = DataSource.getInstance().getCnx(); - } - - @Override - public void insert(Terrain t) { - String requete = "insert into Terrain (name,status,idClub) values('" + t.getName() + "','" + t.getStatus() + "','" + t.getClub().getIdClub() + "')"; - - try { - ste = connexion.createStatement(); - ste.executeUpdate(requete); - } catch (SQLException ex) { - Logger.getLogger(TerrainService.class.getName()).log(Level.SEVERE, null, ex); - } - } - - @Override - public List readAll() { - String requete = "select * from terrain"; - List list = new ArrayList<>(); - try { - ste = connexion.createStatement(); - rs = ste.executeQuery(requete); - while (rs.next()) { - Club c = new Club(); - c.setIdClub(rs.getInt("idClub")); - Terrain terrain = new Terrain(rs.getInt("idTerrain"), rs.getString("name"), rs.getInt("status"), c); - list.add(terrain); - } - } catch (SQLException ex) { - Logger.getLogger(TerrainService.class.getName()).log(Level.SEVERE, null, ex); - } - return list; - } - - @Override - public Terrain readById(int id) { - Terrain t = new Terrain(); - - try { - - String requete = "SELECT * FROM terrain WHERE idTerrain=" + Integer.toString(id); - pst = connexion.prepareStatement(requete); - rs = pst.executeQuery(requete); - - while (rs.next()) { - t.setIdTerrain(rs.getInt("idTerrain")); - t.setName(rs.getString("name")); - t.setStatus(rs.getInt("status")); - Club c = new Club(); - c.setIdClub(rs.getInt("idClub")); - t.setClub(c); - } - } catch (SQLException ex) { - Logger.getLogger(TerrainService.class.getName()).log(Level.SEVERE, null, ex); - } - return t; - } - - @Override - public void delete(int id) { - try { - String requete = "DELETE FROM terrain WHERE idTerrain = ?"; - pst = connexion.prepareStatement(requete); - pst.setInt(1, id); - int rowsDeleted = pst.executeUpdate(); - if (rowsDeleted > 0) { - System.out.println("Le Terrain avec l'ID " + id + " a été supprimé avec succès."); - } else { - System.out.println("Aucun Terrain trouvé avec l'ID " + id + ". La suppression a échoué."); - } - - } catch (SQLException ex) { - Logger.getLogger(TerrainService.class.getName()).log(Level.SEVERE, null, ex); - } - } - - @Override - public void update(Terrain t) { - throw new UnsupportedOperationException("Not supporlkosdnvkjndfkjnvdkjfnvkjdfnted yet."); //To change body of generated methods, choose Tools | Templates. - } - -} diff --git a/src/utils/DataSource.java b/src/utils/DataSource.java deleted file mode 100644 index 8b67311..0000000 --- a/src/utils/DataSource.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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 utils; - -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.SQLException; -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * - * @author wiemhjiri - */ -public class DataSource { - //port : 3306 - private String url="jdbc:mysql://localhost/padeler"; - private String username="root"; - private String password=""; - - private Connection cnx; - - private static DataSource instance; - - private DataSource() { - try { - cnx=DriverManager.getConnection(url, username, password); - System.out.println("Connexion etablie"); - } catch (SQLException ex) { - Logger.getLogger(DataSource.class.getName()).log(Level.SEVERE, null, ex); - } - } - - public static DataSource getInstance(){ - if(instance==null) - instance=new DataSource(); - return instance; - } - - public Connection getCnx() { - return cnx; - } - - - - - - - -} From c51921174a6928613160814915d13b54575d01fe Mon Sep 17 00:00:00 2001 From: SkanderWS1 Date: Mon, 29 May 2023 02:50:02 +0200 Subject: [PATCH 3/5] commit 2805 v2 --- build/classes/padler/DashboardDesign.css | 182 +++++++++++++++++++ nbproject/private/private.xml | 8 +- src/padler/DashboardDesign.css | 182 +++++++++++++++++++ src/padler/dashboard.fxml | 219 ++++++++++++++++++++--- 4 files changed, 564 insertions(+), 27 deletions(-) create mode 100644 build/classes/padler/DashboardDesign.css create mode 100644 src/padler/DashboardDesign.css diff --git a/build/classes/padler/DashboardDesign.css b/build/classes/padler/DashboardDesign.css new file mode 100644 index 0000000..665b832 --- /dev/null +++ b/build/classes/padler/DashboardDesign.css @@ -0,0 +1,182 @@ +/* +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. +*/ +/* + Created on : 29 mai 2023, 00:20:08 + Author : Esprit +*/ + +.top-form{ + -fx-background-color:#fff; + -fx-border-color:#000; + -fx-border-width:.4px .4px .2px .4px; +} + +.semi-top-form{ + -fx-background-color:#efefef; + -fx-border-color:#000; + -fx-border-width:.2px .4px .8px .4px; +} + +.close{ + -fx-background-color:transparent; + -fx-cursor:hand; +} +.close:hover{ + -fx-background-color:#ff3547; +} + +.minimize{ + -fx-background-color:transparent; + -fx-cursor:hand; +} +.minimize:hover{ + -fx-background-color:#ddd; +} + +.nav-form{ + -fx-background-color:linear-gradient(to bottom right, #272b3f, #256b51); +} + +.nav-btn{ + -fx-background-color:transparent; + -fx-cursor:hand; + -fx-font-family:"Arial"; + -fx-font-size:14px; + -fx-text-fill:#fff; + -fx-alignment:CENTER-LEFT; +} + +.logout{ + -fx-background-color:#6ae8b8; + -fx-background-radius:10px; + -fx-cursor:hand; +} +.logout:hover{ + -fx-background-color:#18a383; +} + +.shadow{ + -fx-effect:dropshadow(three-pass-box, rgba(0,0,0,0.5), 6,0,0,0); +} + +.white-bg{ + -fx-background-color:#fff; + -fx-background-radius:8px; +} + +.card{ + -fx-background-color:linear-gradient(to right, #2b303c, #525968); + -fx-background-radius:5px; +} + +.table-view{ + -fx-background-color:transparent; + -fx-border-color:linear-gradient(to bottom right, #272b3f, #256b51); + -fx-border-radius:8px; + -fx-padding:0px; +} +.table-view .table-column{ + -fx-alignment:CENTER; +} +.table-view .column-header-background{ + -fx-background-color:linear-gradient(to bottom right, #272b3f, #256b51); + -fx-background-insets: 0 0 0 0; + -f-background-radius:8px 8px 0px 0px; +} +.table-view .column-header, .filter{ + -fx-background-color: transparent; + -fx-size:40px; +} +.table-view .column-header .label{ + -fx-text-fill:#fff; + -fx-font-family:"Arial"; +} + +.textfield{ + -fx-background-color:linear-gradient(to bottom, #efefef, #eee); + -fx-border-color:linear-gradient(to bottom right, #272b3f, #256b51); + -fx-border-width:.8px; + -fx-font-family:"Tahoma"; + -fx-border-radius:4px; +} +.textfield:focused{ + -fx-border-width:1.8px; + -fx-background-color:#fff; +} + +.search{ + -fx-background-color:transparent; + -fx-border-color:linear-gradient(to bottom right, #272b3f, #256b51); + -fx-border-radius:5px; + -fx-font-size:13px; + -fx-font-family:"Arial"; + -fx-border-width:1px; + -fx-padding:0px 0px 0px 28px; +} +.search:focused{ + -fx-border-width:2px; +} + +.import-btn{ + -fx-background-color:#ddd; + -fx-text-fill:red; + -fx-cursor:hand; +} + +.add-btn{ + -fx-background-color:#304575; + -fx-background-radius:8px; + -fx-text-fill:#fff; + -fx-font-size:14px; + -fx-font-family:"Arial"; + -fx-cursor:hand; +} +.add-btn:hover{ + -fx-background-color:#3357a4; +} + +.update-btn{ + -fx-background-color:#327252; + -fx-background-radius:8px; + -fx-text-fill:#fff; + -fx-font-size:14px; + -fx-font-family:"Arial"; + -fx-cursor:hand; +} +.update-btn:hover{ + -fx-background-color:#309a65; +} + +.delete-btn{ + -fx-background-color:#86253f; + -fx-background-radius:8px; + -fx-text-fill:#fff; + -fx-font-size:14px; + -fx-font-family:"Arial"; + -fx-cursor:hand; +} +.delete-btn:hover{ + -fx-background-color:#ae1d46; +} + +.clear-btn{ + -fx-background-color:#753566; + -fx-background-radius:8px; + -fx-text-fill:#fff; + -fx-font-size:14px; + -fx-font-family:"Arial"; + -fx-cursor:hand; +} +.clear-btn:hover{ + -fx-background-color:#9d3485; +} + +.label-info{ + -fx-background-color:transparent; + -fx-border-color:linear-gradient(to bottom right, #272b3f, #256b51); + -fx-border-radius:4px; + -fx-padding:0px 0px 0px 8px; +} diff --git a/nbproject/private/private.xml b/nbproject/private/private.xml index 90adf7d..6807a2b 100644 --- a/nbproject/private/private.xml +++ b/nbproject/private/private.xml @@ -2,12 +2,6 @@ - - file:/C:/Users/oussama.hadjahmed/Desktop/ESPRIT/padelerProject/src/utils/DataSource.java - file:/C:/Users/oussama.hadjahmed/Desktop/ESPRIT/padelerProject/src/Padeler/Test.java - file:/C:/Users/oussama.hadjahmed/Desktop/ESPRIT/padelerProject/src/service/ClubService.java - file:/C:/Users/oussama.hadjahmed/Desktop/ESPRIT/padelerProject/src/entite/Terrain.java - file:/C:/Users/oussama.hadjahmed/Desktop/ESPRIT/padelerProject/src/entite/Club.java - + diff --git a/src/padler/DashboardDesign.css b/src/padler/DashboardDesign.css new file mode 100644 index 0000000..665b832 --- /dev/null +++ b/src/padler/DashboardDesign.css @@ -0,0 +1,182 @@ +/* +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. +*/ +/* + Created on : 29 mai 2023, 00:20:08 + Author : Esprit +*/ + +.top-form{ + -fx-background-color:#fff; + -fx-border-color:#000; + -fx-border-width:.4px .4px .2px .4px; +} + +.semi-top-form{ + -fx-background-color:#efefef; + -fx-border-color:#000; + -fx-border-width:.2px .4px .8px .4px; +} + +.close{ + -fx-background-color:transparent; + -fx-cursor:hand; +} +.close:hover{ + -fx-background-color:#ff3547; +} + +.minimize{ + -fx-background-color:transparent; + -fx-cursor:hand; +} +.minimize:hover{ + -fx-background-color:#ddd; +} + +.nav-form{ + -fx-background-color:linear-gradient(to bottom right, #272b3f, #256b51); +} + +.nav-btn{ + -fx-background-color:transparent; + -fx-cursor:hand; + -fx-font-family:"Arial"; + -fx-font-size:14px; + -fx-text-fill:#fff; + -fx-alignment:CENTER-LEFT; +} + +.logout{ + -fx-background-color:#6ae8b8; + -fx-background-radius:10px; + -fx-cursor:hand; +} +.logout:hover{ + -fx-background-color:#18a383; +} + +.shadow{ + -fx-effect:dropshadow(three-pass-box, rgba(0,0,0,0.5), 6,0,0,0); +} + +.white-bg{ + -fx-background-color:#fff; + -fx-background-radius:8px; +} + +.card{ + -fx-background-color:linear-gradient(to right, #2b303c, #525968); + -fx-background-radius:5px; +} + +.table-view{ + -fx-background-color:transparent; + -fx-border-color:linear-gradient(to bottom right, #272b3f, #256b51); + -fx-border-radius:8px; + -fx-padding:0px; +} +.table-view .table-column{ + -fx-alignment:CENTER; +} +.table-view .column-header-background{ + -fx-background-color:linear-gradient(to bottom right, #272b3f, #256b51); + -fx-background-insets: 0 0 0 0; + -f-background-radius:8px 8px 0px 0px; +} +.table-view .column-header, .filter{ + -fx-background-color: transparent; + -fx-size:40px; +} +.table-view .column-header .label{ + -fx-text-fill:#fff; + -fx-font-family:"Arial"; +} + +.textfield{ + -fx-background-color:linear-gradient(to bottom, #efefef, #eee); + -fx-border-color:linear-gradient(to bottom right, #272b3f, #256b51); + -fx-border-width:.8px; + -fx-font-family:"Tahoma"; + -fx-border-radius:4px; +} +.textfield:focused{ + -fx-border-width:1.8px; + -fx-background-color:#fff; +} + +.search{ + -fx-background-color:transparent; + -fx-border-color:linear-gradient(to bottom right, #272b3f, #256b51); + -fx-border-radius:5px; + -fx-font-size:13px; + -fx-font-family:"Arial"; + -fx-border-width:1px; + -fx-padding:0px 0px 0px 28px; +} +.search:focused{ + -fx-border-width:2px; +} + +.import-btn{ + -fx-background-color:#ddd; + -fx-text-fill:red; + -fx-cursor:hand; +} + +.add-btn{ + -fx-background-color:#304575; + -fx-background-radius:8px; + -fx-text-fill:#fff; + -fx-font-size:14px; + -fx-font-family:"Arial"; + -fx-cursor:hand; +} +.add-btn:hover{ + -fx-background-color:#3357a4; +} + +.update-btn{ + -fx-background-color:#327252; + -fx-background-radius:8px; + -fx-text-fill:#fff; + -fx-font-size:14px; + -fx-font-family:"Arial"; + -fx-cursor:hand; +} +.update-btn:hover{ + -fx-background-color:#309a65; +} + +.delete-btn{ + -fx-background-color:#86253f; + -fx-background-radius:8px; + -fx-text-fill:#fff; + -fx-font-size:14px; + -fx-font-family:"Arial"; + -fx-cursor:hand; +} +.delete-btn:hover{ + -fx-background-color:#ae1d46; +} + +.clear-btn{ + -fx-background-color:#753566; + -fx-background-radius:8px; + -fx-text-fill:#fff; + -fx-font-size:14px; + -fx-font-family:"Arial"; + -fx-cursor:hand; +} +.clear-btn:hover{ + -fx-background-color:#9d3485; +} + +.label-info{ + -fx-background-color:transparent; + -fx-border-color:linear-gradient(to bottom right, #272b3f, #256b51); + -fx-border-radius:4px; + -fx-padding:0px 0px 0px 8px; +} diff --git a/src/padler/dashboard.fxml b/src/padler/dashboard.fxml index 0c17074..3e72625 100644 --- a/src/padler/dashboard.fxml +++ b/src/padler/dashboard.fxml @@ -1,24 +1,32 @@ + + + + + + + + + - - + - + - - - - - -