parent
9786beb662
commit
e01b6493f7
Binary file not shown.
@ -0,0 +1,13 @@
|
||||
cd /var/www/html/
|
||||
cd oracle/
|
||||
cd correction-bd-mehdi/
|
||||
cd BddCorrect/
|
||||
ls
|
||||
cd ..
|
||||
ls
|
||||
ls -l
|
||||
chmod -R 777 BddCorrect/
|
||||
cd BddCorrect/
|
||||
ls -l
|
||||
cd Traitement/
|
||||
ls -l
|
@ -0,0 +1,40 @@
|
||||
.bouton {
|
||||
background: #0082b5;
|
||||
color: #fff;
|
||||
border: 1px solid #eee;
|
||||
border-radius: 20px;
|
||||
box-shadow: 5px 5px 5px #eee;
|
||||
text-shadow:none;
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
.bouton:hover {
|
||||
background: #016ABC;
|
||||
color: #fff;
|
||||
border: 1px solid #eee;
|
||||
border-radius: 20px;
|
||||
box-shadow: 5px 5px 5px #eee;
|
||||
text-shadow:none;
|
||||
}
|
||||
|
||||
body {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
form {
|
||||
margin-top: 100px;
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
footer{
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
background-color: red;
|
||||
color: white;
|
||||
text-align: center;
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
#frm-reset{
|
||||
position:absolute;
|
||||
right: 0;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#frm-reset input{
|
||||
background: #0082b5;
|
||||
color: #fff;
|
||||
border: 1px solid #eee;
|
||||
border-radius: 20px;
|
||||
box-shadow: 5px 5px 5px #eee;
|
||||
text-shadow:none;
|
||||
width: 500px;
|
||||
|
||||
display: block;
|
||||
height: 30%;
|
||||
}
|
||||
|
||||
#content{
|
||||
min-height:88vh;
|
||||
}
|
||||
footer{
|
||||
position: relative;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
background-color: red;
|
||||
color: white;
|
||||
text-align: center;
|
||||
min-height: 12vh;
|
||||
border : double;
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8"><style><?php global $rep,$vues,$css; include $rep.$css['bootstrap']; ?></style>
|
||||
<title></title>
|
||||
<script src="css/jquery-3.5.1.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="css/VueAccueil.css">
|
||||
</head>
|
||||
<body id="vuep">
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav">
|
||||
<div class="container">
|
||||
<a class="navbar-brand js-scroll-trigger" href="#page-top">Base De Données</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
<header class="bg-primary text-white">
|
||||
<div class="container text-center">
|
||||
<h1>test</h1>
|
||||
<p class="lead">TEST</p>
|
||||
</div>
|
||||
</header>
|
||||
<div id='allp'>
|
||||
<div style="font-weight: bold" id="Temps-Restant"></div>
|
||||
|
||||
|
||||
<form method="get" role="form">
|
||||
<input class="bouton" type="submit" name="action" value="Afficher les demonstrations" ><br/>
|
||||
<input class="bouton" type="submit" name="action" value="Afficher les QCM" ><br/>
|
||||
<input class="bouton" type="submit" name="action" value="Afficher les questions"><br/>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="py-5 bg-dark">
|
||||
<div class="container">
|
||||
<p class="m-0 text-center text-white">IUT Clermont-Ferrand 2020</p>
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
</footer>
|
||||
|
||||
<!-- Bootstrap core JavaScript -->
|
||||
<script src="vendor/jquery/jquery.min.js"></script>
|
||||
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<!-- Plugin JavaScript -->
|
||||
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
|
||||
|
||||
<!-- Custom JavaScript for this theme -->
|
||||
<script src="js/scrolling-nav.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,132 +1,123 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<script src="css/jquery-3.5.1.js"></script>
|
||||
<link rel="stylesheet" href="css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="css/VuePrincipale.css">
|
||||
<link rel="stylesheet" href="css/VueDemonstration.css">
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav">
|
||||
<div class="container">
|
||||
<a class="navbar-brand js-scroll-trigger" href="#page-top">TP de Base De Données</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link js-scroll-trigger" href="#TP2">TP2</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link js-scroll-trigger" href="#TP3">TP3</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link js-scroll-trigger" href="#TP4">TP4</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link js-scroll-trigger" href="#TP5">TP5</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<header class="bg-primary text-white">
|
||||
<div class="container text-center">
|
||||
<h1>Demonstrations</h1>
|
||||
<p class="lead">TEST</p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<body>
|
||||
<div id="content">
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav">
|
||||
<div class="container">
|
||||
<a class="navbar-brand js-scroll-trigger" href="#page-top">TP de Base De Données</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link js-scroll-trigger" href="#TP2">TP2</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link js-scroll-trigger" href="#TP3">TP3</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link js-scroll-trigger" href="#TP4">TP4</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link js-scroll-trigger" href="#TP5">TP5</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<!--<header class="bg-primary text-white">
|
||||
<div class="container text-center">
|
||||
<h1>Demonstrations</h1>
|
||||
<p class="lead">TEST</p>
|
||||
</div>
|
||||
</header>-->
|
||||
|
||||
<div style="font-weight: bold" id="Temps-Restant"></div>
|
||||
<div style="font-weight: bold" id="Temps-Restant"></div>
|
||||
|
||||
<section id="TP2">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 mx-auto">
|
||||
<h2>TP 2</h2>
|
||||
|
||||
<form id="demoForm" method="get" >
|
||||
<?php $i=0;
|
||||
foreach ($dVueDemonstrations as $q) {
|
||||
?>
|
||||
<?php $i++; echo $q->getNumQuestion() .'.'.$q->getQuestion(); $_SESSION['num']=array(); $_SESSION['num'][$i] =$q->getNumQuestion(); ?> <br/>
|
||||
<textarea rows="5" cols="70" name="demo<?php echo $q->getNumQuestion(); ?>" id="demo<?php echo $q->getNumQuestion(); ?>" >
|
||||
<?php echo $q->getReponse(); ?>
|
||||
</textarea>
|
||||
<input class="monterDemonstration" type="button" value="Monter" onclick="MonterDemonstration(<?php echo $q->getNumQuestion(); ?>,<?php echo $q->getNumTp(); ?>)" ></p>
|
||||
<section id="TP2">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 mx-auto">
|
||||
<h2>TP 2</h2>
|
||||
|
||||
<form id="demoForm" method="get" >
|
||||
<?php $i=0;
|
||||
foreach ($dVueDemonstrations as $q) {
|
||||
?>
|
||||
<?php $i++; echo $q->getNumQuestion() .'.'.$q->getQuestion(); $_SESSION['num']=array(); $_SESSION['num'][$i] =$q->getNumQuestion(); ?> <br/>
|
||||
<textarea rows="5" cols="70" name="demo<?php echo $q->getNumQuestion(); ?>" id="demo<?php echo $q->getNumQuestion(); ?>" >
|
||||
<?php echo $q->getReponse(); ?>
|
||||
</textarea>
|
||||
<input class="monterDemonstration" type="button" value="Monter" onclick="MonterDemonstration(<?php echo $q->getNumQuestion(); ?>,<?php echo $q->getNumTp(); ?>)" ></p>
|
||||
|
||||
<p><input class="submitDemoData" type="button" value="Exécuter" onclick="SubmitDemoData(<?php echo $q->getNumQuestion(); ?>);" ></p>
|
||||
|
||||
<p><input class="submitDemoData" type="button" value="Exécuter" onclick="SubmitDemoData(<?php echo $q->getNumQuestion(); ?>);" ></p>
|
||||
|
||||
<div id="results<?php echo $q->getNumQuestion(); ?>">
|
||||
<!-- les résultats s'affichent içi -->
|
||||
</div><br/>
|
||||
<?php $i++; } //fin foreach ?>
|
||||
</form>
|
||||
|
||||
<div id="results<?php echo $q->getNumQuestion(); ?>">
|
||||
<!-- les résultats s'affichent içi -->
|
||||
</div><br/>
|
||||
<?php $i++; } //fin foreach ?>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<form method="get" id="frm-reset">
|
||||
<input type="submit" name="action" id="regenererDemo" value="Reintiliser les demonstrations" /><br/>
|
||||
</form>
|
||||
|
||||
<a href="vues/VueAjoutDemo.php"><button>Ajouter Une Démonstration</button></a>
|
||||
<a href="vues/VueLibre.php"><button>Creation table</button></a>
|
||||
|
||||
<form method="get" role="form">
|
||||
<input type="submit" name="action" id="afficher-demo" value="Afficher les demonstrations" style='display:none'>
|
||||
</form>
|
||||
<div id="erreur">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<form method="get" >
|
||||
<input type="submit" name="action" id="regenererDemo" value="Reintiliser les demonstrations" /><br/>
|
||||
</form>
|
||||
<a href="vues/VueAjoutDemo.php"><button>Ajouter Une Démonstration</button></a>
|
||||
<a href="vues/VueLibre.php"><button>Creation table</button></a>
|
||||
|
||||
<form method="get" role="form">
|
||||
<input type="submit" name="action" value="Afficher les questions" /><br/>
|
||||
<input type="submit" name="action" value="Afficher les QCM" ><br/>
|
||||
<input type="submit" name="action" id="afficher-demo" value="Afficher les demonstrations" style='display:none'>
|
||||
</form>
|
||||
<div id="erreur">
|
||||
|
||||
</div>
|
||||
<script>
|
||||
|
||||
|
||||
function SubmitDemoData(numQuestion) {
|
||||
//document.write($('#demo'+numQuestion).val());
|
||||
var txt = $('#demo'+numQuestion).val() ;
|
||||
$.get("Traitement/AffichageDemo.php", { textbox: txt},
|
||||
function(data) {
|
||||
$('#results'+numQuestion).html(data);
|
||||
//$('#demoForm')[0].reset();
|
||||
});
|
||||
}
|
||||
|
||||
function MonterDemonstration(numDemo, numChapitre) {
|
||||
if(numDemo > 1){
|
||||
$.get("Traitement/OrdreDemo.php", { numDemo : numDemo, numChapitre : numChapitre },
|
||||
function(data) {
|
||||
<script>
|
||||
|
||||
|
||||
//$('#questionsForm')[0].reset();
|
||||
//$('#erreur').html(data);
|
||||
$("#afficher-demo").trigger("click");
|
||||
//window.location.replace("index.php");
|
||||
function SubmitDemoData(numQuestion) {
|
||||
//document.write($('#demo'+numQuestion).val());
|
||||
var txt = $('#demo'+numQuestion).val() ;
|
||||
$.get("Traitement/AffichageDemo.php", { textbox: txt},
|
||||
function(data) {
|
||||
$('#results'+numQuestion).html(data);
|
||||
//$('#demoForm')[0].reset();
|
||||
});
|
||||
}
|
||||
|
||||
function MonterDemonstration(numDemo, numChapitre) {
|
||||
if(numDemo > 1){
|
||||
$.get("Traitement/OrdreDemo.php", { numDemo : numDemo, numChapitre : numChapitre },
|
||||
function(data) {
|
||||
|
||||
//$('#questionsForm')[0].reset();
|
||||
//$('#erreur').html(data);
|
||||
$("#afficher-demo").trigger("click");
|
||||
//window.location.replace("index.php");
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
</div>
|
||||
<!-- Footer -->
|
||||
<footer class="py-5 bg-dark">
|
||||
<div class="container">
|
||||
<p class="m-0 text-center text-white">IUT Clermont-Ferrand 2020</p>
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
</footer>
|
||||
|
||||
<!-- Bootstrap core JavaScript -->
|
||||
<script src="vendor/jquery/jquery.min.js"></script>
|
||||
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<!-- Plugin JavaScript -->
|
||||
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
|
||||
|
||||
<!-- Custom JavaScript for this theme -->
|
||||
<script src="js/scrolling-nav.js"></script>
|
||||
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in new issue