Merge branch 'master' of https://codefirst.iut.uca.fr/git/nathan.boileau/Scripted
commit
d7fec80c71
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/Scripted.iml" filepath="$PROJECT_DIR$/.idea/Scripted.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="PhpProjectSharedConfiguration" php_language_level="7.4">
|
||||
<option name="suggestChangeDefaultLanguageLevel" value="false" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -1,31 +1,31 @@
|
||||
CREATE TABLE Admin{
|
||||
CREATE TABLE Admin(
|
||||
email varchar(50) PRIMARY KEY,
|
||||
pseudo varchar(50),
|
||||
mdp varchar(50)
|
||||
};
|
||||
);
|
||||
|
||||
CREATE TABLE Enigme{
|
||||
CREATE TABLE Enigme(
|
||||
idEnigme char(5) PRIMARY KEY,
|
||||
admin varchar(50) REFERENCES Admin(pseudo),
|
||||
admin varchar(50) REFERENCES Admin(email),
|
||||
enoncé varchar(250) NOT NULL,
|
||||
aide varchar(250),
|
||||
rappel varchar(250),
|
||||
solution varchar(250) NOT NULL,
|
||||
test varchar(250) NOT NULL,
|
||||
tempsDeResolution numeric CHECK (tempsDeResolution >0)
|
||||
};
|
||||
);
|
||||
|
||||
CREATE TABLE Joueur{
|
||||
CREATE TABLE Joueur(
|
||||
email varchar(50) PRIMARY KEY,
|
||||
enigmeEnCours varchar(50) REFERENCES Enigme(idEnigme),
|
||||
pseudo varchar(50),
|
||||
mdp varchar(50)
|
||||
};
|
||||
);
|
||||
|
||||
CREATE TABLE Game(
|
||||
idGame char(5) NOT NULL,
|
||||
joueur varchar(50) REFERENCES Joueur(pseudo),
|
||||
joueur varchar(50) REFERENCES Joueur(email),
|
||||
enigme char(5) REFERENCES Enigme(idEnigme),
|
||||
points numeric CHECK (points >0)
|
||||
points numeric CHECK (points >0),
|
||||
PRIMARY KEY(idGame, joueur, enigme)
|
||||
);
|
@ -0,0 +1,75 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
var chart = new CanvasJS.Chart("chartContainer", {
|
||||
animationEnabled: true,
|
||||
zoomEnabled: true,
|
||||
theme: "dark2",
|
||||
title: {
|
||||
text: "Score"
|
||||
},
|
||||
axisX: {
|
||||
title: "Enigme",
|
||||
valueFormatString: "####",
|
||||
interval: 1
|
||||
},
|
||||
axisY: {
|
||||
title: "Point",
|
||||
titleFontColor: "#6D78AD",
|
||||
lineColor: "#6D78AD",
|
||||
gridThickness: 0,
|
||||
lineThickness: 1,
|
||||
},
|
||||
legend: {
|
||||
verticalAlign: "top",
|
||||
fontSize: 16,
|
||||
},
|
||||
data: [{
|
||||
type: "line",
|
||||
xValueFormatString: "Pierre",
|
||||
dataPoints: [
|
||||
{ x: 0, y: 0 },
|
||||
{ x: 1, y: 50 },
|
||||
{ x: 2, y: 100 },
|
||||
{ x: 3, y: 150 },
|
||||
{ x: 4, y: 150 },
|
||||
{ x: 5, y: 200 },
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
xValueFormatString: "Noe",
|
||||
dataPoints: [
|
||||
{ x: 0, y: 0 },
|
||||
{ x: 1, y: 100 },
|
||||
{ x: 2, y: 100 },
|
||||
{ x: 3, y: 200 },
|
||||
{ x: 4, y: 250 },
|
||||
{ x: 5, y: 300 },
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
xValueFormatString: "Nathan",
|
||||
dataPoints: [
|
||||
{ x: 0, y: 0 },
|
||||
{ x: 1, y: 75 },
|
||||
{ x: 2, y: 100 },
|
||||
{ x: 3, y: 150 },
|
||||
{ x: 4, y: 200 },
|
||||
{ x: 5, y: 250 },
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
chart.render();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="chartContainer" style="height: 370px; width: 100%;"></div>
|
||||
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/php.iml" filepath="$PROJECT_DIR$/.idea/php.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="PhpProjectSharedConfiguration" php_language_level="7">
|
||||
<option name="suggestChangeDefaultLanguageLevel" value="false" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
Loading…
Reference in new issue