- 제출된 URL:
- https://fabrique-1-c12567-1.btsndrc.ac/index.php
- 보고서 완료:
링크 · 10개 결과
페이지에서 식별된 외부 링크
링크 | 텍스트 |
---|---|
https://buro-1-c12567-1.btsndrc.ac/adminxx | Buro |
https://rando-1-c12567-1.btsndrc.ac/adminxx | Rando |
https://mautic-1-c12567-1.btsndrc.ac/ | Mautic |
https://suitecrm-1-c12567-1.btsndrc.ac/ | SuiteCRM |
https://humhub-1-c12567-1.btsndrc.ac/ | Humhub |
https://ops-1-c12567-1.btsndrc.ac/admin | OpenSupports |
https://mibew-1-c12567-1.btsndrc.ac/ | Mibew (chat) |
https://phplist-1-c12567-1.btsndrc.ac/admin | Phplist |
https://blog1-c12567-1.btsndrc.ac/wp-admin | Blog section |
https://forum1-c12567-1.btsndrc.ac/wp-admin | Forum section |
JavaScript 변수 · 38개 결과
페이지의 창 개체에 로드된 전역 JavaScript 변수는 함수 외부에서 선언된 변수로, 현재 범위 내에서 코드의 어느 부분에서나 액세스할 수 있습니다
이름 | 유형 |
---|---|
onbeforetoggle | object |
documentPictureInPicture | object |
onscrollend | object |
$ | function |
jQuery | function |
Tether | function |
Popper | function |
moment | function |
Papa | object |
bootbox | object |
콘솔 로그 메시지 · 2개 결과
웹 콘솔에 기록된 메시지
유형 | 카테고리 | 로그 |
---|---|---|
verbose | dom |
|
log | other |
|
HTML
페이지의 원시 HTML 본문
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><!--[if lt IE 7 ]><html class="ie ie6" lang="en"><![endif]--><!--[if IE 7 ]><html class="ie ie7" lang="en"><![endif]--><!--[if IE 8 ]><html class="ie ie8" lang="en"><![endif]--><!--[if (gte IE 9)|!(IE)]><html lang="en"><![endif]--><html><head>
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="EDUCINTEL">
<meta name="keywords" content="">
<meta name="author" content="EDUCINTEL">
<title>La Fabrique - </title>
<link rel="icon" type="image/png" href="https://fabrique-1-c12567-1.btsndrc.ac/assets/img/logo_fabrique_24.png">
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<link href="https://fabrique-1-c12567-1.btsndrc.ac/./assets/css/mdb.min.css" rel="stylesheet" type="text/css">
<link href="https://fabrique-1-c12567-1.btsndrc.ac/./assets/css/style.css" rel="stylesheet">
<link href="https://fabrique-1-c12567-1.btsndrc.ac/./assets/scripts/pagination/pagination.css" rel="stylesheet">
<!--<link href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.0/jquery-confirm.min.css" rel="stylesheet">-->
<!--<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css"/>
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick-theme.css"/>-->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<script async="" src="//matomo.educcloud.fr/matomo.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="https://fabrique-1-c12567-1.btsndrc.ac/./assets/js/tether.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
<!--<script type="text/javascript" src=""></script>-->
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/3.0.4/isotope.pkgd.min.js"></script>-->
<!--<script type="text/javascript" src="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js"></script>-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.blockUI/2.70/jquery.blockUI.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/locale/fr.js"></script>
<script type="text/javascript" src="https://fabrique-1-c12567-1.btsndrc.ac/./assets/scripts/moment3/moment-ferie-fr.js"></script>
<script type="text/javascript" src="https://fabrique-1-c12567-1.btsndrc.ac/./assets/scripts/moment3/moment-round.js"></script>
<!--<script type="text/javascript" src=""></script>-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/4.3.6/papaparse.js"></script>
<!--<script type="text/javascript" src=""></script>-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/5.5.2/bootbox.js"></script>
<!--<script src="https://cdn.ckeditor.com/4.7.0/standard/ckeditor.js"></script>-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.0/jquery-confirm.min.js"></script>
<script type="text/javascript" src="https://fabrique-1-c12567-1.btsndrc.ac/./assets/scripts/pagination/pagination.js"></script>
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//matomo.educcloud.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</head>
<body class="fixed-sn" style="">
<script type="text/javascript" src="https://fabrique-1-c12567-1.btsndrc.ac/./assets/js/arrive.min.js"></script>
<script type="text/javascript" src="https://fabrique-1-c12567-1.btsndrc.ac/./assets/js/mdb.js"></script>
<!--<script type="text/javascript" src=""></script>-->
<!--<script type="text/javascript" src="//medialab.github.io/artoo/public/dist/artoo-latest.min.js"></script>-->
<style>
html,
body,
header,
.view
{
height: 100%;
}
@media (max-width: 740px)
{
html,
body,
header,
.view
{
height: 1000px;
}
}
@media (min-width: 800px) and (max-width: 850px)
{
html,
body,
header,
.view
{
height: 650px;
}
}
/*.image
{
background: url("https://fabrique-1-c12567-1.btsndrc.ac/assets/img/logo_fabrique.png")no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}*/
.hm-gradient .full-bg-img
{
background: -moz-linear-gradient(45deg, rgba(42, 27, 161, 0.6), rgba(29, 210, 177, 0.6) 100%);
background: -webkit-linear-gradient(45deg, rgba(42, 27, 161, 0.6), rgba(29, 210, 177, 0.6) 100%);
background: -webkit-gradient(linear, 45deg, from(rgba(42, 27, 161, 0.6)), to(rgba(29, 210, 177, 0.6)));
background: -o-linear-gradient(45deg, rgba(42, 27, 161, 0.6), rgba(29, 210, 177, 0.6) 100%);
background: linear-gradient(to 45deg, rgba(42, 27, 161, 0.6), rgba(29, 210, 177, 0.6) 100%);
background: rgba(255, 255, 255, .4);
}
.testimonial-card .card-body
{
text-align: left;
}
h2
{
letter-spacing: 8px;
}
.side-nav .logo-wrapper
{
height: 150px;
}
.side-nav .logo-wrapper img
{
padding: 10% 50px;
padding-top: 10%;
padding-right: 50px;
padding-bottom: 10%;
padding-left: 50px;
}
</style>
<a href="#" data-activates="slide-out" class="btn btn-lg btn-flat p-3 button-collapse"><i class="fa fa-bars fa-2x"></i> Applications BTS NDRC</a>
<div id="slide-out" class="side-nav unique-color custom-scrollbar" style="transform: translateX(-100%);">
<ul class="custom-scrollbar">
<li>
<div class="logo-wrapper waves-light">
<!--<a href="#"><img src="https://fabrique-1-c12567-1.btsndrc.ac/assets/img/logo_fabrique_128.png" class="img-fluid flex-center"></a>-->
<a href="#"><img src="https://fabrique-1-c12567-1.btsndrc.ac/assets/img/lafabrique_texte_orange_512.png" class="img-fluid flex-center"></a>
</div>
</li>
<ul id="applis" class="collapsible collapsible-accordion">
<!--<li><a class="collapsible-header waves-effect" href="" target="_blank"><i class="fa fa-cloud"></i> Cloud</a></li>
<li><a class="collapsible-header waves-effect" href="" target="_blank"><i class="fa fa-users"></i> Social</a></li>
<li><a class="collapsible-header waves-effect" href="" target="_blank"><i class="fa fa-yelp"></i> Blog</a></li>
<li><a class="collapsible-header waves-effect" href="" target="_blank"><i class="fa fa-envelope"></i> Forum</a></li>-->
<li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><a class="collapsible-header waves-effect appli disable_a " data-rang="9" href="https://buro-1-c12567-1.btsndrc.ac/adminxx" target="_blank">Buro</a><a class="collapsible-header waves-effect appli disable_a " data-rang="10" href="https://rando-1-c12567-1.btsndrc.ac/adminxx" target="_blank">Rando</a><a class="collapsible-header waves-effect appli disable_a " href="https://mautic-1-c12567-1.btsndrc.ac/" target="_blank">Mautic</a><a class="collapsible-header waves-effect appli disable_a" data-rang="2" href="https://suitecrm-1-c12567-1.btsndrc.ac/" target="_blank">SuiteCRM</a><a class="collapsible-header waves-effect appli disable_a " data-rang="4" href="https://humhub-1-c12567-1.btsndrc.ac/" target="_blank">Humhub</a><a class="collapsible-header waves-effect appli disable_a" data-rang="5" href="https://ops-1-c12567-1.btsndrc.ac/admin" target="_blank">OpenSupports</a><a class="collapsible-header waves-effect appli disable_a" data-rang="6" href="https://mibew-1-c12567-1.btsndrc.ac/" target="_blank">Mibew (chat)</a><a class="collapsible-header waves-effect appli disable_a" data-rang="7" href="https://phplist-1-c12567-1.btsndrc.ac/admin" target="_blank">Phplist</a><a class="collapsible-header waves-effect appli" data-rang="12" href="https://blog1-c12567-1.btsndrc.ac/wp-admin" target="_blank">Blog section</a><a class="collapsible-header waves-effect appli" data-rang="13" href="https://forum1-c12567-1.btsndrc.ac/wp-admin" target="_blank">Forum section</a></ul>
</ul>
<div class="sidenav-bg"></div>
</div>
<header>
<section>
<div class="container flex-center">
<div class="row flex-center">
<div id="divetab" class="text-center"><h3>IPAC CHAMBéRY</h3><h4>15 boulevard de la mer Caspienne 73370 Le Bourget du Lac</h4><h4 class="blue-text">--- ---</h4></div>
</div>
</div>
</section>
<!--<section id="login" class="view image hm-gradient">-->
<section id="login">
<div class="full-bg-img">
<div class="container flex-center">
<div class="row flex-center">
<div class="card animated flipInY">
<img style="width: 320px; " class="card-img-top mx-auto d-block pt-2 pl-3 pr-3" src="https://fabrique-1-c12567-1.btsndrc.ac/assets/img/lafabrique_texte_orange_512.png" alt="La Fabrique">
<div class="card-body mb-1">
<div class="md-form">
<i class="fa fa-user prefix grey-text text-left active"></i>
<input type="text" id="code" class="form-control form-control-sm ml-5" value="" autofocus="">
<label for="code" class="ml-5 active">Identifiant</label>
</div>
<div class="md-form ml-0 mr-0">
<i class="fa fa-lock prefix grey-text"></i>
<input type="password" id="motdepasse" class="form-control form-control-sm ml-5" value="">
<label for="motdepasse" class="ml-5">Mot de passe</label>
<p class="font-small blue-text d-flex justify-content-end"><button id="btnforgotmdp" class="btn btn-sm btn-flat">Mot de passe oublié ?</button></p>
</div>
<div class="text-center mt-2">
<button id="btnvalide" class="btn btn-primary btn-sm mt-1">Connexion <i class="fa fa-sign-in ml-1"></i></button>
<br><span id="commit" class="grey-text text-center"> <small>Version : 5b861c7</small></span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="forgotmdp" class="d-none">
<div class="full-bg-img">
<div class="container flex-center">
<div class="row flex-center">
<div class="card animated flipInY">
<img style="width: 320px; " class="card-img-top mx-auto d-block pt-2 pl-3 pr-3" src="https://fabrique-1-c12567-1.btsndrc.ac/assets/img/lafabrique_texte_orange_512.png" alt="La Fabrique">
<div class="card-body mb-1">
<p mb-2="">Récupération du mot de passe</p>
<div class="p-2" data-toggle="buttons">
<label class="btn btn-sm btn-light-blue form-check-label btn-block">
<input class="form-check-input" type="radio" name="type" id="enseignant" value="enseignant" autocomplete="off">Je suis un enseignant</label>
<label class="btn btn-sm btn-light-blue form-check-label btn-block">
<input class="form-check-input" type="radio" name="type" id="etudiant" value="etudiant" autocomplete="off">Je suis un étudiant</label>
</div>
<div class="md-form">
<i class="fa fa-envelope-o prefix grey-text text-left active"></i>
<input type="text" id="email" class="form-control form-control-sm ml-5" value="" autofocus="">
<label for="email" class="ml-5 active">Votre adresse mail</label>
<p class="font-small blue-text d-flex justify-content-end"><button id="btnlogin" class="btn btn-sm btn-flat">Retour Login</button></p>
</div>
<div class="text-center mt-2">
<button id="btnrecupmdp" class="btn btn-primary btn-sm mt-1">Envoyer la demande<i class="fa fa-envelope-o ml-1"></i></button>
<br><span id="commit" class="grey-text text-center"></span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</header>
<div class="modal fade" id="modaledge" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-notify modal-danger" role="document">
<div class="modal-content">
<div class="modal-header">
<p class="heading lead">Information</p>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true" class="white-text">×</span>
</button>
</div>
<div class="modal-body">
<div class="text-center">
<i class="fa fa-check fa-4x mb-3 animated rotateIn"></i>
<p>ATTENTION ! Cette application n'est pas compatible avec votre navigateur<br>Vous devez utiliser un navigateur compatible tel que :<br>
- Chrome, Firefox, Opéra, Safari...</p>
</div>
</div>
<div class="modal-footer justify-content-center">
<a type="button" class="btn btn-outline-danger waves-effect" data-dismiss="modal">Fermer</a>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function()
{
//new WOW().init();
//------------------------------------------------------------------------------------
$(document).ajaxStart(function()
{
$.blockUI({ overlayCSS: { backgroundColor: '#bdbdbd'}, message: 'Chargement en cours...' });
});
$(document).ajaxStop($.unblockUI);
//-----------------------------------------------détecte si Explorer ou Edge
var isIE = /*@cc_on!@*/false || !!document.documentMode, // Internet Explorer 6-11
isEdge = !isIE && !!window.StyleMedia; // Edge 20+
// Check if Internet Explorer 6-11 OR Edge 20+
if(isIE || isEdge)
{
$('#modaledge').modal('show');
$("#modaledge").on('hide.bs.modal', function()
{
window.location.reload();
});
}
var commit = ' <small>Version : 5b861c7</small>';
$('#commit').empty().append(commit);
var nomdomaine = 'btsndrc.ac';
var refclipla = 'c12567-1';
//-----------------------------------------------ajoute admin s'il n'existe pas
ajouteadmin();
//-----------------------------------------------
function ajouteadmin()
{
var ajaxadmin = $.ajax(
{
type:'POST',
data:'',
url:'https://fabrique-1-c12567-1.btsndrc.ac/index.php/accueil/Caccueil/ajouteadmin',
datatype:'application/json',
async: true,
success:function(data,statut)
{
console.log(data);
}
});
}
//------------------------------------------------------recherche données établissement
$.ajax(
{
type:'GET',
data: '',
url:'https://fabrique-1-c12567-1.btsndrc.ac/index.php/accueil/Caccueil/etablissement',
datatype:'application/json',
success:function(dataetab,statut)
{
etab = JSON.parse(dataetab);
$('#divetab').append('<h3>' + etab[0].nom + '</h3><h4>' + etab[0].adresse + ' ' + etab[0].codepostal + ' ' + etab[0].ville + '</h4><h4 class="blue-text">' + etab[0]['session'] + ' ' + etab[0].classe + '</h4>');
//$('#divetab').append('<h5 class="blue-text">' + etab[0].classe + '</h5>');
}
});
//--------------------------------------------------menu généré avec la liste des containers
function menu()
{
var menu = $.ajax(
{
type:'GET',
data: '',
url:'https://fabrique-1-c12567-1.btsndrc.ac/index.php/accueil/Caccueil/listecontainers',
datatype:'application/json',
success:function(data,statut)
{
var conts = JSON.parse(data);
$.each(conts.metadata, function(c,cont)
{
var uncont = cont.split("/");
var container = uncont[3].split("-");
var menu = container[0];
switch (menu)
{
case ('mautic'):
var dis = containerstate(uncont[3]);
var container = JSON.parse(dis.responseText);
var disable = (container.metadata.status == 'Stopped') ? 'disable_a' : '';
$('#applis').append('<li><a class="collapsible-header waves-effect appli ' + disable + ' " href="https://' + uncont[3] + '-' + refclipla + '.' + nomdomaine + '/" target="_blank">Mautic</a></li>');
break;
case ('buro'):
var dis = containerstate(uncont[3]);
var container = JSON.parse(dis.responseText);
var disable = (container.metadata.status == 'Stopped') ? 'disable_a' : '';
$('#applis').append('<li><a class="collapsible-header waves-effect appli ' + disable + ' " data-rang="9" href="https://' + uncont[3] + '-' + refclipla + '.' + nomdomaine + '/adminxx" target="_blank">Buro</a></li>')
break;
case ('rando'):
var dis = containerstate(uncont[3]);
var container = JSON.parse(dis.responseText);
var disable = (container.metadata.status == 'Stopped') ? 'disable_a' : '';
$('#applis').append('<li><a class="collapsible-header waves-effect appli ' + disable + ' " data-rang="10" href="https://' + uncont[3] + '-' + refclipla + '.' + nomdomaine + '/adminxx" target="_blank">Rando</a></li>')
break;
case ('nextcloud'):
var dis = containerstate(uncont[3]);
var container = JSON.parse(dis.responseText);
var disable = (container.metadata.status == 'Stopped') ? 'disable_a' : '';
$('#applis').append('<li><a class="collapsible-header waves-effect appli ' + disable + '" data-rang="3" href="https://' + uncont[3] + '-' + refclipla + '.' + nomdomaine + '/" target="_blank">Nextcloud</a></li>')
break;
case ('humhub'):
var dis = containerstate(uncont[3]);
var container = JSON.parse(dis.responseText);
var disable = (container.metadata.status == 'Stopped') ? 'disable_a' : '';
$('#applis').append('<li><a class="collapsible-header waves-effect appli ' + disable +' " data-rang="4" href="https://' + uncont[3] + '-' + refclipla + '.' + nomdomaine + '/" target="_blank">Humhub</a></li>')
break;
case ('ops'):
var dis = containerstate(uncont[3]);
var container = JSON.parse(dis.responseText);
var disable = (container.metadata.status == 'Stopped') ? 'disable_a' : '';
$('#applis').append('<li><a class="collapsible-header waves-effect appli ' + disable + '" data-rang="5" href="https://' + uncont[3] + '-' + refclipla + '.' + nomdomaine + '/admin" target="_blank">OpenSupports</a></li>')
break;
case ('mibew'):
var dis = containerstate(uncont[3]);
var container = JSON.parse(dis.responseText);
var disable = (container.metadata.status == 'Stopped') ? 'disable_a' : '';
$('#applis').append('<li><a class="collapsible-header waves-effect appli ' + disable + '" data-rang="6" href="https://' + uncont[3] + '-' + refclipla + '.' + nomdomaine + '/" target="_blank">Mibew (chat)</a></li>')
break;
case ('suitecrm'):
var dis = containerstate(uncont[3]);
var container = JSON.parse(dis.responseText);
var disable = (container.metadata.status == 'Stopped') ? 'disable_a' : '';
$('#applis').append('<li><a class="collapsible-header waves-effect appli ' + disable + '" data-rang="2" href="https://' + uncont[3] + '-' + refclipla + '.' + nomdomaine + '/" target="_blank">SuiteCRM</a></li>')
break;
case ('phplist'):
var dis = containerstate(uncont[3]);
var container = JSON.parse(dis.responseText);
var disable = (container.metadata.status == 'Stopped') ? 'disable_a' : '';
$('#applis').append('<li><a class="collapsible-header waves-effect appli ' + disable + '" data-rang="7" href="https://' + uncont[3] + '-' + refclipla + '.' + nomdomaine + '/admin" target="_blank">Phplist</a></li>')
break;
}
});
$('#applis').append('<li><a class="collapsible-header waves-effect appli" data-rang="12" href="https://blog1-' + refclipla + '.' + nomdomaine + '/wp-admin" target="_blank">Blog section</a></li>')
$('#applis').append('<li><a class="collapsible-header waves-effect appli" data-rang="13" href="https://forum1-' + refclipla + '.' + nomdomaine + '/wp-admin" target="_blank">Forum section</a></li>')
//--------------------------------------------tri sur data-rang
var $wrapper = $('#applis');
$wrapper.find('.appli').sort(function (a, b)
{
return +a.dataset.rang - +b.dataset.rang;
}).appendTo( $wrapper );
}
});
}
menu();
function containerstate(container)
{
return $.ajax(
{
type:'POST',
data: 'cont=' + container,
url:'https://fabrique-1-c12567-1.btsndrc.ac/index.php/accueil/Caccueil/containerstate',
datatype:'application/json',
async: false,
success:function(data,statut)
{
}
});
}
//-------------------------------------------------------------------------------------valide
$('#btnvalide').on('click', function()
{
var login = $('#code').val();
var mdp = $('#motdepasse').val();
if(login == '')
{
toastr.options = {'positionClass': 'toast-top-right'};
toastr["error"]("Vous devez saisir un identifiant !");
return;
}
if(mdp == '')
{
toastr.options = {'positionClass': 'toast-top-right'};
toastr["error"]("Vous devez saisir un mot de passe !");
return;
}
$.ajax(
{
type:'POST',
data: 'login=' + login + '&mdp=' + mdp,
url:'https://fabrique-1-c12567-1.btsndrc.ac/index.php/accueil/Caccueil/login',
datatype:'application/json',
success:function(data,statut)
{
if(data.length == 2) //-----------reponse []
{
toastr.options = {'positionClass': 'toast-top-right'};
toastr["error"]("Identifiant ou mot de passe non valide !");
return;
}
var promo = '';
$.each(JSON.parse(data), function(a,ident)
{
//window.location.href = 'https://fabrique-1-c12567-1.btsndrc.ac/index.php/accueil/Caccueil/accueil/';
if(typeof ident.promotion === 'undefined')
{
console.log('promoprof', promo);
window.location.href = 'https://fabrique-1-c12567-1.btsndrc.ac/index.php/accueil/Caccueil/accueil/';
}
else
{
console.log('promoetud', promo);
window.location.href = 'https://fabrique-1-c12567-1.btsndrc.ac/index.php/etudiants/Cetudiants/';
}
});
}
});
});
$(document).keyup(function(e)
{
if(e.keyCode == 13)
{
$( "#btnvalide" ).trigger( "click" );
}
});
//------------------------------------------------------------mot de passe oublié
$('#btnforgotmdp').on('click', function()
{
$('#login').addClass('d-none');
$('#forgotmdp').removeClass('d-none');
});
//------------------------------------------------------------retour login
$('#btnlogin').on('click', function()
{
$('#login').removeClass('d-none');
$('#forgotmdp').addClass('d-none');
});
//-----------------------------------------------------------envoi du mail recup mdp
$('#btnrecupmdp').on('click', function()
{
var typesel = $("input[name='type']:checked").val();
console.log(typesel);
if(typeof typesel == "undefined")
{
toastr.options = {'positionClass': 'toast-top-right'};
toastr["error"]("Vous devez préciser si vous êtes enseignant ou étudiant !");
return;
}
var email = $('#email').val();
if(email == '')
{
toastr.options = {'positionClass': 'toast-top-right'};
toastr["error"]("Vous devez saisir un email valide !");
return;
}
$.ajax(
{
type:'POST',
data: 'email=' + email + '&type=' + typesel,
url:'https://fabrique-1-c12567-1.btsndrc.ac/index.php/accueil/Caccueil/recupmdp',
datatype:'application/json',
success:function(datarecup,statut)
{
console.log(datarecup);
bootbox.alert(
{
onEscape: false,
closeButton: false,
size: "small",
title: "La Fabrique",
message: datarecup,
callback: function(){window.location.reload();}
});
}
});
});
//--------------------------------------------------bouton des applications sidebar
$(".button-collapse").sideNav();
var sideNavScrollbar = document.querySelector('.custom-scrollbar');
//var ps = new PerfectScrollbar(sideNavScrollbar);
});
</script>
<div class="hiddendiv common"></div><div class="drag-target" style="left: 0px; touch-action: pan-y; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></div></body></html>