diff --git a/src/components/ButtonHilight.js b/src/components/ButtonHilight.js
index 6bd6348..b13cb2f 100644
--- a/src/components/ButtonHilight.js
+++ b/src/components/ButtonHilight.js
@@ -21,6 +21,8 @@ import DialogActions from '@mui/material/DialogActions';
import DialogContent from '@mui/material/DialogContent';
import DialogContentText from '@mui/material/DialogContentText';
import DialogTitle from '@mui/material/DialogTitle';
+import { format } from 'date-fns'
+import moment from "moment";
const ButtonHilight = () => {
const history = useHistory();
@@ -47,7 +49,7 @@ const ButtonHilight = () => {
const [userconnected, setuserconnected] = useState("0");
const [someoneconnected, setsomeoneconnected] = useState("0");
const [partnerconnected, setpartnerconnected] = useState("0");
- var stored_user = getCookie('tokenmysych');
+ var stored_user = getCookie('tokenmysych');
var stored_part = getCookie('tokenmysypart');
function whosisconnected() {
@@ -55,7 +57,7 @@ const ButtonHilight = () => {
stored_user = getCookie('tokenmysych');
stored_part = getCookie('tokenmysypart');
-
+
var local_user_connect = 0;
var local_part_connect = 0;
@@ -71,7 +73,7 @@ const ButtonHilight = () => {
}
if (typeof (stored_part) === "undefined" || String(stored_part) === '') {
-
+
setpartnerconnected("0");
setsomeoneconnected("0");
local_part_connect = 0;
@@ -84,7 +86,7 @@ const ButtonHilight = () => {
}
useEffect(() => {
-
+
whosisconnected();
@@ -280,6 +282,11 @@ const ButtonHilight = () => {
}
+ function resserver_demo() {
+ history.push("/Partner", { mysy_arg: 'partner' });
+ }
+
+
const handleBlogMenu = (event) => {
history.push("/Recherche-Article-formation")
};
@@ -473,10 +480,20 @@ const ButtonHilight = () => {
Qui Sommes nous ?
- {/*
- publier mes formations
-
*/}
+ { {
+ // console.log(" oooooo ")
+ e.preventDefault();
+ var date2 = new Date();
+ const format2 = "YYYY-MM";
+ var dateTime2 = moment(date2).format(format2);
+ window.open(
+ "https://calendly.com/mysytraining/demo-mysy-training-solution?month=" + String(dateTime2),
+ '_blank'
+ );
+ }}
+ style={{ "background": "#53B7EB", "borderRadius": "5px", "paddingLeft": "3px", "paddingRight": "3px" }}>
+ Resa. Demo ?
+
}
diff --git a/src/components/Header.js b/src/components/Header.js
index 991dd94..522fa96 100644
--- a/src/components/Header.js
+++ b/src/components/Header.js
@@ -7,7 +7,8 @@ import bannerimg from "../mysy_img/MYSY_banner_compte.png";
import { useHistory } from "react-router-dom";
import { getCookie, removeCookie } from 'react-use-cookie';
import { useCookies } from "react-cookie";
-
+import { format } from 'date-fns'
+import moment from "moment";
import connect_white from "../mysy_img/connect_white_v2.png";
import connect_green from "../mysy_img/connect_green.png";
import Dialog from '@mui/material/Dialog';
@@ -432,9 +433,18 @@ const Header = () => {
*/}
-
- publier mes formations
+
{
+ e.preventDefault();
+ var date2 = new Date();
+ const format2 = "YYYY-MM";
+ var dateTime2 = moment(date2).format(format2);
+ window.open(
+ "https://calendly.com/mysytraining/demo-mysy-training-solution?month=" + String(dateTime2),
+ '_blank'
+ );
+ }}
+ style={{ "background": "#53B7EB", "borderRadius": "5px", "paddingLeft": "3px", "paddingRight": "3px" }}>
+ Reserver une Demo
diff --git a/src/components/RechercheArticles.js b/src/components/RechercheArticles.js
index 2ebc5a6..00fedcc 100644
--- a/src/components/RechercheArticles.js
+++ b/src/components/RechercheArticles.js
@@ -3,7 +3,8 @@ import { useForm } from "react-hook-form";
import axios from "axios";
import Articles from "../components/Article";
import { FaSearch, FaRegArrowAltCircleDown, FaRegArrowAltCircleUp } from 'react-icons/fa';
-
+import { format } from 'date-fns'
+import moment from "moment";
import Pagination from "./TestPagination";
import data from "./data/mock-data.json";
import { useHistory } from "react-router-dom";
@@ -155,15 +156,15 @@ const RechercheArticles = (props) => {
var myurl = ""
- /* if (document.getElementById("allelement").checked !== true &&
- document.getElementById("SearchText").disabled !== true) {
- //alert(" recherche classique laaa ");
- myurl = process.env.REACT_APP_API_URL + "myclass/api/recherche_articles_avis/";
- }
- else if (document.getElementById("allelement").checked === true &&
- document.getElementById("SearchText").disabled === true) {
- myurl = process.env.REACT_APP_API_URL + "myclass/api/get_all_articles_avis/";
- }*/
+ /* if (document.getElementById("allelement").checked !== true &&
+ document.getElementById("SearchText").disabled !== true) {
+ //alert(" recherche classique laaa ");
+ myurl = process.env.REACT_APP_API_URL + "myclass/api/recherche_articles_avis/";
+ }
+ else if (document.getElementById("allelement").checked === true &&
+ document.getElementById("SearchText").disabled === true) {
+ myurl = process.env.REACT_APP_API_URL + "myclass/api/get_all_articles_avis/";
+ }*/
myurl = process.env.REACT_APP_API_URL + "myclass/api/get_all_articles_avis/";
axios.post(myurl, form).then(res => {
@@ -208,7 +209,7 @@ const RechercheArticles = (props) => {
setdisplayAllClasses("true");
async function chloadfunction() {
document.getElementById("allelement").checked = true;
- // document.getElementById("SearchText").disabled = true;
+ // document.getElementById("SearchText").disabled = true;
}
@@ -378,8 +379,8 @@ const RechercheArticles = (props) => {
if (typeof (stored_part) != "undefined") {
const stored_cookie = getCookie('tokenmysypart');
- var acces_right_token_name = stored_cookie+"_uar";
-
+ var acces_right_token_name = stored_cookie + "_uar";
+
setpartCookie("tokenmysypart", "", { path: '/' });
setpartCookie(acces_right_token_name, "", { path: '/' });
@@ -426,10 +427,10 @@ const RechercheArticles = (props) => {
setproduitMenu(null);
};
- function publiecatalogue(){
- history.push("/Partner", {mysy_arg:'partner'});
+ function publiecatalogue() {
+ history.push("/Partner", { mysy_arg: 'partner' });
}
-
+
const handleFtionMenu = (event) => {
history.push("/")
};
@@ -483,7 +484,7 @@ const RechercheArticles = (props) => {
-
+
@@ -519,7 +520,7 @@ const RechercheArticles = (props) => {
}
- Qui Sommes nous ?
+ Qui Sommes nous ?
@@ -527,13 +528,22 @@ const RechercheArticles = (props) => {
- Les formations
+ Les formations
-
- publier mes formations
+
{
+ e.preventDefault();
+ var date2 = new Date();
+ const format2 = "YYYY-MM";
+ var dateTime2 = moment(date2).format(format2);
+ window.open(
+ "https://calendly.com/mysytraining/demo-mysy-training-solution?month=" + String(dateTime2),
+ '_blank'
+ );
+ }}
+ style={{ "background": "red", "borderRadius": "5px", "paddingLeft": "3px", "paddingRight": "3px" }}>
+ Reserver une Demo
@@ -547,7 +557,7 @@ const RechercheArticles = (props) => {