diff --git a/gemeinsamforschen/src/main/java/unipotsdam/gf/config/GFDatabaseConfig.java b/gemeinsamforschen/src/main/java/unipotsdam/gf/config/GFDatabaseConfig.java index cefe2e289c2727db459f27dc5606aa0ceb9f9d6b..252905102d2472eaa125f06499bbdfe1663ea254 100644 --- a/gemeinsamforschen/src/main/java/unipotsdam/gf/config/GFDatabaseConfig.java +++ b/gemeinsamforschen/src/main/java/unipotsdam/gf/config/GFDatabaseConfig.java @@ -7,7 +7,7 @@ public class GFDatabaseConfig { public static final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; public static final String DB_URL = "jdbc:mysql://localhost"; // Database credentials - public static final String USER = "root2"; - public static final String PASS = "voyager2"; + public static final String USER = "root"; + public static final String PASS = ""; public static final String DB_NAME = "fltrail"; } diff --git a/gemeinsamforschen/src/main/webapp/assets/js/AlertAssessmentOutlier.js b/gemeinsamforschen/src/main/webapp/assets/js/AlertAssessmentOutlier.js index 713944d46062dd622e41ad5c23be33bb30d5d32a..42c3692252f0e4ba25b6c8d1f2165cb5d75fdcb8 100644 --- a/gemeinsamforschen/src/main/webapp/assets/js/AlertAssessmentOutlier.js +++ b/gemeinsamforschen/src/main/webapp/assets/js/AlertAssessmentOutlier.js @@ -1,7 +1,201 @@ +$(document).ready(function () { + if(!$("#Diagramm").hidden){ + $("#Diagramm").hide(); + }; + + document.getElementById("Diagramm").style.visibility="invisible"; + $('#DiaBlende').on('click',function () { + $("#Diagramm").show(); + document.getElementById("demo").innerHTML="verlauf"; + }); +}); $(document).ready(function () { $('#ProblemGrp1').on('click',function () { var alarm = prompt("hier gibt es Unstimmigeiten","Vorgeschlagene Note:") - document.getElementById("demo").innerHTML = "Wurde übernommen"; + if (alarm === "1") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "2") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "3") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "4") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "5") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "6") { + document.getElementById("demo").innerHTML = alarm; + } + else{ + window.alert("Bitte eine Zahl zwischen eins und 6 angeben") + } }); }); +$(document).ready(function () { + $('#ProblemGrp1S1').on('click',function () { + var alarm = prompt("hier gibt es Unstimmigeiten","Vorgeschlagene Note:") + if (alarm === "1") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "2") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "3") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "4") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "5") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "6") { + document.getElementById("demo").innerHTML = alarm; + } + else{ + window.alert("Bitte eine Zahl zwischen eins und 6 angeben") + } + }); +}); +$(document).ready(function () { + $('#ProblemGrp1S2').on('click',function () { + var alarm = prompt("hier gibt es Unstimmigeiten","Vorgeschlagene Note:") + if (alarm === "1") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "2") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "3") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "4") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "5") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "6") { + document.getElementById("demo").innerHTML = alarm; + } + else{ + window.alert("Bitte eine Zahl zwischen eins und 6 angeben") + } + }); +}); +$(document).ready(function () { + $('#ProblemGrp2').on('click',function () { + var alarm = prompt("hier gibt es Unstimmigeiten","Vorgeschlagene Note:") + if (alarm === "1") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "2") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "3") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "4") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "5") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "6") { + document.getElementById("demo").innerHTML = alarm; + } + else{ + window.alert("Bitte eine Zahl zwischen eins und 6 angeben") + } + }); +}); +$(document).ready(function () { + $('#ProblemGrp2S3').on('click',function () { + var alarm = prompt("hier gibt es Unstimmigeiten","Vorgeschlagene Note:") + if (alarm === "1") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "2") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "3") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "4") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "5") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "6") { + document.getElementById("demo").innerHTML = alarm; + } + else{ + window.alert("Bitte eine Zahl zwischen eins und 6 angeben") + } + }); +}); +$(document).ready(function () { + $('#ProblemGrp2S4').on('click',function () { + var alarm = prompt("hier gibt es Unstimmigeiten","Vorgeschlagene Note:") + if (alarm === "1") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "2") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "3") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "4") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "5") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "6") { + document.getElementById("demo").innerHTML = alarm; + } + else{ + window.alert("Bitte eine Zahl zwischen eins und 6 angeben") + } + }); +}); +$(document).ready(function () { + $('#ProblemGrp3').on('click',function () { + var alarm = prompt("hier gibt es Unstimmigeiten","Vorgeschlagene Note:") + if (alarm === "1") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "2") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "3") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "4") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "5") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "6") { + document.getElementById("demo").innerHTML = alarm; + } + else{ + window.alert("Bitte eine Zahl zwischen eins und 6 angeben") + } + }); +}); +$(document).ready(function () { + $('#ProblemGrp3S5').on('click',function () { + var alarm = prompt("hier gibt es Unstimmigeiten","Vorgeschlagene Note:") + if (alarm === "1") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "2") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "3") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "4") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "5") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "6") { + document.getElementById("demo").innerHTML = alarm; + } + else{ + window.alert("Bitte eine Zahl zwischen eins und 6 angeben") + } + }); +}); +$(document).ready(function () { + $('#ProblemGrp3S6').on('click',function () { + var alarm = prompt("hier gibt es Unstimmigeiten","Vorgeschlagene Note:") + if (alarm === "1") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "2") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "3") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "4") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "5") { + document.getElementById("demo").innerHTML = alarm; + } else if (alarm === "6") { + document.getElementById("demo").innerHTML = alarm; + } + else{ + window.alert("Bitte eine Zahl zwischen eins und 6 angeben") + } + }); +}); diff --git a/gemeinsamforschen/src/main/webapp/assets/js/overview-docent.js b/gemeinsamforschen/src/main/webapp/assets/js/overview-docent.js index 0bd803d816901c10c4bb47c9ecc6ecf281f7d543..e0b78bd2beb99e2e0a1b8e84e8dccc9483049cae 100644 --- a/gemeinsamforschen/src/main/webapp/assets/js/overview-docent.js +++ b/gemeinsamforschen/src/main/webapp/assets/js/overview-docent.js @@ -1,9 +1,9 @@ $(document).ready(function(){ $('#project1Link').on('click', function(){ - location.href="project-docent.jsp?token="+getUserTokenFromUrl(); + location.href="project-docent_CG.jsp?token="+getUserTokenFromUrl(); }); $('#project2Link').on('click', function(){ - location.href="project-docent.jsp?token="+getUserTokenFromUrl(); + location.href="project-docent_CG.jsp?token="+getUserTokenFromUrl(); }); $('#createProject').on('click', function(){ location.href="createProject.jsp?token="+getUserTokenFromUrl(); diff --git a/gemeinsamforschen/src/main/webapp/pages/project-docent_CG.jsp b/gemeinsamforschen/src/main/webapp/pages/project-docent_CG.jsp new file mode 100644 index 0000000000000000000000000000000000000000..14b99a66c580135cfd3561c411a19e961c4d9125 --- /dev/null +++ b/gemeinsamforschen/src/main/webapp/pages/project-docent_CG.jsp @@ -0,0 +1,167 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix = "communication" uri = "/communication/chatWindow.tld"%> +<%@ taglib uri="../core/pages/gemeinsamForschen.tld" prefix="menu"%> + + +<!DOCTYPE html> +<html> + +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>fltrail</title> + <link rel="stylesheet" href="../assets/css/styles.css"> + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> + <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> + <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> + <script src="../assets/js/AlertAssessmentOutlier.js"></script> + <link rel="stylesheet" href="../assets/fonts/font-awesome.min.css"> + <link rel="stylesheet" href="../assets/css/Community-ChatComments.css"> + <link rel="stylesheet" href="../assets/css/Sidebar-Menu-1.css"> + <link rel="stylesheet" href="../assets/css/Sidebar-Menu.css"> + <script src="../assets/js/utility.js"></script> +</head> + +<body> +<div id="wrapper"> + <menu:menu></menu:menu> + + <div class="page-content-wrapper"> + <div class="container-fluid"> + <h1>dummy Projekt1 für Dozent1</h1><button class="btn btn-default" type="button">Gruppen erstellen</button><button class="btn btn-default" type="button">Projekt finalisieren</button><button class="btn btn-default" type="button">Exportiere Projektergebnisse</button> + </div> + <button + class="btn btn-default" type="button">Exportiere Zwischenstand</button><button class="btn btn-default" type="button">Quizfrage erstellen</button> + <div> + <div class="container"> + <div class="row"> + <div class="col-md-4"> + <div class="table-responsive" style="width:294px;"> + <table class="table"> + <thead> + <tr> + <th>Gruppe1 </th> + <th>Beiträge </th> + <th> <button id="ProblemGrp1">!</button> </th> + </tr> + </thead> + <tbody> + <tr> + <td>student1 </td> + <td>Interfaces </td> + <th> <button id="ProblemGrp1S1">!</button> </th> + </tr> + <tr> + <td>student2 </td> + <td>Design </td> + <th> <button id="ProblemGrp1S2">!</button> </th> + </tr> + </tbody> + </table> + </div> + <div class="table-responsive" style="width:294px;"> + <table class="table"> + <thead> + <tr> + <th>Gruppe2 </th> + <th>Beiträge </th> + <th> <button id="ProblemGrp2">!</button> </th> + </tr> + </thead> + <tbody> + <tr> + <td>student3 </td> + <td>Interfaces </td> + <th> <button id="ProblemGrp2S3">!</button> </th> + </tr> + <tr> + <td>student4 </td> + <td>Design </td> + <th> <button id="ProblemGrp2S4">!</button> </th> + </tr> + </tbody> + </table> + </div> + <div class="table-responsive" style="width:294px;"> + <table class="table"> + <thead> + <tr> + <th>Gruppe3 </th> + <th>Beiträge </th> + <th> <button id="ProblemGrp3">!</button> </th> + </tr> + </thead> + <tbody> + <tr> + <td>student5 </td> + <td>Interfaces </td> + <th> <button id="ProblemGrp3S5">!</button> </th> + </tr> + <tr> + <td>student6 </td> + <td>Design </td> + <th> <button id="ProblemGrp3S6">!</button> </th> + </tr> + </tbody> + </table> + </div> + </div> + <div class="col-md-4"> + <button id="DiaBlende">Zeitlicher Verlauf</button> + <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/74/Liniendiagramm-Beispiel.svg/750px-Liniendiagramm-Beispiel.svg.png", width="280", id = "Diagramm" > + </div> + <div class="col-md-4"> + <div class="panel panel-default"> + <div class="panel-heading"> + <h3 class="panel-title">ProjektChat</h3> + </div> + <div class="panel-body" style="height:233px;"> + <ul class="list-group"> + <li class="list-group-item" style="margin-bottom:6px;"> + <div class="media"> + <div class="media-left"><a></a></div> + <div class="media-body"> + <div class="media" style="overflow:visible;"> + <div class="media-left"><a><img src="../assets/img/1.jpg" class="img-rounded" style="width: 25px; height:25px;"></a></div> + <div class="media-body" style="overflow:visible;"> + <div class="row"> + <div class="col-md-12"> + <p><a href="#">Sara Doe:</a> This guy has been going 100+ MPH on side streets. <br> + <small class="text-muted">August 6, 2016 @ 10:35am </small></p> + </div> + </div> + </div> + </div> + </div> + </div> + </li> + <li class="list-group-item" style="margin-bottom:6px;"> + <div class="media"> + <div class="media-left"><a></a></div> + <div class="media-body"> + <div class="media" style="overflow:visible;"> + <div class="media-left"><a><img src="../assets/img/1.jpg" class="img-rounded" style="width: 25px; height:25px;"></a></div> + <div class="media-body" style="overflow:visible;"> + <div class="row"> + <div class="col-md-12"> + <p><a href="#">Brennan Prill:</a> This guy has been going 100+ MPH on side streets. <br> + <small class="text-muted">August 6, 2016 @ 10:35am </small></p> + </div> + </div> + </div> + </div> + </div> + </div> + </li> + </ul><button class="btn btn-default" type="button" style="margin-left:601px;margin-top:-9px;">Add Comment</button></div> + </div> + </div> + </div> + </div> + </div> + </div> +</div> +<communication:chatWindow orientation="right"></communication:chatWindow> +</body> + +</html> \ No newline at end of file