letsql='SELECT DISTINCT SUM(s.amount) as total,s.year,s.month FROM sales s,customers cu,contacts co WHERE co.iduser = 41 AND co.idcustomer = cu.idcustomer AND cu.idcustomer = s.idcustomer AND ((s.month >= 12 AND s.year = 2021) OR s.year > 2021) GROUP BY s.year,s.month ORDER BY s.year,s.month';
letsql='SELECT DISTINCT SUM(s.amount) as total,s.year,s.month FROM sales s,customers cu,contacts co WHERE co.iduser = ? AND co.idcustomer = cu.idcustomer AND cu.idcustomer = s.idcustomer AND ((s.month >= ? AND s.year = ?) OR s.year > ?) GROUP BY s.year,s.month ORDER BY s.year,s.month';
letsql='SELECT c.idcontact,c.firstname,c.lastname,cu.name FROM contacts c,customers cu WHERE cu.idcustomer = c.idcustomer AND c.iduser = ?';
letsql='SELECT c.idcontact,c.firstname,c.lastname, c.phone, c.mail ,cu.name FROM contacts c,customers cu WHERE cu.idcustomer = c.idcustomer AND c.iduser = ?';
<inputclassName="ajout_input"type="text"placeholder="Ajoutez un titre"style={{height:"20px",width:"100%",marginRight:"10px"}}
<inputclassName="ajout_input"type="text"placeholder="Ajoutez un titre"style={{height:"20px",marginRight:"10px",marginLeft:"10px",marginBottom:"10px"}}
onChange={(e)=>setTitre(e.target.value)}/>
<inputclassName='date'type="date"placeholder="Ajoutez un jour"style={{height:"20px",width:"100%",marginRight:"10px"}}
<inputclassName='date'type="date"placeholder="Ajoutez un jour"style={{height:"70%",width:"90%",marginRight:"10px",marginLeft:"10px",marginBottom:"10px",borderRadius:"10px"}}
onChange={(e)=>setJour(e.target.value)}/>
<inputclassName='date'type="time"placeholder="Ajoutez une heure de début"style={{height:"20px",width:"100%",marginRight:"10px"}}
<inputclassName='date'type="time"placeholder="Ajoutez une heure de début"style={{height:"70%",width:"90%",marginRight:"10px",marginLeft:"10px",marginBottom:"10px",borderRadius:"10px"}}
onChange={(e)=>setHeureDebut(e.target.value)}/>
<inputclassName='date'type="time"placeholder="Ajoutez une heure de fin"style={{height:"20px",width:"100%",marginRight:"10px"}}
<inputclassName='date'type="time"placeholder="Ajoutez une heure de fin"style={{height:"70%",width:"90%",marginRight:"10px",marginLeft:"10px",marginBottom:"10px",borderRadius:"10px"}}
{data12.length!=0?(data12[8].total+data12[9].total+data12[10].total)/3>data12[11].total?<div>Lechiffred'affaire de ce mois est en baisse </div> : <div>Le chiffre d'affairedecemoisestenhausse</div>:<div></div>}