diff options
49 files changed, 735 insertions, 101 deletions
diff --git a/Dozentenmodul/.classpath b/Dozentenmodul/.classpath index a0e85c05..a5e66f2d 100644 --- a/Dozentenmodul/.classpath +++ b/Dozentenmodul/.classpath @@ -15,5 +15,8 @@ <classpathentry kind="lib" path="lib/swing2swt.jar"/>
<classpathentry kind="lib" path="lib/swt.jar"/>
<classpathentry kind="lib" path="lib/wizard-0.998.1.jar"/>
+ <classpathentry kind="lib" path="C:/Users/tspitzer/workspace/Dozentenmodulserver/WebContent/WEB-INF/lib/jaxrpc.jar"/>
+ <classpathentry kind="lib" path="C:/Users/tspitzer/workspace/Dozentenmodulserver/WebContent/WEB-INF/lib/axis.jar"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/Dozentenmodulserver"/>
<classpathentry kind="output" path="bin"/>
</classpath>
diff --git a/Dozentenmodul/bin/GUI/ActionChooser$2.class b/Dozentenmodul/bin/GUI/ActionChooser$2.class Binary files differnew file mode 100644 index 00000000..ed820280 --- /dev/null +++ b/Dozentenmodul/bin/GUI/ActionChooser$2.class diff --git a/Dozentenmodul/bin/GUI/EingabeAllgemein$4.class b/Dozentenmodul/bin/GUI/EingabeAllgemein$4.class Binary files differnew file mode 100644 index 00000000..92b0ab2c --- /dev/null +++ b/Dozentenmodul/bin/GUI/EingabeAllgemein$4.class diff --git a/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$7.class b/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$7.class Binary files differnew file mode 100644 index 00000000..bed98da0 --- /dev/null +++ b/Dozentenmodul/bin/GUI/EingabeSoftwareDaten$7.class diff --git a/Dozentenmodul/bin/GUI/EingabeSystemDaten$4.class b/Dozentenmodul/bin/GUI/EingabeSystemDaten$4.class Binary files differnew file mode 100644 index 00000000..f114d20f --- /dev/null +++ b/Dozentenmodul/bin/GUI/EingabeSystemDaten$4.class diff --git a/Dozentenmodul/bin/GUI/FTPDownloader$3.class b/Dozentenmodul/bin/GUI/FTPDownloader$3.class Binary files differnew file mode 100644 index 00000000..1856b309 --- /dev/null +++ b/Dozentenmodul/bin/GUI/FTPDownloader$3.class diff --git a/Dozentenmodul/bin/GUI/FTPDownloader$4.class b/Dozentenmodul/bin/GUI/FTPDownloader$4.class Binary files differnew file mode 100644 index 00000000..e8db635a --- /dev/null +++ b/Dozentenmodul/bin/GUI/FTPDownloader$4.class diff --git a/Dozentenmodul/bin/GUI/FTPDownloader$5.class b/Dozentenmodul/bin/GUI/FTPDownloader$5.class Binary files differnew file mode 100644 index 00000000..058a9c05 --- /dev/null +++ b/Dozentenmodul/bin/GUI/FTPDownloader$5.class diff --git a/Dozentenmodul/bin/GUI/FTPUploader$4.class b/Dozentenmodul/bin/GUI/FTPUploader$4.class Binary files differnew file mode 100644 index 00000000..af9d1150 --- /dev/null +++ b/Dozentenmodul/bin/GUI/FTPUploader$4.class diff --git a/Dozentenmodul/bin/GUI/FTPUploader$5.class b/Dozentenmodul/bin/GUI/FTPUploader$5.class Binary files differnew file mode 100644 index 00000000..c7d6217b --- /dev/null +++ b/Dozentenmodul/bin/GUI/FTPUploader$5.class diff --git a/Dozentenmodul/bin/GUI/FTPUploader$6.class b/Dozentenmodul/bin/GUI/FTPUploader$6.class Binary files differnew file mode 100644 index 00000000..d7680f6d --- /dev/null +++ b/Dozentenmodul/bin/GUI/FTPUploader$6.class diff --git a/Dozentenmodul/bin/GUI/Freigabe$1.class b/Dozentenmodul/bin/GUI/Freigabe$1.class Binary files differnew file mode 100644 index 00000000..4d1020a9 --- /dev/null +++ b/Dozentenmodul/bin/GUI/Freigabe$1.class diff --git a/Dozentenmodul/bin/GUI/Freigabe$2.class b/Dozentenmodul/bin/GUI/Freigabe$2.class Binary files differnew file mode 100644 index 00000000..d959f1e9 --- /dev/null +++ b/Dozentenmodul/bin/GUI/Freigabe$2.class diff --git a/Dozentenmodul/bin/GUI/Freigabe$3.class b/Dozentenmodul/bin/GUI/Freigabe$3.class Binary files differnew file mode 100644 index 00000000..a6c51385 --- /dev/null +++ b/Dozentenmodul/bin/GUI/Freigabe$3.class diff --git a/Dozentenmodul/bin/GUI/Freigabe$4.class b/Dozentenmodul/bin/GUI/Freigabe$4.class Binary files differnew file mode 100644 index 00000000..3d45eda7 --- /dev/null +++ b/Dozentenmodul/bin/GUI/Freigabe$4.class diff --git a/Dozentenmodul/bin/GUI/Freigabe.class b/Dozentenmodul/bin/GUI/Freigabe.class Binary files differnew file mode 100644 index 00000000..ed4a1bab --- /dev/null +++ b/Dozentenmodul/bin/GUI/Freigabe.class diff --git a/Dozentenmodul/bin/GUI/LoginWindow$3.class b/Dozentenmodul/bin/GUI/LoginWindow$3.class Binary files differnew file mode 100644 index 00000000..d212b8f3 --- /dev/null +++ b/Dozentenmodul/bin/GUI/LoginWindow$3.class diff --git a/Dozentenmodul/bin/GUI/Rechtsbelehrung$1.class b/Dozentenmodul/bin/GUI/Rechtsbelehrung$1.class Binary files differnew file mode 100644 index 00000000..d6ba9e05 --- /dev/null +++ b/Dozentenmodul/bin/GUI/Rechtsbelehrung$1.class diff --git a/Dozentenmodul/bin/GUI/Rechtsbelehrung$2.class b/Dozentenmodul/bin/GUI/Rechtsbelehrung$2.class Binary files differnew file mode 100644 index 00000000..bd84fb6a --- /dev/null +++ b/Dozentenmodul/bin/GUI/Rechtsbelehrung$2.class diff --git a/Dozentenmodul/bin/GUI/Rechtsbelehrung.class b/Dozentenmodul/bin/GUI/Rechtsbelehrung.class Binary files differnew file mode 100644 index 00000000..25d9fdf7 --- /dev/null +++ b/Dozentenmodul/bin/GUI/Rechtsbelehrung.class diff --git a/Dozentenmodul/bin/GUI/Summary$1.class b/Dozentenmodul/bin/GUI/Summary$1.class Binary files differnew file mode 100644 index 00000000..7c6fc8ab --- /dev/null +++ b/Dozentenmodul/bin/GUI/Summary$1.class diff --git a/Dozentenmodul/bin/GUI/Summary$2.class b/Dozentenmodul/bin/GUI/Summary$2.class Binary files differnew file mode 100644 index 00000000..d8cc9f0e --- /dev/null +++ b/Dozentenmodul/bin/GUI/Summary$2.class diff --git a/Dozentenmodul/bin/GUI/Summary$3.class b/Dozentenmodul/bin/GUI/Summary$3.class Binary files differnew file mode 100644 index 00000000..ca004f87 --- /dev/null +++ b/Dozentenmodul/bin/GUI/Summary$3.class diff --git a/Dozentenmodul/bin/GUI/Summary$4.class b/Dozentenmodul/bin/GUI/Summary$4.class Binary files differnew file mode 100644 index 00000000..6089b4ee --- /dev/null +++ b/Dozentenmodul/bin/GUI/Summary$4.class diff --git a/Dozentenmodul/bin/GUI/Summary$5.class b/Dozentenmodul/bin/GUI/Summary$5.class Binary files differnew file mode 100644 index 00000000..08342e8f --- /dev/null +++ b/Dozentenmodul/bin/GUI/Summary$5.class diff --git a/Dozentenmodul/bin/GUI/Summary$6.class b/Dozentenmodul/bin/GUI/Summary$6.class Binary files differnew file mode 100644 index 00000000..b3483d69 --- /dev/null +++ b/Dozentenmodul/bin/GUI/Summary$6.class diff --git a/Dozentenmodul/bin/GUI/Summary$7.class b/Dozentenmodul/bin/GUI/Summary$7.class Binary files differnew file mode 100644 index 00000000..6ead73e4 --- /dev/null +++ b/Dozentenmodul/bin/GUI/Summary$7.class diff --git a/Dozentenmodul/bin/GUI/Summary.class b/Dozentenmodul/bin/GUI/Summary.class Binary files differnew file mode 100644 index 00000000..a525f1f4 --- /dev/null +++ b/Dozentenmodul/bin/GUI/Summary.class diff --git a/Dozentenmodul/bin/GUI/getVMwarePlayer$3.class b/Dozentenmodul/bin/GUI/getVMwarePlayer$3.class Binary files differnew file mode 100644 index 00000000..6cda22f5 --- /dev/null +++ b/Dozentenmodul/bin/GUI/getVMwarePlayer$3.class diff --git a/Dozentenmodul/bin/GUI/getVMwarePlayer$4.class b/Dozentenmodul/bin/GUI/getVMwarePlayer$4.class Binary files differnew file mode 100644 index 00000000..ea0677ab --- /dev/null +++ b/Dozentenmodul/bin/GUI/getVMwarePlayer$4.class diff --git a/Dozentenmodul/bin/GUI/searchRohling$5.class b/Dozentenmodul/bin/GUI/searchRohling$5.class Binary files differnew file mode 100644 index 00000000..140b79cd --- /dev/null +++ b/Dozentenmodul/bin/GUI/searchRohling$5.class diff --git a/Dozentenmodul/src/GUI/FTPUploader.java b/Dozentenmodul/src/GUI/FTPUploader.java index 119f5b6c..d4908914 100644 --- a/Dozentenmodul/src/GUI/FTPUploader.java +++ b/Dozentenmodul/src/GUI/FTPUploader.java @@ -1,6 +1,9 @@ package GUI;
import java.awt.BorderLayout;
+import rmi.*;
+import server.ServerInterface;
+
import java.awt.Color;
import java.awt.Dimension;
import java.awt.EventQueue;
@@ -11,6 +14,7 @@ import java.io.File; import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
+import java.rmi.RemoteException;
import java.util.Properties;
import javax.swing.JButton;
import javax.swing.JFileChooser;
@@ -35,7 +39,7 @@ import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
-
+import Models.User;
@SuppressWarnings("serial")
public class FTPUploader extends JFrame implements PropertyChangeListener {
@@ -44,10 +48,9 @@ public class FTPUploader extends JFrame implements PropertyChangeListener { private final JPanel contentPanel = new JPanel();
JLabel lblNewLabel;
JProgressBar progressBar;
- String host="bwlp-masterserver.ruf.uni-freiburg.de";
+ String host="141.79.128.121";
int port=21;
- String username="openslx";
- String password="openslx-ng";
+ User user;
String uploadPath="/";
String filename="";
File uploadFile;
@@ -58,6 +61,8 @@ public class FTPUploader extends JFrame implements PropertyChangeListener { JLabel labelfilesize;
JLabel labelZeit;
JLabel labelverbleibend;
+ JLabel labeluser;
+ JLabel labelpass;
long filesize;
double speed;
long bytesread;
@@ -199,6 +204,14 @@ public class FTPUploader extends JFrame implements PropertyChangeListener { labelverbleibend = new JLabel("");
labelverbleibend.setBounds(434, 114, 108, 14);
contentPanel.add(labelverbleibend);
+
+ labeluser = new JLabel("");
+ labeluser.setBounds(196, 159, 117, 14);
+ contentPanel.add(labeluser);
+
+ labelpass = new JLabel("");
+ labelpass.setBounds(337, 155, 134, 14);
+ contentPanel.add(labelpass);
{
JPanel buttonPane = new JPanel();
buttonPane.setBackground(UIManager.getColor("Button.background"));
@@ -255,13 +268,24 @@ public class FTPUploader extends JFrame implements PropertyChangeListener { //System.out.println("OK");
//}
progressBar.setValue(0);
- task=new UploadTask(host,port,username,password,uploadPath, uploadFile);
+ RmiClientMethods rmi=new RmiClientMethods();
+ ServerInterface sint=rmi.getInterface();
+ try {
+ user=sint.getFtpUser();
+ } catch (RemoteException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ System.out.println("username: "+user.getUsername());
+ labeluser.setText(user.getUsername());
+ labelpass.setText(user.getPass());
+ task=new UploadTask(host,port,user.getUsername(),user.getPass(),uploadPath, uploadFile);
task.addPropertyChangeListener(this);
task.execute();
taskrun=true;
- createXML();
- TransferToSatellit();
+ //createXML();
+ //TransferToSatellit();
}
@@ -304,90 +328,5 @@ public class FTPUploader extends JFrame implements PropertyChangeListener { }
- public void createXML()
- {
- JSch j=new JSch();
-
- try {
- Session se=j.getSession("openslx", "132.230.4.16", 22);
-
- Properties config = new Properties();
- config.setProperty("StrictHostKeyChecking", "no");
- se.setConfig(config);
- se.setPassword("openslx-ng");
- se.connect();
-
-
- ChannelExec ch=(ChannelExec) se.openChannel("exec");
- InputStream is=ch.getInputStream();
- String OS="winvista";
-
- ch.setCommand("sh /home/openslx/scripts/xml_file_creator.sh '"+vm.vl.getLaborname()+"' '"+person.ersteller.getName()+" "+person.ersteller.getVorname()+"' '"+person.ersteller.getEMail()+"' '"+vm.vl.getShortDesc()+"' '"+vm.vl.getLongDesc()+"' '"+OS+"'");
- //ch.setCommand("ls");
-
- ch.connect();
-
- BufferedReader reader = new BufferedReader(new InputStreamReader(is));
- String line;
- int index = 0;
-
- while ((line = reader.readLine()) != null)
- {
- System.out.println(++index + " : " + line);
- }
-
- ch.disconnect();
- se.disconnect();
-
-
- } catch (JSchException | IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
-
- public void TransferToSatellit()
- {
- JSch j=new JSch();
-
- try {
- Session se=j.getSession("openslx", "132.230.4.16", 22);
-
- Properties config = new Properties();
- config.setProperty("StrictHostKeyChecking", "no");
- se.setConfig(config);
- se.setPassword("openslx-ng");
- se.connect();
-
-
- ChannelExec ch=(ChannelExec) se.openChannel("exec");
- InputStream is=ch.getInputStream();
-
- System.out.println(vm.vl.getLaborname()+".xml");
- System.out.println(lblNewLabel.getText().substring(lblNewLabel.getText().lastIndexOf("\\")+1));
- ch.setCommand("sh /home/openslx/scripts/copy_files_to_satellite.sh '"+vm.vl.getLaborname()+".xml' '"+lblNewLabel.getText().substring(lblNewLabel.getText().lastIndexOf("\\")+1)+"'");
- //ch.setCommand("ls");
- System.out.println("Erfolg");
- ch.connect();
-
- BufferedReader reader = new BufferedReader(new InputStreamReader(is));
- String line;
- int index = 0;
-
- while ((line = reader.readLine()) != null)
- {
- System.out.println(++index + " : " + line);
- }
-
-
- ch.disconnect();
- se.disconnect();
-
-
- } catch (JSchException | IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
}
\ No newline at end of file diff --git a/Dozentenmodul/src/GUI/LoginWindow.java b/Dozentenmodul/src/GUI/LoginWindow.java index c187c3fb..dbe0e7bb 100644 --- a/Dozentenmodul/src/GUI/LoginWindow.java +++ b/Dozentenmodul/src/GUI/LoginWindow.java @@ -127,6 +127,7 @@ public class LoginWindow extends JFrame { if(login==true)
{
+
//Erstellen einer Instanz der Aktionsauswahl
Rechtsbelehrung re=new Rechtsbelehrung();
re.setVisible(true);
diff --git a/Dozentenmodul/src/rmi/RmiClientMethods.java b/Dozentenmodul/src/rmi/RmiClientMethods.java new file mode 100644 index 00000000..58df1734 --- /dev/null +++ b/Dozentenmodul/src/rmi/RmiClientMethods.java @@ -0,0 +1,29 @@ +package rmi; +import java.rmi.*; +import server.*; + +public class RmiClientMethods { + + public ServerInterface getInterface() + { + String strName = "rmi://141.79.128.121:9999/TheRMIExample"; + System.out.println("Client: Looking up " + strName + "..."); + ServerInterface RMI = null; + + try + { + + RMI = (ServerInterface)Naming.lookup(strName); + + } + catch (Exception e) + { + System.out.println("Client: Exception thrown looking up " + strName); + System.out.println("Client: " + e.getMessage().toString()); + System.exit(1); + } + return RMI; + } + + +} diff --git a/Dozentenmodul_V1/WebContent/GUI/de/menü.html b/Dozentenmodul_V1/WebContent/GUI/de/menü.html deleted file mode 100644 index ee5f3f96..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/menü.html +++ /dev/null @@ -1,9 +0,0 @@ -<!-- Erzeugt das Navigationsmenü für die Webanwendung -->
-<ul class="vertical-list">
- <li><a href='/Dozentenmodul_V1/GUI/de/Home.jsp' class='button'>Home</a></li>
- <li><a href='/Dozentenmodul_V1/GUI/de/createVL_allgemein.jsp' class='button'>VL erzeugen</a></li>
- <!--<li><a href='/' class='button'>VL bearbeiten</a></li>
- <li><a href='/' class='button'>Einstellungen</a></li>-->
- <li><a href='/Dozentenmodul_V1/GUI/de/OTRS.jsp' class='button'>Wartung</a></li>
- <li><a href='/' class='button'>Logout</a></li>
-</ul>
diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/AddOS.jsp b/Dozentenmodul_V1/bin/WebContent/GUI/de/AddOS.jsp new file mode 100644 index 00000000..f3547acf --- /dev/null +++ b/Dozentenmodul_V1/bin/WebContent/GUI/de/AddOS.jsp @@ -0,0 +1,47 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> +<link rel="stylesheet" type="text/css" + href="/Dozentenmodul_V1/css/Layout.css"></link> +<title>Betriebssystem hinzufügen</title> +</head> +<body> +<h1>Betriebssystem hinzufügen</h1> +<form action="/Dozentenmodul_V1/SaveOS" method="post"> +<table> +<tr> +<td>Hersteller des Betriebssystems:</td> +<td><input name="Hersteller" type="text" size="30"></input></td> +</tr> +<tr> +<td>Name des Betriebssystems:</td> +<td><input name="Name" type="text" size="30"></input></td> +</tr> +<tr> +<td>Version des Betriebssystems:</td> +<td><input name="Version" type="text" size="30"></input></td> +</tr> +<tr> +<td>Architektur des Betriebssystems:</td> +<td><select name="Architektur" style="width:200px;"> +<option>32-Bit</option> +<option>64-Bit</option> +</select></td> +</tr> +<tr> +<td>Art des Betriebssystems:</td> +<td><select name="Kosten" style="width:200px;"> +<option>Kostenpflichtig</option> +<option>Kostenfrei</option> +</select></td> +</tr> +<tr> +<td></td> +<td><button type="submit" style="width:200px;">Speichern</button></td> +</tr> +</table> + +</form> +</body> +</html>
\ No newline at end of file diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/ESXI_Redirection.jsp b/Dozentenmodul_V1/bin/WebContent/GUI/de/ESXI_Redirection.jsp new file mode 100644 index 00000000..2aede85c --- /dev/null +++ b/Dozentenmodul_V1/bin/WebContent/GUI/de/ESXI_Redirection.jsp @@ -0,0 +1,37 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> +<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/Login.css"> +<SCRIPT LANGUAGE="JavaScript" SRC="${pageContext.request.contextPath}/js/login.js"> +</SCRIPT> +<title>Dozentenmodul V1</title> +</head> +<body> + <img id="Logo" alt="bwLehrpool" src="${pageContext.request.contextPath}/img/openslx-logo.png"> + + <form> + <p>Sie sind hier: <a href="${pageContext.request.contextPath}/GUI/Home.jsp">Home</a> + <input id="englisch" type="image" src="${pageContext.request.contextPath}/img/grossbritannien.gif" onclick="changeToEnglish();return false;"> + <input id="deutsch" type="image" src="${pageContext.request.contextPath}/img/deutsch.gif" onclick="changeToDeutsch();return false;"></p> + </form> + <p>Zur weiteren Bearbeitung ihrer virtuellen Laborumgebung benötigen Sie die Anwendung "vSphere Client".</p> + <p>Diese finden Sie unter folgendem Link:</p> + <p><a href="www.google.de">vSphere CLient</a></p> + <br> + <p>Ist die Software bereits installiert, starten Sie diese und geben Sie folgende Verbindungsdaten ein:</p> + + <table> + <tr> + <td>Benutzername: </td> + <td><Ihr BWIDM-Benutzername></td> + </tr> + <tr> + <td>Passwort: </td> + <td><Ihr BWIDM-Passwort></td> + </tr> + </table> +</body> +</html>
\ No newline at end of file diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/Home.jsp b/Dozentenmodul_V1/bin/WebContent/GUI/de/Home.jsp new file mode 100644 index 00000000..d50d73b8 --- /dev/null +++ b/Dozentenmodul_V1/bin/WebContent/GUI/de/Home.jsp @@ -0,0 +1,87 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<%@ page language="java" import="db.MySQL"%> +<%@ page language="java" import="java.sql.*"%> +<head> +<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> +<link rel="stylesheet" type="text/css" + href="/Dozentenmodul_V1/css/Layout.css"></link> +<title>Home</title> +</head> +<body> + <jsp:include page="header.html" /> + <jsp:include page="menü.html" /> + <jsp:include page="news.jsp" /> + + + + + + <div id="content"> + <h2>Aktive VLs</h2> + <ul> + <% + MySQL sql=new MySQL(); + Connection con= sql.getConnection(); + + ResultSet u=sql.getUserpk(con, "tobias.spitzer@hs-offenburg.de"); + + while(u.next()) + { + + ResultSet v=sql.getVMpk(con, u.getString("pk")); + + while(v.next()) + { + + + + ResultSet rs=sql.getActiveVLs(con, v.getString("VM_pk")); + + while(rs.next()){ + + %> + <li><%=rs.getString("Laborname") %> <img src="/Dozentenmodul_V1/img/Pencil3.png" alt="Bearbeiten"></img> <img src="/Dozentenmodul_V1/img/Shutdown_Box_Red.png" alt="Deaktivieren" onclick="alert('Hello')"></img> <img src="/Dozentenmodul_V1/img/DeleteRed.png" alt="Löschen"></img></li> + <% + } + } + } + %> + </ul> + <h2>Inaktive VLs</h2> + <ul> + + <% + while(u.next()) + { + ResultSet v=sql.getVMpk(con, u.getString("pk")); + + while(v.next()) + { + + + + ResultSet rs=sql.getInactiveVLs(con, v.getString("VM_pk")); + + while(rs.next()){ + + %> + + <li><%=rs.getString("Laborname") %> <img src="/Dozentenmodul_V1/img/Pencil3.png" alt="Bearbeiten"></img> <img src="/Dozentenmodul_V1/img/Shutdown_Box_Red.png" alt="Deaktivieren"></img> <img src="/Dozentenmodul_V1/img/DeleteRed.png" alt="Löschen"></img></li> + + <% + } + } + } + + %> + + + </ul> + </div> + + + + <jsp:include page="footer.html" /> +</body> +</html> diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/Login.jsp b/Dozentenmodul_V1/bin/WebContent/GUI/de/Login.jsp new file mode 100644 index 00000000..8d148386 --- /dev/null +++ b/Dozentenmodul_V1/bin/WebContent/GUI/de/Login.jsp @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> +<link rel="stylesheet" type="text/css" href="/Dozentenmodul_V1/css/Login.css"> +<title>Login Dozentenmodul</title> +</head> +<body> +<div id="lang"> +<img alt="de" src="/Dozentenmodul_V1/img/de.png"> de | <img alt="en" src="/Dozentenmodul_V1/img/us.png"> us +</div> + +<img id="logo" src="/Dozentenmodul_V1/img/Logo_bwLehrpool.png" alt="bwLehrpool"/> + +<div id="login"> +<form action="/Dozentenmodul_V1/Ldap" method="post"> + +<label id="lefttop">bwIDM-Benutzername: </label> +<input id="righttop" name="User" type="text" /> + + +<label id="leftbottom">bwIDM-Passwort:</label> +<input id="rightbottom" name="Password" type="password" /> + +<button id="buttoncenter" type="submit" id="loginButton" name="login">Login</button> + +</form> +</div> + +<jsp:include page="footer.html" /> +</body> + +</html> diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/Login_Error.jsp b/Dozentenmodul_V1/bin/WebContent/GUI/de/Login_Error.jsp new file mode 100644 index 00000000..febf794b --- /dev/null +++ b/Dozentenmodul_V1/bin/WebContent/GUI/de/Login_Error.jsp @@ -0,0 +1,12 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> +<title>Insert title here</title> +</head> +<body> +<p>Error</p> +</body> +</html>
\ No newline at end of file diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/OTRS.jsp b/Dozentenmodul_V1/bin/WebContent/GUI/de/OTRS.jsp new file mode 100644 index 00000000..8e09c34b --- /dev/null +++ b/Dozentenmodul_V1/bin/WebContent/GUI/de/OTRS.jsp @@ -0,0 +1,20 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> +<link rel="stylesheet" type="text/css" + href="/Dozentenmodul_V1/css/Layout.css"></link> +<title>OTRS</title> +</head> +<body> + <jsp:include page="header.html" /> + <jsp:include page="menü.html" /> + <jsp:include page="news.jsp" /> +<iframe id="content" src="https://otrs.rz.hs-offenburg.de/otrs/customer.pl"> + +</iframe> + <jsp:include page="footer.html" /> +</body> +</html>
\ No newline at end of file diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/VLUpload.jsp b/Dozentenmodul_V1/bin/WebContent/GUI/de/VLUpload.jsp new file mode 100644 index 00000000..db2806bc --- /dev/null +++ b/Dozentenmodul_V1/bin/WebContent/GUI/de/VLUpload.jsp @@ -0,0 +1,41 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> +<link rel="stylesheet" type="text/css" + href="/Dozentenmodul_V1/css/Layout.css"></link> +<title>VL Upload Bereich</title> +</head> +<body> + <jsp:include page="header.html" /> + <jsp:include page="menü.html" /> + <jsp:include page="news.jsp" /> + + <div id="content"> + <div id="bread"> + Sie sind hier: <a href="#" rel="createVL_allgemine.jsp">Allgemein</a> + > + <a href="#" rel="system">System</a> + > + <a href="#" rel="software">Software</a> + > + <a href="#" rel="software">Upload</a> + </div> + <br></br> + <h2>Upload Tool</h2> + <object codetype="application/java-archive" + archive="/Dozentenmodul_V1/jar/wjhk.jupload.jar, /Dozentenmodul_V1/jar/jakarta-commons-oro.jar, /Dozentenmodul_V1/jar/jakarta-commons-net.jar" + classid="java:wjhk.jupload2.JUploadApplet.class" width="800" + height="600"> + <param name="postURL" value="ftp://fr-bwlehrpool-rw-admin:fefobu36@bwsonas.lsdf.kit.edu:21/bwlehrpool" /> + + <param name="showLogWindow" value="true" /> + <param name="serverProtocol" value="FTP" /> + <param name="lookAndFeel" value="system" /> + </object> + </div> + <jsp:include page="footer.html" /> +</body> +</html>
\ No newline at end of file diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/VL_bearbeiten.jsp b/Dozentenmodul_V1/bin/WebContent/GUI/de/VL_bearbeiten.jsp new file mode 100644 index 00000000..4956d7ea --- /dev/null +++ b/Dozentenmodul_V1/bin/WebContent/GUI/de/VL_bearbeiten.jsp @@ -0,0 +1,12 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> +<title>Insert title here</title> +</head> +<body> + +</body> +</html>
\ No newline at end of file diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/createVL_Software.jsp b/Dozentenmodul_V1/bin/WebContent/GUI/de/createVL_Software.jsp new file mode 100644 index 00000000..f942ff77 --- /dev/null +++ b/Dozentenmodul_V1/bin/WebContent/GUI/de/createVL_Software.jsp @@ -0,0 +1,109 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + <%@ page language="java" import="db.MySQL"%> +<%@ page language="java" import="java.sql.*"%> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> +<link rel="stylesheet" type="text/css" + href="/Dozentenmodul_V1/css/Layout.css"></link> + + <title>Insert title here</title> + +<script language="JavaScript" src="/Dozentenmodul_V1/js/functions.js"> +</script> +</head> +<body> + <jsp:include page="header.html" /> + <jsp:include page="menü.html" /> + <jsp:include page="news.jsp" /> + + <!-- Speichern der Formulardaten aus createVL_System.jsp in die Session Variable --> + <% + String Laborname=request.getParameter("Laborname"); + session.setAttribute("Laborname", Laborname); + + String shortDesc=request.getParameter("shortDesc"); + session.setAttribute("shortDesc", shortDesc); + + String longDesc=request.getParameter("longDesc"); + session.setAttribute("longDesc", longDesc); + + String comment=request.getParameter("comment"); + session.setAttribute("comment", comment); + + String OS=request.getParameter("OS"); + session.setAttribute("OS", OS); + + String von_date=request.getParameter("von_date"); + session.setAttribute("von_date", von_date); + + String bis_date=request.getParameter("bis_date"); + session.setAttribute("bis_date", bis_date); + %> + <div id="content"> + <div id="bread"> + Sie sind hier: + <a href="#" rel="createVL_allgemine.jsp">Allgemein</a> + > + <a href="#" rel="system">System</a> + > + <a href="#" rel="software">Software</a> + </div> + <br \> + <form action="/Dozentenmodul_V1/DB_Access" method="post"> + <p> + Sortierung nach: <select name="sort"> + <option>Hersteller</option> + <option>Lizenzpflichtig/-frei</option> + </select> + </p> + <fieldset id="sw_chooser"> + <legend>Verfügbare Software</legend> + <div class="container"> + + <% + MySQL sql=new MySQL(); + Connection con=sql.getConnection(); + ResultSet h=sql.getHersteller(con); + int i=0; + while(h.next()) + { + ResultSet sw=sql.getSoftware(con, h.getString("Name")); + + + %> + <label><b><%=h.getString("Name") %></b></label><br /> + <% + while(sw.next()) + { + int id=i++; + %> + <input name="<%=id %>" type="checkbox" onChange="refresh(<%=id%>);"><%=h.getString("Name")%> <%=sw.getString("Produktname")%> <%=sw.getString("Version") %> <%=sw.getString("Architektur") %> + <br /> + <% + } + } + %> + + </div> + </fieldset> + <fieldset id="sw_choosed"> + <legend>Ausgewählte Software</legend> + <div id="sw" class="container"> + + </div> + </fieldset> + <br> + <button id="buttonAddSW" name="addSW" onclick="saveSW()">Software hinzufügen</button><br><br> + <button id="buttonBackSW" type="submit">Zurück</button> + <button id="buttonReady" type="submit">Speichere Daten und gehe zu VL Upload</button> + </form> + </div> + + + + <jsp:include page="footer.html" /> +</body> +</html>
\ No newline at end of file diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/createVL_System.jsp b/Dozentenmodul_V1/bin/WebContent/GUI/de/createVL_System.jsp new file mode 100644 index 00000000..a16ac8af --- /dev/null +++ b/Dozentenmodul_V1/bin/WebContent/GUI/de/createVL_System.jsp @@ -0,0 +1,146 @@ +<%@page import="org.apache.catalina.Session"%> +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + <%@ page language="java" import="db.MySQL"%> +<%@ page language="java" import="java.sql.*"%> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> +<link rel="stylesheet" type="text/css" + href="/Dozentenmodul_V1/css/Layout.css"></link> + <link rel="stylesheet" type="text/css" + href="/Dozentenmodul_V1/css/Input.css"></link> +<title>Insert title here</title> +<script language="JavaScript" src="/Dozentenmodul_V1/js/functions.js"> +</script> +<script type="text/javascript" src="/Dozentenmodul_V1/js/datetimepicker_css.js"></script> +</head> +<body> + <jsp:include page="header.html" /> + <jsp:include page="menü.html" /> + <jsp:include page="news.jsp" /> + + <!-- Speichern der Formulardaten createVL_allgemein.jsp in eine Session Variable --> + <% + String Vorname_V=request.getParameter("Vorname_V"); + session.setAttribute("Vorname_V",Vorname_V ); + + String Nachname_V=request.getParameter("Nachname_V"); + session.setAttribute("Nachname_V",Nachname_V ); + + String Hochschule_V=request.getParameter("Hochschule_V"); + session.setAttribute("Hochschule_V",Hochschule_V ); + + String Email_V=request.getParameter("Email_V"); + session.setAttribute("Email_V",Email_V ); + + String Tel_V=request.getParameter("Tel_V"); + session.setAttribute("Tel_V",Tel_V ); + + String Fakultät_V=request.getParameter("Fakultät_V"); + session.setAttribute("Fakultät_V",Fakultät_V ); + + String Vorname_E=request.getParameter("Vorname_E"); + session.setAttribute("Vorname_E",Vorname_E ); + + String Nachname_E=request.getParameter("Nachname_E"); + session.setAttribute("Nachname_E",Nachname_E ); + + String Hochschule_E=request.getParameter("Hochschule_E"); + session.setAttribute("Hochschule_E",Hochschule_E ); + + String Email_E=request.getParameter("Email_E"); + session.setAttribute("Email_E",Email_E ); + + String Tel_E=request.getParameter("Tel_E"); + session.setAttribute("Tel_E",Tel_E ); + + String Fakultät_E=request.getParameter("Fakultät_E"); + session.setAttribute("Fakultät_E",Fakultät_E ); + %> + <div id="content"> + <div id="bread"> + Sie sind hier: + <a href="#" rel="createVL_allgemine.jsp">Allgemein</a> + > + <a href="#" rel="system">System</a> + <!-- > + <a href="#" rel="software">Software</a>--> + </div> + <br \> + <form action="createVL_Software.jsp"> + <fieldset> + <legend>Systeminformationen</legend> + <table> + <tr> + <td>Laborname (Anzeigename): *</td> + <td><input name="Laborname" type="text" /></td> + </tr> + <tr> + <td>Kurzbeschreibung: *</td> + <td><input name="shortDesc" type="text" /></td> + </tr> + <tr> + <td>Langbeschreibung: *</td> + <td><textarea name="longDesc" cols="20" rows="5"></textarea></td> + </tr> + <tr> + <td>Kommentar:</td> + <td><textarea name="comment" cols="20" rows="5"></textarea></td> + </tr> + <tr> + <td>Betriebssystem: *</td> + <td><div id="test"><select id="OS" name="OS" onclick="javascript:refreshSelect();"> + <% + MySQL sql=new MySQL(); + Connection con=sql.getConnection(); + + ResultSet rs=sql.getOSList(con); + + while(rs.next()) + { + %> + <option><%=rs.getString("Produktname")%> <%=rs.getString("Version")%> <%=rs.getString("Architektur") %></option> + <% + } + %> + + + </select><input type=button value="Hinzufügen" onclick="javascript:openAddOS()"></div></td> + + </tr> + <tr> + <td>Gültigkeitsdatum: *</td> + <td>von: <input type="text" id="von_date" name="von_date" maxlength="25" + size="25" readonly="readonly" /> <img + src="/Dozentenmodul_V1/img/Calendar/cal.gif" + onclick="javascript:NewCssCal ('von_date','yyyyMMdd','arrow',true,'24',true)" + style="cursor: pointer" /> bis: <input type="text" + id="bis_date" name="bis_date" maxlength="25" size="25" readonly="readonly" /> + <img src="/Dozentenmodul_V1/img/Calendar/cal.gif" + onclick="javascript:NewCssCal ('bis_date','yyyyMMdd','arrow',true,'24',true)" + style="cursor: pointer" /> + </td> + </tr> + <tr> + <td></td> + <td></td> + </tr> + <tr> + <td></td> + <td></td> + </tr> + </table> + </fieldset> + </div> + <button id="buttonBackSys" type="submit">Zurück</button> + <button id="buttonweiterSys" type="submit">Weiter</button> + </form> + </div> + + + + <jsp:include page="footer.html" /> +</body> +</html>
\ No newline at end of file diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/createVL_allgemein.jsp b/Dozentenmodul_V1/bin/WebContent/GUI/de/createVL_allgemein.jsp new file mode 100644 index 00000000..4ccc6a95 --- /dev/null +++ b/Dozentenmodul_V1/bin/WebContent/GUI/de/createVL_allgemein.jsp @@ -0,0 +1,97 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> +<link rel="stylesheet" type="text/css" + href="/Dozentenmodul_V1/css/Layout.css"></link> + <link rel="stylesheet" type="text/css" + href="/Dozentenmodul_V1/css/Input.css"></link> +<title>Insert title here</title> +</head> +<body> + <jsp:include page="header.html" /> + <jsp:include page="menü.html" /> + <jsp:include page="news.jsp" /> + <div id="content"> + <div id="bread"> + Sie sind hier: + <a href="#" rel="createVL_allgemine.jsp">Allgemein</a> + <!-- > + <a href="#" rel="system">System</a> + > + <a href="#" rel="software">Software</a>--> + </div> + <br \> + <form action="createVL_System.jsp"> + <fieldset> + <legend>Allgemeine Informationen zum Verantwortlichen</legend> + <table> + <tr> + <td>Vorname: *</td> + <td><input name="Vorname_V" type="text" /></td> + </tr> + <tr> + <td>Nachname: *</td> + <td><input name="Nachname_V" type="text" /></td> + </tr> + <tr> + <td>Hochschule: *</td> + <td><input name="Hochschule_V" type="text" /></td> + </tr> + <tr> + <td>E-Mail: *</td> + <td><input name="Email_V" type="text" /></td> + </tr> + <tr> + <td>Tel.-Nummer:</td> + <td><input name="Tel_V" type="text" /></td> + </tr> + <tr> + <td>Fakultät:</td> + <td><input name="Fakultät_V" type="text" /></td> + </tr> + </table> + </fieldset> + <br></br> + <fieldset> + <legend>Allgemeine Informationen zum Ersteller</legend> + <table> + <tr> + <td>Vorname: *</td> + <td><input name="Vorname_E" type="text" /></td> + </tr> + <tr> + <td>Nachname: *</td> + <td><input name="Nachname_E" type="text" /></td> + </tr> + <tr> + <td>Hochschule: *</td> + <td><input name="Hochschule_E" type="text" /></td> + </tr> + <tr> + <td>E-Mail: *</td> + <td><input name="Email_E" type="text" /></td> + </tr> + <tr> + <td>Tel.-Nummer:</td> + <td><input name="Tel_E" type="text" /></td> + </tr> + <tr> + <td>Fakultät:</td> + <td><input name="Fakultät_E" type="text" /></td> + </tr> + </table> + </fieldset> + <br /> + <button id="buttonBackAllg" type="submit">Zurück</button> + <button id="buttonweiterAllg" type="submit">Weiter</button> + </form> + </div> + + + + <jsp:include page="footer.html" /> +</body> +</html>
\ No newline at end of file diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/footer.html b/Dozentenmodul_V1/bin/WebContent/GUI/de/footer.html new file mode 100644 index 00000000..0ebf0a2c --- /dev/null +++ b/Dozentenmodul_V1/bin/WebContent/GUI/de/footer.html @@ -0,0 +1,7 @@ +<!-- Erzeugt den Footer für die Webanwendung --> +<div id="footer"> +<a id="link" href="bla">Kontakt</a> +<a id="link" href="bla">FAQ</a> +<a id="link" href="bla">Impressum</a> + +</div>
\ No newline at end of file diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/header.html b/Dozentenmodul_V1/bin/WebContent/GUI/de/header.html new file mode 100644 index 00000000..5ef0ebcf --- /dev/null +++ b/Dozentenmodul_V1/bin/WebContent/GUI/de/header.html @@ -0,0 +1,7 @@ +<!-- Erzeugt den Header, Logo und Überschrift für die Webanwendung --> +<div id="lang"> +<img alt="de" src="/Dozentenmodul_V1/img/de.png"> de | <img alt="en" src="/Dozentenmodul_V1/img/us.png"> us +</div> + +<img id="logo" src="/Dozentenmodul_V1/img/Logo_bwLehrpool.png" alt="bwLehrpool"/> +<hr />
\ No newline at end of file diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/news.jsp b/Dozentenmodul_V1/bin/WebContent/GUI/de/news.jsp new file mode 100644 index 00000000..426de579 --- /dev/null +++ b/Dozentenmodul_V1/bin/WebContent/GUI/de/news.jsp @@ -0,0 +1,15 @@ +<%@ page language="java" import="news.News" %> +<div id=news> +<% + News news=new News(); +String text=""; + + text=news.refreshNews(); + +%> +<h3>News</h3> +<p id="newstext"> +<%=text.toString() %> +</p> + +</div>
\ No newline at end of file |