02/02/23 - 22h
parent
eebbf59a98
commit
745fd4e2c8
|
@ -117,7 +117,7 @@ function Abonnement(props) {
|
||||||
})
|
})
|
||||||
.then((data) => data.json())
|
.then((data) => data.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
console.log('Success:', data['message'], "data['status'] = ", data['status']);
|
//console.log('Success:', data['message'], "data['status'] = ", data['status']);
|
||||||
setTableData(data['message']);
|
setTableData(data['message']);
|
||||||
setRows(data['message']);
|
setRows(data['message']);
|
||||||
if (String(data['status']) === String("false")) {
|
if (String(data['status']) === String("false")) {
|
||||||
|
@ -297,7 +297,7 @@ function Abonnement(props) {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
|
|
||||||
setRecordData_api(result['status']);
|
setRecordData_api(result['status']);
|
||||||
setmyApiResponse(result['status']);
|
setmyApiResponse(result['status']);
|
||||||
|
@ -583,8 +583,8 @@ function Abonnement(props) {
|
||||||
.then((data) => data.json())
|
.then((data) => data.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
|
|
||||||
console.log(" In getCurrentUserData res.data.status = " + data.status);
|
//console.log(" In getCurrentUserData res.data.status = " + data.status);
|
||||||
console.log(" In getCurrentUserData res.data.message = " + data.message);
|
//console.log(" In getCurrentUserData res.data.message = " + data.message);
|
||||||
|
|
||||||
if (String(data['status']) === String("false")) {
|
if (String(data['status']) === String("false")) {
|
||||||
|
|
||||||
|
|
|
@ -92,8 +92,8 @@ function Account() {
|
||||||
|
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
if (res.data.status != "False") {
|
if (res.data.status != "False") {
|
||||||
console.log(" getImage : In test res.data.status = " + res.data.status);
|
//console.log(" getImage : In test res.data.status = " + res.data.status);
|
||||||
console.log(" getImage: res.data.message.img = " + res.data.message);
|
//console.log(" getImage: res.data.message.img = " + res.data.message);
|
||||||
if (res.data.message.img.length > 0) {
|
if (res.data.message.img.length > 0) {
|
||||||
setisimage("True");
|
setisimage("True");
|
||||||
}
|
}
|
||||||
|
@ -174,8 +174,8 @@ function Account() {
|
||||||
|
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
if (String(res.data.status) === String("true")) {
|
if (String(res.data.status) === String("true")) {
|
||||||
console.log(" In GetUserNameFromToken res.data.status = " + res.data.status);
|
//console.log(" In GetUserNameFromToken res.data.status = " + res.data.status);
|
||||||
console.log(" In GetUserNameFromToken res.data.message = " + res.data.message);
|
//console.log(" In GetUserNameFromToken res.data.message = " + res.data.message);
|
||||||
setusername(JSON.parse(res.data.message).email);
|
setusername(JSON.parse(res.data.message).email);
|
||||||
if (JSON.parse(res.data.message).migrated &&
|
if (JSON.parse(res.data.message).migrated &&
|
||||||
String(JSON.parse(res.data.message).migrated) === String("1")) {
|
String(JSON.parse(res.data.message).migrated) === String("1")) {
|
||||||
|
@ -186,8 +186,8 @@ function Account() {
|
||||||
//setmyApimyApiMessage("OK")
|
//setmyApimyApiMessage("OK")
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log(" In GetUserNameFromToken res.data.status = " + res.data.status);
|
//console.log(" In GetUserNameFromToken res.data.status = " + res.data.status);
|
||||||
console.log(" In GetUserNameFromToken res.data.message = " + res.data.message);
|
//console.log(" In GetUserNameFromToken res.data.message = " + res.data.message);
|
||||||
//setmyApiResponse("false");
|
//setmyApiResponse("false");
|
||||||
//setmyApimyApiMessage("")
|
//setmyApimyApiMessage("")
|
||||||
}
|
}
|
||||||
|
@ -298,7 +298,7 @@ function Account() {
|
||||||
}
|
}
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message']);
|
//console.log('Success:', result['message']);
|
||||||
setIsSelected(false);
|
setIsSelected(false);
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -108,7 +108,7 @@ const AddClassManual = (props) => {
|
||||||
|
|
||||||
const handleSubmit = (event) => {
|
const handleSubmit = (event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
console.log(inputs);
|
//console.log(inputs);
|
||||||
|
|
||||||
}
|
}
|
||||||
const presentiel = [
|
const presentiel = [
|
||||||
|
@ -207,7 +207,7 @@ const AddClassManual = (props) => {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
setimportmessage(result['message']);
|
setimportmessage(result['message']);
|
||||||
setmyApiResponse(result['status']);
|
setmyApiResponse(result['status']);
|
||||||
|
|
||||||
|
@ -565,7 +565,21 @@ const AddClassManual = (props) => {
|
||||||
|
|
||||||
|
|
||||||
// Verification si il y a plus de 3 mot clés separés par des ";"
|
// Verification si il y a plus de 3 mot clés separés par des ";"
|
||||||
const words = mots_cle.split(';');
|
mots_cle = mots_cle.replace( /(<([^>]+)>)/ig, '');
|
||||||
|
mots_cle = mots_cle.replace(" ", '');
|
||||||
|
|
||||||
|
|
||||||
|
var local_mot_cle = "";
|
||||||
|
if( mots_cle.endsWith(";")){
|
||||||
|
local_mot_cle = mots_cle.substring(0, mots_cle.length-1);
|
||||||
|
}else{
|
||||||
|
local_mot_cle = mots_cle;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(" ## local_mot_cle = ", local_mot_cle);
|
||||||
|
var words = local_mot_cle.split(';');
|
||||||
|
console.log(" ## words = ", words);
|
||||||
|
|
||||||
if (words.length > 3) {
|
if (words.length > 3) {
|
||||||
alert(" Il a plus de 3 mots clés. le max autorisé est 3");
|
alert(" Il a plus de 3 mots clés. le max autorisé est 3");
|
||||||
return;
|
return;
|
||||||
|
@ -646,7 +660,7 @@ const AddClassManual = (props) => {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
setimportmessage(result['message']);
|
setimportmessage(result['message']);
|
||||||
setmyApiResponse(result['status']);
|
setmyApiResponse(result['status']);
|
||||||
setdatamodification("0");
|
setdatamodification("0");
|
||||||
|
@ -689,7 +703,7 @@ const AddClassManual = (props) => {
|
||||||
let file_size = event.target.files[0].size;
|
let file_size = event.target.files[0].size;
|
||||||
|
|
||||||
//or if you like to have name and type
|
//or if you like to have name and type
|
||||||
console.log(event.target.files);
|
//console.log(event.target.files);
|
||||||
|
|
||||||
let file_name = event.target.files[0].name;
|
let file_name = event.target.files[0].name;
|
||||||
let file_type = event.target.files[0].type;
|
let file_type = event.target.files[0].type;
|
||||||
|
@ -737,8 +751,8 @@ const AddClassManual = (props) => {
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
|
|
||||||
console.log(' removeRecodedClassImage : status:', result['status']);
|
//console.log(' removeRecodedClassImage : status:', result['status']);
|
||||||
console.log('removeRecodedClassImage : Success:', result['message']);
|
//console.log('removeRecodedClassImage : Success:', result['message']);
|
||||||
|
|
||||||
setisimgclassSelected(false);
|
setisimgclassSelected(false);
|
||||||
|
|
||||||
|
@ -789,8 +803,8 @@ const AddClassManual = (props) => {
|
||||||
}
|
}
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('status:', result['status']);
|
//console.log('status:', result['status']);
|
||||||
console.log('Success:', result['message']);
|
//console.log('Success:', result['message']);
|
||||||
setisimgclassSelected(false);
|
setisimgclassSelected(false);
|
||||||
|
|
||||||
if (String(result['status']) == String("true")) {
|
if (String(result['status']) == String("true")) {
|
||||||
|
@ -821,7 +835,7 @@ const AddClassManual = (props) => {
|
||||||
var class_external_code = props.mytrainingclass['class_external_code'];
|
var class_external_code = props.mytrainingclass['class_external_code'];
|
||||||
|
|
||||||
if (class_external_code.length < 3) {
|
if (class_external_code.length < 3) {
|
||||||
console.log("Le code externe prend au moins 3 caractères");
|
//console.log("Le code externe prend au moins 3 caractères");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -836,8 +850,8 @@ const AddClassManual = (props) => {
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (res.data.status != "False") {
|
if (res.data.status != "False") {
|
||||||
console.log(" getClassImage : In test res.data.status = " + res.data.status);
|
//console.log(" getClassImage : In test res.data.status = " + res.data.status);
|
||||||
console.log(" getClassImage: res.data.message.img = " + res.data.message);
|
//console.log(" getClassImage: res.data.message.img = " + res.data.message);
|
||||||
|
|
||||||
if (res.data.message.img.length > 0) {
|
if (res.data.message.img.length > 0) {
|
||||||
setisclassimage("True");
|
setisclassimage("True");
|
||||||
|
@ -912,7 +926,7 @@ const AddClassManual = (props) => {
|
||||||
fillfield();
|
fillfield();
|
||||||
if (props.mytrainingclass['class_external_code']) {
|
if (props.mytrainingclass['class_external_code']) {
|
||||||
getClassImage();
|
getClassImage();
|
||||||
console.log("props.mytrainingclass['plus_produit'] = " + props.mytrainingclass['plus_produit']);
|
//console.log("props.mytrainingclass['plus_produit'] = " + props.mytrainingclass['plus_produit']);
|
||||||
setplus_produit_enabled(props.mytrainingclass['plus_produit']);
|
setplus_produit_enabled(props.mytrainingclass['plus_produit']);
|
||||||
setmots_cle_enabled(props.mytrainingclass['mots_cle']);
|
setmots_cle_enabled(props.mytrainingclass['mots_cle']);
|
||||||
setzone_diffusion_enabled(props.mytrainingclass['zone_diffusion']);
|
setzone_diffusion_enabled(props.mytrainingclass['zone_diffusion']);
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { Rating } from 'react-simple-star-rating'
|
||||||
|
|
||||||
const Article = (props) => {
|
const Article = (props) => {
|
||||||
const [rating, setRating] = useState(props.article.note * 20)
|
const [rating, setRating] = useState(props.article.note * 20)
|
||||||
console.log(props.article.note * 10);
|
//console.log(props.article.note * 10);
|
||||||
// Catch Rating value
|
// Catch Rating value
|
||||||
|
|
||||||
function handleRating(rate) {
|
function handleRating(rate) {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import parse from 'html-react-parser'
|
||||||
|
|
||||||
const Article = (props) => {
|
const Article = (props) => {
|
||||||
|
|
||||||
console.log({ props });
|
//console.log({ props });
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -380,7 +380,7 @@ function CheckOut(props) {
|
||||||
})
|
})
|
||||||
.then((data) => data.json())
|
.then((data) => data.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
console.log('### GetPayementMode : Success:', data['message'], "data['status'] = ", data['status']);
|
//console.log('### GetPayementMode : Success:', data['message'], "data['status'] = ", data['status']);
|
||||||
|
|
||||||
if (String(data['status']) === String("False") ||
|
if (String(data['status']) === String("False") ||
|
||||||
|
|
||||||
|
@ -497,7 +497,7 @@ function CheckOut(props) {
|
||||||
|
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log('Error:', error.message);
|
//console.log('Error:', error.message);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -784,7 +784,7 @@ function CheckOut(props) {
|
||||||
body: form,
|
body: form,
|
||||||
}).then((data) => data.json())
|
}).then((data) => data.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
console.log(' #### retour myclass/api/create-subscription/ = subscription_id:', data['subscription_id'], ' ### payment_intent_client_secret:', data['payment_intent_client_secret'], "data['Status'] = ", data['status'],);
|
//console.log(' #### retour myclass/api/create-subscription/ = subscription_id:', data['subscription_id'], ' ### payment_intent_client_secret:', data['payment_intent_client_secret'], "data['Status'] = ", data['status'],);
|
||||||
|
|
||||||
if (String(data['status']) === String("true")) {
|
if (String(data['status']) === String("true")) {
|
||||||
//console.log(" subscriptionId = " + subscriptionId + " -- et clientSecret = " + clientSecret);
|
//console.log(" subscriptionId = " + subscriptionId + " -- et clientSecret = " + clientSecret);
|
||||||
|
@ -798,7 +798,7 @@ function CheckOut(props) {
|
||||||
|
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log('Error:', error.message);
|
//console.log('Error:', error.message);
|
||||||
});
|
});
|
||||||
} */
|
} */
|
||||||
}
|
}
|
||||||
|
@ -806,7 +806,7 @@ function CheckOut(props) {
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
|
|
||||||
console.log('Error:', error.message);
|
//console.log('Error:', error.message);
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -880,9 +880,9 @@ function CheckOut(props) {
|
||||||
body: form,
|
body: form,
|
||||||
}).then((data) => data.json())
|
}).then((data) => data.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
console.log(' #### status:', data['status'], ' -- payement_id:',
|
/*console.log(' #### status:', data['status'], ' -- payement_id:',
|
||||||
data['payement_id'], " -- amount_captured = ", data['amount_captured'],
|
data['payement_id'], " -- amount_captured = ", data['amount_captured'],
|
||||||
" secure_url = ", data['secure_url']);
|
" secure_url = ", data['secure_url']);*/
|
||||||
|
|
||||||
if (String(data['status']) === String("true")) {
|
if (String(data['status']) === String("true")) {
|
||||||
setpayement_ok("1");
|
setpayement_ok("1");
|
||||||
|
@ -898,7 +898,7 @@ function CheckOut(props) {
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
|
|
||||||
console.log('Error:', error.message);
|
//console.log('Error:', error.message);
|
||||||
setpayement_ok("0");
|
setpayement_ok("0");
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -944,7 +944,7 @@ function CheckOut(props) {
|
||||||
formData_tpm.append('token', stored_part);
|
formData_tpm.append('token', stored_part);
|
||||||
formData_tpm.append('stripe_payment_id', souscription_id);
|
formData_tpm.append('stripe_payment_id', souscription_id);
|
||||||
|
|
||||||
console.log(" stripe_payment_id = ", souscription_id);
|
//console.log(" stripe_payment_id = ", souscription_id);
|
||||||
alert(" stripe_payment_id = ", souscription_id);
|
alert(" stripe_payment_id = ", souscription_id);
|
||||||
|
|
||||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/payment_retrieve_status/";
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/payment_retrieve_status/";
|
||||||
|
@ -962,7 +962,7 @@ function CheckOut(props) {
|
||||||
|
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log('In CheckSalesOrder ', error);
|
//console.log('In CheckSalesOrder ', error);
|
||||||
setcheck_payement_finalise_order_api("false")
|
setcheck_payement_finalise_order_api("false")
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -334,8 +334,8 @@ const DisplayDetailArticle = (props) => {
|
||||||
|
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
if (res.data.status != "False") {
|
if (res.data.status != "False") {
|
||||||
console.log(" In test res.data.status = " + res.data.status);
|
//console.log(" In test res.data.status = " + res.data.status);
|
||||||
console.log(" In test res.data.message = " + res.data.message);
|
//console.log(" In test res.data.message = " + res.data.message);
|
||||||
if (res.data.message.length > 0) {
|
if (res.data.message.length > 0) {
|
||||||
setmyApicommentResponse("True");
|
setmyApicommentResponse("True");
|
||||||
}
|
}
|
||||||
|
@ -346,8 +346,8 @@ const DisplayDetailArticle = (props) => {
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log(" In Erreur res.data.status = " + res.data.status);
|
//console.log(" In Erreur res.data.status = " + res.data.status);
|
||||||
console.log(" In Erreur res.data.message = " + res.data.message);
|
//console.log(" In Erreur res.data.message = " + res.data.message);
|
||||||
setmyApicommentResponse("False");
|
setmyApicommentResponse("False");
|
||||||
}
|
}
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
|
|
|
@ -256,7 +256,7 @@ const DisplayDetailClass = (props) => {
|
||||||
setmyApiResponse("False");
|
setmyApiResponse("False");
|
||||||
}
|
}
|
||||||
//console.log(" In displaydetailclass res.data.status = " + res.data.status);
|
//console.log(" In displaydetailclass res.data.status = " + res.data.status);
|
||||||
console.log(" In displaydetailclass res.data.message = " + res.data.message);
|
//console.log(" In displaydetailclass res.data.message = " + res.data.message);
|
||||||
setResult(res.data.message);
|
setResult(res.data.message);
|
||||||
setDetailTraining(JSON.parse(res.data.message));
|
setDetailTraining(JSON.parse(res.data.message));
|
||||||
}
|
}
|
||||||
|
|
|
@ -304,7 +304,7 @@ const DisplayDetailClass = (props) => {
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.warn('Not good man :( Display = ');
|
console.warn('Not good man :( Display = ');
|
||||||
console.log(error);
|
//console.log(error);
|
||||||
setmyApiResponse("False");
|
setmyApiResponse("False");
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -94,13 +94,13 @@ const DisplayDetailClassAction = (props) => {
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (String(res.data.status) !== "false") {
|
if (String(res.data.status) !== "false") {
|
||||||
console.log(" In tokenEval_trainingsession res.data.status = " + res.data.status);
|
//console.log(" In tokenEval_trainingsession res.data.status = " + res.data.status);
|
||||||
//console.log(" In tokenEval_trainingsession res.data.message r_class = " + res.data.message);
|
//console.log(" In tokenEval_trainingsession res.data.message r_class = " + res.data.message);
|
||||||
settokenEval_api("true");
|
settokenEval_api("true");
|
||||||
settokenEval_result(res.data.message);
|
settokenEval_result(res.data.message);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log(" In tokenEval_trainingsession res.data.status = " + res.data.status);
|
//console.log(" In tokenEval_trainingsession res.data.status = " + res.data.status);
|
||||||
settokenEval_api("false");
|
settokenEval_api("false");
|
||||||
settokenEval_message(res.data.message);
|
settokenEval_message(res.data.message);
|
||||||
}
|
}
|
||||||
|
@ -352,7 +352,7 @@ const DisplayDetailClassAction = (props) => {
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.warn('Not good man :( Display = ');
|
console.warn('Not good man :( Display = ');
|
||||||
console.log(error);
|
//console.log(error);
|
||||||
setmyApiResponse("False");
|
setmyApiResponse("False");
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -103,13 +103,13 @@ const DisplayDetailClass_new_v2 = (props) => {
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (String(res.data.status) !== "false") {
|
if (String(res.data.status) !== "false") {
|
||||||
console.log(" In tokenEval_trainingsession res.data.status = " + res.data.status);
|
//console.log(" In tokenEval_trainingsession res.data.status = " + res.data.status);
|
||||||
//console.log(" In tokenEval_trainingsession res.data.message r_class = " + res.data.message);
|
//console.log(" In tokenEval_trainingsession res.data.message r_class = " + res.data.message);
|
||||||
settokenEval_api("true");
|
settokenEval_api("true");
|
||||||
settokenEval_result(res.data.message);
|
settokenEval_result(res.data.message);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log(" In tokenEval_trainingsession res.data.status = " + res.data.status);
|
//console.log(" In tokenEval_trainingsession res.data.status = " + res.data.status);
|
||||||
settokenEval_api("false");
|
settokenEval_api("false");
|
||||||
settokenEval_message(res.data.message);
|
settokenEval_message(res.data.message);
|
||||||
}
|
}
|
||||||
|
@ -296,8 +296,8 @@ const DisplayDetailClass_new_v2 = (props) => {
|
||||||
|
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
if (String(res.data.status) !== String("false")) {
|
if (String(res.data.status) !== String("false")) {
|
||||||
console.log(" In Display res.data.status = " + res.data.status);
|
//console.log(" In Display res.data.status = " + res.data.status);
|
||||||
console.log(" In Display res.data.message = " + res.data.message);
|
//console.log(" In Display res.data.message = " + res.data.message);
|
||||||
if (res.data.message.length > 0) {
|
if (res.data.message.length > 0) {
|
||||||
setmyApiResponse("True");
|
setmyApiResponse("True");
|
||||||
|
|
||||||
|
@ -415,7 +415,7 @@ const DisplayDetailClass_new_v2 = (props) => {
|
||||||
var main_h_px;
|
var main_h_px;
|
||||||
|
|
||||||
|
|
||||||
console.log("window.screen.width = ", window.screen.width);
|
//console.log("window.screen.width = ", window.screen.width);
|
||||||
|
|
||||||
|
|
||||||
if (window.screen.width < 601) {
|
if (window.screen.width < 601) {
|
||||||
|
@ -444,11 +444,19 @@ const DisplayDetailClass_new_v2 = (props) => {
|
||||||
if (main_h < 3200) {
|
if (main_h < 3200) {
|
||||||
main_h = 3200
|
main_h = 3200
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (main_h < 4000) {
|
||||||
|
main_h = 4000;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
val = local_tmp + "px";
|
val = local_tmp + "px";
|
||||||
main_h_px = main_h + "px"
|
main_h_px = main_h + "px"
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(" mob_block_cross_sell_cat.top = ", val, " main_h = ", main_h);
|
//console.log(" mob_block_cross_sell_cat.top = ", val, " main_h = ", main_h);
|
||||||
|
|
||||||
document.getElementById('mob_block_cross_sell_cat').style.top = val;
|
document.getElementById('mob_block_cross_sell_cat').style.top = val;
|
||||||
//document.getElementById('footer').style.top = val;
|
//document.getElementById('footer').style.top = val;
|
||||||
|
@ -462,7 +470,7 @@ const DisplayDetailClass_new_v2 = (props) => {
|
||||||
local_tmp = String(JSON.parse(res.data.message).text_size / 0.9);
|
local_tmp = String(JSON.parse(res.data.message).text_size / 0.9);
|
||||||
main_h = String(JSON.parse(res.data.message).text_size / 0.8);
|
main_h = String(JSON.parse(res.data.message).text_size / 0.8);
|
||||||
|
|
||||||
console.log(" local_tmp = ", local_tmp, " main_h = ", main_h);
|
//console.log(" local_tmp = ", local_tmp, " main_h = ", main_h);
|
||||||
if (local_tmp > 2550) {
|
if (local_tmp > 2550) {
|
||||||
val = "2600px";
|
val = "2600px";
|
||||||
main_h_px = "3100px";
|
main_h_px = "3100px";
|
||||||
|
@ -479,10 +487,10 @@ const DisplayDetailClass_new_v2 = (props) => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
console.log("local_tmp = ", local_tmp, " changemenr foo val = ", val, " main_h = ", main_h);
|
//console.log("local_tmp = ", local_tmp, " changemenr foo val = ", val, " main_h = ", main_h);
|
||||||
var val2 = document.getElementById('block_info_page').style.height;
|
var val2 = document.getElementById('block_info_page').style.height;
|
||||||
|
|
||||||
console.log(" block_info_page height = ", val2);
|
//console.log(" block_info_page height = ", val2);
|
||||||
|
|
||||||
document.getElementById('block_crossell_meme_orga').style.top = val;
|
document.getElementById('block_crossell_meme_orga').style.top = val;
|
||||||
//document.getElementById('footer').style.top = val;
|
//document.getElementById('footer').style.top = val;
|
||||||
|
@ -511,10 +519,10 @@ const DisplayDetailClass_new_v2 = (props) => {
|
||||||
main_h_px = main_h + "px"
|
main_h_px = main_h + "px"
|
||||||
|
|
||||||
}
|
}
|
||||||
console.log("local_tmp = ", local_tmp, " changemenr foo val = ", val, " main_h = ", main_h);
|
//console.log("local_tmp = ", local_tmp, " changemenr foo val = ", val, " main_h = ", main_h);
|
||||||
var val2 = document.getElementById('block_info_page').style.height;
|
var val2 = document.getElementById('block_info_page').style.height;
|
||||||
|
|
||||||
console.log(" block_info_page height = ", val2);
|
//console.log(" block_info_page height = ", val2);
|
||||||
|
|
||||||
document.getElementById('block_crossell_meme_orga').style.top = val;
|
document.getElementById('block_crossell_meme_orga').style.top = val;
|
||||||
//document.getElementById('footer').style.top = val;
|
//document.getElementById('footer').style.top = val;
|
||||||
|
@ -567,10 +575,10 @@ const DisplayDetailClass_new_v2 = (props) => {
|
||||||
main_h_px = "2200px";
|
main_h_px = "2200px";
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(" local_tmp = ", local_tmp, " changemenr foo val = ", val, " main_h = ", main_h);
|
//console.log(" local_tmp = ", local_tmp, " changemenr foo val = ", val, " main_h = ", main_h);
|
||||||
var val2 = document.getElementById('block_info_page').style.height;
|
var val2 = document.getElementById('block_info_page').style.height;
|
||||||
|
|
||||||
console.log(" block_info_page height = ", val2);
|
//console.log(" block_info_page height = ", val2);
|
||||||
|
|
||||||
document.getElementById('block_crossell_meme_orga').style.top = val;
|
document.getElementById('block_crossell_meme_orga').style.top = val;
|
||||||
//document.getElementById('footer').style.top = val;
|
//document.getElementById('footer').style.top = val;
|
||||||
|
@ -595,7 +603,7 @@ const DisplayDetailClass_new_v2 = (props) => {
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.warn('Not good man :( Display = ');
|
console.warn('Not good man :( Display = ');
|
||||||
console.log(error);
|
//console.log(error);
|
||||||
setmyApiResponse("False");
|
setmyApiResponse("False");
|
||||||
|
|
||||||
})
|
})
|
||||||
|
@ -1273,7 +1281,17 @@ const DisplayDetailClass_new_v2 = (props) => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mob_block_organisme_ftion_link">
|
<div className="mob_block_organisme_ftion_link">
|
||||||
MySyTraining.com
|
{partnair_name && <nav
|
||||||
|
style={{ "cursor": "pointer" }}
|
||||||
|
onClick={(e) => {
|
||||||
|
/*e.preventDefault();
|
||||||
|
window.open(
|
||||||
|
website_partenaire,
|
||||||
|
'_blank'
|
||||||
|
);*/
|
||||||
|
|
||||||
|
}}
|
||||||
|
> {partnair_name} </nav>}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1433,7 +1451,25 @@ const DisplayDetailClass_new_v2 = (props) => {
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{/* <div className="sticky_div_hilight">
|
||||||
|
|
||||||
|
{String(isqualiopi) === "1" && <div className="sticky_img_hilight1">
|
||||||
|
<img src="https://img.mysy-training.com/hifmi/IMG_Qualiopi.jpg" alt="Qualiopi" className="img_hili" />
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
{String(isdatadock) === "1" && <div className="sticky_img_hilight1">
|
||||||
|
<img src="https://img.mysy-training.com/hifmi/IMG_Datadock.jpg" alt="DataDock" className="img_hili" />
|
||||||
|
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
{String(iscertitrace) === "1" && <div className="sticky_img_hilight1">
|
||||||
|
<img src="https://img.mysy-training.com/hifmi/IMG_Certitrace.jpg" alt="Certitrace" className="img_hili" />
|
||||||
|
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
</div>*/}
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -1851,7 +1887,7 @@ const DisplayDetailClass_new_v2 = (props) => {
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{DetailTraining["pourqui"] && <div className="block_info_page_pave_title_desc_long_text">
|
{DetailTraining["pourqui"] && String(DetailTraining["pourqui"]).length > 2 && <div className="block_info_page_pave_title_desc_long_text">
|
||||||
<div className="block_info_page_pave_title_desc_title ">
|
<div className="block_info_page_pave_title_desc_title ">
|
||||||
Pour Qui ?
|
Pour Qui ?
|
||||||
</div>
|
</div>
|
||||||
|
@ -1863,15 +1899,16 @@ const DisplayDetailClass_new_v2 = (props) => {
|
||||||
}
|
}
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
{DetailTraining["plus_produit"] && <div className="block_info_page_pave_title_desc_long_text">
|
{DetailTraining["plus_produit"] && String(DetailTraining["plus_produit"]).length > 2 && <div className="block_info_page_pave_title_desc_long_text">
|
||||||
<div className="block_info_page_pave_title_desc_title ">
|
<div className="block_info_page_pave_title_desc_title ">
|
||||||
Points forts
|
Points forts
|
||||||
</div>
|
</div>
|
||||||
{DetailTraining["pourqui"] && <div className="block_info_page_pave_title_desc_desc objectif_block">
|
{DetailTraining["plus_produit"] && <div className="block_info_page_pave_title_desc_desc objectif_block">
|
||||||
{parse(String(DetailTraining["plus_produit"]))}
|
{parse(String(DetailTraining["plus_produit"]))}
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
}
|
}
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
|
@ -2139,15 +2176,15 @@ const DisplayDetailClass_new_v2 = (props) => {
|
||||||
|
|
||||||
<div className="sticky_organisme_title_desc_desc">
|
<div className="sticky_organisme_title_desc_desc">
|
||||||
|
|
||||||
{partnair_name && website_partenaire && <nav
|
{partnair_name && <nav
|
||||||
style={{"cursor":"pointer"}}
|
style={{ "cursor": "pointer" }}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
/*e.preventDefault();
|
/*e.preventDefault();
|
||||||
window.open(
|
window.open(
|
||||||
website_partenaire,
|
website_partenaire,
|
||||||
'_blank'
|
'_blank'
|
||||||
);*/
|
);*/
|
||||||
|
|
||||||
}}
|
}}
|
||||||
> {partnair_name} </nav>}
|
> {partnair_name} </nav>}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -59,7 +59,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
})
|
})
|
||||||
.then((data) => data.json())
|
.then((data) => data.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
console.log('GetAllClass_WOfilter : Success:', data['message'], "data['status'] = ", data['status']);
|
//console.log('GetAllClass_WOfilter : Success:', data['message'], "data['status'] = ", data['status']);
|
||||||
setTableData(data['message']);
|
setTableData(data['message']);
|
||||||
setRows(data['message']);
|
setRows(data['message']);
|
||||||
|
|
||||||
|
@ -369,7 +369,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
|
|
||||||
if (String(result['status']) === String("true")) {
|
if (String(result['status']) === String("true")) {
|
||||||
//alert(" OK pour la formation :" + tab_class[i]);
|
//alert(" OK pour la formation :" + tab_class[i]);
|
||||||
|
|
|
@ -160,7 +160,7 @@ function Facture(props) {
|
||||||
})
|
})
|
||||||
.then((data) => data.json())
|
.then((data) => data.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
console.log('Success:', data['message'], "data['status'] = ", data['status']);
|
//console.log('Success:', data['message'], "data['status'] = ", data['status']);
|
||||||
setpaymentmode(data['message']);
|
setpaymentmode(data['message']);
|
||||||
if (String(data['status']) === String("false")) {
|
if (String(data['status']) === String("false")) {
|
||||||
//console.log("erreur rrrr:" + data['status'])
|
//console.log("erreur rrrr:" + data['status'])
|
||||||
|
@ -283,7 +283,7 @@ function Facture(props) {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
setmyApiResponse(result['status']);
|
setmyApiResponse(result['status']);
|
||||||
setResult(result['message']);
|
setResult(result['message']);
|
||||||
if (String(result['status']) == String("true")) {
|
if (String(result['status']) == String("true")) {
|
||||||
|
|
|
@ -91,7 +91,7 @@ const Formation_copie = (props) => {
|
||||||
var class_external_code = props.formation.external_code;
|
var class_external_code = props.formation.external_code;
|
||||||
|
|
||||||
if (class_external_code.length < 3) {
|
if (class_external_code.length < 3) {
|
||||||
console.log("Le code externe prend au moins 3 caractères");
|
//console.log("Le code externe prend au moins 3 caractères");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,8 +109,8 @@ const Formation_copie = (props) => {
|
||||||
|
|
||||||
if (res.data.message.img.length > 0) {
|
if (res.data.message.img.length > 0) {
|
||||||
setisclassimage("True");
|
setisclassimage("True");
|
||||||
console.log(" getClassImage : In test res.data.status = " + res.data.status);
|
//console.log(" getClassImage : In test res.data.status = " + res.data.status);
|
||||||
console.log(" getClassImage: res.data.message.img = " + res.data.message);
|
//console.log(" getClassImage: res.data.message.img = " + res.data.message);
|
||||||
|
|
||||||
var ch_img = "data:image/png;base64," + res.data.message.img;
|
var ch_img = "data:image/png;base64," + res.data.message.img;
|
||||||
setuserimgclassprofil(ch_img);
|
setuserimgclassprofil(ch_img);
|
||||||
|
|
|
@ -91,7 +91,7 @@ const Formation = (props) => {
|
||||||
var class_external_code = props.formation.external_code;
|
var class_external_code = props.formation.external_code;
|
||||||
|
|
||||||
if (class_external_code.length < 3) {
|
if (class_external_code.length < 3) {
|
||||||
console.log("Le code externe prend au moins 3 caractères");
|
//console.log("Le code externe prend au moins 3 caractères");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,8 +109,8 @@ const Formation = (props) => {
|
||||||
|
|
||||||
if (res.data.message.img.length > 0) {
|
if (res.data.message.img.length > 0) {
|
||||||
setisclassimage("True");
|
setisclassimage("True");
|
||||||
console.log(" getClassImage : In test res.data.status = " + res.data.status);
|
//console.log(" getClassImage : In test res.data.status = " + res.data.status);
|
||||||
console.log(" getClassImage: res.data.message.img = " + res.data.message);
|
//console.log(" getClassImage: res.data.message.img = " + res.data.message);
|
||||||
|
|
||||||
var ch_img = "data:image/png;base64," + res.data.message.img;
|
var ch_img = "data:image/png;base64," + res.data.message.img;
|
||||||
setuserimgclassprofil(ch_img);
|
setuserimgclassprofil(ch_img);
|
||||||
|
|
|
@ -93,7 +93,7 @@ const Formation_Cartouche_Com = (props) => {
|
||||||
var class_external_code = props.formation.external_code;
|
var class_external_code = props.formation.external_code;
|
||||||
|
|
||||||
if (class_external_code.length < 3) {
|
if (class_external_code.length < 3) {
|
||||||
console.log("Le code externe prend au moins 3 caractères");
|
//console.log("Le code externe prend au moins 3 caractères");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,8 +111,8 @@ const Formation_Cartouche_Com = (props) => {
|
||||||
|
|
||||||
if (res.data.message.img.length > 0) {
|
if (res.data.message.img.length > 0) {
|
||||||
setisclassimage("True");
|
setisclassimage("True");
|
||||||
console.log(" getClassImage : In test res.data.status = " + res.data.status);
|
//console.log(" getClassImage : In test res.data.status = " + res.data.status);
|
||||||
console.log(" getClassImage: res.data.message.img = " + res.data.message);
|
//console.log(" getClassImage: res.data.message.img = " + res.data.message);
|
||||||
|
|
||||||
var ch_img = "data:image/png;base64," + res.data.message.img;
|
var ch_img = "data:image/png;base64," + res.data.message.img;
|
||||||
setuserimgclassprofil(ch_img);
|
setuserimgclassprofil(ch_img);
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React from "react";
|
||||||
|
|
||||||
const Formation_Partner = (props) => {
|
const Formation_Partner = (props) => {
|
||||||
|
|
||||||
console.log({props});
|
//console.log({props});
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -91,7 +91,7 @@ function GestionAdministrative(props) {
|
||||||
<button
|
<button
|
||||||
className="gest_bton_popup"
|
className="gest_bton_popup"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
console.log('modal closed ');
|
//console.log('modal closed ');
|
||||||
close();
|
close();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
@ -143,7 +143,7 @@ function GestionAdministrative(props) {
|
||||||
<div style={{ "width": "45%", "float": "left" }}>
|
<div style={{ "width": "45%", "float": "left" }}>
|
||||||
<button className="gest_bton_popup" onClick={(event) => {
|
<button className="gest_bton_popup" onClick={(event) => {
|
||||||
handleClick_accept(event, cellValues);
|
handleClick_accept(event, cellValues);
|
||||||
console.log('modal closed ');
|
//console.log('modal closed ');
|
||||||
close();
|
close();
|
||||||
}}> Valider </button>
|
}}> Valider </button>
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ function GestionAdministrative(props) {
|
||||||
<button
|
<button
|
||||||
className="gest_bton_popup"
|
className="gest_bton_popup"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
console.log('modal closed ');
|
//console.log('modal closed ');
|
||||||
close();
|
close();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
@ -207,7 +207,7 @@ function GestionAdministrative(props) {
|
||||||
<div style={{ "width": "45%", "float": "left" }}>
|
<div style={{ "width": "45%", "float": "left" }}>
|
||||||
<button className="gest_bton_popup" onClick={(event) => {
|
<button className="gest_bton_popup" onClick={(event) => {
|
||||||
handleClick_refuse(event, cellValues);
|
handleClick_refuse(event, cellValues);
|
||||||
console.log('modal closed ');
|
//console.log('modal closed ');
|
||||||
close();
|
close();
|
||||||
}}> Valider </button>
|
}}> Valider </button>
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ function GestionAdministrative(props) {
|
||||||
<button
|
<button
|
||||||
className="gest_bton_popup"
|
className="gest_bton_popup"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
console.log('modal closed ');
|
//console.log('modal closed ');
|
||||||
close();
|
close();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
@ -405,8 +405,8 @@ function GestionAdministrative(props) {
|
||||||
} else if (apresmidi === false) {
|
} else if (apresmidi === false) {
|
||||||
apresmidi_val = "0"
|
apresmidi_val = "0"
|
||||||
}
|
}
|
||||||
console.log(" ### date , email, matin,matin_val, apresmidi, apresmidi_val = ",
|
/*console.log(" ### date , email, matin,matin_val, apresmidi, apresmidi_val = ",
|
||||||
date, email, matin, matin_val, apresmidi, apresmidi_val);
|
date, email, matin, matin_val, apresmidi, apresmidi_val);*/
|
||||||
|
|
||||||
var form = new FormData();
|
var form = new FormData();
|
||||||
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
||||||
|
@ -955,11 +955,11 @@ function GestionAdministrative(props) {
|
||||||
})
|
})
|
||||||
.then((data) => data.json())
|
.then((data) => data.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
console.log('GetListeEvaluation -- Success:', data['message'], "data['status'] = ", data['status']);
|
//console.log('GetListeEvaluation -- Success:', data['message'], "data['status'] = ", data['status']);
|
||||||
setGetListePreinscrit_evaluation_result(data['message']);
|
setGetListePreinscrit_evaluation_result(data['message']);
|
||||||
setRows_evaluation(data['message']);
|
setRows_evaluation(data['message']);
|
||||||
if (String(data['status']) === String("false")) {
|
if (String(data['status']) === String("false")) {
|
||||||
console.log("GetListeEvaluation rrrr:" + data['status'])
|
//console.log("GetListeEvaluation rrrr:" + data['status'])
|
||||||
setGetListePreinscrit_evaluation_api("false");
|
setGetListePreinscrit_evaluation_api("false");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1212,8 +1212,8 @@ function GestionAdministrative(props) {
|
||||||
|
|
||||||
|
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
console.log(" In CreateSessionFormation res.data.status = " + res.data.status);
|
//console.log(" In CreateSessionFormation res.data.status = " + res.data.status);
|
||||||
console.log(" In CreateSessionFormation res.data.message r_class = " + res.data.message);
|
//console.log(" In CreateSessionFormation res.data.message r_class = " + res.data.message);
|
||||||
|
|
||||||
if (String(res.data.status) !== "false") {
|
if (String(res.data.status) !== "false") {
|
||||||
setCreateSessionFormation_api("true");
|
setCreateSessionFormation_api("true");
|
||||||
|
@ -1662,7 +1662,7 @@ function GestionAdministrative(props) {
|
||||||
|
|
||||||
var liste_emargement_id = GetSelectedRowsEmargement();
|
var liste_emargement_id = GetSelectedRowsEmargement();
|
||||||
|
|
||||||
console.log("liste_formation = " + liste_emargement_id);
|
//console.log("liste_formation = " + liste_emargement_id);
|
||||||
|
|
||||||
var form = new FormData();
|
var form = new FormData();
|
||||||
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
||||||
|
@ -1890,7 +1890,7 @@ function GestionAdministrative(props) {
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
|
|
||||||
console.log(" ## result['status'] = ", result['status'])
|
//console.log(" ## result['status'] = ", result['status'])
|
||||||
if (String(result['status']) === String("true")) {
|
if (String(result['status']) === String("true")) {
|
||||||
//console.log('Success:', result['message']);
|
//console.log('Success:', result['message']);
|
||||||
setliste_sessions_file_change_result(result['message']);
|
setliste_sessions_file_change_result(result['message']);
|
||||||
|
@ -1957,7 +1957,7 @@ function GestionAdministrative(props) {
|
||||||
|
|
||||||
if (String(res.data.status) === "true") {
|
if (String(res.data.status) === "true") {
|
||||||
//console.log(" In GetAttendee res.data.status = " + res.data.status);
|
//console.log(" In GetAttendee res.data.status = " + res.data.status);
|
||||||
console.log(" In GetAttendee res.data.message r_class = " + res.data.message);
|
//console.log(" In GetAttendee res.data.message r_class = " + res.data.message);
|
||||||
setGetAttendee_api("true");
|
setGetAttendee_api("true");
|
||||||
setGetAttendee_result(res.data.message);
|
setGetAttendee_result(res.data.message);
|
||||||
var mylocalattendee = JSON.parse(res.data.message);
|
var mylocalattendee = JSON.parse(res.data.message);
|
||||||
|
@ -2070,7 +2070,7 @@ function GestionAdministrative(props) {
|
||||||
function handleChangeselectedCertif(event) {
|
function handleChangeselectedCertif(event) {
|
||||||
|
|
||||||
var val = event.target.value
|
var val = event.target.value
|
||||||
console.log(val);
|
//console.log(val);
|
||||||
GetSpecificAttestation_Certif(val)
|
GetSpecificAttestation_Certif(val)
|
||||||
|
|
||||||
setselectedCertif(val);
|
setselectedCertif(val);
|
||||||
|
@ -2095,7 +2095,7 @@ function GestionAdministrative(props) {
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (String(res.data.status) === "true") {
|
if (String(res.data.status) === "true") {
|
||||||
console.log(" In GetAttestation_Certif res.data.status = " + res.data.status);
|
//console.log(" In GetAttestation_Certif res.data.status = " + res.data.status);
|
||||||
//console.log(" In GetAttestation_Certif res.data.message r_class = " + res.data.message);
|
//console.log(" In GetAttestation_Certif res.data.message r_class = " + res.data.message);
|
||||||
setGetAttestation_Certif_api("true");
|
setGetAttestation_Certif_api("true");
|
||||||
setGetAttestation_Certif_result(res.data.message);
|
setGetAttestation_Certif_result(res.data.message);
|
||||||
|
@ -2135,7 +2135,7 @@ function GestionAdministrative(props) {
|
||||||
setGetSpecificAttestation_Certif_result(res.data.message);
|
setGetSpecificAttestation_Certif_result(res.data.message);
|
||||||
|
|
||||||
var mylocal = JSON.parse(res.data.message);
|
var mylocal = JSON.parse(res.data.message);
|
||||||
console.log(mylocal);
|
//console.log(mylocal);
|
||||||
seturlpreview_certif(mylocal.preview_url);
|
seturlpreview_certif(mylocal.preview_url);
|
||||||
|
|
||||||
|
|
||||||
|
@ -2177,8 +2177,8 @@ function GestionAdministrative(props) {
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (String(res.data.status) == "true") {
|
if (String(res.data.status) == "true") {
|
||||||
console.log(" In SendEvaluationEmail res.data.status = " + res.data.status);
|
//console.log(" In SendEvaluationEmail res.data.status = " + res.data.status);
|
||||||
console.log(" In SendEvaluationEmail res.data.message r_class = " + res.data.message);
|
//console.log(" In SendEvaluationEmail res.data.message r_class = " + res.data.message);
|
||||||
setSendEvaluationEmail_api("true");
|
setSendEvaluationEmail_api("true");
|
||||||
setSendEvaluationEmail_result(res.data.message);
|
setSendEvaluationEmail_result(res.data.message);
|
||||||
|
|
||||||
|
@ -2211,8 +2211,8 @@ function GestionAdministrative(props) {
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (String(res.data.status) == "true") {
|
if (String(res.data.status) == "true") {
|
||||||
console.log(" In SendAttendeeAttestation res.data.status = " + res.data.status);
|
//console.log(" In SendAttendeeAttestation res.data.status = " + res.data.status);
|
||||||
console.log(" In SendAttendeeAttestation res.data.message r_class = " + res.data.message);
|
//console.log(" In SendAttendeeAttestation res.data.message r_class = " + res.data.message);
|
||||||
setSendAttendeeAttestation_api("true");
|
setSendAttendeeAttestation_api("true");
|
||||||
setSendAttendeeAttestation_result(res.data.message);
|
setSendAttendeeAttestation_result(res.data.message);
|
||||||
|
|
||||||
|
@ -2852,7 +2852,7 @@ function GestionAdministrative(props) {
|
||||||
checkboxSelection
|
checkboxSelection
|
||||||
onSelectionModelChange={(newSelectionModel_emarg) => {
|
onSelectionModelChange={(newSelectionModel_emarg) => {
|
||||||
setSelectionModel_emarg(newSelectionModel_emarg);
|
setSelectionModel_emarg(newSelectionModel_emarg);
|
||||||
console.log("ch selected--" + newSelectionModel_emarg);
|
//console.log("ch selected--" + newSelectionModel_emarg);
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
|
@ -185,7 +185,7 @@ function Inscription_Information(props) {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
setRecordData_api(result['status']);
|
setRecordData_api(result['status']);
|
||||||
setRecordData_status(result['status']);
|
setRecordData_status(result['status']);
|
||||||
setRecordData_message(result['message']);
|
setRecordData_message(result['message']);
|
||||||
|
@ -312,8 +312,8 @@ function Inscription_Information(props) {
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (String(res.data.status) !== "false") {
|
if (String(res.data.status) !== "false") {
|
||||||
console.log(" In tokenEval_trainingsession res.data.status = " + res.data.status);
|
//console.log(" In tokenEval_trainingsession res.data.status = " + res.data.status);
|
||||||
console.log(" In tokenEval_trainingsession res.data.message r_class = " + res.data.message);
|
//console.log(" In tokenEval_trainingsession res.data.message r_class = " + res.data.message);
|
||||||
settokenEval_api("true");
|
settokenEval_api("true");
|
||||||
settokenEval_result(res.data.message);
|
settokenEval_result(res.data.message);
|
||||||
}
|
}
|
||||||
|
@ -490,7 +490,7 @@ function Inscription_Information(props) {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
setSendInformationRequest_api(result['status']);
|
setSendInformationRequest_api(result['status']);
|
||||||
setSendInformationRequest_status(result['status']);
|
setSendInformationRequest_status(result['status']);
|
||||||
setSendInformationRequest_message(result['message']);
|
setSendInformationRequest_message(result['message']);
|
||||||
|
|
|
@ -87,7 +87,7 @@ const ListeArticles = (props) => {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
const results = await res.json();
|
const results = await res.json();
|
||||||
console.log(results);
|
//console.log(results);
|
||||||
};
|
};
|
||||||
|
|
||||||
const [Trainingdistance, setTrainingdistance] = useState(0);
|
const [Trainingdistance, setTrainingdistance] = useState(0);
|
||||||
|
|
|
@ -44,7 +44,7 @@ function OrderConfirmation_3DS(props) {
|
||||||
|
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
console.log(res.data.status, " -- ", res.data.message)
|
//console.log(res.data.status, " -- ", res.data.message)
|
||||||
if (String(res.data.status) === String("true")) {
|
if (String(res.data.status) === String("true")) {
|
||||||
setCheckSalesOrder_api("true");
|
setCheckSalesOrder_api("true");
|
||||||
setCheckSalesOrder_result(String(res.data.message));
|
setCheckSalesOrder_result(String(res.data.message));
|
||||||
|
@ -63,7 +63,7 @@ function OrderConfirmation_3DS(props) {
|
||||||
|
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log('In CheckSalesOrder ', error);
|
//console.log('In CheckSalesOrder ', error);
|
||||||
setCheckSalesOrder_api("false")
|
setCheckSalesOrder_api("false")
|
||||||
|
|
||||||
})
|
})
|
||||||
|
@ -103,7 +103,7 @@ function OrderConfirmation_3DS(props) {
|
||||||
|
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log('In CheckSalesOrder ', error);
|
//console.log('In CheckSalesOrder ', error);
|
||||||
setcheck_payement_finalise_order_api("false")
|
setcheck_payement_finalise_order_api("false")
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -45,8 +45,8 @@ Recuperation de toutes les formation du partenaire
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (String(res.data.status) != String("false")) {
|
if (String(res.data.status) != String("false")) {
|
||||||
console.log(" In getAllPartnerClass res.data.status = " + res.data.status);
|
//console.log(" In getAllPartnerClass res.data.status = " + res.data.status);
|
||||||
console.log(" In getAllPartnerClass res.data.message = " + res.data.message);
|
//console.log(" In getAllPartnerClass res.data.message = " + res.data.message);
|
||||||
getallclassAPI("true");
|
getallclassAPI("true");
|
||||||
|
|
||||||
if (String(res.data.status) === "true") {
|
if (String(res.data.status) === "true") {
|
||||||
|
@ -56,8 +56,8 @@ Recuperation de toutes les formation du partenaire
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log(" In getAllPartnerClass res.data.status = " + res.data.status);
|
//console.log(" In getAllPartnerClass res.data.status = " + res.data.status);
|
||||||
console.log(" In getAllPartnerClass res.data.message = " + res.data.message);
|
//console.log(" In getAllPartnerClass res.data.message = " + res.data.message);
|
||||||
getallclassAPI("false");
|
getallclassAPI("false");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -84,13 +84,13 @@ Recuperation de toutes les formation du partenaire
|
||||||
var date_end = ""
|
var date_end = ""
|
||||||
|
|
||||||
if (state[0].startDate) {
|
if (state[0].startDate) {
|
||||||
console.log("Start = " + state[0].startDate);
|
//console.log("Start = " + state[0].startDate);
|
||||||
console.log("Start = " + moment(state[0].startDate).format('YYYY-MM-DD'));
|
//console.log("Start = " + moment(state[0].startDate).format('YYYY-MM-DD'));
|
||||||
date_start = moment(state[0].startDate).format('YYYY-MM-DD');
|
date_start = moment(state[0].startDate).format('YYYY-MM-DD');
|
||||||
}
|
}
|
||||||
if (state[0].endDate) {
|
if (state[0].endDate) {
|
||||||
console.log("endDate = " + state[0].endDate);
|
//console.log("endDate = " + state[0].endDate);
|
||||||
console.log("END = " + moment(state[0].endDate).format('YYYY-MM-DD'));
|
//console.log("END = " + moment(state[0].endDate).format('YYYY-MM-DD'));
|
||||||
date_end = moment(state[0].endDate).format('YYYY-MM-DD');
|
date_end = moment(state[0].endDate).format('YYYY-MM-DD');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,18 +103,18 @@ Recuperation de toutes les formation du partenaire
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (String(res.data.status) != String("false")) {
|
if (String(res.data.status) != String("false")) {
|
||||||
console.log(" In test res.data.status = " + res.data.status);
|
//console.log(" In test res.data.status = " + res.data.status);
|
||||||
console.log(" In test res.data.message = " + res.data.message);
|
//console.log(" In test res.data.message = " + res.data.message);
|
||||||
res.data.message.map(obj => {
|
res.data.message.map(obj => {
|
||||||
|
|
||||||
if (JSON.parse(obj).Date_view) {
|
if (JSON.parse(obj).Date_view) {
|
||||||
console.log("Date_view " + JSON.parse(obj).Date_view + " nb_view = " + JSON.parse(obj).nb_view);
|
//console.log("Date_view " + JSON.parse(obj).Date_view + " nb_view = " + JSON.parse(obj).nb_view);
|
||||||
ch_array.push(parseInt(JSON.parse(obj).nb_view));
|
ch_array.push(parseInt(JSON.parse(obj).nb_view));
|
||||||
ch_categories.push(JSON.parse(obj).Date_view);
|
ch_categories.push(JSON.parse(obj).Date_view);
|
||||||
} else if (JSON.parse(obj).data) {
|
} else if (JSON.parse(obj).data) {
|
||||||
|
|
||||||
//ch_data2 = String(obj.data);
|
//ch_data2 = String(obj.data);
|
||||||
console.log("data ok " + JSON.parse(obj).data)
|
//console.log("data ok " + JSON.parse(obj).data)
|
||||||
|
|
||||||
ch_data2 = JSON.parse(obj).data;
|
ch_data2 = JSON.parse(obj).data;
|
||||||
}
|
}
|
||||||
|
@ -122,15 +122,15 @@ Recuperation de toutes les formation du partenaire
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
console.log(" ch_array = " + ch_array);
|
//console.log(" ch_array = " + ch_array);
|
||||||
console.log(" ch_data2 = " + ch_data2);
|
//console.log(" ch_data2 = " + ch_data2);
|
||||||
|
|
||||||
var new_data2 = ch_data2.split(',').map(Number);
|
var new_data2 = ch_data2.split(',').map(Number);
|
||||||
new_data2.push(123);
|
new_data2.push(123);
|
||||||
console.log(" new_data2 b= " + new_data2);
|
//console.log(" new_data2 b= " + new_data2);
|
||||||
|
|
||||||
setglobal_view_data(ch_array);
|
setglobal_view_data(ch_array);
|
||||||
console.log(global_view_data);
|
//console.log(global_view_data);
|
||||||
setglobal_view_categories(ch_categories);
|
setglobal_view_categories(ch_categories);
|
||||||
setglobal_view_data_v2(new_data2);
|
setglobal_view_data_v2(new_data2);
|
||||||
}
|
}
|
||||||
|
@ -158,13 +158,13 @@ Recuperation de toutes les formation du partenaire
|
||||||
var date_end = ""
|
var date_end = ""
|
||||||
|
|
||||||
if (state[0].startDate) {
|
if (state[0].startDate) {
|
||||||
console.log("Start = " + state[0].startDate);
|
//console.log("Start = " + state[0].startDate);
|
||||||
console.log("Start = " + moment(state[0].startDate).format('YYYY-MM-DD'));
|
//console.log("Start = " + moment(state[0].startDate).format('YYYY-MM-DD'));
|
||||||
date_start = moment(state[0].startDate).format('YYYY-MM-DD');
|
date_start = moment(state[0].startDate).format('YYYY-MM-DD');
|
||||||
}
|
}
|
||||||
if (state[0].endDate) {
|
if (state[0].endDate) {
|
||||||
console.log("endDate = " + state[0].endDate);
|
//console.log("endDate = " + state[0].endDate);
|
||||||
console.log("END = " + moment(state[0].endDate).format('YYYY-MM-DD'));
|
//console.log("END = " + moment(state[0].endDate).format('YYYY-MM-DD'));
|
||||||
date_end = moment(state[0].endDate).format('YYYY-MM-DD');
|
date_end = moment(state[0].endDate).format('YYYY-MM-DD');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,13 +181,13 @@ Recuperation de toutes les formation du partenaire
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (String(res.data.status) != String("false")) {
|
if (String(res.data.status) != String("false")) {
|
||||||
console.log(" In test res.data.status = " + res.data.status);
|
//console.log(" In test res.data.status = " + res.data.status);
|
||||||
console.log(" In test res.data.message = " + res.data.message);
|
//console.log(" In test res.data.message = " + res.data.message);
|
||||||
|
|
||||||
|
|
||||||
res.data.message.map(obj => {
|
res.data.message.map(obj => {
|
||||||
if (JSON.parse(obj).name1) {
|
if (JSON.parse(obj).name1) {
|
||||||
console.log(" ---name_serie = " + JSON.parse(obj).name1 + " data_series = " + JSON.parse(obj).data1);
|
//console.log(" ---name_serie = " + JSON.parse(obj).name1 + " data_series = " + JSON.parse(obj).data1);
|
||||||
top5training.push(JSON.parse(obj).name1);
|
top5training.push(JSON.parse(obj).name1);
|
||||||
var ch_data2 = JSON.parse(obj).data1;
|
var ch_data2 = JSON.parse(obj).data1;
|
||||||
|
|
||||||
|
@ -197,13 +197,13 @@ Recuperation de toutes les formation du partenaire
|
||||||
|
|
||||||
var nom = JSON.parse(obj).name1;
|
var nom = JSON.parse(obj).name1;
|
||||||
setdetail_view_data1_name(nom);
|
setdetail_view_data1_name(nom);
|
||||||
console.log("new_data2 la = ", ch_data2);
|
//console.log("new_data2 la = ", ch_data2);
|
||||||
console.log("result = ", new_data2);
|
//console.log("result = ", new_data2);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (JSON.parse(obj).name2) {
|
if (JSON.parse(obj).name2) {
|
||||||
console.log(" ---name_serie = " + JSON.parse(obj).name2 + " data_series = " + JSON.parse(obj).data2);
|
//console.log(" ---name_serie = " + JSON.parse(obj).name2 + " data_series = " + JSON.parse(obj).data2);
|
||||||
top5training.push(JSON.parse(obj).name2);
|
top5training.push(JSON.parse(obj).name2);
|
||||||
var ch_data2 = JSON.parse(obj).data2;
|
var ch_data2 = JSON.parse(obj).data2;
|
||||||
let new_data2 = ch_data2.map(i => Number(i));
|
let new_data2 = ch_data2.map(i => Number(i));
|
||||||
|
@ -214,7 +214,7 @@ Recuperation de toutes les formation du partenaire
|
||||||
}
|
}
|
||||||
|
|
||||||
if (JSON.parse(obj).name3) {
|
if (JSON.parse(obj).name3) {
|
||||||
console.log(" ---name_serie = " + JSON.parse(obj).name3 + " data_series = " + JSON.parse(obj).data3);
|
//console.log(" ---name_serie = " + JSON.parse(obj).name3 + " data_series = " + JSON.parse(obj).data3);
|
||||||
top5training.push(JSON.parse(obj).name3);
|
top5training.push(JSON.parse(obj).name3);
|
||||||
var ch_data2 = JSON.parse(obj).data3;
|
var ch_data2 = JSON.parse(obj).data3;
|
||||||
let new_data2 = ch_data2.map(i => Number(i));
|
let new_data2 = ch_data2.map(i => Number(i));
|
||||||
|
@ -225,7 +225,7 @@ Recuperation de toutes les formation du partenaire
|
||||||
}
|
}
|
||||||
|
|
||||||
if (JSON.parse(obj).name4) {
|
if (JSON.parse(obj).name4) {
|
||||||
console.log(" ---name_serie = " + JSON.parse(obj).name4 + " data_series = " + JSON.parse(obj).data4);
|
//console.log(" ---name_serie = " + JSON.parse(obj).name4 + " data_series = " + JSON.parse(obj).data4);
|
||||||
top5training.push(JSON.parse(obj).name4);
|
top5training.push(JSON.parse(obj).name4);
|
||||||
var ch_data2 = JSON.parse(obj).data4;
|
var ch_data2 = JSON.parse(obj).data4;
|
||||||
let new_data2 = ch_data2.map(i => Number(i));
|
let new_data2 = ch_data2.map(i => Number(i));
|
||||||
|
@ -236,7 +236,7 @@ Recuperation de toutes les formation du partenaire
|
||||||
}
|
}
|
||||||
|
|
||||||
if (JSON.parse(obj).categories) {
|
if (JSON.parse(obj).categories) {
|
||||||
console.log(" ---categories = " + JSON.parse(obj).categories);
|
//console.log(" ---categories = " + JSON.parse(obj).categories);
|
||||||
var ch_data2 = JSON.parse(obj).categories;
|
var ch_data2 = JSON.parse(obj).categories;
|
||||||
var new_data2 = ch_data2.split(',');
|
var new_data2 = ch_data2.split(',');
|
||||||
setdetail_view_categorie(new_data2);
|
setdetail_view_categorie(new_data2);
|
||||||
|
@ -329,13 +329,13 @@ Recuperation de toutes les formation du partenaire
|
||||||
var date_end = ""
|
var date_end = ""
|
||||||
|
|
||||||
if (state[0].startDate) {
|
if (state[0].startDate) {
|
||||||
console.log("Start = " + state[0].startDate);
|
//console.log("Start = " + state[0].startDate);
|
||||||
console.log("Start = " + moment(state[0].startDate).format('YYYY-MM-DD'));
|
//console.log("Start = " + moment(state[0].startDate).format('YYYY-MM-DD'));
|
||||||
date_start = moment(state[0].startDate).format('YYYY-MM-DD');
|
date_start = moment(state[0].startDate).format('YYYY-MM-DD');
|
||||||
}
|
}
|
||||||
if (state[0].endDate) {
|
if (state[0].endDate) {
|
||||||
console.log("endDate = " + state[0].endDate);
|
//console.log("endDate = " + state[0].endDate);
|
||||||
console.log("END = " + moment(state[0].endDate).format('YYYY-MM-DD'));
|
//console.log("END = " + moment(state[0].endDate).format('YYYY-MM-DD'));
|
||||||
date_end = moment(state[0].endDate).format('YYYY-MM-DD');
|
date_end = moment(state[0].endDate).format('YYYY-MM-DD');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -351,13 +351,13 @@ Recuperation de toutes les formation du partenaire
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (String(res.data.status) != String("false")) {
|
if (String(res.data.status) != String("false")) {
|
||||||
console.log(" In DisplayTranningStat res.data.status = " + res.data.status);
|
//console.log(" In DisplayTranningStat res.data.status = " + res.data.status);
|
||||||
console.log(" In DisplayTranningStat res.data.message = " + res.data.message);
|
//console.log(" In DisplayTranningStat res.data.message = " + res.data.message);
|
||||||
|
|
||||||
|
|
||||||
res.data.message.map(obj => {
|
res.data.message.map(obj => {
|
||||||
if (JSON.parse(obj).name1) {
|
if (JSON.parse(obj).name1) {
|
||||||
console.log(" ---name_serie = " + JSON.parse(obj).name1 + " data_series = " + JSON.parse(obj).data1);
|
//console.log(" ---name_serie = " + JSON.parse(obj).name1 + " data_series = " + JSON.parse(obj).data1);
|
||||||
var ch_data2 = JSON.parse(obj).data1;
|
var ch_data2 = JSON.parse(obj).data1;
|
||||||
|
|
||||||
let new_data2 = ch_data2.map(i => Number(i));
|
let new_data2 = ch_data2.map(i => Number(i));
|
||||||
|
@ -366,14 +366,14 @@ Recuperation de toutes les formation du partenaire
|
||||||
|
|
||||||
var nom = JSON.parse(obj).name1;
|
var nom = JSON.parse(obj).name1;
|
||||||
setdetail_view_data1_name_selected_training(nom);
|
setdetail_view_data1_name_selected_training(nom);
|
||||||
console.log("new_data2 a = ", ch_data2);
|
//console.log("new_data2 a = ", ch_data2);
|
||||||
console.log("result = ", new_data2);
|
//console.log("result = ", new_data2);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (JSON.parse(obj).categories) {
|
if (JSON.parse(obj).categories) {
|
||||||
console.log(" ---categories = " + JSON.parse(obj).categories);
|
//console.log(" ---categories = " + JSON.parse(obj).categories);
|
||||||
var ch_data2 = JSON.parse(obj).categories;
|
var ch_data2 = JSON.parse(obj).categories;
|
||||||
var new_data2 = ch_data2.split(',');
|
var new_data2 = ch_data2.split(',');
|
||||||
setdetail_view_categorie_selected_training(new_data2);
|
setdetail_view_categorie_selected_training(new_data2);
|
||||||
|
@ -381,8 +381,8 @@ Recuperation de toutes les formation du partenaire
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log(" In DisplayTranningStat res.data.status = " + res.data.status);
|
//console.log(" In DisplayTranningStat res.data.status = " + res.data.status);
|
||||||
console.log(" In DisplayTranningStat res.data.message = " + res.data.message);
|
//console.log(" In DisplayTranningStat res.data.message = " + res.data.message);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ const Partner = (props) => {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message']);
|
//console.log('Success:', result['message']);
|
||||||
setexcelimportmessage(result['message']);
|
setexcelimportmessage(result['message']);
|
||||||
setmyApiResponse("true");
|
setmyApiResponse("true");
|
||||||
setapiexcelimportmessage(result['status']);
|
setapiexcelimportmessage(result['status']);
|
||||||
|
@ -164,9 +164,9 @@ const Partner = (props) => {
|
||||||
|
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (res.data.status != "False") {
|
if (String(res.data.status) === "true") {
|
||||||
console.log(" getImage : In test res.data.status = " + res.data.status);
|
//console.log(" getImage : In test res.data.status = " + res.data.status);
|
||||||
console.log(" getImage: res.data.message.img = " + res.data.message);
|
//console.log(" getImage: res.data.message.img = " + res.data.message);
|
||||||
|
|
||||||
if (res.data.message.img.length > 0) {
|
if (res.data.message.img.length > 0) {
|
||||||
setisimage("True");
|
setisimage("True");
|
||||||
|
@ -219,7 +219,7 @@ const Partner = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if( action && orderid && packs && String("abonnement")){
|
if( action && orderid && packs && String("abonnement")){
|
||||||
console.log(" abonnement : payement intent = ", orderid, " pack = ", packs);
|
//console.log(" abonnement : payement intent = ", orderid, " pack = ", packs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, [])
|
}, [])
|
||||||
|
@ -375,7 +375,7 @@ const Partner = (props) => {
|
||||||
|
|
||||||
var form = new FormData();
|
var form = new FormData();
|
||||||
|
|
||||||
console.log(" GetPartnerNameFromToken stored_cookie = ", stored_cookie);
|
//console.log(" GetPartnerNameFromToken stored_cookie = ", stored_cookie);
|
||||||
|
|
||||||
form.append("token", stored_cookie);
|
form.append("token", stored_cookie);
|
||||||
|
|
||||||
|
@ -431,7 +431,7 @@ const Partner = (props) => {
|
||||||
}
|
}
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message']);
|
//console.log('Success:', result['message']);
|
||||||
setisimgSelected(false);
|
setisimgSelected(false);
|
||||||
|
|
||||||
})
|
})
|
||||||
|
@ -491,7 +491,7 @@ const Partner = (props) => {
|
||||||
|
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log('In CheckSalesOrder ', error);
|
//console.log('In CheckSalesOrder ', error);
|
||||||
setCheckSalesOrder_api("false")
|
setCheckSalesOrder_api("false")
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -122,7 +122,7 @@ function PartnerSignIn() {
|
||||||
}
|
}
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
|
|
||||||
var val = result['status'];
|
var val = result['status'];
|
||||||
|
|
||||||
|
|
|
@ -157,7 +157,7 @@ function PaymentMethode(props) {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
setmyApiResponse(result['status']);
|
setmyApiResponse(result['status']);
|
||||||
setResult(result['message']);
|
setResult(result['message']);
|
||||||
|
|
||||||
|
@ -231,7 +231,7 @@ function PaymentMethode(props) {
|
||||||
}
|
}
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
||||||
console.log(" props.mypaymentmode = " + props.mypaymentmode);
|
//console.log(" props.mypaymentmode = " + props.mypaymentmode);
|
||||||
|
|
||||||
var num_carte = "XXXX"+JSON.parse(props.mypaymentmode).last4;
|
var num_carte = "XXXX"+JSON.parse(props.mypaymentmode).last4;
|
||||||
setnum_carte(num_carte);
|
setnum_carte(num_carte);
|
||||||
|
|
|
@ -116,7 +116,7 @@ function PaymentMethodeNoConnect(props) {
|
||||||
formData.append('secret', secret);
|
formData.append('secret', secret);
|
||||||
|
|
||||||
|
|
||||||
console.log(" menu = ", menu);
|
//console.log(" menu = ", menu);
|
||||||
|
|
||||||
if (String(menu) === String("cb")) {
|
if (String(menu) === String("cb")) {
|
||||||
var nom_carte = document.getElementsByName("nom_carte")[0].value;
|
var nom_carte = document.getElementsByName("nom_carte")[0].value;
|
||||||
|
@ -139,7 +139,7 @@ function PaymentMethodeNoConnect(props) {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log(' paymenadded_api Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log(' paymenadded_api Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
setRecordData_api(result['status']);
|
setRecordData_api(result['status']);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,7 @@ function PaymentMethodeNoConnect(props) {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
setmyApiResponse(result['status']);
|
setmyApiResponse(result['status']);
|
||||||
setResult(result['message']);
|
setResult(result['message']);
|
||||||
|
|
||||||
|
|
|
@ -173,7 +173,7 @@ const Recherche = () => {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("matches = " + matches);
|
//console.log("matches = " + matches);
|
||||||
setsuggestion2(matches);
|
setsuggestion2(matches);
|
||||||
settext(event.target.value);
|
settext(event.target.value);
|
||||||
|
|
||||||
|
@ -363,7 +363,7 @@ const Recherche = () => {
|
||||||
crit_TrainingCertif = document.getElementById("TrainingCertif").value;
|
crit_TrainingCertif = document.getElementById("TrainingCertif").value;
|
||||||
if (crit_TrainingCertif.length > 0) {
|
if (crit_TrainingCertif.length > 0) {
|
||||||
|
|
||||||
console.log(result)
|
//console.log(result)
|
||||||
filtre1 = result.filter((maformation) => String(JSON.parse(maformation).certif) === String(crit_TrainingCertif));
|
filtre1 = result.filter((maformation) => String(JSON.parse(maformation).certif) === String(crit_TrainingCertif));
|
||||||
setv11(filtre1);
|
setv11(filtre1);
|
||||||
}
|
}
|
||||||
|
@ -452,7 +452,7 @@ const Recherche = () => {
|
||||||
crit_TrainingCertif = document.querySelector('input[name="TrainingCertif"]:checked').value
|
crit_TrainingCertif = document.querySelector('input[name="TrainingCertif"]:checked').value
|
||||||
if (crit_TrainingCertif.length > 0) {
|
if (crit_TrainingCertif.length > 0) {
|
||||||
//alert(" laa = " + crit_TrainingCertif);
|
//alert(" laa = " + crit_TrainingCertif);
|
||||||
console.log(result)
|
//console.log(result)
|
||||||
filtre1 = result.filter((maformation) => String(JSON.parse(maformation).certif) === String(crit_TrainingCertif));
|
filtre1 = result.filter((maformation) => String(JSON.parse(maformation).certif) === String(crit_TrainingCertif));
|
||||||
setv11(filtre1);
|
setv11(filtre1);
|
||||||
}
|
}
|
||||||
|
@ -1099,7 +1099,7 @@ const Recherche = () => {
|
||||||
}
|
}
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message']);
|
//console.log('Success:', result['message']);
|
||||||
setsuggestedwords(result['message']);
|
setsuggestedwords(result['message']);
|
||||||
|
|
||||||
|
|
||||||
|
@ -1221,11 +1221,11 @@ const Recherche = () => {
|
||||||
|
|
||||||
var crit_Trainingdistance = Trainingdistance;
|
var crit_Trainingdistance = Trainingdistance;
|
||||||
|
|
||||||
console.log('SearchText = ' + crit_SearchText + ' - TrainingSupport = ' + crit_TrainingSupport +
|
/*console.log('SearchText = ' + crit_SearchText + ' - TrainingSupport = ' + crit_TrainingSupport +
|
||||||
' - TrainingType = ' + crit_TrainingType + ' - TrainingCertif ' + crit_TrainingCertif +
|
' - TrainingType = ' + crit_TrainingType + ' - TrainingCertif ' + crit_TrainingCertif +
|
||||||
" Langue = " + crit_TrainingLang + " TrainingPrice = " + crit_TrainingPrice +
|
" Langue = " + crit_TrainingLang + " TrainingPrice = " + crit_TrainingPrice +
|
||||||
" - Distance = " + crit_Trainingdistance + " -- Presentiel :" + crit_TrainingPresentiel +
|
" - Distance = " + crit_Trainingdistance + " -- Presentiel :" + crit_TrainingPresentiel +
|
||||||
" - Duration = " + crit_TrainingDuration + " - stored_user_cookie = " + stored_user);
|
" - Duration = " + crit_TrainingDuration + " - stored_user_cookie = " + stored_user);*/
|
||||||
|
|
||||||
|
|
||||||
var form = new FormData();
|
var form = new FormData();
|
||||||
|
@ -1486,8 +1486,8 @@ const Recherche = () => {
|
||||||
//textInput.current.focus();
|
//textInput.current.focus();
|
||||||
setbesoinaiderecherche("");
|
setbesoinaiderecherche("");
|
||||||
setnewresult("");
|
setnewresult("");
|
||||||
console.log(" In getClassByMetier res.data.status = " + res.data.status);
|
//console.log(" In getClassByMetier res.data.status = " + res.data.status);
|
||||||
console.log(" In getClassByMetier res.data.message = " + res.data.message);
|
//console.log(" In getClassByMetier res.data.message = " + res.data.message);
|
||||||
//setnewresult(res.data.message);
|
//setnewresult(res.data.message);
|
||||||
setCurrentPage2(1);
|
setCurrentPage2(1);
|
||||||
if (scrollDiv.current) {
|
if (scrollDiv.current) {
|
||||||
|
@ -1584,8 +1584,8 @@ const Recherche = () => {
|
||||||
//textInput.current.focus();
|
//textInput.current.focus();
|
||||||
setbesoinaiderecherche("");
|
setbesoinaiderecherche("");
|
||||||
setnewresult("");
|
setnewresult("");
|
||||||
console.log(" In getClassByMetier res.data.status = " + res.data.status);
|
//console.log(" In getClassByMetier res.data.status = " + res.data.status);
|
||||||
console.log(" In getClassByMetier res.data.message = " + res.data.message);
|
//console.log(" In getClassByMetier res.data.message = " + res.data.message);
|
||||||
//setnewresult(res.data.message);
|
//setnewresult(res.data.message);
|
||||||
setCurrentPage2(1);
|
setCurrentPage2(1);
|
||||||
if (scrollDiv.current) {
|
if (scrollDiv.current) {
|
||||||
|
@ -1805,7 +1805,7 @@ const Recherche = () => {
|
||||||
const [range_price, setrange_price] = useState({ min: 0, max: 9999, });
|
const [range_price, setrange_price] = useState({ min: 0, max: 9999, });
|
||||||
function rangevalue() {
|
function rangevalue() {
|
||||||
alert(range_price.max + " - " + range_price.min);
|
alert(range_price.max + " - " + range_price.min);
|
||||||
console.log(" range = " + range_price);
|
//console.log(" range = " + range_price);
|
||||||
}
|
}
|
||||||
|
|
||||||
const [trainingonsite, settrainingonsite] = useState()
|
const [trainingonsite, settrainingonsite] = useState()
|
||||||
|
|
|
@ -87,7 +87,7 @@ const RechercheArticles = (props) => {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
const results = await res.json();
|
const results = await res.json();
|
||||||
console.log(results);
|
//console.log(results);
|
||||||
};
|
};
|
||||||
|
|
||||||
const [Trainingdistance, setTrainingdistance] = useState(0);
|
const [Trainingdistance, setTrainingdistance] = useState(0);
|
||||||
|
|
|
@ -306,7 +306,7 @@ const Recherche_new = () => {
|
||||||
crit_TrainingCertif = document.querySelector('input[name="TrainingCertif"]:checked').value
|
crit_TrainingCertif = document.querySelector('input[name="TrainingCertif"]:checked').value
|
||||||
if (crit_TrainingCertif.length > 0) {
|
if (crit_TrainingCertif.length > 0) {
|
||||||
//alert(" laa = " + crit_TrainingCertif);
|
//alert(" laa = " + crit_TrainingCertif);
|
||||||
console.log(result)
|
//console.log(result)
|
||||||
filtre1 = result.filter((maformation) => String(JSON.parse(maformation).certif) === String(crit_TrainingCertif));
|
filtre1 = result.filter((maformation) => String(JSON.parse(maformation).certif) === String(crit_TrainingCertif));
|
||||||
setv11(filtre1);
|
setv11(filtre1);
|
||||||
}
|
}
|
||||||
|
@ -942,7 +942,7 @@ const Recherche_new = () => {
|
||||||
}
|
}
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message']);
|
//console.log('Success:', result['message']);
|
||||||
setsuggestedwords(result['message']);
|
setsuggestedwords(result['message']);
|
||||||
|
|
||||||
|
|
||||||
|
@ -964,9 +964,9 @@ const Recherche_new = () => {
|
||||||
}
|
}
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log(' loadSuggestedFrCities CITIES = Success:', result['message']);
|
//console.log(' loadSuggestedFrCities CITIES = Success:', result['message']);
|
||||||
setsuggestedcities(result['message']);
|
setsuggestedcities(result['message']);
|
||||||
console.log(" CITIES = " + result['message']);
|
//console.log(" CITIES = " + result['message']);
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
@ -1105,11 +1105,11 @@ const Recherche_new = () => {
|
||||||
|
|
||||||
var crit_Trainingdistance = Trainingdistance;
|
var crit_Trainingdistance = Trainingdistance;
|
||||||
|
|
||||||
console.log('SearchText = ' + crit_SearchText + ' - TrainingSupport = ' + crit_TrainingSupport +
|
/*console.log('SearchText = ' + crit_SearchText + ' - TrainingSupport = ' + crit_TrainingSupport +
|
||||||
' - TrainingType = ' + crit_TrainingType + ' - TrainingCertif ' + crit_TrainingCertif +
|
' - TrainingType = ' + crit_TrainingType + ' - TrainingCertif ' + crit_TrainingCertif +
|
||||||
" Langue = " + crit_TrainingLang + " TrainingPrice = " + crit_TrainingPrice +
|
" Langue = " + crit_TrainingLang + " TrainingPrice = " + crit_TrainingPrice +
|
||||||
" - Distance = " + crit_Trainingdistance + " -- Presentiel :" + crit_TrainingPresentiel +
|
" - Distance = " + crit_Trainingdistance + " -- Presentiel :" + crit_TrainingPresentiel +
|
||||||
" - Duration = " + crit_TrainingDuration + " - stored_user_cookie = " + stored_user);
|
" - Duration = " + crit_TrainingDuration + " - stored_user_cookie = " + stored_user); */
|
||||||
|
|
||||||
|
|
||||||
var form = new FormData();
|
var form = new FormData();
|
||||||
|
@ -1230,7 +1230,7 @@ const Recherche_new = () => {
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
if (String(res.data.status) != String("false")) {
|
if (String(res.data.status) != String("false")) {
|
||||||
//console.log(" In test res.data.status = " + res.data.status);
|
//console.log(" In test res.data.status = " + res.data.status);
|
||||||
console.log(" In DisplayXfirstClas res.data.message = " + res.data.message);
|
//console.log(" In DisplayXfirstClas res.data.message = " + res.data.message);
|
||||||
setmyApiResponse("True");
|
setmyApiResponse("True");
|
||||||
setResult(res.data.message)
|
setResult(res.data.message)
|
||||||
// textInput.current.focus();
|
// textInput.current.focus();
|
||||||
|
@ -1387,8 +1387,8 @@ const Recherche_new = () => {
|
||||||
//textInput.current.focus();
|
//textInput.current.focus();
|
||||||
setbesoinaiderecherche("");
|
setbesoinaiderecherche("");
|
||||||
setnewresult("");
|
setnewresult("");
|
||||||
console.log(" In getClassByMetier res.data.status = " + res.data.status);
|
//console.log(" In getClassByMetier res.data.status = " + res.data.status);
|
||||||
console.log(" In getClassByMetier res.data.message = " + res.data.message);
|
//console.log(" In getClassByMetier res.data.message = " + res.data.message);
|
||||||
//setnewresult(res.data.message);
|
//setnewresult(res.data.message);
|
||||||
setCurrentPage2(1);
|
setCurrentPage2(1);
|
||||||
if (scrollDiv.current) {
|
if (scrollDiv.current) {
|
||||||
|
@ -1485,8 +1485,8 @@ const Recherche_new = () => {
|
||||||
//textInput.current.focus();
|
//textInput.current.focus();
|
||||||
setbesoinaiderecherche("");
|
setbesoinaiderecherche("");
|
||||||
setnewresult("");
|
setnewresult("");
|
||||||
console.log(" In getClassByMetier res.data.status = " + res.data.status);
|
//console.log(" In getClassByMetier res.data.status = " + res.data.status);
|
||||||
console.log(" In getClassByMetier res.data.message = " + res.data.message);
|
//console.log(" In getClassByMetier res.data.message = " + res.data.message);
|
||||||
//setnewresult(res.data.message);
|
//setnewresult(res.data.message);
|
||||||
setCurrentPage2(1);
|
setCurrentPage2(1);
|
||||||
if (scrollDiv.current) {
|
if (scrollDiv.current) {
|
||||||
|
@ -1713,7 +1713,7 @@ const Recherche_new = () => {
|
||||||
const [range_price, setrange_price] = useState({ min: 0, max: 9999, });
|
const [range_price, setrange_price] = useState({ min: 0, max: 9999, });
|
||||||
function rangevalue() {
|
function rangevalue() {
|
||||||
alert(range_price.max + " - " + range_price.min);
|
alert(range_price.max + " - " + range_price.min);
|
||||||
console.log(" range = " + range_price);
|
//console.log(" range = " + range_price);
|
||||||
}
|
}
|
||||||
|
|
||||||
const [trainingonsite, settrainingonsite] = useState()
|
const [trainingonsite, settrainingonsite] = useState()
|
||||||
|
|
|
@ -306,7 +306,7 @@ const Recherche_new = () => {
|
||||||
crit_TrainingCertif = document.querySelector('input[name="TrainingCertif"]:checked').value
|
crit_TrainingCertif = document.querySelector('input[name="TrainingCertif"]:checked').value
|
||||||
if (crit_TrainingCertif.length > 0) {
|
if (crit_TrainingCertif.length > 0) {
|
||||||
//alert(" laa = " + crit_TrainingCertif);
|
//alert(" laa = " + crit_TrainingCertif);
|
||||||
console.log(result)
|
//console.log(result)
|
||||||
filtre1 = result.filter((maformation) => String(JSON.parse(maformation).certif) === String(crit_TrainingCertif));
|
filtre1 = result.filter((maformation) => String(JSON.parse(maformation).certif) === String(crit_TrainingCertif));
|
||||||
setv11(filtre1);
|
setv11(filtre1);
|
||||||
}
|
}
|
||||||
|
@ -942,7 +942,7 @@ const Recherche_new = () => {
|
||||||
}
|
}
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message']);
|
//console.log('Success:', result['message']);
|
||||||
setsuggestedwords(result['message']);
|
setsuggestedwords(result['message']);
|
||||||
|
|
||||||
|
|
||||||
|
@ -964,9 +964,9 @@ const Recherche_new = () => {
|
||||||
}
|
}
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log(' loadSuggestedFrCities CITIES = Success:', result['message']);
|
//console.log(' loadSuggestedFrCities CITIES = Success:', result['message']);
|
||||||
setsuggestedcities(result['message']);
|
setsuggestedcities(result['message']);
|
||||||
console.log(" CITIES = " + result['message']);
|
//console.log(" CITIES = " + result['message']);
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
@ -1105,11 +1105,11 @@ const Recherche_new = () => {
|
||||||
|
|
||||||
var crit_Trainingdistance = Trainingdistance;
|
var crit_Trainingdistance = Trainingdistance;
|
||||||
|
|
||||||
console.log('SearchText = ' + crit_SearchText + ' - TrainingSupport = ' + crit_TrainingSupport +
|
/*console.log('SearchText = ' + crit_SearchText + ' - TrainingSupport = ' + crit_TrainingSupport +
|
||||||
' - TrainingType = ' + crit_TrainingType + ' - TrainingCertif ' + crit_TrainingCertif +
|
' - TrainingType = ' + crit_TrainingType + ' - TrainingCertif ' + crit_TrainingCertif +
|
||||||
" Langue = " + crit_TrainingLang + " TrainingPrice = " + crit_TrainingPrice +
|
" Langue = " + crit_TrainingLang + " TrainingPrice = " + crit_TrainingPrice +
|
||||||
" - Distance = " + crit_Trainingdistance + " -- Presentiel :" + crit_TrainingPresentiel +
|
" - Distance = " + crit_Trainingdistance + " -- Presentiel :" + crit_TrainingPresentiel +
|
||||||
" - Duration = " + crit_TrainingDuration + " - stored_user_cookie = " + stored_user);
|
" - Duration = " + crit_TrainingDuration + " - stored_user_cookie = " + stored_user);*/
|
||||||
|
|
||||||
|
|
||||||
var form = new FormData();
|
var form = new FormData();
|
||||||
|
@ -1230,7 +1230,7 @@ const Recherche_new = () => {
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
if (String(res.data.status) != String("false")) {
|
if (String(res.data.status) != String("false")) {
|
||||||
//console.log(" In test res.data.status = " + res.data.status);
|
//console.log(" In test res.data.status = " + res.data.status);
|
||||||
console.log(" In DisplayXfirstClas res.data.message = " + res.data.message);
|
//console.log(" In DisplayXfirstClas res.data.message = " + res.data.message);
|
||||||
setmyApiResponse("True");
|
setmyApiResponse("True");
|
||||||
setResult(res.data.message)
|
setResult(res.data.message)
|
||||||
// textInput.current.focus();
|
// textInput.current.focus();
|
||||||
|
@ -1387,8 +1387,8 @@ const Recherche_new = () => {
|
||||||
//textInput.current.focus();
|
//textInput.current.focus();
|
||||||
setbesoinaiderecherche("");
|
setbesoinaiderecherche("");
|
||||||
setnewresult("");
|
setnewresult("");
|
||||||
console.log(" In getClassByMetier res.data.status = " + res.data.status);
|
//console.log(" In getClassByMetier res.data.status = " + res.data.status);
|
||||||
console.log(" In getClassByMetier res.data.message = " + res.data.message);
|
//console.log(" In getClassByMetier res.data.message = " + res.data.message);
|
||||||
//setnewresult(res.data.message);
|
//setnewresult(res.data.message);
|
||||||
setCurrentPage2(1);
|
setCurrentPage2(1);
|
||||||
if (scrollDiv.current) {
|
if (scrollDiv.current) {
|
||||||
|
@ -1485,8 +1485,8 @@ const Recherche_new = () => {
|
||||||
//textInput.current.focus();
|
//textInput.current.focus();
|
||||||
setbesoinaiderecherche("");
|
setbesoinaiderecherche("");
|
||||||
setnewresult("");
|
setnewresult("");
|
||||||
console.log(" In getClassByMetier res.data.status = " + res.data.status);
|
//console.log(" In getClassByMetier res.data.status = " + res.data.status);
|
||||||
console.log(" In getClassByMetier res.data.message = " + res.data.message);
|
//console.log(" In getClassByMetier res.data.message = " + res.data.message);
|
||||||
//setnewresult(res.data.message);
|
//setnewresult(res.data.message);
|
||||||
setCurrentPage2(1);
|
setCurrentPage2(1);
|
||||||
if (scrollDiv.current) {
|
if (scrollDiv.current) {
|
||||||
|
@ -1713,7 +1713,7 @@ const Recherche_new = () => {
|
||||||
const [range_price, setrange_price] = useState({ min: 0, max: 9999, });
|
const [range_price, setrange_price] = useState({ min: 0, max: 9999, });
|
||||||
function rangevalue() {
|
function rangevalue() {
|
||||||
alert(range_price.max + " - " + range_price.min);
|
alert(range_price.max + " - " + range_price.min);
|
||||||
console.log(" range = " + range_price);
|
//console.log(" range = " + range_price);
|
||||||
}
|
}
|
||||||
|
|
||||||
const [trainingonsite, settrainingonsite] = useState()
|
const [trainingonsite, settrainingonsite] = useState()
|
||||||
|
|
|
@ -243,7 +243,7 @@ const Recherche_new_v2 = () => {
|
||||||
if (document.getElementById("supoort_list_derou")) {
|
if (document.getElementById("supoort_list_derou")) {
|
||||||
crit_TrainingSupport = document.getElementById("supoort_list_derou").value;
|
crit_TrainingSupport = document.getElementById("supoort_list_derou").value;
|
||||||
|
|
||||||
console.log("crit_TrainingSupport = ", crit_TrainingSupport);
|
//console.log("crit_TrainingSupport = ", crit_TrainingSupport);
|
||||||
|
|
||||||
if (crit_TrainingSupport.length > 0) {
|
if (crit_TrainingSupport.length > 0) {
|
||||||
filtre1 = result.filter((maformation) => JSON.parse(maformation).support === crit_TrainingSupport);
|
filtre1 = result.filter((maformation) => JSON.parse(maformation).support === crit_TrainingSupport);
|
||||||
|
@ -350,7 +350,7 @@ const Recherche_new_v2 = () => {
|
||||||
crit_TrainingCertif = document.querySelector('input[name="TrainingCertif"]:checked').value
|
crit_TrainingCertif = document.querySelector('input[name="TrainingCertif"]:checked').value
|
||||||
if (crit_TrainingCertif.length > 0) {
|
if (crit_TrainingCertif.length > 0) {
|
||||||
//alert(" laa = " + crit_TrainingCertif);
|
//alert(" laa = " + crit_TrainingCertif);
|
||||||
console.log(result)
|
//console.log(result)
|
||||||
filtre1 = result.filter((maformation) => String(JSON.parse(maformation).certif) === String(crit_TrainingCertif));
|
filtre1 = result.filter((maformation) => String(JSON.parse(maformation).certif) === String(crit_TrainingCertif));
|
||||||
setv11(filtre1);
|
setv11(filtre1);
|
||||||
}
|
}
|
||||||
|
@ -1337,13 +1337,13 @@ const Recherche_new_v2 = () => {
|
||||||
|
|
||||||
var crit_Trainingdistance = Trainingdistance;
|
var crit_Trainingdistance = Trainingdistance;
|
||||||
|
|
||||||
console.log(" my_domaine = ", my_domaine);
|
//console.log(" my_domaine = ", my_domaine);
|
||||||
|
|
||||||
console.log('SearchText = ' + crit_SearchText + ' - TrainingSupport = ' + crit_TrainingSupport +
|
/*console.log('SearchText = ' + crit_SearchText + ' - TrainingSupport = ' + crit_TrainingSupport +
|
||||||
' - TrainingType = ' + crit_TrainingType + ' - TrainingCertif ' + crit_TrainingCertif +
|
' - TrainingType = ' + crit_TrainingType + ' - TrainingCertif ' + crit_TrainingCertif +
|
||||||
" Langue = " + crit_TrainingLang + " TrainingPrice = " + crit_TrainingPrice +
|
" Langue = " + crit_TrainingLang + " TrainingPrice = " + crit_TrainingPrice +
|
||||||
" - Distance = " + crit_Trainingdistance + " -- Presentiel :" + crit_TrainingPresentiel +
|
" - Distance = " + crit_Trainingdistance + " -- Presentiel :" + crit_TrainingPresentiel +
|
||||||
" - Duration = " + crit_TrainingDuration + " - stored_user_cookie = " + stored_user);
|
" - Duration = " + crit_TrainingDuration + " - stored_user_cookie = " + stored_user);*/
|
||||||
|
|
||||||
|
|
||||||
var form = new FormData();
|
var form = new FormData();
|
||||||
|
@ -1795,7 +1795,7 @@ const Recherche_new_v2 = () => {
|
||||||
//setmyApimyApiMessage("")
|
//setmyApimyApiMessage("")
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(" ICI MOVE TO ");
|
//console.log(" ICI MOVE TO ");
|
||||||
if (myelement) {
|
if (myelement) {
|
||||||
// 👇 Will scroll smoothly to the top of the next section
|
// 👇 Will scroll smoothly to the top of the next section
|
||||||
myelement.scrollIntoView({ behavior: 'smooth' });
|
myelement.scrollIntoView({ behavior: 'smooth' });
|
||||||
|
@ -2001,7 +2001,7 @@ const Recherche_new_v2 = () => {
|
||||||
const [range_price, setrange_price] = useState({ min: 0, max: 9999, });
|
const [range_price, setrange_price] = useState({ min: 0, max: 9999, });
|
||||||
function rangevalue() {
|
function rangevalue() {
|
||||||
alert(range_price.max + " - " + range_price.min);
|
alert(range_price.max + " - " + range_price.min);
|
||||||
console.log(" range = " + range_price);
|
//console.log(" range = " + range_price);
|
||||||
}
|
}
|
||||||
|
|
||||||
const [trainingonsite, settrainingonsite] = useState()
|
const [trainingonsite, settrainingonsite] = useState()
|
||||||
|
@ -2409,8 +2409,8 @@ const Recherche_new_v2 = () => {
|
||||||
|
|
||||||
const Recherche_Domaine_Metier = (event) => {
|
const Recherche_Domaine_Metier = (event) => {
|
||||||
|
|
||||||
console.log(" ### liste domaine = ", list_domaine);
|
//console.log(" ### liste domaine = ", list_domaine);
|
||||||
console.log(" ### liste metier = ", list_metier);
|
//console.log(" ### liste metier = ", list_metier);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ function Register() {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
const results = await res.json();
|
const results = await res.json();
|
||||||
console.log(results);
|
//console.log(results);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -182,7 +182,7 @@ function ResetUserPwd() {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
|
|
||||||
setResult(result['message']);
|
setResult(result['message']);
|
||||||
if (String(result['status']) == String("true")) {
|
if (String(result['status']) == String("true")) {
|
||||||
|
|
|
@ -97,7 +97,7 @@ function SignIn() {
|
||||||
|
|
||||||
const onSubmit = async (data) => {
|
const onSubmit = async (data) => {
|
||||||
|
|
||||||
console.log(" CONNEXION DE = ",menucompte);
|
//console.log(" CONNEXION DE = ",menucompte);
|
||||||
var partner_connexion = "";
|
var partner_connexion = "";
|
||||||
var url_login = "";
|
var url_login = "";
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ function SignIn() {
|
||||||
}
|
}
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
|
|
||||||
var val = result['status'];
|
var val = result['status'];
|
||||||
|
|
||||||
|
|
|
@ -262,7 +262,7 @@ function SignUp() {
|
||||||
}
|
}
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
|
|
||||||
if (String(result['status']) == String("true")) {
|
if (String(result['status']) == String("true")) {
|
||||||
alert(String(result['message']));
|
alert(String(result['message']));
|
||||||
|
|
|
@ -193,21 +193,21 @@ const TestUrl = (props) => {
|
||||||
const handleOnSearch = (string, results) => {
|
const handleOnSearch = (string, results) => {
|
||||||
// onSearch will have as the first callback parameter
|
// onSearch will have as the first callback parameter
|
||||||
// the string searched and for the second the results.
|
// the string searched and for the second the results.
|
||||||
console.log(string, results)
|
//console.log(string, results)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleOnHover = (result) => {
|
const handleOnHover = (result) => {
|
||||||
// the item hovered
|
// the item hovered
|
||||||
console.log(result)
|
//console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleOnSelect = (item) => {
|
const handleOnSelect = (item) => {
|
||||||
// the item selected
|
// the item selected
|
||||||
console.log(item)
|
//console.log(item)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleOnFocus = () => {
|
const handleOnFocus = () => {
|
||||||
console.log('Focused')
|
//console.log('Focused')
|
||||||
}
|
}
|
||||||
|
|
||||||
const formatResult = (item) => {
|
const formatResult = (item) => {
|
||||||
|
@ -249,7 +249,7 @@ const TestUrl = (props) => {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("matches = " + matches);
|
//console.log("matches = " + matches);
|
||||||
setsuggestion2(matches);
|
setsuggestion2(matches);
|
||||||
settext(e.target.value);
|
settext(e.target.value);
|
||||||
}
|
}
|
||||||
|
@ -299,13 +299,13 @@ const TestUrl = (props) => {
|
||||||
var date_end = ""
|
var date_end = ""
|
||||||
|
|
||||||
if (state[0].startDate) {
|
if (state[0].startDate) {
|
||||||
console.log("Start = " + state[0].startDate);
|
//console.log("Start = " + state[0].startDate);
|
||||||
console.log("Start = " + moment(state[0].startDate).format('YYYY-MM-DD'));
|
//console.log("Start = " + moment(state[0].startDate).format('YYYY-MM-DD'));
|
||||||
date_start = moment(state[0].startDate).format('YYYY-MM-DD');
|
date_start = moment(state[0].startDate).format('YYYY-MM-DD');
|
||||||
}
|
}
|
||||||
if (state[0].endDate) {
|
if (state[0].endDate) {
|
||||||
console.log("endDate = " + state[0].endDate);
|
//console.log("endDate = " + state[0].endDate);
|
||||||
console.log("END = " + moment(state[0].endDate).format('YYYY-MM-DD'));
|
//console.log("END = " + moment(state[0].endDate).format('YYYY-MM-DD'));
|
||||||
date_end = moment(state[0].endDate).format('YYYY-MM-DD');
|
date_end = moment(state[0].endDate).format('YYYY-MM-DD');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -318,18 +318,18 @@ const TestUrl = (props) => {
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (String(res.data.status) != String("false")) {
|
if (String(res.data.status) != String("false")) {
|
||||||
console.log(" In test res.data.status = " + res.data.status);
|
//console.log(" In test res.data.status = " + res.data.status);
|
||||||
console.log(" In test res.data.message = " + res.data.message);
|
//console.log(" In test res.data.message = " + res.data.message);
|
||||||
res.data.message.map(obj => {
|
res.data.message.map(obj => {
|
||||||
|
|
||||||
if (JSON.parse(obj).Date_view) {
|
if (JSON.parse(obj).Date_view) {
|
||||||
console.log("Date_view " + JSON.parse(obj).Date_view + " nb_view = " + JSON.parse(obj).nb_view);
|
//console.log("Date_view " + JSON.parse(obj).Date_view + " nb_view = " + JSON.parse(obj).nb_view);
|
||||||
ch_array.push(parseInt(JSON.parse(obj).nb_view));
|
ch_array.push(parseInt(JSON.parse(obj).nb_view));
|
||||||
ch_categories.push(JSON.parse(obj).Date_view);
|
ch_categories.push(JSON.parse(obj).Date_view);
|
||||||
} else if (JSON.parse(obj).data) {
|
} else if (JSON.parse(obj).data) {
|
||||||
|
|
||||||
//ch_data2 = String(obj.data);
|
//ch_data2 = String(obj.data);
|
||||||
console.log("data ok " + JSON.parse(obj).data)
|
//console.log("data ok " + JSON.parse(obj).data)
|
||||||
|
|
||||||
ch_data2 = JSON.parse(obj).data;
|
ch_data2 = JSON.parse(obj).data;
|
||||||
}
|
}
|
||||||
|
@ -337,15 +337,15 @@ const TestUrl = (props) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
console.log(" ch_array = " + ch_array);
|
//console.log(" ch_array = " + ch_array);
|
||||||
console.log(" ch_data2 = " + ch_data2);
|
//console.log(" ch_data2 = " + ch_data2);
|
||||||
|
|
||||||
var new_data2 = ch_data2.split(',').map(Number);
|
var new_data2 = ch_data2.split(',').map(Number);
|
||||||
new_data2.push(123);
|
new_data2.push(123);
|
||||||
console.log(" new_data2 = " + new_data2);
|
//console.log(" new_data2 = " + new_data2);
|
||||||
|
|
||||||
setglobal_view_data(ch_array);
|
setglobal_view_data(ch_array);
|
||||||
console.log(global_view_data);
|
//console.log(global_view_data);
|
||||||
setglobal_view_categories(ch_categories);
|
setglobal_view_categories(ch_categories);
|
||||||
setglobal_view_data_v2(new_data2);
|
setglobal_view_data_v2(new_data2);
|
||||||
}
|
}
|
||||||
|
@ -380,13 +380,13 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
var date_end = ""
|
var date_end = ""
|
||||||
|
|
||||||
if (state[0].startDate) {
|
if (state[0].startDate) {
|
||||||
console.log("Start = " + state[0].startDate);
|
//console.log("Start = " + state[0].startDate);
|
||||||
console.log("Start = " + moment(state[0].startDate).format('YYYY-MM-DD'));
|
//console.log("Start = " + moment(state[0].startDate).format('YYYY-MM-DD'));
|
||||||
date_start = moment(state[0].startDate).format('YYYY-MM-DD');
|
date_start = moment(state[0].startDate).format('YYYY-MM-DD');
|
||||||
}
|
}
|
||||||
if (state[0].endDate) {
|
if (state[0].endDate) {
|
||||||
console.log("endDate = " + state[0].endDate);
|
//console.log("endDate = " + state[0].endDate);
|
||||||
console.log("END = " + moment(state[0].endDate).format('YYYY-MM-DD'));
|
//console.log("END = " + moment(state[0].endDate).format('YYYY-MM-DD'));
|
||||||
date_end = moment(state[0].endDate).format('YYYY-MM-DD');
|
date_end = moment(state[0].endDate).format('YYYY-MM-DD');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -403,13 +403,13 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (String(res.data.status) != String("false")) {
|
if (String(res.data.status) != String("false")) {
|
||||||
console.log(" In test res.data.status = " + res.data.status);
|
//console.log(" In test res.data.status = " + res.data.status);
|
||||||
console.log(" In test res.data.message = " + res.data.message);
|
//console.log(" In test res.data.message = " + res.data.message);
|
||||||
|
|
||||||
|
|
||||||
res.data.message.map(obj => {
|
res.data.message.map(obj => {
|
||||||
if (JSON.parse(obj).name1) {
|
if (JSON.parse(obj).name1) {
|
||||||
console.log(" ---name_serie = " + JSON.parse(obj).name1 + " data_series = " + JSON.parse(obj).data1);
|
//console.log(" ---name_serie = " + JSON.parse(obj).name1 + " data_series = " + JSON.parse(obj).data1);
|
||||||
top5training.push(JSON.parse(obj).name1);
|
top5training.push(JSON.parse(obj).name1);
|
||||||
var ch_data2 = JSON.parse(obj).data1;
|
var ch_data2 = JSON.parse(obj).data1;
|
||||||
|
|
||||||
|
@ -419,13 +419,13 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
|
|
||||||
var nom = JSON.parse(obj).name1;
|
var nom = JSON.parse(obj).name1;
|
||||||
setdetail_view_data1_name(nom);
|
setdetail_view_data1_name(nom);
|
||||||
console.log("new_data2 = ", ch_data2);
|
//console.log("new_data2 = ", ch_data2);
|
||||||
console.log("result = ", new_data2);
|
//console.log("result = ", new_data2);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (JSON.parse(obj).name2) {
|
if (JSON.parse(obj).name2) {
|
||||||
console.log(" ---name_serie = " + JSON.parse(obj).name2 + " data_series = " + JSON.parse(obj).data2);
|
//console.log(" ---name_serie = " + JSON.parse(obj).name2 + " data_series = " + JSON.parse(obj).data2);
|
||||||
top5training.push(JSON.parse(obj).name2);
|
top5training.push(JSON.parse(obj).name2);
|
||||||
var ch_data2 = JSON.parse(obj).data2;
|
var ch_data2 = JSON.parse(obj).data2;
|
||||||
let new_data2 = ch_data2.map(i => Number(i));
|
let new_data2 = ch_data2.map(i => Number(i));
|
||||||
|
@ -436,7 +436,7 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
}
|
}
|
||||||
|
|
||||||
if (JSON.parse(obj).name3) {
|
if (JSON.parse(obj).name3) {
|
||||||
console.log(" ---name_serie = " + JSON.parse(obj).name3 + " data_series = " + JSON.parse(obj).data3);
|
//console.log(" ---name_serie = " + JSON.parse(obj).name3 + " data_series = " + JSON.parse(obj).data3);
|
||||||
top5training.push(JSON.parse(obj).name3);
|
top5training.push(JSON.parse(obj).name3);
|
||||||
var ch_data2 = JSON.parse(obj).data3;
|
var ch_data2 = JSON.parse(obj).data3;
|
||||||
let new_data2 = ch_data2.map(i => Number(i));
|
let new_data2 = ch_data2.map(i => Number(i));
|
||||||
|
@ -447,7 +447,7 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
}
|
}
|
||||||
|
|
||||||
if (JSON.parse(obj).name4) {
|
if (JSON.parse(obj).name4) {
|
||||||
console.log(" ---name_serie = " + JSON.parse(obj).name4 + " data_series = " + JSON.parse(obj).data4);
|
//console.log(" ---name_serie = " + JSON.parse(obj).name4 + " data_series = " + JSON.parse(obj).data4);
|
||||||
top5training.push(JSON.parse(obj).name4);
|
top5training.push(JSON.parse(obj).name4);
|
||||||
var ch_data2 = JSON.parse(obj).data4;
|
var ch_data2 = JSON.parse(obj).data4;
|
||||||
let new_data2 = ch_data2.map(i => Number(i));
|
let new_data2 = ch_data2.map(i => Number(i));
|
||||||
|
@ -458,7 +458,7 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
}
|
}
|
||||||
|
|
||||||
if (JSON.parse(obj).categories) {
|
if (JSON.parse(obj).categories) {
|
||||||
console.log(" ---categories = " + JSON.parse(obj).categories);
|
//console.log(" ---categories = " + JSON.parse(obj).categories);
|
||||||
var ch_data2 = JSON.parse(obj).categories;
|
var ch_data2 = JSON.parse(obj).categories;
|
||||||
var new_data2 = ch_data2.split(',');
|
var new_data2 = ch_data2.split(',');
|
||||||
setdetail_view_categorie(new_data2);
|
setdetail_view_categorie(new_data2);
|
||||||
|
@ -496,13 +496,13 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
var my_tab = [];
|
var my_tab = [];
|
||||||
|
|
||||||
if (state[0].startDate) {
|
if (state[0].startDate) {
|
||||||
console.log("Start = " + state[0].startDate);
|
//console.log("Start = " + state[0].startDate);
|
||||||
console.log("Start = " + moment(state[0].startDate).format('YYYY-MM-DD'));
|
//console.log("Start = " + moment(state[0].startDate).format('YYYY-MM-DD'));
|
||||||
date_start = moment(state[0].startDate).format('YYYY-MM-DD');
|
date_start = moment(state[0].startDate).format('YYYY-MM-DD');
|
||||||
}
|
}
|
||||||
if (state[0].endDate) {
|
if (state[0].endDate) {
|
||||||
console.log("endDate = " + state[0].endDate);
|
//console.log("endDate = " + state[0].endDate);
|
||||||
console.log("END = " + moment(state[0].endDate).format('YYYY-MM-DD'));
|
//console.log("END = " + moment(state[0].endDate).format('YYYY-MM-DD'));
|
||||||
date_end = moment(state[0].endDate).format('YYYY-MM-DD');
|
date_end = moment(state[0].endDate).format('YYYY-MM-DD');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -517,12 +517,12 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
if (String(res.data.status) != String("false")) {
|
if (String(res.data.status) != String("false")) {
|
||||||
console.log(" In test res.data.status = " + res.data.status);
|
//console.log(" In test res.data.status = " + res.data.status);
|
||||||
console.log(" In test res.data.message = " + res.data.message);
|
//console.log(" In test res.data.message = " + res.data.message);
|
||||||
|
|
||||||
res.data.message.map(obj => {
|
res.data.message.map(obj => {
|
||||||
if (JSON.parse(obj).name1) {
|
if (JSON.parse(obj).name1) {
|
||||||
console.log(" ---name_serie = " + JSON.parse(obj).name1 + " data_series = " + JSON.parse(obj).data1);
|
//console.log(" ---name_serie = " + JSON.parse(obj).name1 + " data_series = " + JSON.parse(obj).data1);
|
||||||
var ch_data2 = JSON.parse(obj).data1;
|
var ch_data2 = JSON.parse(obj).data1;
|
||||||
|
|
||||||
let new_data2 = ch_data2.map(i => Number(i));
|
let new_data2 = ch_data2.map(i => Number(i));
|
||||||
|
@ -531,13 +531,13 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
|
|
||||||
var nom = JSON.parse(obj).name1;
|
var nom = JSON.parse(obj).name1;
|
||||||
setdetail_view_data1_name(nom);
|
setdetail_view_data1_name(nom);
|
||||||
console.log("new_data2 = ", ch_data2);
|
//console.log("new_data2 = ", ch_data2);
|
||||||
console.log("result = ", new_data2);
|
//console.log("result = ", new_data2);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (JSON.parse(obj).name2) {
|
if (JSON.parse(obj).name2) {
|
||||||
console.log(" ---name_serie = " + JSON.parse(obj).name2 + " data_series = " + JSON.parse(obj).data2);
|
//console.log(" ---name_serie = " + JSON.parse(obj).name2 + " data_series = " + JSON.parse(obj).data2);
|
||||||
var ch_data2 = JSON.parse(obj).data2;
|
var ch_data2 = JSON.parse(obj).data2;
|
||||||
let new_data2 = ch_data2.map(i => Number(i));
|
let new_data2 = ch_data2.map(i => Number(i));
|
||||||
setdetail_view_data2(new_data2);
|
setdetail_view_data2(new_data2);
|
||||||
|
@ -547,7 +547,7 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
}
|
}
|
||||||
|
|
||||||
if (JSON.parse(obj).name3) {
|
if (JSON.parse(obj).name3) {
|
||||||
console.log(" ---name_serie = " + JSON.parse(obj).name3 + " data_series = " + JSON.parse(obj).data3);
|
//console.log(" ---name_serie = " + JSON.parse(obj).name3 + " data_series = " + JSON.parse(obj).data3);
|
||||||
var ch_data2 = JSON.parse(obj).data3;
|
var ch_data2 = JSON.parse(obj).data3;
|
||||||
let new_data2 = ch_data2.map(i => Number(i));
|
let new_data2 = ch_data2.map(i => Number(i));
|
||||||
setdetail_view_data3(new_data2);
|
setdetail_view_data3(new_data2);
|
||||||
|
@ -557,7 +557,7 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
}
|
}
|
||||||
|
|
||||||
if (JSON.parse(obj).name4) {
|
if (JSON.parse(obj).name4) {
|
||||||
console.log(" ---name_serie = " + JSON.parse(obj).name4 + " data_series = " + JSON.parse(obj).data4);
|
//console.log(" ---name_serie = " + JSON.parse(obj).name4 + " data_series = " + JSON.parse(obj).data4);
|
||||||
var ch_data2 = JSON.parse(obj).data4;
|
var ch_data2 = JSON.parse(obj).data4;
|
||||||
let new_data2 = ch_data2.map(i => Number(i));
|
let new_data2 = ch_data2.map(i => Number(i));
|
||||||
setdetail_view_data4(new_data2);
|
setdetail_view_data4(new_data2);
|
||||||
|
@ -567,7 +567,7 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
}
|
}
|
||||||
|
|
||||||
if (JSON.parse(obj).categories) {
|
if (JSON.parse(obj).categories) {
|
||||||
console.log(" ---categories = " + JSON.parse(obj).categories);
|
//console.log(" ---categories = " + JSON.parse(obj).categories);
|
||||||
var ch_data2 = JSON.parse(obj).categories;
|
var ch_data2 = JSON.parse(obj).categories;
|
||||||
var new_data2 = ch_data2.split(',');
|
var new_data2 = ch_data2.split(',');
|
||||||
setdetail_view_categorie(new_data2);
|
setdetail_view_categorie(new_data2);
|
||||||
|
@ -693,12 +693,12 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
|
|
||||||
function handleSelect(ranges) {
|
function handleSelect(ranges) {
|
||||||
|
|
||||||
console.log("Start = " + moment(ranges.selection.startDate).format('DD/MM/YYYY'));
|
//console.log("Start = " + moment(ranges.selection.startDate).format('DD/MM/YYYY'));
|
||||||
console.log("END = " + moment(ranges.selection.endDate).format('DD/MM/YYYY'));
|
//console.log("END = " + moment(ranges.selection.endDate).format('DD/MM/YYYY'));
|
||||||
|
|
||||||
//console.log("Start = "+ranges.selection.startDate.format('YYYY-MM-DD'));
|
//console.log("Start = "+ranges.selection.startDate.format('YYYY-MM-DD'));
|
||||||
console.log("Start = " + ranges.selection.startDate);
|
//console.log("Start = " + ranges.selection.startDate);
|
||||||
console.log("END = " + ranges.selection.endDate);
|
//console.log("END = " + ranges.selection.endDate);
|
||||||
// {
|
// {
|
||||||
// selection: {
|
// selection: {
|
||||||
// startDate: [native Date Object],
|
// startDate: [native Date Object],
|
||||||
|
@ -720,7 +720,7 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
const editorRef = useRef(null);
|
const editorRef = useRef(null);
|
||||||
const log = () => {
|
const log = () => {
|
||||||
if (editorRef.current) {
|
if (editorRef.current) {
|
||||||
console.log(editorRef.current.getContent());
|
//console.log(editorRef.current.getContent());
|
||||||
alert(editorRef.current.getContent());
|
alert(editorRef.current.getContent());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -748,7 +748,7 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
function initpayement_front() {
|
function initpayement_front() {
|
||||||
alert("debut initpayement_front price_ch = " + price_ch);
|
alert("debut initpayement_front price_ch = " + price_ch);
|
||||||
createSubscription(price_ch);
|
createSubscription(price_ch);
|
||||||
console.log("55");
|
//console.log("55");
|
||||||
}
|
}
|
||||||
|
|
||||||
const createSubscription = async (priceId) => {
|
const createSubscription = async (priceId) => {
|
||||||
|
@ -767,20 +767,20 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
|
|
||||||
if (String(data['status']) === String("true")) {
|
if (String(data['status']) === String("true")) {
|
||||||
//console.log(" subscriptionId = " + subscriptionId + " -- et clientSecret = " + clientSecret);
|
//console.log(" subscriptionId = " + subscriptionId + " -- et clientSecret = " + clientSecret);
|
||||||
console.log("1");
|
//console.log("1");
|
||||||
setclientSecret_id(data['payment_intent_client_secret']);
|
setclientSecret_id(data['payment_intent_client_secret']);
|
||||||
console.log("2");
|
//console.log("2");
|
||||||
setpayement_id(data['subscription_id']);
|
setpayement_id(data['subscription_id']);
|
||||||
console.log("3");
|
//console.log("3");
|
||||||
//setSubscriptionData(data['subscription_id'], data['payment_intent_client_secret'] );
|
//setSubscriptionData(data['subscription_id'], data['payment_intent_client_secret'] );
|
||||||
//alert(" subscriptionId = " + data['subscription_id'] + " -- et clientSecret = " + data['payment_intent_client_secret']);
|
//alert(" subscriptionId = " + data['subscription_id'] + " -- et clientSecret = " + data['payment_intent_client_secret']);
|
||||||
|
|
||||||
}
|
}
|
||||||
console.log("44");
|
//console.log("44");
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
alert("4");
|
alert("4");
|
||||||
console.log('Error:', error.message);
|
//console.log('Error:', error.message);
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -814,12 +814,12 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
if (error) {
|
if (error) {
|
||||||
// show error and collect new card details.
|
// show error and collect new card details.
|
||||||
alert(error.message);
|
alert(error.message);
|
||||||
console.log(error.message);
|
//console.log(error.message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
alert(" OKK paymentIntent = " + paymentIntent);
|
alert(" OKK paymentIntent = " + paymentIntent);
|
||||||
console.log(paymentIntent);
|
//console.log(paymentIntent);
|
||||||
}
|
}
|
||||||
setPaymentIntent(paymentIntent);
|
setPaymentIntent(paymentIntent);
|
||||||
}
|
}
|
||||||
|
@ -926,7 +926,7 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
<button
|
<button
|
||||||
className="ch_bton_popup"
|
className="ch_bton_popup"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
console.log('modal closed ');
|
//console.log('modal closed ');
|
||||||
close();
|
close();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
@ -1036,7 +1036,7 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
|
||||||
value={grr}
|
value={grr}
|
||||||
onKeyUp={toto}
|
onKeyUp={toto}
|
||||||
onEditorChange={(newValue, editor) => {
|
onEditorChange={(newValue, editor) => {
|
||||||
console.log(" newValue = "+newValue);
|
//console.log(" newValue = "+newValue);
|
||||||
// alert(" newValue = "+newValue);
|
// alert(" newValue = "+newValue);
|
||||||
//setText(editor.getContent({format: 'text'}));
|
//setText(editor.getContent({format: 'text'}));
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -9,6 +9,7 @@ import TextField from '@mui/material/TextField';
|
||||||
import AccountCircle from '@mui/icons-material/AccountCircle';
|
import AccountCircle from '@mui/icons-material/AccountCircle';
|
||||||
import PhoneIcon from '@mui/icons-material/Phone'
|
import PhoneIcon from '@mui/icons-material/Phone'
|
||||||
import EmailIcon from '@mui/icons-material/Email'
|
import EmailIcon from '@mui/icons-material/Email'
|
||||||
|
import LanguageIcon from '@mui/icons-material/Language';
|
||||||
import HomeIcon from '@mui/icons-material/Home'
|
import HomeIcon from '@mui/icons-material/Home'
|
||||||
import { Button, Form, FormGroup, Label } from "reactstrap";
|
import { Button, Form, FormGroup, Label } from "reactstrap";
|
||||||
import PasswordIcon from '@mui/icons-material/Password'
|
import PasswordIcon from '@mui/icons-material/Password'
|
||||||
|
@ -87,11 +88,14 @@ function UpdateParnterInfo() {
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
|
|
||||||
|
const [userformedited, setuserformedited] = useState();
|
||||||
|
|
||||||
|
|
||||||
const [insert_key_api, setinsert_key_api] = useState("");
|
const [insert_key_api, setinsert_key_api] = useState("");
|
||||||
const [insert_key_api_message, setinsert_key_api_message] = useState("");
|
const [insert_key_api_message, setinsert_key_api_message] = useState("");
|
||||||
const [insert_key_updated, setinsert_key_updated] = useState();
|
const [insert_key_updated, setinsert_key_updated] = useState();
|
||||||
|
|
||||||
|
|
||||||
function UpdatePartnerInsertKey() {
|
function UpdatePartnerInsertKey() {
|
||||||
|
|
||||||
setinsert_key_updated();
|
setinsert_key_updated();
|
||||||
|
@ -152,7 +156,7 @@ function UpdateParnterInfo() {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
setinsert_key_api(result['status']);
|
setinsert_key_api(result['status']);
|
||||||
setinsert_key_api_message(result['message']);
|
setinsert_key_api_message(result['message']);
|
||||||
if (String(result['status']) === String("true")) {
|
if (String(result['status']) === String("true")) {
|
||||||
|
@ -226,7 +230,7 @@ function UpdateParnterInfo() {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
setmyApiResponse(result['status']);
|
setmyApiResponse(result['status']);
|
||||||
setResult(result['message']);
|
setResult(result['message']);
|
||||||
if (String(result['status']) == String("true")) {
|
if (String(result['status']) == String("true")) {
|
||||||
|
@ -273,7 +277,7 @@ function UpdateParnterInfo() {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
setmyApiResponse(result['status']);
|
setmyApiResponse(result['status']);
|
||||||
setResult(result['message']);
|
setResult(result['message']);
|
||||||
if (String(result['status']) == String("true")) {
|
if (String(result['status']) == String("true")) {
|
||||||
|
@ -300,7 +304,7 @@ function UpdateParnterInfo() {
|
||||||
formData.append('token', stored_user);
|
formData.append('token', stored_user);
|
||||||
|
|
||||||
axios.post(url, formData).then(res => {
|
axios.post(url, formData).then(res => {
|
||||||
if (res.data.status != "False") {
|
if (String(res.data.status) === "true") {
|
||||||
//console.log(" In test res.data.status = " + res.data.status);
|
//console.log(" In test res.data.status = " + res.data.status);
|
||||||
//console.log(" In test res.data.message = " + res.data.message);
|
//console.log(" In test res.data.message = " + res.data.message);
|
||||||
setmyApiResponse("True");
|
setmyApiResponse("True");
|
||||||
|
@ -329,6 +333,13 @@ function UpdateParnterInfo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (mylocaltraining.website) {
|
||||||
|
document.getElementsByName("website")[0].value = mylocaltraining.website;
|
||||||
|
document.getElementsByName("website")[0].disabled = true;
|
||||||
|
document.getElementsByName("website")[0].style.backgroundColor = "#ECEFF1";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (mylocaltraining.adr_country) {
|
if (mylocaltraining.adr_country) {
|
||||||
document.getElementsByName("adr_country")[0].value = mylocaltraining.adr_country;
|
document.getElementsByName("adr_country")[0].value = mylocaltraining.adr_country;
|
||||||
|
@ -366,7 +377,7 @@ function UpdateParnterInfo() {
|
||||||
else {
|
else {
|
||||||
setmycertitrace("0");
|
setmycertitrace("0");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mylocaltraining.isdatadock) {
|
if (mylocaltraining.isdatadock) {
|
||||||
setmydatadock(mylocaltraining.isdatadock);
|
setmydatadock(mylocaltraining.isdatadock);
|
||||||
}
|
}
|
||||||
|
@ -451,7 +462,7 @@ function UpdateParnterInfo() {
|
||||||
|
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.warn('Not good man :( mysearchtext = ');
|
console.warn('Not good man :( mysearchtext = ', error);
|
||||||
setmyApiResponse("False");
|
setmyApiResponse("False");
|
||||||
//setmyApimyApiMessage("")
|
//setmyApimyApiMessage("")
|
||||||
})
|
})
|
||||||
|
@ -511,12 +522,17 @@ function UpdateParnterInfo() {
|
||||||
document.getElementsByName("contact_mail")[0].disabled = true;
|
document.getElementsByName("contact_mail")[0].disabled = true;
|
||||||
document.getElementsByName("contact_mail")[0].style.backgroundColor = "#ECEFF1";
|
document.getElementsByName("contact_mail")[0].style.backgroundColor = "#ECEFF1";
|
||||||
|
|
||||||
|
document.getElementsByName("website")[0].disabled = true;
|
||||||
|
document.getElementsByName("website")[0].style.backgroundColor = "#ECEFF1";
|
||||||
|
|
||||||
|
|
||||||
setfields1desabled(true);
|
setfields1desabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function enablefieds1() {
|
function enablefieds1() {
|
||||||
|
|
||||||
|
setuserformedited("1");
|
||||||
document.getElementsByName("adr_city")[0].disabled = false;
|
document.getElementsByName("adr_city")[0].disabled = false;
|
||||||
document.getElementsByName("adr_city")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("adr_city")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
|
||||||
|
@ -565,6 +581,9 @@ function UpdateParnterInfo() {
|
||||||
document.getElementsByName("contact_mail")[0].disabled = false;
|
document.getElementsByName("contact_mail")[0].disabled = false;
|
||||||
document.getElementsByName("contact_mail")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("contact_mail")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
|
||||||
|
document.getElementsByName("website")[0].disabled = false;
|
||||||
|
document.getElementsByName("website")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
|
||||||
setfields1desabled(false);
|
setfields1desabled(false);
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
}
|
}
|
||||||
|
@ -669,6 +688,10 @@ function UpdateParnterInfo() {
|
||||||
var num_nda = document.getElementsByName("num_nda")[0].value;
|
var num_nda = document.getElementsByName("num_nda")[0].value;
|
||||||
num_nda = num_nda.replace("undefined", "");
|
num_nda = num_nda.replace("undefined", "");
|
||||||
|
|
||||||
|
|
||||||
|
var website = document.getElementsByName("website")[0].value;
|
||||||
|
website = website.replace("undefined", "");
|
||||||
|
|
||||||
var link_facebook = document.getElementsByName("link_facebook")[0].value;
|
var link_facebook = document.getElementsByName("link_facebook")[0].value;
|
||||||
var link_linkedin = document.getElementsByName("link_linkedin")[0].value;
|
var link_linkedin = document.getElementsByName("link_linkedin")[0].value;
|
||||||
var link_twitter = document.getElementsByName("link_twitter")[0].value;
|
var link_twitter = document.getElementsByName("link_twitter")[0].value;
|
||||||
|
@ -692,6 +715,7 @@ function UpdateParnterInfo() {
|
||||||
formData.append('iscertitrace', mycertitrace);
|
formData.append('iscertitrace', mycertitrace);
|
||||||
formData.append('isdatadock', mydatadock);
|
formData.append('isdatadock', mydatadock);
|
||||||
formData.append('isqualiopi', myqualiopi);
|
formData.append('isqualiopi', myqualiopi);
|
||||||
|
formData.append('website', website);
|
||||||
|
|
||||||
formData.append('adr_city', adr_city);
|
formData.append('adr_city', adr_city);
|
||||||
formData.append('adr_zip', adr_zip);
|
formData.append('adr_zip', adr_zip);
|
||||||
|
@ -709,6 +733,7 @@ function UpdateParnterInfo() {
|
||||||
formData.append('contact_mail', contact_mail);
|
formData.append('contact_mail', contact_mail);
|
||||||
|
|
||||||
|
|
||||||
|
//console.log(" ### formData = ", formData);
|
||||||
fetch(
|
fetch(
|
||||||
url,
|
url,
|
||||||
{
|
{
|
||||||
|
@ -718,7 +743,7 @@ function UpdateParnterInfo() {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
setmyApiResponse(result['status']);
|
setmyApiResponse(result['status']);
|
||||||
setResult(result['message']);
|
setResult(result['message']);
|
||||||
if (String(result['status']) == String("true")) {
|
if (String(result['status']) == String("true")) {
|
||||||
|
@ -982,6 +1007,11 @@ function UpdateParnterInfo() {
|
||||||
|
|
||||||
const [myqualiopi, setmyqualiopi] = useState("");
|
const [myqualiopi, setmyqualiopi] = useState("");
|
||||||
const handleChangequaliopi = (event) => {
|
const handleChangequaliopi = (event) => {
|
||||||
|
if (fields1desabled) {
|
||||||
|
alert(" Vous devez cliquer sur 'Editer' pour activer les modifications");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const name = event.target.name;
|
const name = event.target.name;
|
||||||
const value = event.target.value;
|
const value = event.target.value;
|
||||||
|
|
||||||
|
@ -990,15 +1020,26 @@ function UpdateParnterInfo() {
|
||||||
|
|
||||||
const [mydatadock, setmydatadock] = useState("");
|
const [mydatadock, setmydatadock] = useState("");
|
||||||
const handleChangedatadock = (event) => {
|
const handleChangedatadock = (event) => {
|
||||||
|
if (fields1desabled) {
|
||||||
|
alert(" Vous devez cliquer sur 'Editer' pour activer les modifications");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const name = event.target.name;
|
const name = event.target.name;
|
||||||
const value = event.target.value;
|
const value = event.target.value;
|
||||||
|
|
||||||
setmyqualiopi(value);
|
setmydatadock(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const [mycertitrace, setmycertitrace] = useState("");
|
const [mycertitrace, setmycertitrace] = useState("");
|
||||||
const handleChangecertitrace = (event) => {
|
const handleChangecertitrace = (event) => {
|
||||||
|
|
||||||
|
if (fields1desabled) {
|
||||||
|
alert(" Vous devez cliquer sur 'Editer' pour activer les modifications");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const name = event.target.name;
|
const name = event.target.name;
|
||||||
const value = event.target.value;
|
const value = event.target.value;
|
||||||
setmycertitrace(value);
|
setmycertitrace(value);
|
||||||
|
@ -1087,6 +1128,23 @@ function UpdateParnterInfo() {
|
||||||
}}
|
}}
|
||||||
variant="standard"
|
variant="standard"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<TextField
|
||||||
|
name="website"
|
||||||
|
label="Site Web"
|
||||||
|
className="texte_area"
|
||||||
|
sx={{ m: 1, width: '48%' }}
|
||||||
|
InputProps={{
|
||||||
|
startAdornment: (
|
||||||
|
<InputAdornment position="start">
|
||||||
|
<LanguageIcon />
|
||||||
|
</InputAdornment>
|
||||||
|
),
|
||||||
|
}}
|
||||||
|
variant="standard"
|
||||||
|
/>
|
||||||
|
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<TextField
|
<TextField
|
||||||
|
@ -1261,8 +1319,9 @@ function UpdateParnterInfo() {
|
||||||
|
|
||||||
onChange={handleChangecertitrace}
|
onChange={handleChangecertitrace}
|
||||||
variant="standard"
|
variant="standard"
|
||||||
|
|
||||||
>{certitrace.map((option) => (
|
>{certitrace.map((option) => (
|
||||||
<MenuItem key={option.value} value={option.value}>
|
<MenuItem key={option.value} value={option.value} >
|
||||||
{option.label} <br />
|
{option.label} <br />
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
))}
|
))}
|
||||||
|
|
|
@ -336,7 +336,7 @@ function UpdateUserInfo() {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
setmyApiResponse(result['status']);
|
setmyApiResponse(result['status']);
|
||||||
setResult(result['message']);
|
setResult(result['message']);
|
||||||
if (String(result['status']) === String("true")) {
|
if (String(result['status']) === String("true")) {
|
||||||
|
@ -420,7 +420,7 @@ function UpdateUserInfo() {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
setmyApiResponse(result['status']);
|
setmyApiResponse(result['status']);
|
||||||
setResult(result['message']);
|
setResult(result['message']);
|
||||||
if (String(result['status']) == String("true")) {
|
if (String(result['status']) == String("true")) {
|
||||||
|
|
|
@ -91,7 +91,7 @@ function UpdateUserProfil(props) {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
if (String(result['status']) === String("true")) {
|
if (String(result['status']) === String("true")) {
|
||||||
setrecorddata_api("true");
|
setrecorddata_api("true");
|
||||||
setrecorddata_api_result(result['message']);
|
setrecorddata_api_result(result['message']);
|
||||||
|
@ -136,7 +136,7 @@ function UpdateUserProfil(props) {
|
||||||
axios.post(url, formData).then(res => {
|
axios.post(url, formData).then(res => {
|
||||||
if (String(res.data.status) === String("true")) {
|
if (String(res.data.status) === String("true")) {
|
||||||
//console.log(" In GetUserProfilData res.data.status = " + res.data.status);
|
//console.log(" In GetUserProfilData res.data.status = " + res.data.status);
|
||||||
console.log(" In GetUserProfilData res.data.message = " + res.data.message);
|
//console.log(" In GetUserProfilData res.data.message = " + res.data.message);
|
||||||
setGetUserProfilData_api("true");
|
setGetUserProfilData_api("true");
|
||||||
|
|
||||||
var mylocalobj = JSON.parse(res.data.message);
|
var mylocalobj = JSON.parse(res.data.message);
|
||||||
|
|
|
@ -157,7 +157,7 @@ function UpgradeToPro() {
|
||||||
}
|
}
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
|
|
||||||
if (String(result['status']) === String("true")) {
|
if (String(result['status']) === String("true")) {
|
||||||
alert(String(result['message']));
|
alert(String(result['message']));
|
||||||
|
|
|
@ -18,7 +18,7 @@ import { getCookie, setCookie, removeCookie } from 'react-use-cookie';
|
||||||
const UserHistoryRecherche = (props) => {
|
const UserHistoryRecherche = (props) => {
|
||||||
|
|
||||||
function handleClick(event, cellValues) {
|
function handleClick(event, cellValues) {
|
||||||
console.log(cellValues);
|
//console.log(cellValues);
|
||||||
}
|
}
|
||||||
|
|
||||||
const [selectionModel, setSelectionModel] = React.useState([]);
|
const [selectionModel, setSelectionModel] = React.useState([]);
|
||||||
|
@ -47,7 +47,7 @@ const UserHistoryRecherche = (props) => {
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((myresult) => {
|
.then((myresult) => {
|
||||||
console.log('Success:', myresult['message']);
|
//console.log('Success:', myresult['message']);
|
||||||
|
|
||||||
if (String(myresult['status']) == String("true")) {
|
if (String(myresult['status']) == String("true")) {
|
||||||
setmyApiResponse("true");
|
setmyApiResponse("true");
|
||||||
|
|
|
@ -161,7 +161,7 @@ function SignIn() {
|
||||||
}
|
}
|
||||||
).then((response) => response.json())
|
).then((response) => response.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
//console.log('Success:', result['message'], "result['status'] = ", result['status']);
|
||||||
|
|
||||||
var val = result['status'];
|
var val = result['status'];
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ const Contact = (props) => {
|
||||||
MyPageNumber();
|
MyPageNumber();
|
||||||
|
|
||||||
function EventHandler(e) {
|
function EventHandler(e) {
|
||||||
console.log(e.target.id);
|
//console.log(e.target.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
const getRepo = () => {
|
const getRepo = () => {
|
||||||
|
@ -97,7 +97,7 @@ const Contact = (props) => {
|
||||||
{
|
{
|
||||||
setmyApiResponse("false");
|
setmyApiResponse("false");
|
||||||
}
|
}
|
||||||
console.log('setmyApiResponse main : ' + myApiResponse);
|
//console.log('setmyApiResponse main : ' + myApiResponse);
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.warn('Not good man :( mysearchtext = '+mysearchtext );
|
console.warn('Not good man :( mysearchtext = '+mysearchtext );
|
||||||
|
@ -176,9 +176,9 @@ const Contact = (props) => {
|
||||||
axios.get(myurl, {
|
axios.get(myurl, {
|
||||||
|
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log('response is : ' + res.data);
|
//console.log('response is : ' + res.data);
|
||||||
setmydata(res.data);
|
setmydata(res.data);
|
||||||
console.log(mydata);
|
//console.log(mydata);
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.warn('Not good man :(');
|
console.warn('Not good man :(');
|
||||||
|
@ -218,7 +218,7 @@ const Contact = (props) => {
|
||||||
var criteria4 = myRange;
|
var criteria4 = myRange;
|
||||||
|
|
||||||
|
|
||||||
console.log('criteria1 = '+criteria1+' - criteria2 = '+criteria2+' - criteria3 = '+criteria3+' - criteria4 '+criteria4)
|
//console.log('criteria1 = '+criteria1+' - criteria2 = '+criteria2+' - criteria3 = '+criteria3+' - criteria4 '+criteria4)
|
||||||
|
|
||||||
//var myurl = process.env.REACT_APP_API_URL+"myclass/api/get_class_global_search/"+search_value;
|
//var myurl = process.env.REACT_APP_API_URL+"myclass/api/get_class_global_search/"+search_value;
|
||||||
|
|
||||||
|
|
|
@ -1309,7 +1309,7 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
left: 24px;
|
left: 140px;
|
||||||
top: 620px;
|
top: 620px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1355,7 +1355,7 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 190px;
|
width: 190px;
|
||||||
height: 42px;
|
height: 42px;
|
||||||
left: 24px;
|
left: 100px;
|
||||||
top: 660px;
|
top: 660px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1460,6 +1460,32 @@
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sticky_div_hilight {
|
||||||
|
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
padding: 0px;
|
||||||
|
position: absolute;
|
||||||
|
width: 99%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
top: 1300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.sticky_img_hilight1 {
|
||||||
|
/* Auto layout */
|
||||||
|
width: 100%;
|
||||||
|
height: 170px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.img_hili {
|
||||||
|
width: 100%;
|
||||||
|
max-height: 170px;
|
||||||
|
border-radius: 15px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 601px) and (max-width: 991px) {
|
@media only screen and (min-width: 601px) and (max-width: 991px) {
|
||||||
|
|
Loading…
Reference in New Issue