diff options
| author | unknown | 2014-04-10 16:45:48 +0200 |
|---|---|---|
| committer | unknown | 2014-04-10 16:45:48 +0200 |
| commit | 558baa3fa1a2855af2950b6be59d91b197781817 (patch) | |
| tree | aa06aae7a3a650bd970eb2e91cf830877b19bd93 | |
| parent | new commit (diff) | |
| download | tutor-module-558baa3fa1a2855af2950b6be59d91b197781817.tar.gz tutor-module-558baa3fa1a2855af2950b6be59d91b197781817.tar.xz tutor-module-558baa3fa1a2855af2950b6be59d91b197781817.zip | |
bfg
94 files changed, 584 insertions, 4553 deletions
diff --git a/Dozentenmodul/src/GUI/SearchImage_GUI.java b/Dozentenmodul/src/GUI/SearchImage_GUI.java index ad474768..4225a295 100644 --- a/Dozentenmodul/src/GUI/SearchImage_GUI.java +++ b/Dozentenmodul/src/GUI/SearchImage_GUI.java @@ -1,453 +1,453 @@ -package gui;
-
-
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.Toolkit;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.KeyAdapter;
-import java.awt.event.KeyEvent;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.util.Iterator;
-import java.util.List;
-
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JMenuItem;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTable;
-import javax.swing.JTextField;
-import javax.swing.JTextPane;
-import javax.swing.RowFilter;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.TitledBorder;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-import javax.swing.table.DefaultTableModel;
-import javax.swing.table.TableModel;
-import javax.swing.table.TableRowSorter;
-
-import org.apache.thrift.TException;
-
-import server.Server.Client;
-import thrift.ThriftConnection;
-
-@SuppressWarnings("serial")
-public class SearchImage_GUI extends JFrame {
-
- private final JPanel contentPanel = new JPanel();
- String[] result;
- JRadioButton rdbtnInternetJa;
- JRadioButton rdbtnInternetNein;
- JComboBox<String> comboBox;
- JTable tableAllImages;
- JTable tablemyImages;
- private JTextField textFieldName;
- JTabbedPane tabbedPane;
- String[] titles= {"Image-Name", "Lizenzpflichtig", "OS", "Veranstaltung", "Verantwortlicher", "Letztes Update", "Schlagwort"};
- ThriftConnection con=new ThriftConnection();
- Client client=con.getThriftConnection();
- final DefaultTableModel modelAll = new DefaultTableModel( titles, 0 );
- final DefaultTableModel modelMyImages = new DefaultTableModel( titles, 0 );
- final TableRowSorter<TableModel> rowSorterAll = new TableRowSorter<TableModel>( modelAll );
- final TableRowSorter<TableModel> rowSorterMyImages = new TableRowSorter<TableModel>( modelMyImages );
-
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- SearchImage_GUI dialog = new SearchImage_GUI();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- public SearchImage_GUI() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent arg0) {
- //Beendet die Anwendung nach klick auf X
- System.exit(0);
- }
- });
- //Verhindert das Vergrößern Des Fensters
- setResizable(false);
-
- try {
- //Setzt das Look & Feel auf System
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- //Setzt den Fenstertitel
- setTitle("bwLehrpool Suite *Prototyp*");
- //Zentriert das Fenster in die Bildmitte
- Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
- int top=(screenSize.height - 722) / 2;
- int left=(screenSize.width - 603) / 2;
- setBounds(left, top, 603, 722);
-
-
-
- final DefaultTableModel model = new DefaultTableModel( titles, 0 );
-
-
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBackground(SystemColor.menu);
- panel.setBounds(10, 11, 577, 57);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Suche nach VL-Image");
- lblNewLabel.setBounds(10, 11, 509, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Hier k\u00F6nnen Sie nach Ihrem gew\u00FCnschten VL-Image suchen und dieses f\u00FCr weitere Schritte ausw\u00E4hlen");
- txtpnBitteWhlenSie.setBounds(10, 36, 509, 32);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 85, 577, 531);
- contentPanel.setBackground(SystemColor.menu);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JPanel panel_1 = new JPanel();
- panel_1.setBackground(SystemColor.menu);
- panel_1.setBorder(new TitledBorder(null, "Filterfunktionen", TitledBorder.LEADING, TitledBorder.TOP, null, null));
- panel_1.setBounds(10, 49, 557, 131);
- contentPanel.add(panel_1);
- panel_1.setLayout(null);
-
- JLabel lblNewLabel_2 = new JLabel("Anzeigename:");
- lblNewLabel_2.setBounds(10, 30, 250, 20);
- panel_1.add(lblNewLabel_2);
-
- JLabel lblInternetIstInnerhalb = new JLabel("Betriebssystem:");
- lblInternetIstInnerhalb.setBounds(10, 58, 250, 20);
- panel_1.add(lblInternetIstInnerhalb);
-
- textFieldName = new JTextField();
- //Key Listener der Tastatureingabe registriert
- textFieldName.addKeyListener(new KeyAdapter() {
- @Override
- public void keyReleased(KeyEvent e) {
- //Textfield eingabe auslesen
- String stext=textFieldName.getText();
-
- //Wenn Textfield nicht leer
- if(stext!="")
- {
- //Filtere nach der Eingabe
- rowSorterAll.setRowFilter(RowFilter.regexFilter(textFieldName.getText(), 0));
- rowSorterMyImages.setRowFilter(RowFilter.regexFilter(textFieldName.getText(), 0));
-
- }
- }});
-
-
- textFieldName.setBounds(270, 30, 250, 20);
- panel_1.add(textFieldName);
- textFieldName.setColumns(10);
-
- JLabel lblErweiterteSuche = new JLabel("<html><u>Erweiterte Suche</u></html>");
- lblErweiterteSuche.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent arg0) {
- //Öffnet das Fenster Extended GUI
- ExtendedSearch_GUI es=new ExtendedSearch_GUI();
- es.setVisible(true);
- }
- });
- lblErweiterteSuche.setForeground(Color.BLUE);
-
- lblErweiterteSuche.setBounds(431, 106, 89, 14);
- panel_1.add(lblErweiterteSuche);
-
- comboBox = new JComboBox<String>();
- try {
- //Holt sich eine Liste aller verfügbaren Betriebssysteme vom Server
- List<String> list=client.getAllOS();
- //Leeres Item hinzufügen
- comboBox.addItem("");
- for(int i=0;i<list.size();i++)
- {
- //Hinzufügen der verfügbaren Betriebssysteme
- comboBox.addItem(list.get(i));
- }
- } catch (TException e2) {
- // TODO Auto-generated catch block
- e2.printStackTrace();
- }
- //Registriert Auswahländerungen der Box
- comboBox.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- //Prüft das die Auswahl nicht leer ist
- if(comboBox.getSelectedItem().toString()!="")
- {
- //Filtert nach dem ausgewählten Betriebssystem
- rowSorterAll.setRowFilter(RowFilter.regexFilter(comboBox.getSelectedItem().toString(), 2));
- rowSorterMyImages.setRowFilter(RowFilter.regexFilter(comboBox.getSelectedItem().toString(), 2));
- }
- }
-
- });
- comboBox.setBounds(270, 58, 250, 20);
- panel_1.add(comboBox);
-
- JLabel lblHauptmen = new JLabel("Hauptmen\u00FC");
- lblHauptmen.addMouseListener(new MouseAdapter() {
- @Override
- public void mouseClicked(MouseEvent arg0) {
- //Öffnet das Hauütmenü
- SearchImage_GUI.this.setVisible(false);
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
- }
- });
- lblHauptmen.setForeground(Color.BLUE);
- lblHauptmen.setBounds(10, 11, 61, 14);
- contentPanel.add(lblHauptmen);
-
- JLabel label_1 = new JLabel(">");
- label_1.setBounds(69, 11, 13, 14);
- contentPanel.add(label_1);
-
- JLabel lblVlimage = new JLabel("VL-Image");
- lblVlimage.setForeground(Color.BLUE);
- lblVlimage.setBounds(81, 11, 45, 14);
- contentPanel.add(lblVlimage);
-
- JLabel label_2 = new JLabel(">");
- label_2.setBounds(133, 11, 13, 14);
- contentPanel.add(label_2);
-
- JLabel lblNewLabel_1 = new JLabel("Imageauswahl");
- lblNewLabel_1.setBounds(146, 11, 85, 14);
- contentPanel.add(lblNewLabel_1);
-
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
- tabbedPane.addChangeListener(new ChangeListener() {
- public void stateChanged(ChangeEvent arg0) {
- System.out.println(tabbedPane.getSelectedIndex());
- if(tabbedPane.getSelectedIndex()==0){
-
-
-
- }
- else if(tabbedPane.getSelectedIndex()==1){
- String username="Spitzer Tobias";
- rowSorterMyImages.setRowFilter(RowFilter.regexFilter(username, 4));
- //rowSorterMyImages.toggleSortOrder(0);
- }
-
- }
- });
-
- tabbedPane.setBounds(10, 197, 557, 300);
- contentPanel.add(tabbedPane);
-
- JScrollPane scrollPaneMyImage = new JScrollPane();
- tablemyImages=new JTable();
- tablemyImages.setModel(modelMyImages);
- tablemyImages.getColumnModel().getColumn(1).sizeWidthToFit();
- tablemyImages.getColumnModel().getColumn(2).sizeWidthToFit();
- tablemyImages.getColumnModel().getColumn(3).sizeWidthToFit();
- tablemyImages.getColumnModel().getColumn(4).sizeWidthToFit();
- tablemyImages.getColumnModel().getColumn(5).sizeWidthToFit();
- initTableModel(modelMyImages);
- tablemyImages.setRowSorter(rowSorterMyImages);
-
- JScrollPane scrollPaneAllImages = new JScrollPane();
- tableAllImages=new JTable();
- tableAllImages.setModel(modelAll);
- tableAllImages.getColumnModel().getColumn(1).sizeWidthToFit();
- tableAllImages.getColumnModel().getColumn(2).sizeWidthToFit();
- tableAllImages.getColumnModel().getColumn(3).sizeWidthToFit();
- tableAllImages.getColumnModel().getColumn(4).sizeWidthToFit();
- tableAllImages.getColumnModel().getColumn(5).sizeWidthToFit();
- initTableModel(modelAll);
- tableAllImages.setRowSorter(rowSorterAll);
-
- scrollPaneAllImages.setViewportView(tableAllImages);
- tabbedPane.addTab("Alle", null, scrollPaneAllImages, null);
-
- scrollPaneMyImage.setViewportView(tablemyImages);
- tabbedPane.addTab("Meine Images", null, scrollPaneMyImage, null);
-
- JScrollPane scrollPaneCoopImages = new JScrollPane();
- JTable tableCoopImages=new JTable();
- tableCoopImages.setModel(model);
- tableCoopImages.getColumnModel().getColumn(1).sizeWidthToFit();
- tableCoopImages.getColumnModel().getColumn(2).sizeWidthToFit();
- tableCoopImages.getColumnModel().getColumn(3).sizeWidthToFit();
- tableCoopImages.getColumnModel().getColumn(4).sizeWidthToFit();
- tableCoopImages.getColumnModel().getColumn(5).sizeWidthToFit();
-
- scrollPaneCoopImages.setViewportView(tableCoopImages);
- tabbedPane.addTab("Kooperative Images", null, scrollPaneCoopImages, null);
- tabbedPane.setEnabledAt(2, false);
-
- JScrollPane scrollPanePublicImages = new JScrollPane();
- JTable tablePublicImages=new JTable();
- tablePublicImages.setModel(model);
- tablePublicImages.getColumnModel().getColumn(1).sizeWidthToFit();
- tablePublicImages.getColumnModel().getColumn(2).sizeWidthToFit();
- tablePublicImages.getColumnModel().getColumn(3).sizeWidthToFit();
- tablePublicImages.getColumnModel().getColumn(4).sizeWidthToFit();
- tablePublicImages.getColumnModel().getColumn(5).sizeWidthToFit();
-
- scrollPanePublicImages.setViewportView(tablePublicImages);
- tabbedPane.addTab("\u00D6ffentliche Images", null, scrollPanePublicImages, null);
- tabbedPane.setEnabledAt(3, false);
-
- JScrollPane scrollPanePublicVorlagen = new JScrollPane();
- JTable tablePublicVorlagen=new JTable();
- tablePublicVorlagen.setModel(model);
- tablePublicVorlagen.getColumnModel().getColumn(1).sizeWidthToFit();
- tablePublicVorlagen.getColumnModel().getColumn(2).sizeWidthToFit();
- tablePublicVorlagen.getColumnModel().getColumn(3).sizeWidthToFit();
- tablePublicVorlagen.getColumnModel().getColumn(4).sizeWidthToFit();
- tablePublicVorlagen.getColumnModel().getColumn(5).sizeWidthToFit();
-
- scrollPanePublicVorlagen.setViewportView(tablePublicVorlagen);
- tabbedPane.addTab("\u00D6ffentliche Vorlagen", null, scrollPanePublicVorlagen, null);
- tabbedPane.setEnabledAt(4, false);
-
-
-
-
- JButton btnDownload = new JButton("Download");
- btnDownload.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- //Öffnet den Downloader
- FTPDownloader_GUI down=new FTPDownloader_GUI("Test");
- down.setVisible(true);
- SearchImage_GUI.this.setVisible(false);
- }
- });
- btnDownload.setBounds(449, 508, 118, 23);
- contentPanel.add(btnDownload);
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 640, 597, 33);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- //Öffnet das Hauptmenü
- MainMenue_GUI main=new MainMenue_GUI();
- main.setVisible(true);
- dispose();
- }
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- {
- JButton cancelButton = new JButton("Weiter");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
-
- EditImageAllgemein_GUI ea=new EditImageAllgemein_GUI();
- ea.setVisible(true);
- dispose();
-
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 78, 597, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 627, 597, 2);
- getContentPane().add(separator_1);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnNewMenu_1 = new JMenu("Hilfe");
- menuBar.add(mnNewMenu_1);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnNewMenu_1.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnNewMenu_1.add(mntmOtrs);
-
- }
- //Initiale Beffülung eines Table models
- public DefaultTableModel initTableModel(DefaultTableModel model){
- List<server.Image> images;
- try {
- //Hole eine Liste der Images
-
- images = client.getImageList();
- Iterator<server.Image> i=images.iterator();
-
- int x=0;
-
- while(i.hasNext())
- {
- //erzeuge Objekte für die Tabelle
- Object [] obj={images.get(x).getImageName(),images.get(x).getLicenseRestriction(),images.get(x).getOsName(),images.get(x).getLectureName(),images.get(x).getUserData(),images.get(x).getUpdateTime()};
- //Füge diese Objekte der Tabelle hinzu
- model.addRow(obj);
- x++;
- i.next();
-
- }
-
- return model;
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- return model;
- }
-
- }
-
-
+package gui; + + +import java.awt.Color; +import java.awt.Dimension; +import java.awt.FlowLayout; +import java.awt.Font; +import java.awt.SystemColor; +import java.awt.Toolkit; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyAdapter; +import java.awt.event.KeyEvent; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; +import java.util.Iterator; +import java.util.List; + +import javax.swing.JButton; +import javax.swing.JComboBox; +import javax.swing.JDialog; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JMenu; +import javax.swing.JMenuBar; +import javax.swing.JMenuItem; +import javax.swing.JPanel; +import javax.swing.JRadioButton; +import javax.swing.JScrollPane; +import javax.swing.JSeparator; +import javax.swing.JTabbedPane; +import javax.swing.JTable; +import javax.swing.JTextField; +import javax.swing.JTextPane; +import javax.swing.RowFilter; +import javax.swing.UIManager; +import javax.swing.UnsupportedLookAndFeelException; +import javax.swing.border.EmptyBorder; +import javax.swing.border.TitledBorder; +import javax.swing.event.ChangeEvent; +import javax.swing.event.ChangeListener; +import javax.swing.table.DefaultTableModel; +import javax.swing.table.TableModel; +import javax.swing.table.TableRowSorter; + +import org.apache.thrift.TException; + +import server.Server.Client; +import thrift.ThriftConnection; + +@SuppressWarnings("serial") +public class SearchImage_GUI extends JFrame { + + private final JPanel contentPanel = new JPanel(); + String[] result; + JRadioButton rdbtnInternetJa; + JRadioButton rdbtnInternetNein; + JComboBox<String> comboBox; + JTable tableAllImages; + JTable tablemyImages; + private JTextField textFieldName; + JTabbedPane tabbedPane; + String[] titles= {"Image-Name", "Lizenzpflichtig", "OS", "Veranstaltung", "Verantwortlicher", "Letztes Update", "Schlagwort"}; + ThriftConnection con=new ThriftConnection(); + Client client=con.getThriftConnection(); + final DefaultTableModel modelAll = new DefaultTableModel( titles, 0 ); + final DefaultTableModel modelMyImages = new DefaultTableModel( titles, 0 ); + final TableRowSorter<TableModel> rowSorterAll = new TableRowSorter<TableModel>( modelAll ); + final TableRowSorter<TableModel> rowSorterMyImages = new TableRowSorter<TableModel>( modelMyImages ); + + /** + * Launch the application. + */ + public static void main(String[] args) { + try { + SearchImage_GUI dialog = new SearchImage_GUI(); + dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); + dialog.setVisible(true); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * Create the dialog. + */ + public SearchImage_GUI() { + addWindowListener(new WindowAdapter() { + @Override + public void windowClosing(WindowEvent arg0) { + //Beendet die Anwendung nach klick auf X + System.exit(0); + } + }); + //Verhindert das Vergrößern Des Fensters + setResizable(false); + + try { + //Setzt das Look & Feel auf System + UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + } catch (ClassNotFoundException | InstantiationException + | IllegalAccessException | UnsupportedLookAndFeelException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + //Setzt den Fenstertitel + setTitle("bwLehrpool Suite *Prototyp*"); + //Zentriert das Fenster in die Bildmitte + Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); + int top=(screenSize.height - 722) / 2; + int left=(screenSize.width - 603) / 2; + setBounds(left, top, 603, 722); + + + + final DefaultTableModel model = new DefaultTableModel( titles, 0 ); + + + getContentPane().setLayout(null); + { + JPanel panel = new JPanel(); + panel.setBackground(SystemColor.menu); + panel.setBounds(10, 11, 577, 57); + getContentPane().add(panel); + panel.setLayout(null); + { + JLabel lblNewLabel = new JLabel("Suche nach VL-Image"); + lblNewLabel.setBounds(10, 11, 509, 22); + panel.add(lblNewLabel); + lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18)); + } + + JTextPane txtpnBitteWhlenSie = new JTextPane(); + txtpnBitteWhlenSie.setEditable(false); + txtpnBitteWhlenSie.setBackground(SystemColor.menu); + txtpnBitteWhlenSie.setText("Hier k\u00F6nnen Sie nach Ihrem gew\u00FCnschten VL-Image suchen und dieses f\u00FCr weitere Schritte ausw\u00E4hlen"); + txtpnBitteWhlenSie.setBounds(10, 36, 509, 32); + panel.add(txtpnBitteWhlenSie); + } + contentPanel.setBounds(10, 85, 577, 531); + contentPanel.setBackground(SystemColor.menu); + contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5)); + getContentPane().add(contentPanel); + contentPanel.setLayout(null); + + JPanel panel_1 = new JPanel(); + panel_1.setBackground(SystemColor.menu); + panel_1.setBorder(new TitledBorder(null, "Filterfunktionen", TitledBorder.LEADING, TitledBorder.TOP, null, null)); + panel_1.setBounds(10, 49, 557, 131); + contentPanel.add(panel_1); + panel_1.setLayout(null); + + JLabel lblNewLabel_2 = new JLabel("Anzeigename:"); + lblNewLabel_2.setBounds(10, 30, 250, 20); + panel_1.add(lblNewLabel_2); + + JLabel lblInternetIstInnerhalb = new JLabel("Betriebssystem:"); + lblInternetIstInnerhalb.setBounds(10, 58, 250, 20); + panel_1.add(lblInternetIstInnerhalb); + + textFieldName = new JTextField(); + //Key Listener der Tastatureingabe registriert + textFieldName.addKeyListener(new KeyAdapter() { + @Override + public void keyReleased(KeyEvent e) { + //Textfield eingabe auslesen + String stext=textFieldName.getText(); + + //Wenn Textfield nicht leer + if(stext!="") + { + //Filtere nach der Eingabe + rowSorterAll.setRowFilter(RowFilter.regexFilter(textFieldName.getText(), 0)); + rowSorterMyImages.setRowFilter(RowFilter.regexFilter(textFieldName.getText(), 0)); + + } + }}); + + + textFieldName.setBounds(270, 30, 250, 20); + panel_1.add(textFieldName); + textFieldName.setColumns(10); + + JLabel lblErweiterteSuche = new JLabel("<html><u>Erweiterte Suche</u></html>"); + lblErweiterteSuche.addMouseListener(new MouseAdapter() { + @Override + public void mouseClicked(MouseEvent arg0) { + //Öffnet das Fenster Extended GUI + ExtendedSearch_GUI es=new ExtendedSearch_GUI(); + es.setVisible(true); + } + }); + lblErweiterteSuche.setForeground(Color.BLUE); + + lblErweiterteSuche.setBounds(431, 106, 89, 14); + panel_1.add(lblErweiterteSuche); + + comboBox = new JComboBox<String>(); + try { + //Holt sich eine Liste aller verfügbaren Betriebssysteme vom Server + List<String> list=client.getAllOS(); + //Leeres Item hinzufügen + comboBox.addItem(""); + for(int i=0;i<list.size();i++) + { + //Hinzufügen der verfügbaren Betriebssysteme + comboBox.addItem(list.get(i)); + } + } catch (TException e2) { + // TODO Auto-generated catch block + e2.printStackTrace(); + } + //Registriert Auswahländerungen der Box + comboBox.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent arg0) { + //Prüft das die Auswahl nicht leer ist + if(comboBox.getSelectedItem().toString()!="") + { + //Filtert nach dem ausgewählten Betriebssystem + rowSorterAll.setRowFilter(RowFilter.regexFilter(comboBox.getSelectedItem().toString(), 2)); + rowSorterMyImages.setRowFilter(RowFilter.regexFilter(comboBox.getSelectedItem().toString(), 2)); + } + } + + }); + comboBox.setBounds(270, 58, 250, 20); + panel_1.add(comboBox); + + JLabel lblHauptmen = new JLabel("Hauptmen\u00FC"); + lblHauptmen.addMouseListener(new MouseAdapter() { + @Override + public void mouseClicked(MouseEvent arg0) { + //Öffnet das Hauütmenü + SearchImage_GUI.this.setVisible(false); + MainMenue_GUI main=new MainMenue_GUI(); + main.setVisible(true); + } + }); + lblHauptmen.setForeground(Color.BLUE); + lblHauptmen.setBounds(10, 11, 61, 14); + contentPanel.add(lblHauptmen); + + JLabel label_1 = new JLabel(">"); + label_1.setBounds(69, 11, 13, 14); + contentPanel.add(label_1); + + JLabel lblVlimage = new JLabel("VL-Image"); + lblVlimage.setForeground(Color.BLUE); + lblVlimage.setBounds(81, 11, 45, 14); + contentPanel.add(lblVlimage); + + JLabel label_2 = new JLabel(">"); + label_2.setBounds(133, 11, 13, 14); + contentPanel.add(label_2); + + JLabel lblNewLabel_1 = new JLabel("Imageauswahl"); + lblNewLabel_1.setBounds(146, 11, 85, 14); + contentPanel.add(lblNewLabel_1); + + tabbedPane = new JTabbedPane(JTabbedPane.TOP); + tabbedPane.addChangeListener(new ChangeListener() { + public void stateChanged(ChangeEvent arg0) { + System.out.println(tabbedPane.getSelectedIndex()); + if(tabbedPane.getSelectedIndex()==0){ + + + + } + else if(tabbedPane.getSelectedIndex()==1){ + String username="Spitzer Tobias"; + rowSorterMyImages.setRowFilter(RowFilter.regexFilter(username, 4)); + //rowSorterMyImages.toggleSortOrder(0); + } + + } + }); + + tabbedPane.setBounds(10, 197, 557, 300); + contentPanel.add(tabbedPane); + + JScrollPane scrollPaneMyImage = new JScrollPane(); + tablemyImages=new JTable(); + tablemyImages.setModel(modelMyImages); + tablemyImages.getColumnModel().getColumn(1).sizeWidthToFit(); + tablemyImages.getColumnModel().getColumn(2).sizeWidthToFit(); + tablemyImages.getColumnModel().getColumn(3).sizeWidthToFit(); + tablemyImages.getColumnModel().getColumn(4).sizeWidthToFit(); + tablemyImages.getColumnModel().getColumn(5).sizeWidthToFit(); + initTableModel(modelMyImages); + tablemyImages.setRowSorter(rowSorterMyImages); + + JScrollPane scrollPaneAllImages = new JScrollPane(); + tableAllImages=new JTable(); + tableAllImages.setModel(modelAll); + tableAllImages.getColumnModel().getColumn(1).sizeWidthToFit(); + tableAllImages.getColumnModel().getColumn(2).sizeWidthToFit(); + tableAllImages.getColumnModel().getColumn(3).sizeWidthToFit(); + tableAllImages.getColumnModel().getColumn(4).sizeWidthToFit(); + tableAllImages.getColumnModel().getColumn(5).sizeWidthToFit(); + initTableModel(modelAll); + tableAllImages.setRowSorter(rowSorterAll); + + scrollPaneAllImages.setViewportView(tableAllImages); + tabbedPane.addTab("Alle", null, scrollPaneAllImages, null); + + scrollPaneMyImage.setViewportView(tablemyImages); + tabbedPane.addTab("Meine Images", null, scrollPaneMyImage, null); + + JScrollPane scrollPaneCoopImages = new JScrollPane(); + JTable tableCoopImages=new JTable(); + tableCoopImages.setModel(model); + tableCoopImages.getColumnModel().getColumn(1).sizeWidthToFit(); + tableCoopImages.getColumnModel().getColumn(2).sizeWidthToFit(); + tableCoopImages.getColumnModel().getColumn(3).sizeWidthToFit(); + tableCoopImages.getColumnModel().getColumn(4).sizeWidthToFit(); + tableCoopImages.getColumnModel().getColumn(5).sizeWidthToFit(); + + scrollPaneCoopImages.setViewportView(tableCoopImages); + tabbedPane.addTab("Kooperative Images", null, scrollPaneCoopImages, null); + tabbedPane.setEnabledAt(2, false); + + JScrollPane scrollPanePublicImages = new JScrollPane(); + JTable tablePublicImages=new JTable(); + tablePublicImages.setModel(model); + tablePublicImages.getColumnModel().getColumn(1).sizeWidthToFit(); + tablePublicImages.getColumnModel().getColumn(2).sizeWidthToFit(); + tablePublicImages.getColumnModel().getColumn(3).sizeWidthToFit(); + tablePublicImages.getColumnModel().getColumn(4).sizeWidthToFit(); + tablePublicImages.getColumnModel().getColumn(5).sizeWidthToFit(); + + scrollPanePublicImages.setViewportView(tablePublicImages); + tabbedPane.addTab("\u00D6ffentliche Images", null, scrollPanePublicImages, null); + tabbedPane.setEnabledAt(3, false); + + JScrollPane scrollPanePublicVorlagen = new JScrollPane(); + JTable tablePublicVorlagen=new JTable(); + tablePublicVorlagen.setModel(model); + tablePublicVorlagen.getColumnModel().getColumn(1).sizeWidthToFit(); + tablePublicVorlagen.getColumnModel().getColumn(2).sizeWidthToFit(); + tablePublicVorlagen.getColumnModel().getColumn(3).sizeWidthToFit(); + tablePublicVorlagen.getColumnModel().getColumn(4).sizeWidthToFit(); + tablePublicVorlagen.getColumnModel().getColumn(5).sizeWidthToFit(); + + scrollPanePublicVorlagen.setViewportView(tablePublicVorlagen); + tabbedPane.addTab("\u00D6ffentliche Vorlagen", null, scrollPanePublicVorlagen, null); + tabbedPane.setEnabledAt(4, false); + + + + + JButton btnDownload = new JButton("Download"); + btnDownload.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent arg0) { + //Öffnet den Downloader + FTPDownloader_GUI down=new FTPDownloader_GUI("Test"); + down.setVisible(true); + SearchImage_GUI.this.setVisible(false); + } + }); + btnDownload.setBounds(449, 508, 118, 23); + contentPanel.add(btnDownload); + { + JPanel buttonPane = new JPanel(); + buttonPane.setBounds(0, 640, 597, 33); + buttonPane.setBackground(SystemColor.menu); + buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT)); + getContentPane().add(buttonPane); + { + JButton okButton = new JButton("Zur\u00FCck"); + okButton.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + //Öffnet das Hauptmenü + MainMenue_GUI main=new MainMenue_GUI(); + main.setVisible(true); + dispose(); + } + }); + okButton.setActionCommand("OK"); + buttonPane.add(okButton); + getRootPane().setDefaultButton(okButton); + } + { + JButton cancelButton = new JButton("Weiter"); + cancelButton.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + + EditImageAllgemein_GUI ea=new EditImageAllgemein_GUI(); + ea.setVisible(true); + dispose(); + + } + }); + cancelButton.setActionCommand("Cancel"); + buttonPane.add(cancelButton); + } + } + + JSeparator separator = new JSeparator(); + separator.setBounds(0, 78, 597, 2); + getContentPane().add(separator); + + JSeparator separator_1 = new JSeparator(); + separator_1.setBounds(0, 627, 597, 2); + getContentPane().add(separator_1); + + JMenuBar menuBar = new JMenuBar(); + setJMenuBar(menuBar); + + JMenu mnNewMenu_1 = new JMenu("Hilfe"); + menuBar.add(mnNewMenu_1); + + JMenuItem mntmFaq = new JMenuItem("FAQ"); + mnNewMenu_1.add(mntmFaq); + + JMenuItem mntmOtrs = new JMenuItem("OTRS"); + mnNewMenu_1.add(mntmOtrs); + + } + //Initiale Beffülung eines Table models + public DefaultTableModel initTableModel(DefaultTableModel model){ + List<server.Image> images; + try { + //Hole eine Liste der Images + + images = client.getImageList(); + Iterator<server.Image> i=images.iterator(); + + int x=0; + + while(i.hasNext()) + { + //erzeuge Objekte für die Tabelle + Object [] obj={images.get(x).getImageName(),images.get(x).getLicenseRestriction(),images.get(x).getOsName(),images.get(x).getLectureName(),images.get(x).getUserData(),images.get(x).getUpdateTime()}; + //Füge diese Objekte der Tabelle hinzu + model.addRow(obj); + x++; + i.next(); + + } + + return model; + } catch (TException e1) { + // TODO Auto-generated catch block + e1.printStackTrace(); + } + return model; + } + + } + + diff --git a/Dozentenmodul/src/Models/person.java b/Dozentenmodul/src/Models/person.java index c106ec12..f4dd5c22 100644 --- a/Dozentenmodul/src/Models/person.java +++ b/Dozentenmodul/src/Models/person.java @@ -1,62 +1,62 @@ -package models;
-
-
-public class person{
-
- private String Name;
- private String Vorname;
- private String Hochschule;
- private String EMail;
- private String Tel;
- private String Fakultät;
- private boolean ischecked;
-
-
- public static person verantowrtlicher=new person();
- public static person ersteller=new person();
-
- public String getName() {
- return Name;
- }
- public void setName(String name) {
- Name = name;
- }
- public String getVorname() {
- return Vorname;
- }
- public void setVorname(String vorname) {
- Vorname = vorname;
- }
- public String getHochschule() {
- return Hochschule;
- }
- public void setHochschule(String hochschule) {
- Hochschule = hochschule;
- }
- public String getEMail() {
- return EMail;
- }
- public void setEMail(String eMail) {
- EMail = eMail;
- }
- public String getTel() {
- return Tel;
- }
- public void setTel(String tel) {
- Tel = tel;
- }
- public String getFakultät() {
- return Fakultät;
- }
- public void setFakultät(String fakultät) {
- Fakultät = fakultät;
- }
- public boolean isIschecked() {
- return ischecked;
- }
- public void setIschecked(boolean ischecked) {
- this.ischecked = ischecked;
- }
-
-
-}
+package models; + + +public class person{ + + private String Name; + private String Vorname; + private String Hochschule; + private String EMail; + private String Tel; + private String Fakultät; + private boolean ischecked; + + + public static person verantowrtlicher=new person(); + public static person ersteller=new person(); + + public String getName() { + return Name; + } + public void setName(String name) { + Name = name; + } + public String getVorname() { + return Vorname; + } + public void setVorname(String vorname) { + Vorname = vorname; + } + public String getHochschule() { + return Hochschule; + } + public void setHochschule(String hochschule) { + Hochschule = hochschule; + } + public String getEMail() { + return EMail; + } + public void setEMail(String eMail) { + EMail = eMail; + } + public String getTel() { + return Tel; + } + public void setTel(String tel) { + Tel = tel; + } + public String getFakultät() { + return Fakultät; + } + public void setFakultät(String fakultät) { + Fakultät = fakultät; + } + public boolean isIschecked() { + return ischecked; + } + public void setIschecked(boolean ischecked) { + this.ischecked = ischecked; + } + + +} diff --git a/Dozentenmodul/src/Models/vm.java b/Dozentenmodul/src/Models/vm.java index 07074cf9..34f9ffaa 100644 --- a/Dozentenmodul/src/Models/vm.java +++ b/Dozentenmodul/src/Models/vm.java @@ -1,69 +1,69 @@ -package models;
-
-import java.awt.List;
-import java.util.Date;
-
-
-public class vm {
-
- private String Laborname;
- private String shortDesc;
- private String longDesc;
- private String comment;
- private String OS;
- private Date begin;
- private Date end;
- private List software;
-
- public static vm vl=new vm();
- public String getLaborname() {
- return Laborname;
- }
- public void setLaborname(String laborname) {
- Laborname = laborname;
- }
- public String getShortDesc() {
- return shortDesc;
- }
- public void setShortDesc(String shortDesc) {
- this.shortDesc = shortDesc;
- }
- public String getLongDesc() {
- return longDesc;
- }
- public void setLongDesc(String longDesc) {
- this.longDesc = longDesc;
- }
- public String getComment() {
- return comment;
- }
- public void setComment(String comment) {
- this.comment = comment;
- }
- public String getOS() {
- return OS;
- }
- public void setOS(String oS) {
- OS = oS;
- }
- public Date getBegin() {
- return begin;
- }
- public void setBegin(Date begin) {
- this.begin = begin;
- }
- public Date getEnd() {
- return end;
- }
- public void setEnd(Date end) {
- this.end = end;
- }
- public List getSoftware() {
- return software;
- }
- public void setSoftware(List software) {
- this.software = software;
- }
-
-
-}
+package models; + +import java.awt.List; +import java.util.Date; + + +public class vm { + + private String Laborname; + private String shortDesc; + private String longDesc; + private String comment; + private String OS; + private Date begin; + private Date end; + private List software; + + public static vm vl=new vm(); + public String getLaborname() { + return Laborname; + } + public void setLaborname(String laborname) { + Laborname = laborname; + } + public String getShortDesc() { + return shortDesc; + } + public void setShortDesc(String shortDesc) { + this.shortDesc = shortDesc; + } + public String getLongDesc() { + return longDesc; + } + public void setLongDesc(String longDesc) { + this.longDesc = longDesc; + } + public String getComment() { + return comment; + } + public void setComment(String comment) { + this.comment = comment; + } + public String getOS() { + return OS; + } + public void setOS(String oS) { + OS = oS; + } + public Date getBegin() { + return begin; + } + public void setBegin(Date begin) { + this.begin = begin; + } + public Date getEnd() { + return end; + } + public void setEnd(Date end) { + this.end = end; + } + public List getSoftware() { + return software; + } + public void setSoftware(List software) { + this.software = software; + } + + +} diff --git a/Dozentenmodul_V1/.classpath b/Dozentenmodul_V1/.classpath deleted file mode 100644 index 146da894..00000000 --- a/Dozentenmodul_V1/.classpath +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre7">
- <attributes>
- <attribute name="owner.project.facets" value="java"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0">
- <attributes>
- <attribute name="owner.project.facets" value="jst.web"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
- <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
- <classpathentry kind="output" path="build/classes"/>
-</classpath>
diff --git a/Dozentenmodul_V1/.project b/Dozentenmodul_V1/.project deleted file mode 100644 index 29247cd1..00000000 --- a/Dozentenmodul_V1/.project +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>Dozentenmodul_V1</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.wst.common.project.facet.core.builder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.wst.validation.validationbuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
- <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
- <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
- </natures>
-</projectDescription>
diff --git a/Dozentenmodul_V1/.settings/.jsdtscope b/Dozentenmodul_V1/.settings/.jsdtscope deleted file mode 100644 index 887f573a..00000000 --- a/Dozentenmodul_V1/.settings/.jsdtscope +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="WebContent"/>
- <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
- <attributes>
- <attribute name="hide" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
- <classpathentry kind="output" path=""/>
-</classpath>
diff --git a/Dozentenmodul_V1/.settings/org.eclipse.jdt.core.prefs b/Dozentenmodul_V1/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 838bd9d6..00000000 --- a/Dozentenmodul_V1/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,11 +0,0 @@ -eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/Dozentenmodul_V1/.settings/org.eclipse.wst.common.component b/Dozentenmodul_V1/.settings/org.eclipse.wst.common.component deleted file mode 100644 index 4bb00e74..00000000 --- a/Dozentenmodul_V1/.settings/org.eclipse.wst.common.component +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
- <wb-module deploy-name="Dozentenmodul_V1">
- <wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
- <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
- <property name="context-root" value="Dozentenmodul_V1"/>
- <property name="java-output-path" value="/Dozentenmodul_V1/build/classes"/>
- </wb-module>
-</project-modules>
diff --git a/Dozentenmodul_V1/.settings/org.eclipse.wst.common.project.facet.core.xml b/Dozentenmodul_V1/.settings/org.eclipse.wst.common.project.facet.core.xml deleted file mode 100644 index 518a3cac..00000000 --- a/Dozentenmodul_V1/.settings/org.eclipse.wst.common.project.facet.core.xml +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<faceted-project>
- <runtime name="Apache Tomcat v7.0"/>
- <fixed facet="java"/>
- <fixed facet="wst.jsdt.web"/>
- <fixed facet="jst.web"/>
- <installed facet="java" version="1.7"/>
- <installed facet="jst.web" version="3.0"/>
- <installed facet="wst.jsdt.web" version="1.0"/>
-</faceted-project>
diff --git a/Dozentenmodul_V1/.settings/org.eclipse.wst.jsdt.ui.superType.container b/Dozentenmodul_V1/.settings/org.eclipse.wst.jsdt.ui.superType.container deleted file mode 100644 index 3bd5d0a4..00000000 --- a/Dozentenmodul_V1/.settings/org.eclipse.wst.jsdt.ui.superType.container +++ /dev/null @@ -1 +0,0 @@ -org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file diff --git a/Dozentenmodul_V1/.settings/org.eclipse.wst.jsdt.ui.superType.name b/Dozentenmodul_V1/.settings/org.eclipse.wst.jsdt.ui.superType.name deleted file mode 100644 index 05bd71b6..00000000 --- a/Dozentenmodul_V1/.settings/org.eclipse.wst.jsdt.ui.superType.name +++ /dev/null @@ -1 +0,0 @@ -Window
\ No newline at end of file diff --git a/Dozentenmodul_V1/WebContent/GUI/de/AddOS.jsp b/Dozentenmodul_V1/WebContent/GUI/de/AddOS.jsp deleted file mode 100644 index 58e83fe6..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/AddOS.jsp +++ /dev/null @@ -1,47 +0,0 @@ -<!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/WebContent/GUI/de/ESXI_Redirection.jsp b/Dozentenmodul_V1/WebContent/GUI/de/ESXI_Redirection.jsp deleted file mode 100644 index 06223d4b..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/ESXI_Redirection.jsp +++ /dev/null @@ -1,37 +0,0 @@ -<%@ 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/WebContent/GUI/de/Home.jsp b/Dozentenmodul_V1/WebContent/GUI/de/Home.jsp deleted file mode 100644 index 138f7094..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/Home.jsp +++ /dev/null @@ -1,87 +0,0 @@ -<!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/WebContent/GUI/de/Login.jsp b/Dozentenmodul_V1/WebContent/GUI/de/Login.jsp deleted file mode 100644 index e5fc6ec1..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/Login.jsp +++ /dev/null @@ -1,34 +0,0 @@ -<!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/WebContent/GUI/de/Login_Error.jsp b/Dozentenmodul_V1/WebContent/GUI/de/Login_Error.jsp deleted file mode 100644 index d3e01215..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/Login_Error.jsp +++ /dev/null @@ -1,12 +0,0 @@ -<%@ 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/WebContent/GUI/de/OTRS.jsp b/Dozentenmodul_V1/WebContent/GUI/de/OTRS.jsp deleted file mode 100644 index bec3f28e..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/OTRS.jsp +++ /dev/null @@ -1,20 +0,0 @@ -<%@ 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/WebContent/GUI/de/VLUpload.jsp b/Dozentenmodul_V1/WebContent/GUI/de/VLUpload.jsp deleted file mode 100644 index 328f6efb..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/VLUpload.jsp +++ /dev/null @@ -1,41 +0,0 @@ -<%@ 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/WebContent/GUI/de/VL_bearbeiten.jsp b/Dozentenmodul_V1/WebContent/GUI/de/VL_bearbeiten.jsp deleted file mode 100644 index 79087358..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/VL_bearbeiten.jsp +++ /dev/null @@ -1,12 +0,0 @@ -<%@ 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/WebContent/GUI/de/createVL_Software.jsp b/Dozentenmodul_V1/WebContent/GUI/de/createVL_Software.jsp deleted file mode 100644 index 979ca401..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/createVL_Software.jsp +++ /dev/null @@ -1,109 +0,0 @@ -<%@ 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/WebContent/GUI/de/createVL_System.jsp b/Dozentenmodul_V1/WebContent/GUI/de/createVL_System.jsp deleted file mode 100644 index f780302f..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/createVL_System.jsp +++ /dev/null @@ -1,146 +0,0 @@ -<%@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/WebContent/GUI/de/createVL_allgemein.jsp b/Dozentenmodul_V1/WebContent/GUI/de/createVL_allgemein.jsp deleted file mode 100644 index 6e099ed9..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/createVL_allgemein.jsp +++ /dev/null @@ -1,97 +0,0 @@ -<%@ 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/WebContent/GUI/de/footer.html b/Dozentenmodul_V1/WebContent/GUI/de/footer.html deleted file mode 100644 index ce63d776..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/footer.html +++ /dev/null @@ -1,7 +0,0 @@ -<!-- 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/WebContent/GUI/de/header.html b/Dozentenmodul_V1/WebContent/GUI/de/header.html deleted file mode 100644 index 83b3ab26..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/header.html +++ /dev/null @@ -1,7 +0,0 @@ -<!-- 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/WebContent/GUI/de/news.jsp b/Dozentenmodul_V1/WebContent/GUI/de/news.jsp deleted file mode 100644 index 0104164d..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/de/news.jsp +++ /dev/null @@ -1,15 +0,0 @@ -<%@ 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 diff --git a/Dozentenmodul_V1/WebContent/GUI/en/Home.jsp b/Dozentenmodul_V1/WebContent/GUI/en/Home.jsp deleted file mode 100644 index d3bec631..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/en/Home.jsp +++ /dev/null @@ -1,12 +0,0 @@ -<%@ 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>test</p>
-</body>
-</html>
\ No newline at end of file diff --git a/Dozentenmodul_V1/WebContent/GUI/en/Login.jsp b/Dozentenmodul_V1/WebContent/GUI/en/Login.jsp deleted file mode 100644 index f3568c67..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/en/Login.jsp +++ /dev/null @@ -1,42 +0,0 @@ -<%@ 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/Login.jsp">Login</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>Herzlich Willkommen im Dozentenmodul des bwLerhpools!</p>
- <p>blablabla</p>
-
- <form action="Ldap" method="post">
- <table>
- <tr>
- <td><label>Benutzername:</label></td>
- <td><input type="text" name="Benutzername" maxlength="30" size="30"></td>
- </tr>
- <tr>
- <td>Passwort:</td>
- <td><input name="Password" type="password" maxlength="30" size="30"></td>
- </tr>
- <tr>
- <td></td>
- <td align="right"><input id="button" type="submit" value="Login"></td>
- </tr>
- </table>
- </form>
-
-
-</body>
-</html>
\ No newline at end of file diff --git a/Dozentenmodul_V1/WebContent/GUI/en/Login_Error.jsp b/Dozentenmodul_V1/WebContent/GUI/en/Login_Error.jsp deleted file mode 100644 index d3e01215..00000000 --- a/Dozentenmodul_V1/WebContent/GUI/en/Login_Error.jsp +++ /dev/null @@ -1,12 +0,0 @@ -<%@ 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/WebContent/META-INF/MANIFEST.MF b/Dozentenmodul_V1/WebContent/META-INF/MANIFEST.MF deleted file mode 100644 index 5e949512..00000000 --- a/Dozentenmodul_V1/WebContent/META-INF/MANIFEST.MF +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0
-Class-Path:
-
diff --git a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-B.ttf b/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-B.ttf Binary files differdeleted file mode 100644 index c0142fea..00000000 --- a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-B.ttf +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-BI.ttf b/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-BI.ttf Binary files differdeleted file mode 100644 index 12e4c7df..00000000 --- a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-BI.ttf +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-C.ttf b/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-C.ttf Binary files differdeleted file mode 100644 index 8d3e8676..00000000 --- a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-C.ttf +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-L.ttf b/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-L.ttf Binary files differdeleted file mode 100644 index 7b7ac7dd..00000000 --- a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-L.ttf +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-LI.ttf b/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-LI.ttf Binary files differdeleted file mode 100644 index e36de452..00000000 --- a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-LI.ttf +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-M.ttf b/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-M.ttf Binary files differdeleted file mode 100644 index 443ec8b7..00000000 --- a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-M.ttf +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-MI.ttf b/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-MI.ttf Binary files differdeleted file mode 100644 index 321eccf7..00000000 --- a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-MI.ttf +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-R.ttf b/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-R.ttf Binary files differdeleted file mode 100644 index 45a038ba..00000000 --- a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-R.ttf +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-RI.ttf b/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-RI.ttf Binary files differdeleted file mode 100644 index 6f819f69..00000000 --- a/Dozentenmodul_V1/WebContent/UbuntuFonts/Ubuntu-RI.ttf +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/UbuntuFonts/UbuntuMono-B.ttf b/Dozentenmodul_V1/WebContent/UbuntuFonts/UbuntuMono-B.ttf Binary files differdeleted file mode 100644 index 7bd66657..00000000 --- a/Dozentenmodul_V1/WebContent/UbuntuFonts/UbuntuMono-B.ttf +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/UbuntuFonts/UbuntuMono-BI.ttf b/Dozentenmodul_V1/WebContent/UbuntuFonts/UbuntuMono-BI.ttf Binary files differdeleted file mode 100644 index 6c5b8ba0..00000000 --- a/Dozentenmodul_V1/WebContent/UbuntuFonts/UbuntuMono-BI.ttf +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/UbuntuFonts/UbuntuMono-R.ttf b/Dozentenmodul_V1/WebContent/UbuntuFonts/UbuntuMono-R.ttf Binary files differdeleted file mode 100644 index fdd309d7..00000000 --- a/Dozentenmodul_V1/WebContent/UbuntuFonts/UbuntuMono-R.ttf +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/UbuntuFonts/UbuntuMono-RI.ttf b/Dozentenmodul_V1/WebContent/UbuntuFonts/UbuntuMono-RI.ttf Binary files differdeleted file mode 100644 index 18f81a29..00000000 --- a/Dozentenmodul_V1/WebContent/UbuntuFonts/UbuntuMono-RI.ttf +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/WEB-INF/web.xml b/Dozentenmodul_V1/WebContent/WEB-INF/web.xml deleted file mode 100644 index 55db46a3..00000000 --- a/Dozentenmodul_V1/WebContent/WEB-INF/web.xml +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
- <display-name>Dozentenmodul_V1</display-name>
- <welcome-file-list>
- <welcome-file>Login.jsp</welcome-file>
- </welcome-file-list>
-</web-app>
\ No newline at end of file diff --git a/Dozentenmodul_V1/WebContent/css/Input.css b/Dozentenmodul_V1/WebContent/css/Input.css deleted file mode 100644 index 7a29a5e7..00000000 --- a/Dozentenmodul_V1/WebContent/css/Input.css +++ /dev/null @@ -1,124 +0,0 @@ -@CHARSET "ISO-8859-1";
-
-@font-face {
- font-family: 'Ubuntu';
- src: url(/Dozentenmodul_V1/UbuntuFonts/Ubuntu-L.ttf);
-}
-
-
-
-article.input section {
- position: absolute;
- display: block;
- width: 80%;
- height: 120%;
- top: 200px;
- left: 50%;
- margin-left: -30%;
- background-color: #c5d2de;
-}
-
-article.input section h2 {
- position: absolute;
- left: 0;
- top: -30px;
- width: 124px;
- height: 29px;
- font-family: Ubuntu;
- font-size: 15px;
- margin: 0;
- background-color: #194b7d;
- border-radius: 15px 15px 0 0;
- border: solid #ffffff;
- border-width: 1px 1px 0 0;
- z-index: 1;
-}
-
-article.input section:nth-child(2) h2 {
- left: 120px;
- z-index: 0;
-}
-
-article.input section:nth-child(3) h2 {
- left: 240px;
- z-index: -1;
-}
-
-article.input section:nth-child(4) h2 {
- left: 360px;
- z-index: -2;
-}
-
-
-article.input section h2 a {
- display: block;
- margin: 5px 0 0 0;
- text-align: center;
- text-decoration: none;
- color: #c5d2de;
-}
-
-article.input section:target, article.input section:target h2 {
- color: #000000;
- background-color: #c5d2de;
- z-index: 1;
-}
-
-article.input section:target h2 a {
- color: #194b7d;
-}
-
-article.input section div{
- z-index: 1;
-}
-
-article.input section input{
- width: 100%;
-}
-
-
-
-article.input section input{
- width: 320px;
-}
-
-article.input section textarea{
- width: 320px;
- resize:none;
-}
-article.input section select{
- width: 325px;
-}
-td{
-
-font-family:Ubuntu;
-}
-legend{
-font-family:Ubuntu;
-}
-p{
-font-family:Ubuntu;
-}
-#von_date, #bis_date{
- width: 300px;
-}
-
-#aktiv_ja, #aktiv_nein{
- width: 50px;
-}
-
-
-
-
-#SW_list{
- width: 30px;
-}
-
-
-
-}
-#save{
- float:right;
- margin-right: 30px;
- width: 100px;
-}
\ No newline at end of file diff --git a/Dozentenmodul_V1/WebContent/css/Layout.css b/Dozentenmodul_V1/WebContent/css/Layout.css deleted file mode 100644 index 75703ac4..00000000 --- a/Dozentenmodul_V1/WebContent/css/Layout.css +++ /dev/null @@ -1,196 +0,0 @@ -@CHARSET "ISO-8859-1";
-@font-face {
- font-family: 'Ubuntu';
- src: url(/Dozentenmodul_V1/UbuntuFonts/Ubuntu-L.ttf);
-}
-
-html,body{
-
- background-image:url('../img/bg.png');
- background-repeat:repeat-x;
- font-family: 'Ubuntu';
-}
-
-button{
- font-family: 'Ubuntu';
-}
-
-#lang{
- position: absolute;
- top: 0px;
- right: 10px;
-}
-
-#logo{
- width: 220px;
-}
-
-#news{
- position:relative;
- left: 0px;
- list-style: none;
- padding: 10px;
- width: 200px;
- border-radius: 5px;
- border-width: 1px;
- border-style: solid;
- border-color: black;
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
- background: white;
-}
-
-#newstext{
- position:relative;
- margin-top: 10px;
-}
-/* Vertical List: */
-.vertical-list {
- list-style: none;
- padding: 10px;
- width: 200px;
- border-radius: 5px;
- border-width: 1px;
- border-style: solid;
- border-color: black;
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
- background: white; /* old browsers */
-
-}
-.vertical-list .button {
- outline: 0;
- padding: 5px 12px;
- display: block;
- color: white;
- font-family: 'Ubuntu';
- font-weight: bold;
- text-shadow: 1px 1px #1f272b;
- text-decoration: none;
- border: 1px solid #1c252b;
- border-radius: 3px;
- -moz-border-radius: 3px;
- -webkit-border-radius: 3px;
- background: rgb(117,117,117);
- border-radius: 5px;
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
- background: background: rgb(117,117,117); /* old browsers */
-}
-.vertical-list .button:hover {
- background: rgb(255,166,38); /* old browsers */
-
-}
-.vertical-list .button:active {
- background-position: 0 top;
- position: relative;
- top: 1px;
- color: #fff;
- padding: 6px 12px 4px;
- background: rgb(255,166,38);
-
-}
-#footer{
- width:80%;
- height:3%;
- background-color: #757575;
- position: absolute;
- bottom: 0px;
- left: 300px;
- -moz-border-radius: 25px 25px 0px 0px;
- -webkit-border-radius: 25px 25px 0px 0px;
- border-radius: 25px 25px 0px 0px;
-}
-
-
-#link{
- color:white;
- font-family: 'Ubuntu';
- position: relative;
- margin-left: 30px;
-}
-
-#link:hover{
- color: #FFA626;
-}
-#content{
- position:absolute;
- left: 300px;
- top: 100px;
- width:80%;
- height:80%;
- overflow-y: scroll;
-
-}
-
-#bread a:hover {
- text-decoration:none;
-}
-
-#bread a:hover {
- text-decoration:underline;
-}
-
-#buttonweiterAllg{
- position: absolute;
- left: 200px;
- width: 200px;
-}
-
-#buttonweiterSys{
- position: absolute;
- left: 500px;
- width: 200px;
-}
-
-#buttonReady{
- position: absolute;
- left: 200px;
- width: 200px;
-}
-#buttonBackAllg{
- position: absolute;
- left: 0px;
- width: 200px;
-}
-#buttonBackSys{
- position: absolute;
- left: 300px;
- width: 200px;
-}
-#buttonAddSW{
- left: 0px;
- width: 200px;
-}
-#buttonBackSW{
- position: absolute;
- left: 0px;
- width: 200px;
-}
-#sw_chooser{
- width: 310px;
-}
-#sw_choosed{
- position: relative;
- margin-left: 350px;
- margin-top: -593px;
- width:310px;
-
-
-}
-
-#sort{
- margin-left: 10px;
- margin-top: 10px;
-}
-
-fieldset{
- margin-top: 10px;
-
-}
-.container {
- border:2px solid #ccc;
- width:300px;
- height: 550px;
- overflow-y: scroll;
-}
diff --git a/Dozentenmodul_V1/WebContent/css/Login.css b/Dozentenmodul_V1/WebContent/css/Login.css deleted file mode 100644 index 3e85c647..00000000 --- a/Dozentenmodul_V1/WebContent/css/Login.css +++ /dev/null @@ -1,116 +0,0 @@ -@CHARSET "ISO-8859-1";
-
-@font-face {
- font-family: 'Ubuntu';
- src: url(/Dozentenmodul_V1/UbuntuFonts/Ubuntu-L.ttf);
-}
-
-#lang{
- position: absolute;
- top: 0px;
- right: 0px;
-}
-
-#logo{
- width:50%;
- height: 10%;
- display:block;
- margin-left: auto;
- margin-right: auto;
- margin-top: 5%;
-
-}
-
-#login{
- width:500px;
- height:200px;
- background-color: #757575;
- display:block;
- margin-left: auto;
- margin-right: auto;
- margin-top: 5%;
- color: white;
- font-family: 'Ubuntu';
- -moz-border-radius: 25px;
- -webkit-border-radius: 25px;
- border-radius: 25px;
-}
-
-input{
- width:145px;
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
- border-radius: 5px;
-}
-
-button{
- width:150px;
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
- border-radius: 5px;
-}
-
-#lefttop{
- position:relative;
- float:left;
- margin-top: 25px;
- margin-left: 15px;
-
-}
-
-#righttop{
- position: relative;
- width:250px;
- float:right;
- margin-top: 25px;
- margin-right: 15px;
-}
-
-#leftbottom{
- position:relative;
- float:left;
- margin-top: 15px;
- margin-left: 15px;
-
-}
-
-#rightbottom{
- position: relative;
- width:250px;
- float:right;
- margin-top: 15px;
- margin-right: 15px;
-}
-
-#buttoncenter{
- position: absolute;
- width:150px;
- right:auto;
- left:auto;
-
- margin-top:125px;
-}
-#footer{
- width:80%;
- height:3%;
- background-color: #757575;
- position: absolute;
- bottom: 0px;
- left:50%;
- margin-left:-40%;
- -moz-border-radius: 25px 25px 0px 0px;
- -webkit-border-radius: 25px 25px 0px 0px;
- border-radius: 25px 25px 0px 0px;
-}
-
-a{
- color:white;
- font-family: 'Ubuntu';
- position: relative;
- margin-left: 30px;
-}
-a:hover{
- color: #FFA626;
-}
-
-
diff --git a/Dozentenmodul_V1/WebContent/img/Calendar/cal.gif b/Dozentenmodul_V1/WebContent/img/Calendar/cal.gif Binary files differdeleted file mode 100644 index 8526cf5d..00000000 --- a/Dozentenmodul_V1/WebContent/img/Calendar/cal.gif +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/Calendar/cal_close.gif b/Dozentenmodul_V1/WebContent/img/Calendar/cal_close.gif Binary files differdeleted file mode 100644 index 22b71eaf..00000000 --- a/Dozentenmodul_V1/WebContent/img/Calendar/cal_close.gif +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/Calendar/cal_fastforward.gif b/Dozentenmodul_V1/WebContent/img/Calendar/cal_fastforward.gif Binary files differdeleted file mode 100644 index 885781bd..00000000 --- a/Dozentenmodul_V1/WebContent/img/Calendar/cal_fastforward.gif +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/Calendar/cal_fastreverse.gif b/Dozentenmodul_V1/WebContent/img/Calendar/cal_fastreverse.gif Binary files differdeleted file mode 100644 index db858c50..00000000 --- a/Dozentenmodul_V1/WebContent/img/Calendar/cal_fastreverse.gif +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/Calendar/cal_forward.gif b/Dozentenmodul_V1/WebContent/img/Calendar/cal_forward.gif Binary files differdeleted file mode 100644 index 4d9c2333..00000000 --- a/Dozentenmodul_V1/WebContent/img/Calendar/cal_forward.gif +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/Calendar/cal_minus.gif b/Dozentenmodul_V1/WebContent/img/Calendar/cal_minus.gif Binary files differdeleted file mode 100644 index 2861f59f..00000000 --- a/Dozentenmodul_V1/WebContent/img/Calendar/cal_minus.gif +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/Calendar/cal_plus.gif b/Dozentenmodul_V1/WebContent/img/Calendar/cal_plus.gif Binary files differdeleted file mode 100644 index 5dc1a52c..00000000 --- a/Dozentenmodul_V1/WebContent/img/Calendar/cal_plus.gif +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/Calendar/cal_reverse.gif b/Dozentenmodul_V1/WebContent/img/Calendar/cal_reverse.gif Binary files differdeleted file mode 100644 index 6d51e3f1..00000000 --- a/Dozentenmodul_V1/WebContent/img/Calendar/cal_reverse.gif +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/DeleteRed.png b/Dozentenmodul_V1/WebContent/img/DeleteRed.png Binary files differdeleted file mode 100644 index 03e31706..00000000 --- a/Dozentenmodul_V1/WebContent/img/DeleteRed.png +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/Logo_bwLehrpool.png b/Dozentenmodul_V1/WebContent/img/Logo_bwLehrpool.png Binary files differdeleted file mode 100644 index b897d9f1..00000000 --- a/Dozentenmodul_V1/WebContent/img/Logo_bwLehrpool.png +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/Pencil3.png b/Dozentenmodul_V1/WebContent/img/Pencil3.png Binary files differdeleted file mode 100644 index 1686cc8c..00000000 --- a/Dozentenmodul_V1/WebContent/img/Pencil3.png +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/Shutdown_Box_Red.png b/Dozentenmodul_V1/WebContent/img/Shutdown_Box_Red.png Binary files differdeleted file mode 100644 index 9477e47e..00000000 --- a/Dozentenmodul_V1/WebContent/img/Shutdown_Box_Red.png +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/bg.png b/Dozentenmodul_V1/WebContent/img/bg.png Binary files differdeleted file mode 100644 index 6df2510e..00000000 --- a/Dozentenmodul_V1/WebContent/img/bg.png +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/de.png b/Dozentenmodul_V1/WebContent/img/de.png Binary files differdeleted file mode 100644 index ac4a9773..00000000 --- a/Dozentenmodul_V1/WebContent/img/de.png +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/tabbg.gif b/Dozentenmodul_V1/WebContent/img/tabbg.gif Binary files differdeleted file mode 100644 index ab5606de..00000000 --- a/Dozentenmodul_V1/WebContent/img/tabbg.gif +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/tabbg2.gif b/Dozentenmodul_V1/WebContent/img/tabbg2.gif Binary files differdeleted file mode 100644 index c46e39cc..00000000 --- a/Dozentenmodul_V1/WebContent/img/tabbg2.gif +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/img/us.png b/Dozentenmodul_V1/WebContent/img/us.png Binary files differdeleted file mode 100644 index 10f451fe..00000000 --- a/Dozentenmodul_V1/WebContent/img/us.png +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/jar/jakarta-commons-net.jar b/Dozentenmodul_V1/WebContent/jar/jakarta-commons-net.jar Binary files differdeleted file mode 100644 index a2880ab9..00000000 --- a/Dozentenmodul_V1/WebContent/jar/jakarta-commons-net.jar +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/jar/jakarta-commons-oro.jar b/Dozentenmodul_V1/WebContent/jar/jakarta-commons-oro.jar Binary files differdeleted file mode 100644 index 3a1cc642..00000000 --- a/Dozentenmodul_V1/WebContent/jar/jakarta-commons-oro.jar +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/jar/wjhk.jupload.jar b/Dozentenmodul_V1/WebContent/jar/wjhk.jupload.jar Binary files differdeleted file mode 100644 index 0409e153..00000000 --- a/Dozentenmodul_V1/WebContent/jar/wjhk.jupload.jar +++ /dev/null diff --git a/Dozentenmodul_V1/WebContent/js/datetimepicker_css.js b/Dozentenmodul_V1/WebContent/js/datetimepicker_css.js deleted file mode 100644 index 882601db..00000000 --- a/Dozentenmodul_V1/WebContent/js/datetimepicker_css.js +++ /dev/null @@ -1,1341 +0,0 @@ -//Javasript name: My Date Time Picker -//Date created: 16-Nov-2003 23:19 -//Creator: TengYong Ng -//Website: http://www.rainforestnet.com -//Copyright (c) 2003 TengYong Ng -//FileName: DateTimePicker_css.js -//Version: 2.2.4 -// Note: Permission given to use and modify this script in ANY kind of applications if -// header lines are left unchanged. -//Permission is granted to redistribute and modify this javascript under a FreeBSD License. -//New Css style version added by Yvan Lavoie (Québec, Canada) 29-Jan-2009 -//Formatted for JSLint compatibility by Labsmedia.com (30-Dec-2010) - - -//Global variables - -var winCal; -var dtToday; -var Cal; -var MonthName; -var WeekDayName1; -var WeekDayName2; -var exDateTime;//Existing Date and Time -var selDate;//selected date. version 1.7 -var calSpanID = "calBorder"; // span ID -var domStyle = null; // span DOM object with style -var cnLeft = "0";//left coordinate of calendar span -var cnTop = "0";//top coordinate of calendar span -var xpos = 0; // mouse x position -var ypos = 0; // mouse y position -var calHeight = 0; // calendar height -var CalWidth = 208;// calendar width -var CellWidth = 30;// width of day cell. -var TimeMode = 24;// TimeMode value. 12 or 24 -var StartYear = 2013; //First Year in drop down year selection -var EndYear = 5; // The last year of pickable date. if current year is 2011, the last year that still picker will be 2016 (2011+5) -var CalPosOffsetX = -1; //X position offset relative to calendar icon, can be negative value -var CalPosOffsetY = 0; //Y position offset relative to calendar icon, can be negative value - -//Configurable parameters start -var SpanBorderColor = "#000000";//span border color -var SpanBgColor = "#FFFFFF"; //span background color -var MonthYearColor = "#cc0033"; //Font Color of Month and Year in Calendar header. -var WeekHeadColor = "#18861B"; //var WeekHeadColor="#18861B";//Background Color in Week header. -var SundayColor = "#C0F64F"; //var SundayColor="#C0F64F";//Background color of Sunday. -var SaturdayColor = "#C0F64F"; //Background color of Saturday. -var WeekDayColor = "#FFEDA6"; //Background color of weekdays. -var FontColor = "blue"; //color of font in Calendar day cell. -var TodayColor = "#ffbd35"; //var TodayColor="#FFFF33";//Background color of today. -var SelDateColor = "#8DD53C"; //var SelDateColor = "#8DD53C";//Backgrond color of selected date in textbox. -var YrSelColor = "#cc0033"; //color of font of Year selector. -var MthSelColor = "#cc0033"; //color of font of Month selector if "MonthSelector" is "arrow". -var HoverColor = "#E0FF38"; //color when mouse move over. -var DisableColor = "#999966"; //color of disabled cell. -var CalBgColor = "#ffffff"; //Background color of Calendar window. - -var WeekChar = 2;//number of character for week day. if 2 then Mo,Tu,We. if 3 then Mon,Tue,Wed. -var DateSeparator = "-";//Date Separator, you can change it to "-" if you want. -var ShowLongMonth = true;//Show long month name in Calendar header. example: "January". -var ShowMonthYear = true;//Show Month and Year in Calendar header. -var ThemeBg = "";//Background image of Calendar window. -var PrecedeZero = true;//Preceding zero [true|false] -var MondayFirstDay = true;//true:Use Monday as first day; false:Sunday as first day. [true|false] //added in version 1.7 -var UseImageFiles = true;//Use image files with "arrows" and "close" button
-var imageFilesPath = "/Dozentenmodul_V1/img/Calendar/"; -//Configurable parameters end - -//use the Month and Weekday in your preferred language. -var MonthName = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; -var WeekDayName1 = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; -var WeekDayName2 = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]; - - -//end Configurable parameters - -//end Global variable - - -// Calendar prototype -function Calendar(pDate, pCtrl) -{ - //Properties - this.Date = pDate.getDate();//selected date - this.Month = pDate.getMonth();//selected month number - this.Year = pDate.getFullYear();//selected year in 4 digits - this.Hours = pDate.getHours(); - - if (pDate.getMinutes() < 10) - { - this.Minutes = "0" + pDate.getMinutes(); - } - else - { - this.Minutes = pDate.getMinutes(); - } - - if (pDate.getSeconds() < 10) - { - this.Seconds = "0" + pDate.getSeconds(); - } - else - { - this.Seconds = pDate.getSeconds(); - } - this.MyWindow = winCal; - this.Ctrl = pCtrl; - this.Format = "ddMMyyyy"; - this.Separator = DateSeparator; - this.ShowTime = false; - this.Scroller = "DROPDOWN"; - if (pDate.getHours() < 12) - { - this.AMorPM = "AM"; - } - else - { - this.AMorPM = "PM"; - }
- this.ShowSeconds = false;
- this.EnableDateMode = ""
-} - -Calendar.prototype.GetMonthIndex = function (shortMonthName) -{ - for (var i = 0; i < 12; i += 1) - { - if (MonthName[i].substring(0, 3).toUpperCase() === shortMonthName.toUpperCase()) - { - return i; - } - } -}; - -Calendar.prototype.IncYear = function () { - if (Cal.Year <= dtToday.getFullYear()+EndYear) - Cal.Year += 1; -}; - -Calendar.prototype.DecYear = function () { - if (Cal.Year > StartYear) - Cal.Year -= 1; -}; - -Calendar.prototype.IncMonth = function() { - if (Cal.Year <= dtToday.getFullYear() + EndYear) { - Cal.Month += 1; - if (Cal.Month >= 12) { - Cal.Month = 0; - Cal.IncYear(); - } - } -}; - -Calendar.prototype.DecMonth = function() { - if (Cal.Year >= StartYear) { - Cal.Month -= 1; - if (Cal.Month < 0) { - Cal.Month = 11; - Cal.DecYear(); - } - } -}; - -Calendar.prototype.SwitchMth = function (intMth) -{ - Cal.Month = parseInt(intMth, 10); -}; - -Calendar.prototype.SwitchYear = function (intYear) -{ - Cal.Year = parseInt(intYear, 10); -};
-
-Calendar.prototype.SetHour = function(intHour) {
- var MaxHour,
- MinHour,
- HourExp = new RegExp("^\\d\\d"),
- SingleDigit = new RegExp("^\\d{1}$");
-
- if (TimeMode === 24) {
- MaxHour = 23;
- MinHour = 0;
- }
- else if (TimeMode === 12) {
- MaxHour = 12;
- MinHour = 1;
- }
- else {
- alert("TimeMode can only be 12 or 24");
- }
-
- if ((HourExp.test(intHour) || SingleDigit.test(intHour)) && (parseInt(intHour, 10) > MaxHour)) {
- intHour = MinHour;
- }
-
- else if ((HourExp.test(intHour) || SingleDigit.test(intHour)) && (parseInt(intHour, 10) < MinHour)) {
- intHour = MaxHour;
- }
-
- intHour = parseInt(intHour, 10);
- if (SingleDigit.test(intHour)) {
- intHour = "0" + intHour;
- }
-
- if (HourExp.test(intHour) && (parseInt(intHour, 10) <= MaxHour) && (parseInt(intHour, 10) >= MinHour)) {
- if ((TimeMode === 12) && (Cal.AMorPM === "PM")) {
- if (parseInt(intHour, 10) === 12) {
- Cal.Hours = 12;
- }
- else {
- Cal.Hours = parseInt(intHour, 10) + 12;
- }
- }
-
- else if ((TimeMode === 12) && (Cal.AMorPM === "AM")) {
- if (intHour === 12) {
- intHour -= 12;
- }
-
- Cal.Hours = parseInt(intHour, 10);
- }
-
- else if (TimeMode === 24) {
- Cal.Hours = parseInt(intHour, 10);
- }
- }
-
-}; - -Calendar.prototype.SetMinute = function (intMin) -{ - var MaxMin = 59, - MinMin = 0, - - SingleDigit = new RegExp("\\d"), - SingleDigit2 = new RegExp("^\\d{1}$"), - MinExp = new RegExp("^\\d{2}$"), - - strMin = 0; - - if ((MinExp.test(intMin) || SingleDigit.test(intMin)) && (parseInt(intMin, 10) > MaxMin)) - { - intMin = MinMin; - } - - else if ((MinExp.test(intMin) || SingleDigit.test(intMin)) && (parseInt(intMin, 10) < MinMin)) - { - intMin = MaxMin; - } - - strMin = intMin + ""; - if (SingleDigit2.test(intMin)) - { - strMin = "0" + strMin; - } - - if ((MinExp.test(intMin) || SingleDigit.test(intMin)) && (parseInt(intMin, 10) <= 59) && (parseInt(intMin, 10) >= 0)) - { - Cal.Minutes = strMin; - } -}; - -Calendar.prototype.SetSecond = function (intSec) -{ - var MaxSec = 59, - MinSec = 0, - - SingleDigit = new RegExp("\\d"), - SingleDigit2 = new RegExp("^\\d{1}$"), - SecExp = new RegExp("^\\d{2}$"), - - strSec = 0; - - if ((SecExp.test(intSec) || SingleDigit.test(intSec)) && (parseInt(intSec, 10) > MaxSec)) - { - intSec = MinSec; - } - - else if ((SecExp.test(intSec) || SingleDigit.test(intSec)) && (parseInt(intSec, 10) < MinSec)) - { - intSec = MaxSec; - } - - strSec = intSec + ""; - if (SingleDigit2.test(intSec)) - { - strSec = "0" + strSec; - } - - if ((SecExp.test(intSec) || SingleDigit.test(intSec)) && (parseInt(intSec, 10) <= 59) && (parseInt(intSec, 10) >= 0)) - { - Cal.Seconds = strSec; - } - -}; - -Calendar.prototype.SetAmPm = function (pvalue) -{ - this.AMorPM = pvalue; - if (pvalue === "PM") - { - this.Hours = parseInt(this.Hours, 10) + 12; - if (this.Hours === 24) - { - this.Hours = 12; - } - } - - else if (pvalue === "AM") - { - this.Hours -= 12; - } -};
-
-Calendar.prototype.getShowHour = function() {
- var finalHour;
-
- if (TimeMode === 12) {
- if (parseInt(this.Hours, 10) === 0) {
- this.AMorPM = "AM";
- finalHour = parseInt(this.Hours, 10) + 12;
- }
-
- else if (parseInt(this.Hours, 10) === 12) {
- this.AMorPM = "PM";
- finalHour = 12;
- }
-
- else if (this.Hours > 12) {
- this.AMorPM = "PM";
- if ((this.Hours - 12) < 10) {
- finalHour = "0" + ((parseInt(this.Hours, 10)) - 12);
- }
- else {
- finalHour = parseInt(this.Hours, 10) - 12;
- }
- }
- else {
- this.AMorPM = "AM";
- if (this.Hours < 10) {
- finalHour = "0" + parseInt(this.Hours, 10);
- }
- else {
- finalHour = this.Hours;
- }
- }
- }
-
- else if (TimeMode === 24) {
- if (this.Hours < 10) {
- finalHour = "0" + parseInt(this.Hours, 10);
- }
- else {
- finalHour = this.Hours;
- }
- }
-
- return finalHour;
-}; - -Calendar.prototype.getShowAMorPM = function () -{ - return this.AMorPM; -}; - -Calendar.prototype.GetMonthName = function (IsLong) -{ - var Month = MonthName[this.Month]; - if (IsLong) - { - return Month; - } - else - { - return Month.substr(0, 3); - } -}; - -Calendar.prototype.GetMonDays = function() { //Get number of days in a month - - var DaysInMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - if (Cal.IsLeapYear()) { - DaysInMonth[1] = 29; - } - - return DaysInMonth[this.Month]; -}; - -Calendar.prototype.IsLeapYear = function () -{ - if ((this.Year % 4) === 0) - { - if ((this.Year % 100 === 0) && (this.Year % 400) !== 0) - { - return false; - } - else - { - return true; - } - } - else - { - return false; - } -}; - -Calendar.prototype.FormatDate = function (pDate) -{ - var MonthDigit = this.Month + 1; - if (PrecedeZero === true) - { - if ((pDate < 10) && String(pDate).length===1) //length checking added in version 2.2 - { - pDate = "0" + pDate; - } - if (MonthDigit < 10) - { - MonthDigit = "0" + MonthDigit; - } - } - - switch (this.Format.toUpperCase()) - { - case "DDMMYYYY": - return (pDate + DateSeparator + MonthDigit + DateSeparator + this.Year); - case "DDMMMYYYY": - return (pDate + DateSeparator + this.GetMonthName(false) + DateSeparator + this.Year); - case "MMDDYYYY": - return (MonthDigit + DateSeparator + pDate + DateSeparator + this.Year); - case "MMMDDYYYY": - return (this.GetMonthName(false) + DateSeparator + pDate + DateSeparator + this.Year); - case "YYYYMMDD": - return (this.Year + DateSeparator + MonthDigit + DateSeparator + pDate); - case "YYMMDD": - return (String(this.Year).substring(2, 4) + DateSeparator + MonthDigit + DateSeparator + pDate); - case "YYMMMDD": - return (String(this.Year).substring(2, 4) + DateSeparator + this.GetMonthName(false) + DateSeparator + pDate); - case "YYYYMMMDD": - return (this.Year + DateSeparator + this.GetMonthName(false) + DateSeparator + pDate); - default: - return (pDate + DateSeparator + (this.Month + 1) + DateSeparator + this.Year); - } -}; - -// end Calendar prototype - -function GenCell(pValue, pHighLight, pColor, pClickable) -{ //Generate table cell with value - var PValue, - PCellStr, - PClickable, - vTimeStr; - - if (!pValue) - { - PValue = ""; - } - else - { - PValue = pValue; - } - - if (pColor === undefined) - pColor = CalBgColor; - - if (pClickable !== undefined){ - PClickable = pClickable; - } - else{ - PClickable = true; - } - - if (Cal.ShowTime) - { - vTimeStr = ' ' + Cal.Hours + ':' + Cal.Minutes; - if (Cal.ShowSeconds) - { - vTimeStr += ':' + Cal.Seconds; - } - if (TimeMode === 12) - { - vTimeStr += ' ' + Cal.AMorPM; - } - } - - else - { - vTimeStr = ""; - } - - if (PValue !== "") - { - if (PClickable === true) { - if (Cal.ShowTime === true) - { PCellStr = "<td id='c" + PValue + "' class='calTD' style='text-align:center;cursor:pointer;background-color:"+pColor+"' onmousedown='selectDate(this," + PValue + ");'>" + PValue + "</td>"; } - else { PCellStr = "<td class='calTD' style='text-align:center;cursor:pointer;background-color:" + pColor + "' onmouseover='changeBorder(this, 0);' onmouseout=\"changeBorder(this, 1, '" + pColor + "');\" onClick=\"javascript:callback('" + Cal.Ctrl + "','" + Cal.FormatDate(PValue) + "');\">" + PValue + "</td>"; } - } - else - { PCellStr = "<td style='text-align:center;background-color:"+pColor+"' class='calTD'>"+PValue+"</td>"; } - } - else - { PCellStr = "<td style='text-align:center;background-color:"+pColor+"' class='calTD'> </td>"; } - - return PCellStr; -} - -function RenderCssCal(bNewCal) -{ - if (typeof bNewCal === "undefined" || bNewCal !== true) - { - bNewCal = false; - } - var vCalHeader, - vCalData, - vCalTime = "", - vCalClosing = "", - winCalData = "", - CalDate, - - i, - j, - - SelectStr, - vDayCount = 0, - vFirstDay, - - WeekDayName = [],//Added version 1.7 - strCell, - - showHour, - ShowArrows = false, - HourCellWidth = "35px", //cell width with seconds. - - SelectAm, - SelectPm, - - funcCalback, - - headID, - e, - cssStr, - style, - cssText, - span; - - calHeight = 0; // reset the window height on refresh - - // Set the default cursor for the calendar - - winCalData = "<span style='cursor:auto;'>"; - vCalHeader = "<table style='background-color:"+CalBgColor+";width:200px;padding:0;margin:5px auto 5px auto'><tbody>"; - - //Table for Month & Year Selector - - vCalHeader += "<tr><td colspan='7'><table border='0' width='200px' cellpadding='0' cellspacing='0'><tr>"; - //******************Month and Year selector in dropdown list************************ - - if (Cal.Scroller === "DROPDOWN") - { - vCalHeader += "<td align='center'><select name='MonthSelector' onChange='javascript:Cal.SwitchMth(this.selectedIndex);RenderCssCal();'>"; - for (i = 0; i < 12; i += 1) - { - if (i === Cal.Month) - { - SelectStr = "Selected"; - } - else - { - SelectStr = ""; - } - vCalHeader += "<option " + SelectStr + " value=" + i + ">" + MonthName[i] + "</option>"; - } - - vCalHeader += "</select></td>"; - //Year selector - - vCalHeader += "<td align='center'><select name='YearSelector' size='1' onChange='javascript:Cal.SwitchYear(this.value);RenderCssCal();'>"; - for (i = StartYear; i <= (dtToday.getFullYear() + EndYear); i += 1) - { - if (i === Cal.Year) - { - SelectStr = 'selected="selected"'; - } - else - { - SelectStr = ''; - } - vCalHeader += "<option " + SelectStr + " value=" + i + ">" + i + "</option>\n"; - } - vCalHeader += "</select></td>\n"; - calHeight += 30; - } - - //******************End Month and Year selector in dropdown list********************* - - //******************Month and Year selector in arrow********************************* - - else if (Cal.Scroller === "ARROW") - { - if (UseImageFiles) - { - vCalHeader += "<td><img onmousedown='javascript:Cal.DecYear();RenderCssCal();' src='"+imageFilesPath+"cal_fastreverse.gif' width='13px' height='9' onmouseover='changeBorder(this, 0)' onmouseout='changeBorder(this, 1)' style='border:1px solid white'></td>\n";//Year scroller (decrease 1 year) - vCalHeader += "<td><img onmousedown='javascript:Cal.DecMonth();RenderCssCal();' src='" + imageFilesPath + "cal_reverse.gif' width='13px' height='9' onmouseover='changeBorder(this, 0)' onmouseout='changeBorder(this, 1)' style='border:1px solid white'></td>\n"; //Month scroller (decrease 1 month) - vCalHeader += "<td width='70%' class='calR' style='color:"+YrSelColor+"'>"+ Cal.GetMonthName(ShowLongMonth) + " " + Cal.Year + "</td>"; //Month and Year - vCalHeader += "<td><img onmousedown='javascript:Cal.IncMonth();RenderCssCal();' src='" + imageFilesPath + "cal_forward.gif' width='13px' height='9' onmouseover='changeBorder(this, 0)' onmouseout='changeBorder(this, 1)' style='border:1px solid white'></td>\n"; //Month scroller (increase 1 month) - vCalHeader += "<td><img onmousedown='javascript:Cal.IncYear();RenderCssCal();' src='" + imageFilesPath + "cal_fastforward.gif' width='13px' height='9' onmouseover='changeBorder(this, 0)' onmouseout='changeBorder(this, 1)' style='border:1px solid white'></td>\n"; //Year scroller (increase 1 year) - calHeight += 22; - } - else - { - vCalHeader += "<td><span id='dec_year' title='reverse year' onmousedown='javascript:Cal.DecYear();RenderCssCal();' onmouseover='changeBorder(this, 0)' onmouseout='changeBorder(this, 1)' style='border:1px solid white; color:" + YrSelColor + "'>-</span></td>";//Year scroller (decrease 1 year) - vCalHeader += "<td><span id='dec_month' title='reverse month' onmousedown='javascript:Cal.DecMonth();RenderCssCal();' onmouseover='changeBorder(this, 0)' onmouseout='changeBorder(this, 1)' style='border:1px solid white'><</span></td>\n";//Month scroller (decrease 1 month) - vCalHeader += "<td width='70%' class='calR' style='color:" + YrSelColor + "'>" + Cal.GetMonthName(ShowLongMonth) + " " + Cal.Year + "</td>\n"; //Month and Year - vCalHeader += "<td><span id='inc_month' title='forward month' onmousedown='javascript:Cal.IncMonth();RenderCssCal();' onmouseover='changeBorder(this, 0)' onmouseout='changeBorder(this, 1)' style='border:1px solid white'>></span></td>\n";//Month scroller (increase 1 month) - vCalHeader += "<td><span id='inc_year' title='forward year' onmousedown='javascript:Cal.IncYear();RenderCssCal();' onmouseover='changeBorder(this, 0)' onmouseout='changeBorder(this, 1)' style='border:1px solid white; color:" + YrSelColor + "'>+</span></td>\n";//Year scroller (increase 1 year) - calHeight += 22; - } - } - - vCalHeader += "</tr></table></td></tr>"; - - //******************End Month and Year selector in arrow****************************** - - //Calendar header shows Month and Year - if (ShowMonthYear && Cal.Scroller === "DROPDOWN") - { - vCalHeader += "<tr><td colspan='7' class='calR' style='color:" + MonthYearColor + "'>" + Cal.GetMonthName(ShowLongMonth) + " " + Cal.Year + "</td></tr>"; - calHeight += 19; - } - - //Week day header - - vCalHeader += "<tr><td colspan=\"7\"><table style='border-spacing:1px;border-collapse:separate;'><tr>"; - if (MondayFirstDay === true) - { - WeekDayName = WeekDayName2; - } - else - { - WeekDayName = WeekDayName1; - } - for (i = 0; i < 7; i += 1) - { - vCalHeader += "<td style='background-color:"+WeekHeadColor+";width:"+CellWidth+"px;color:#FFFFFF' class='calTD'>" + WeekDayName[i].substr(0, WeekChar) + "</td>"; - } - - calHeight += 19; - vCalHeader += "</tr>"; - //Calendar detail - CalDate = new Date(Cal.Year, Cal.Month); - CalDate.setDate(1); - - vFirstDay = CalDate.getDay(); - - //Added version 1.7 - if (MondayFirstDay === true) - { - vFirstDay -= 1; - if (vFirstDay === -1) - { - vFirstDay = 6; - } - } - - //Added version 1.7 - vCalData = "<tr>"; - calHeight += 19; - for (i = 0; i < vFirstDay; i += 1) - { - vCalData = vCalData + GenCell(); - vDayCount = vDayCount + 1; - } - - //Added version 1.7 - for (j = 1; j <= Cal.GetMonDays(); j += 1) - { - if ((vDayCount % 7 === 0) && (j > 1)) - { - vCalData = vCalData + "<tr>"; - } - - vDayCount = vDayCount + 1; - //added version 2.1.2 - if (Cal.EnableDateMode === "future" && ((j < dtToday.getDate()) && (Cal.Month === dtToday.getMonth()) && (Cal.Year === dtToday.getFullYear()) || (Cal.Month < dtToday.getMonth()) && (Cal.Year === dtToday.getFullYear()) || (Cal.Year < dtToday.getFullYear()))) - { - strCell = GenCell(j, false, DisableColor, false); //Before today's date is not clickable
- }
- else if (Cal.EnableDateMode === "past" && ((j >= dtToday.getDate()) && (Cal.Month === dtToday.getMonth()) && (Cal.Year === dtToday.getFullYear()) || (Cal.Month > dtToday.getMonth()) && (Cal.Year === dtToday.getFullYear()) || (Cal.Year > dtToday.getFullYear()))) {
- strCell = GenCell(j, false, DisableColor, false); //After today's date is not clickable
- } - //if End Year + Current Year = Cal.Year. Disable. - else if (Cal.Year > (dtToday.getFullYear()+EndYear)) - { - strCell = GenCell(j, false, DisableColor, false); - } - else if ((j === dtToday.getDate()) && (Cal.Month === dtToday.getMonth()) && (Cal.Year === dtToday.getFullYear())) - { - strCell = GenCell(j, true, TodayColor);//Highlight today's date - } - else - { - if ((j === selDate.getDate()) && (Cal.Month === selDate.getMonth()) && (Cal.Year === selDate.getFullYear())){ - //modified version 1.7 - strCell = GenCell(j, true, SelDateColor); - } - else - { - if (MondayFirstDay === true) - { - if (vDayCount % 7 === 0) - { - strCell = GenCell(j, false, SundayColor); - } - else if ((vDayCount + 1) % 7 === 0) - { - strCell = GenCell(j, false, SaturdayColor); - } - else - { - strCell = GenCell(j, null, WeekDayColor); - } - } - else - { - if (vDayCount % 7 === 0) - { - strCell = GenCell(j, false, SaturdayColor); - } - else if ((vDayCount + 6) % 7 === 0) - { - strCell = GenCell(j, false, SundayColor); - } - else - { - strCell = GenCell(j, null, WeekDayColor); - } - } - } - } - - vCalData = vCalData + strCell; - - if ((vDayCount % 7 === 0) && (j < Cal.GetMonDays())) - { - vCalData = vCalData + "</tr>"; - calHeight += 19; - } - } - - // finish the table proper - - if (vDayCount % 7 !== 0) - { - while (vDayCount % 7 !== 0) - { - vCalData = vCalData + GenCell(); - vDayCount = vDayCount + 1; - } - } - - vCalData = vCalData + "</table></td></tr>"; - - - //Time picker - if (Cal.ShowTime === true) - { - showHour = Cal.getShowHour(); - - if (Cal.ShowSeconds === false && TimeMode === 24) - { - ShowArrows = true; - HourCellWidth = "10px"; - } - - vCalTime = "<tr><td colspan='7' style=\"text-align:center;\"><table border='0' width='199px' cellpadding='0' cellspacing='0'><tbody><tr><td height='5px' width='" + HourCellWidth + "'> </td>"; - - if (ShowArrows && UseImageFiles) //this is where the up and down arrow control the hour. - { - vCalTime += "<td style='vertical-align:middle;'><table cellspacing='0' cellpadding='0' style='line-height:0pt;width:100%;'><tr><td style='text-align:center;'><img onclick='nextStep(\"Hour\", \"plus\");' onmousedown='startSpin(\"Hour\", \"plus\");' onmouseup='stopSpin();' src='" + imageFilesPath + "cal_plus.gif' width='13px' height='9px' onmouseover='changeBorder(this, 0)' onmouseout='changeBorder(this, 1)' style='border:1px solid white'></td></tr><tr><td style='text-align:center;'><img onclick='nextStep(\"Hour\", \"minus\");' onmousedown='startSpin(\"Hour\", \"minus\");' onmouseup='stopSpin();' src='" + imageFilesPath + "cal_minus.gif' width='13px' height='9px' onmouseover='changeBorder(this, 0)' onmouseout='changeBorder(this, 1)' style='border:1px solid white'></td></tr></table></td>\n"; - } - - vCalTime += "<td width='22px'><input type='text' name='hour' maxlength=2 size=1 style=\"WIDTH:22px\" value=" + showHour + " onkeyup=\"javascript:Cal.SetHour(this.value)\">"; - vCalTime += "</td><td style='font-weight:bold;text-align:center;'>:</td><td width='22px'>"; - vCalTime += "<input type='text' name='minute' maxlength=2 size=1 style=\"WIDTH: 22px\" value=" + Cal.Minutes + " onkeyup=\"javascript:Cal.SetMinute(this.value)\">"; - - if (Cal.ShowSeconds) - { - vCalTime += "</td><td style='font-weight:bold;'>:</td><td width='22px'>"; - vCalTime += "<input type='text' name='second' maxlength=2 size=1 style=\"WIDTH: 22px\" value=" + Cal.Seconds + " onkeyup=\"javascript:Cal.SetSecond(parseInt(this.value,10))\">"; - } - - if (TimeMode === 12) - { - SelectAm = (Cal.AMorPM === "AM") ? "Selected" : ""; - SelectPm = (Cal.AMorPM === "PM") ? "Selected" : ""; - - vCalTime += "</td><td>"; - vCalTime += "<select name=\"ampm\" onChange=\"javascript:Cal.SetAmPm(this.options[this.selectedIndex].value);\">\n"; - vCalTime += "<option " + SelectAm + " value=\"AM\">AM</option>"; - vCalTime += "<option " + SelectPm + " value=\"PM\">PM<option>"; - vCalTime += "</select>"; - } - - if (ShowArrows && UseImageFiles) //this is where the up and down arrow to change the "Minute". - { - vCalTime += "</td>\n<td style='vertical-align:middle;'><table cellspacing='0' cellpadding='0' style='line-height:0pt;width:100%'><tr><td style='text-align:center;'><img onclick='nextStep(\"Minute\", \"plus\");' onmousedown='startSpin(\"Minute\", \"plus\");' onmouseup='stopSpin();' src='" + imageFilesPath + "cal_plus.gif' width='13px' height='9px' onmouseover='changeBorder(this, 0)' onmouseout='changeBorder(this, 1)' style='border:1px solid white'></td></tr><tr><td style='text-align:center;'><img onmousedown='startSpin(\"Minute\", \"minus\");' onmouseup='stopSpin();' onclick='nextStep(\"Minute\",\"minus\");' src='" + imageFilesPath + "cal_minus.gif' width='13px' height='9px' onmouseover='changeBorder(this, 0)' onmouseout='changeBorder(this, 1)' style='border:1px solid white'></td></tr></table>"; - } - - vCalTime += "</td>\n<td align='right' valign='bottom' width='" + HourCellWidth + "px'></td></tr>"; - vCalTime += "<tr><td colspan='8' style=\"text-align:center;\"><input style='width:60px;font-size:12px;' onClick='javascript:closewin(\"" + Cal.Ctrl + "\");' type=\"button\" value=\"OK\"> <input style='width:60px;font-size:12px;' onClick='javascript: winCal.style.visibility = \"hidden\"' type=\"button\" value=\"Cancel\"></td></tr>"; - } - else //if not to show time. - { - vCalTime += "\n<tr>\n<td colspan='7' style=\"text-align:right;\">"; - //close button - if (UseImageFiles) { - vCalClosing += "<img onmousedown='javascript:closewin(\"" + Cal.Ctrl + "\"); stopSpin();' src='"+imageFilesPath+"cal_close.gif' width='16px' height='14px' onmouseover='changeBorder(this,0)' onmouseout='changeBorder(this, 1)' style='border:1px solid white'></td>"; - } - else { - vCalClosing += "<span id='close_cal' title='close'onmousedown='javascript:closewin(\"" + Cal.Ctrl + "\");stopSpin();' onmouseover='changeBorder(this, 0)'onmouseout='changeBorder(this, 1)' style='border:1px solid white; font-family: Arial;font-size: 10pt;'>x</span></td>"; - } - vCalClosing += "</tr>"; - } - vCalClosing += "</tbody></table></td></tr>"; - calHeight += 31; - vCalClosing += "</tbody></table>\n</span>"; - - //end time picker - funcCalback = "function callback(id, datum) {"; - funcCalback += " var CalId = document.getElementById(id);if (datum=== 'undefined') { var d = new Date(); datum = d.getDate() + '/' +(d.getMonth()+1) + '/' + d.getFullYear(); } window.calDatum=datum;CalId.value=datum;"; - funcCalback += " if(Cal.ShowTime){"; - funcCalback += " CalId.value+=' '+Cal.getShowHour()+':'+Cal.Minutes;"; - funcCalback += " if (Cal.ShowSeconds) CalId.value+=':'+Cal.Seconds;"; - funcCalback += " if (TimeMode === 12) CalId.value+=''+Cal.getShowAMorPM();"; - funcCalback += "}if(CalId.onchange!=undefined) CalId.onchange();CalId.focus();winCal.style.visibility='hidden';}"; - - - // determines if there is enough space to open the cal above the position where it is called - if (ypos > calHeight) - { - ypos = ypos - calHeight; - } - - if (!winCal) - { - headID = document.getElementsByTagName("head")[0]; - - // add javascript function to the span cal - e = document.createElement("script"); - e.type = "text/javascript"; - e.language = "javascript"; - e.text = funcCalback; - headID.appendChild(e); - // add stylesheet to the span cal - - cssStr = ".calTD {font-family: verdana; font-size: 12px; text-align: center; border:0; }\n"; - cssStr += ".calR {font-family: verdana; font-size: 12px; text-align: center; font-weight: bold;}"; - - style = document.createElement("style"); - style.type = "text/css"; - style.rel = "stylesheet"; - if (style.styleSheet) - { // IE - style.styleSheet.cssText = cssStr; - } - - else - { // w3c - cssText = document.createTextNode(cssStr); - style.appendChild(cssText); - } - - headID.appendChild(style); - // create the outer frame that allows the cal. to be moved - span = document.createElement("span"); - span.id = calSpanID; - span.style.position = "absolute"; - span.style.left = (xpos + CalPosOffsetX) + 'px'; - span.style.top = (ypos - CalPosOffsetY) + 'px'; - span.style.width = CalWidth + 'px'; - span.style.border = "solid 1pt " + SpanBorderColor; - span.style.padding = "0"; - span.style.cursor = "move"; - span.style.backgroundColor = SpanBgColor; - span.style.zIndex = 100; - document.body.appendChild(span); - winCal = document.getElementById(calSpanID); - } - - else - { - winCal.style.visibility = "visible"; - winCal.style.Height = calHeight; - - // set the position for a new calendar only - if (bNewCal === true) - { - winCal.style.left = (xpos + CalPosOffsetX) + 'px'; - winCal.style.top = (ypos - CalPosOffsetY) + 'px'; - } - } - - winCal.innerHTML = winCalData + vCalHeader + vCalData + vCalTime + vCalClosing; - return true; -} - - -function NewCssCal(pCtrl, pFormat, pScroller, pShowTime, pTimeMode, pShowSeconds, pEnableDateMode) -{ - // get current date and time - - dtToday = new Date(); - Cal = new Calendar(dtToday); - - if (pShowTime !== undefined) - { - if (pShowTime) { - Cal.ShowTime = true; - } - else { - Cal.ShowTime = false; - } - - if (pTimeMode) - { - pTimeMode = parseInt(pTimeMode, 10); - } - if (pTimeMode === 12 || pTimeMode === 24) - { - TimeMode = pTimeMode; - } - else - { - TimeMode = 24; - } - - if (pShowSeconds !== undefined) - { - if (pShowSeconds) - { - Cal.ShowSeconds = true; - } - else - { - Cal.ShowSeconds = false; - } - } - else - { - Cal.ShowSeconds = false; - } - - } - - if (pCtrl !== undefined) - { - Cal.Ctrl = pCtrl; - } - - if (pFormat!== undefined && pFormat !=="") - { - Cal.Format = pFormat.toUpperCase(); - } - else - { - Cal.Format = "MMDDYYYY"; - } - - if (pScroller!== undefined && pScroller!=="") - { - if (pScroller.toUpperCase() === "ARROW") - { - Cal.Scroller = "ARROW"; - } - else - { - Cal.Scroller = "DROPDOWN"; - }
- }
-
- if (pEnableDateMode !== undefined && (pEnableDateMode === "future" || pEnableDateMode === "past")) {
- Cal.EnableDateMode= pEnableDateMode;
- } - - exDateTime = document.getElementById(pCtrl).value; //Existing Date Time value in textbox. - - if (exDateTime) - { //Parse existing Date String - var Sp1 = exDateTime.indexOf(DateSeparator, 0),//Index of Date Separator 1 - Sp2 = exDateTime.indexOf(DateSeparator, parseInt(Sp1, 10) + 1),//Index of Date Separator 2 - tSp1,//Index of Time Separator 1 - tSp2,//Index of Time Separator 2 - strMonth, - strDate, - strYear, - intMonth, - YearPattern, - strHour, - strMinute, - strSecond, - winHeight, - offset = parseInt(Cal.Format.toUpperCase().lastIndexOf("M"), 10) - parseInt(Cal.Format.toUpperCase().indexOf("M"), 10) - 1, - strAMPM = ""; - //parse month - - if (Cal.Format.toUpperCase() === "DDMMYYYY" || Cal.Format.toUpperCase() === "DDMMMYYYY") - { - if (DateSeparator === "") - { - strMonth = exDateTime.substring(2, 4 + offset); - strDate = exDateTime.substring(0, 2); - strYear = exDateTime.substring(4 + offset, 8 + offset); - } - else - { - if (exDateTime.indexOf("D*") !== -1) - { //DTG - strMonth = exDateTime.substring(8, 11); - strDate = exDateTime.substring(0, 2); - strYear = "20" + exDateTime.substring(11, 13); //Hack, nur für Jahreszahlen ab 2000 - } - else - { - strMonth = exDateTime.substring(Sp1 + 1, Sp2); - strDate = exDateTime.substring(0, Sp1); - strYear = exDateTime.substring(Sp2 + 1, Sp2 + 5); - } - } - } - - else if (Cal.Format.toUpperCase() === "MMDDYYYY" || Cal.Format.toUpperCase() === "MMMDDYYYY"){ - if (DateSeparator === ""){ - strMonth = exDateTime.substring(0, 2 + offset); - strDate = exDateTime.substring(2 + offset, 4 + offset); - strYear = exDateTime.substring(4 + offset, 8 + offset); - } - else{ - strMonth = exDateTime.substring(0, Sp1); - strDate = exDateTime.substring(Sp1 + 1, Sp2); - strYear = exDateTime.substring(Sp2 + 1, Sp2 + 5); - } - } - - else if (Cal.Format.toUpperCase() === "YYYYMMDD" || Cal.Format.toUpperCase() === "YYYYMMMDD") - { - if (DateSeparator === ""){ - strMonth = exDateTime.substring(4, 6 + offset); - strDate = exDateTime.substring(6 + offset, 8 + offset); - strYear = exDateTime.substring(0, 4); - } - else{ - strMonth = exDateTime.substring(Sp1 + 1, Sp2); - strDate = exDateTime.substring(Sp2 + 1, Sp2 + 3); - strYear = exDateTime.substring(0, Sp1); - } - } - - else if (Cal.Format.toUpperCase() === "YYMMDD" || Cal.Format.toUpperCase() === "YYMMMDD") - { - if (DateSeparator === "") - { - strMonth = exDateTime.substring(2, 4 + offset); - strDate = exDateTime.substring(4 + offset, 6 + offset); - strYear = exDateTime.substring(0, 2); - } - else - { - strMonth = exDateTime.substring(Sp1 + 1, Sp2); - strDate = exDateTime.substring(Sp2 + 1, Sp2 + 3); - strYear = exDateTime.substring(0, Sp1); - } - } - - if (isNaN(strMonth)){ - intMonth = Cal.GetMonthIndex(strMonth); - } - else{ - intMonth = parseInt(strMonth, 10) - 1; - } - if ((parseInt(intMonth, 10) >= 0) && (parseInt(intMonth, 10) < 12)) { - Cal.Month = intMonth; - } - //end parse month - - //parse year - YearPattern = /^\d{4}$/; - if (YearPattern.test(strYear)) { - if ((parseInt(strYear, 10)>=StartYear) && (parseInt(strYear, 10)<= (dtToday.getFullYear()+EndYear))) - Cal.Year = parseInt(strYear, 10); - } - //end parse year - - //parse Date - if ((parseInt(strDate, 10) <= Cal.GetMonDays()) && (parseInt(strDate, 10) >= 1)) { - Cal.Date = strDate; - } - //end parse Date - - //parse time - - if (Cal.ShowTime === true) - { - //parse AM or PM - if (TimeMode === 12) - { - strAMPM = exDateTime.substring(exDateTime.length - 2, exDateTime.length); - Cal.AMorPM = strAMPM; - } - - tSp1 = exDateTime.indexOf(":", 0); - tSp2 = exDateTime.indexOf(":", (parseInt(tSp1, 10) + 1)); - if (tSp1 > 0) - { - strHour = exDateTime.substring(tSp1, tSp1 - 2);
- Cal.SetHour(strHour);
- - strMinute = exDateTime.substring(tSp1 + 1, tSp1 + 3); - Cal.SetMinute(strMinute); - - strSecond = exDateTime.substring(tSp2 + 1, tSp2 + 3); - Cal.SetSecond(strSecond); - - } - else if (exDateTime.indexOf("D*") !== -1) - { //DTG - strHour = exDateTime.substring(2, 4); - Cal.SetHour(strHour); - strMinute = exDateTime.substring(4, 6); - Cal.SetMinute(strMinute); - - } - } - - } - selDate = new Date(Cal.Year, Cal.Month, Cal.Date);//version 1.7 - RenderCssCal(true); -} - -function closewin(id) { - if (Cal.ShowTime === true) { - var MaxYear = dtToday.getFullYear() + EndYear; - var beforeToday = - (Cal.Date < dtToday.getDate()) && - (Cal.Month === dtToday.getMonth()) && - (Cal.Year === dtToday.getFullYear()) - || - (Cal.Month < dtToday.getMonth()) && - (Cal.Year === dtToday.getFullYear()) - || - (Cal.Year < dtToday.getFullYear()); - - if ((Cal.Year <= MaxYear) && (Cal.Year >= StartYear) && (Cal.Month === selDate.getMonth()) && (Cal.Year === selDate.getFullYear())) {
- if (Cal.EnableDateMode === "future") { - if (beforeToday === false) { - callback(id, Cal.FormatDate(Cal.Date)); - } - } - else - callback(id, Cal.FormatDate(Cal.Date)); - } - } - - var CalId = document.getElementById(id); - CalId.focus(); - winCal.style.visibility = 'hidden'; -} - -function changeBorder(element, col, oldBgColor) -{ - if (col === 0) - { - element.style.background = HoverColor; - element.style.borderColor = "black"; - element.style.cursor = "pointer"; - } - - else - { - if (oldBgColor) - { - element.style.background = oldBgColor; - } - else - { - element.style.background = "white"; - } - element.style.borderColor = "white"; - element.style.cursor = "auto"; - } -} - -function selectDate(element, date) { - Cal.Date = date; - selDate = new Date(Cal.Year, Cal.Month, Cal.Date); - element.style.background = SelDateColor; - RenderCssCal(); -} - -function pickIt(evt) -{ - var objectID, - dom, - de, - b; - // accesses the element that generates the event and retrieves its ID - if (document.addEventListener) - { // w3c - objectID = evt.target.id; - if (objectID.indexOf(calSpanID) !== -1) - { - dom = document.getElementById(objectID); - cnLeft = evt.pageX; - cnTop = evt.pageY; - - if (dom.offsetLeft) - { - cnLeft = (cnLeft - dom.offsetLeft); - cnTop = (cnTop - dom.offsetTop); - } - } - - // get mouse position on click - xpos = (evt.pageX); - ypos = (evt.pageY); - } - - else - { // IE - objectID = event.srcElement.id; - cnLeft = event.offsetX; - cnTop = (event.offsetY); - - // get mouse position on click - de = document.documentElement; - b = document.body; - - xpos = event.clientX + (de.scrollLeft || b.scrollLeft) - (de.clientLeft || 0); - ypos = event.clientY + (de.scrollTop || b.scrollTop) - (de.clientTop || 0); - } - - // verify if this is a valid element to pick - if (objectID.indexOf(calSpanID) !== -1) - { - domStyle = document.getElementById(objectID).style; - } - - if (domStyle) - { - domStyle.zIndex = 100; - return false; - } - - else - { - domStyle = null; - return; - } -} - - - -function dragIt(evt) -{ - if (domStyle) - { - if (document.addEventListener) - { //for IE - domStyle.left = (event.clientX - cnLeft + document.body.scrollLeft) + 'px'; - domStyle.top = (event.clientY - cnTop + document.body.scrollTop) + 'px'; - } - else - { //Firefox - domStyle.left = (evt.clientX - cnLeft + document.body.scrollLeft) + 'px'; - domStyle.top = (evt.clientY - cnTop + document.body.scrollTop) + 'px'; - } - } -} - -// performs a single increment or decrement -function nextStep(whatSpinner, direction) -{ - if (whatSpinner === "Hour") - { - if (direction === "plus") - { - Cal.SetHour(Cal.Hours + 1); - RenderCssCal(); - } - else if (direction === "minus") - { - Cal.SetHour(Cal.Hours - 1); - RenderCssCal(); - } - } - else if (whatSpinner === "Minute") - { - if (direction === "plus") - { - Cal.SetMinute(parseInt(Cal.Minutes, 10) + 1); - RenderCssCal(); - } - else if (direction === "minus") - { - Cal.SetMinute(parseInt(Cal.Minutes, 10) - 1); - RenderCssCal(); - } - } - -} - -// starts the time spinner -function startSpin(whatSpinner, direction) -{ - document.thisLoop = setInterval(function () - { - nextStep(whatSpinner, direction); - }, 125); //125 ms -} - -//stops the time spinner -function stopSpin() -{ - clearInterval(document.thisLoop); -} - -function dropIt() -{ - stopSpin(); - - if (domStyle) - { - domStyle = null; - } -} - -// Default events configuration - -document.onmousedown = pickIt; -document.onmousemove = dragIt; -document.onmouseup = dropIt; diff --git a/Dozentenmodul_V1/WebContent/js/functions.js b/Dozentenmodul_V1/WebContent/js/functions.js deleted file mode 100644 index 3b25e746..00000000 --- a/Dozentenmodul_V1/WebContent/js/functions.js +++ /dev/null @@ -1,31 +0,0 @@ -function refresh(id){
- alert('dsfdsa');
- var checkbox=document.getElementsByName(id);
- alert(id);
- var pointToAppend=document.getElementById("sw");
-
- //for(var i=0; i<checkbox.length;i++)
- //{
- if(checkbox[0].checked==true){
-
- label.innerHTML="sdaas";
- pointToAppend
-
- }
-
- if(checkbox[0].checked==false)
- {
- label.innerHTML="";
- pointToAppend.appendChild(label);
- }
-
-
-}
-
-function openAddOS(){
- window.open('/Dozentenmodul_V1/GUI/de/AddOS.jsp','Text Titelbar','toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=0,width=500,height=470');
-}
-
-function refreshSelect(){
- location.reload();
-}
\ No newline at end of file diff --git a/Dozentenmodul_V1/WebContent/js/login.js b/Dozentenmodul_V1/WebContent/js/login.js deleted file mode 100644 index 6bdd0199..00000000 --- a/Dozentenmodul_V1/WebContent/js/login.js +++ /dev/null @@ -1,9 +0,0 @@ -function changeToEnglish()
-{
- window.location.href = 'http://www.msn.com';
-}
-
-function changeToDeutsch()
-{
- window.location.href = 'http://www.msn.com';
-}
\ No newline at end of file diff --git a/Dozentenmodul_V1/WebContent/js/tabcontent.js b/Dozentenmodul_V1/WebContent/js/tabcontent.js deleted file mode 100644 index 526e940a..00000000 --- a/Dozentenmodul_V1/WebContent/js/tabcontent.js +++ /dev/null @@ -1,171 +0,0 @@ -/* http://www.menucool.com/tabbed-content Free to use. Version 2013.3.13 */
-
-var tabs = function() {
- var b = function(c, a) {
- var b = new RegExp("(^| )" + a + "( |$)");
- return b.test(c.className) ? true : false
- }, j = function(a, c) {
- if (!b(a, c))
- if (a.className == "")
- a.className = c;
- else
- a.className += " " + c
- }, h = function(a, b) {
- var c = new RegExp("(^| )" + b + "( |$)");
- a.className = a.className.replace(c, "$1");
- a.className = a.className.replace(/ $/, "")
- }, g = function(c, b) {
- var a = document.getElementsByTagName("html");
- if (a)
- a[0].scrollTop += b
- }, e = function() {
- var b = window.location.pathname;
- if (b.indexOf("/") != -1)
- b = b.split("/");
- var a = b[b.length - 1] || "root";
- if (a.indexOf(".") != -1)
- a = a.substring(0, a.indexOf("."));
- if (a > 20)
- a = a.substring(a.length - 19);
- return a
- }, d = e(), c = function(a) {
- this.a = 0;
- this.b = [];
- this.c = [];
- this.d = [];
- this.e = 0;
- this.f(a)
- };
- c.prototype = {
- g : function(b) {
- var c = new RegExp(d + b + "=(\\d+)"), a = document.cookie.match(c);
- return a ? a[1] : this.h()
- },
- h : function() {
- for ( var a = 0, c = this.d.length; a < c; a++)
- if (b(this.d[a], "selected"))
- return a;
- return 0
- },
- j : function(d, c) {
- for ( var b = d.getAttribute("rel"), a = 0; a < this.b.length; a++)
- if (this.b[a].getAttribute("rel") == b) {
- j(this.b[a].parentNode, "selected");
- c && this.e && this.k(this.a, a)
- } else
- h(this.b[a].parentNode, "selected");
- this.l(b)
- },
- k : function(a, b) {
- document.cookie = d + a + "=" + b + "; path=/"
- },
- l : function(b) {
- for ( var a = 0; a < this.c.length; a++)
- this.c[a].style.display = this.c[a].id == b ? "block" : "none"
- },
- m : function(a) {
- if (a.id)
- for ( var b = 0; b < this.b.length; b++)
- if (this.b[b].getAttribute("rel") == a.id)
- return this.b[b];
- return a.parentNode.nodeName != "BODY" ? this.m(a.parentNode)
- : null
- },
- n : function(d, c) {
- var a = document.getElementById(d);
- if (a) {
- var b = this.m(a);
- if (b) {
- this.j(b, 0);
- if (!c)
- setTimeout(function() {
- a.scrollIntoView();
- g(a, -120)
- }, 0);
- else
- setTimeout(function() {
- window.scrollTo(0, 0)
- }, 0);
- return 1
- } else
- return 0
- }
- },
- f : function(a) {
- this.a = a.i;
- this.b = a.getElementsByTagName("a");
- this.d = a.getElementsByTagName("li");
- for ( var b = 0; b < this.b.length; b++)
- if (this.b[b].getAttribute("rel")) {
- this.c.push(document.getElementById(this.b[b]
- .getAttribute("rel")));
- var f = this;
- this.b[b].onclick = function() {
- f.j(this, 1);
- return false
- }
- }
- var e = a.getAttribute("persist") || "";
- this.e = e.toLowerCase() == "true" ? 1 : 0;
- var d = window.location.hash;
- if (d && d.length > 1)
- if (this.n(d.substring(1), window.location.search
- .indexOf("noscroll=true") > -1))
- return;
- var c = this.e ? parseInt(this.g(a.i)) : this.h();
- if (c >= this.b.length)
- c = 0;
- this.j(this.b[c], 0)
- }
- };
- var a = [], i = function(d) {
- var b = false;
- function a() {
- if (b)
- return;
- b = true;
- setTimeout(d, 4)
- }
- if (document.addEventListener)
- document.addEventListener("DOMContentLoaded", a, false);
- else if (document.attachEvent) {
- try {
- var e = window.frameElement != null
- } catch (f) {
- }
- if (document.documentElement.doScroll && !e) {
- function c() {
- if (b)
- return;
- try {
- document.documentElement.doScroll("left");
- a()
- } catch (d) {
- setTimeout(c, 10)
- }
- }
- c()
- }
- document.attachEvent("onreadystatechange", function() {
- document.readyState === "complete" && a()
- })
- }
- if (window.addEventListener)
- window.addEventListener("load", a, false);
- else
- window.attachEvent && window.attachEvent("onload", a)
- }, f = function() {
- for ( var e = document.getElementsByTagName("ul"), d = 0, f = e.length; d < f; d++)
- if (b(e[d], "tabs")) {
- e[d].i = a.length;
- a.push(new c(e[d]))
- }
- };
- i(f);
- return {
- open : function(c, d) {
- for ( var b = 0; b < a.length; b++)
- a[b].n(c, d)
- }
- }
-}()
\ No newline at end of file diff --git a/Dozentenmodul_V1/bin/WebContent/GUI/de/AddOS.jsp b/Dozentenmodul_V1/bin/WebContent/GUI/de/AddOS.jsp deleted file mode 100644 index f3547acf..00000000 --- a/Dozentenmodul_V1/bin/WebContent/GUI/de/AddOS.jsp +++ /dev/null @@ -1,47 +0,0 @@ -<!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 deleted file mode 100644 index 2aede85c..00000000 --- a/Dozentenmodul_V1/bin/WebContent/GUI/de/ESXI_Redirection.jsp +++ /dev/null @@ -1,37 +0,0 @@ -<%@ 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 deleted file mode 100644 index d50d73b8..00000000 --- a/Dozentenmodul_V1/bin/WebContent/GUI/de/Home.jsp +++ /dev/null @@ -1,87 +0,0 @@ -<!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 deleted file mode 100644 index 8d148386..00000000 --- a/Dozentenmodul_V1/bin/WebContent/GUI/de/Login.jsp +++ /dev/null @@ -1,34 +0,0 @@ -<!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 deleted file mode 100644 index febf794b..00000000 --- a/Dozentenmodul_V1/bin/WebContent/GUI/de/Login_Error.jsp +++ /dev/null @@ -1,12 +0,0 @@ -<%@ 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 deleted file mode 100644 index 8e09c34b..00000000 --- a/Dozentenmodul_V1/bin/WebContent/GUI/de/OTRS.jsp +++ /dev/null @@ -1,20 +0,0 @@ -<%@ 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 deleted file mode 100644 index db2806bc..00000000 --- a/Dozentenmodul_V1/bin/WebContent/GUI/de/VLUpload.jsp +++ /dev/null @@ -1,41 +0,0 @@ -<%@ 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 deleted file mode 100644 index 4956d7ea..00000000 --- a/Dozentenmodul_V1/bin/WebContent/GUI/de/VL_bearbeiten.jsp +++ /dev/null @@ -1,12 +0,0 @@ -<%@ 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 deleted file mode 100644 index f942ff77..00000000 --- a/Dozentenmodul_V1/bin/WebContent/GUI/de/createVL_Software.jsp +++ /dev/null @@ -1,109 +0,0 @@ -<%@ 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 deleted file mode 100644 index a16ac8af..00000000 --- a/Dozentenmodul_V1/bin/WebContent/GUI/de/createVL_System.jsp +++ /dev/null @@ -1,146 +0,0 @@ -<%@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 deleted file mode 100644 index 4ccc6a95..00000000 --- a/Dozentenmodul_V1/bin/WebContent/GUI/de/createVL_allgemein.jsp +++ /dev/null @@ -1,97 +0,0 @@ -<%@ 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 deleted file mode 100644 index 0ebf0a2c..00000000 --- a/Dozentenmodul_V1/bin/WebContent/GUI/de/footer.html +++ /dev/null @@ -1,7 +0,0 @@ -<!-- 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 deleted file mode 100644 index 5ef0ebcf..00000000 --- a/Dozentenmodul_V1/bin/WebContent/GUI/de/header.html +++ /dev/null @@ -1,7 +0,0 @@ -<!-- 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 deleted file mode 100644 index 426de579..00000000 --- a/Dozentenmodul_V1/bin/WebContent/GUI/de/news.jsp +++ /dev/null @@ -1,15 +0,0 @@ -<%@ 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 diff --git a/Dozentenmodul_V1/build/classes/authentifizierung/Ldap.class b/Dozentenmodul_V1/build/classes/authentifizierung/Ldap.class Binary files differdeleted file mode 100644 index 98f75ea2..00000000 --- a/Dozentenmodul_V1/build/classes/authentifizierung/Ldap.class +++ /dev/null diff --git a/Dozentenmodul_V1/build/classes/db/DB_Access.class b/Dozentenmodul_V1/build/classes/db/DB_Access.class Binary files differdeleted file mode 100644 index 03075d17..00000000 --- a/Dozentenmodul_V1/build/classes/db/DB_Access.class +++ /dev/null diff --git a/Dozentenmodul_V1/build/classes/db/MySQL.class b/Dozentenmodul_V1/build/classes/db/MySQL.class Binary files differdeleted file mode 100644 index 5bb994e5..00000000 --- a/Dozentenmodul_V1/build/classes/db/MySQL.class +++ /dev/null diff --git a/Dozentenmodul_V1/build/classes/db/SaveOS.class b/Dozentenmodul_V1/build/classes/db/SaveOS.class Binary files differdeleted file mode 100644 index 7a861604..00000000 --- a/Dozentenmodul_V1/build/classes/db/SaveOS.class +++ /dev/null diff --git a/Dozentenmodul_V1/build/classes/news/News.class b/Dozentenmodul_V1/build/classes/news/News.class Binary files differdeleted file mode 100644 index 05651c14..00000000 --- a/Dozentenmodul_V1/build/classes/news/News.class +++ /dev/null diff --git a/Dozentenmodul_V1/src/authentifizierung/Ldap.java b/Dozentenmodul_V1/src/authentifizierung/Ldap.java deleted file mode 100644 index 0265d350..00000000 --- a/Dozentenmodul_V1/src/authentifizierung/Ldap.java +++ /dev/null @@ -1,98 +0,0 @@ -package authentifizierung;
-
-import java.io.IOException;
-import javax.servlet.ServletException;
-import javax.servlet.annotation.WebServlet;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import java.io.BufferedReader;
-import java.io.BufferedWriter;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.OutputStreamWriter;
-import java.io.PrintWriter;
-import java.net.Socket;
-import java.net.URL;
-import java.security.Certificate;
-import java.security.cert.X509Certificate;
-import java.util.Hashtable;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.naming.AuthenticationException;
-import javax.naming.Context;
-import javax.naming.NamingException;
-import javax.naming.directory.DirContext;
-import javax.naming.directory.InitialDirContext;
-import javax.naming.ldap.LdapContext;
-import javax.net.ssl.HttpsURLConnection;
-import javax.servlet.RequestDispatcher;
-
-
-
-/**
- * Servlet implementation class Ldap
- */
-@WebServlet("/Ldap")
-public class Ldap extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public Ldap() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- doPost(request,response);
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- response.setContentType("text/html;charset=UTF-8");
- PrintWriter out = response.getWriter();
- String userName=request.getParameter("User");
- String pass=request.getParameter("Password");
-
-
- try {
-
- String base = "ou=hrz,o=fho";
- String dn = "cn="+userName + "," + base;
- String ldapURL = "ldaps://fs3.rz.hs-offenburg.de";
-
- // Setup environment for authenticating
-
- Hashtable<String, String> environment = new Hashtable<String, String>();
- environment.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
- environment.put(Context.PROVIDER_URL, ldapURL);
- environment.put(Context.SECURITY_AUTHENTICATION, "simple");
- environment.put(Context.SECURITY_PRINCIPAL, dn);
- environment.put(Context.SECURITY_CREDENTIALS, pass);
-
- try {
- DirContext authContext = new InitialDirContext(environment);
- // user is authenticated
-
- RequestDispatcher disp= getServletContext().getRequestDispatcher("/GUI/de/Home.jsp");
- disp.forward(request, response);
- } catch (NamingException ex) {
- RequestDispatcher disp= getServletContext().getRequestDispatcher("/GUI/de/Login_Error.jsp");
- disp.forward(request, response);
- Logger.getLogger(Ldap.class.getName()).log(Level.SEVERE, null, ex);
- }
-
- } finally {
- out.close();
- }
- }
-
-}
diff --git a/Dozentenmodul_V1/src/db/DB_Access.java b/Dozentenmodul_V1/src/db/DB_Access.java deleted file mode 100644 index 820535f6..00000000 --- a/Dozentenmodul_V1/src/db/DB_Access.java +++ /dev/null @@ -1,57 +0,0 @@ -package db;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.naming.NamingException;
-import javax.naming.directory.DirContext;
-import javax.naming.directory.InitialDirContext;
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
-import javax.servlet.annotation.WebServlet;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import java.sql.*;
-
-/**
- * Servlet implementation class mySQLServlet
- */
-@WebServlet("/DB_Access")
-public class DB_Access extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public DB_Access() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- doPost(request,response);
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- response.setContentType("text/html;charset=UTF-8");
-
- MySQL sql=new MySQL();
- Connection con=sql.getConnection();
-
-
- RequestDispatcher disp= getServletContext().getRequestDispatcher("/GUI/de/VLUpload.jsp");
- disp.forward(request, response);
-
-
- }
-
-}
diff --git a/Dozentenmodul_V1/src/db/MySQL.java b/Dozentenmodul_V1/src/db/MySQL.java deleted file mode 100644 index 45e11f36..00000000 --- a/Dozentenmodul_V1/src/db/MySQL.java +++ /dev/null @@ -1,203 +0,0 @@ -package db;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-public class MySQL {
-
- public Connection getConnection()
- {
- try {
- Class.forName("com.mysql.jdbc.Driver").newInstance();
- } catch (InstantiationException | IllegalAccessException
- | ClassNotFoundException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- try {
- Connection con=DriverManager.getConnection("jdbc:mysql://127.0.0.1/bwLehrpool?user=root&password=root");
- return con;
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
-
-
- }
-
-
- public ResultSet getHersteller(Connection con)
- {
- try {
- Statement stm=con.createStatement();
- return stm.executeQuery("SELECT pk,Name FROM bwLehrpool.SWHersteller order by Name asc;");
-
-
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
-
- return null;
- }
- public ResultSet getSoftware(Connection con, String Hersteller)
- {
-
- try {
- Statement stm=con.createStatement();
-
- return stm.executeQuery("SELECT s.pk,s.Produktname, s.Version, s.Architektur FROM bwLehrpool.Software s left join bwLehrpool.SWHersteller h on s.SWHersteller_pk=h.pk where Name like '"+Hersteller+"' order by s.Produktname;");
-
-
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
-
- return null;
-
- }
-
- public ResultSet getUserpk(Connection con, String Mail)
- {
- Statement stm;
- try {
- stm = con.createStatement();
- return stm.executeQuery("SELECT pk FROM bwLehrpool.Benutzer where EMail like '"+Mail+"';");
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
- }
-
- public ResultSet getVMpk(Connection con, String Userpk)
- {
- Statement stm;
- try {
- stm = con.createStatement();
- return stm.executeQuery("SELECT VM_pk FROM bwLehrpool.Benutzer_has_VM where Benutzer_pk="+Userpk+";");
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
- }
-
- public ResultSet getActiveVLs(Connection con, String VMpk)
- {
- Statement stm;
- try {
- stm = con.createStatement();
- return stm.executeQuery("Select Laborname from bwLehrpool.VM where IstAktiv=1 and pk="+VMpk+";");
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
-
- }
-
- public ResultSet getInactiveVLs(Connection con, String VMpk)
- {
- Statement stm;
- try {
- stm = con.createStatement();
- return stm.executeQuery("Select Laborname from bwLehrpool.VM where IstAktiv=0 and pk="+VMpk+";");
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
- }
-
- public ResultSet getOSList(Connection con)
- {
- Statement stm;
- try {
- stm = con.createStatement();
- return stm.executeQuery("SELECT distinct Produktname, Version, Architektur FROM bwlehrpool.betriebssystem order by Produktname asc;");
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
- }
-
- public int AddOS(Connection con, String name, String Version, String Architektur,int Kosten, String Hersteller)
- {
- Statement stm;
-
-
- try {
- stm=con.createStatement();
-
- int pk_Hersteller=HerstellerExists(con, Hersteller);
-
- if(pk_Hersteller==-1)
- {
- addHersteller(con, Hersteller);
- }
-
-
- int ret=stm.executeUpdate("INSERT INTO `bwlehrpool`.`betriebssystem`(`Produktname`,`Version`,`Architektur`,`IstKostenlos`,`SWHersteller_pk`)VALUES('"+name+"','"+Version+"','"+Architektur+"',"+Kosten+","+pk_Hersteller+");");
- return ret;
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return -1;
-
- }
-
- public int HerstellerExists(Connection con, String Hersteller)
- {
- Statement stm;
- int pk_Hersteller=-1;
-
-
- try {
- stm=con.createStatement();
- ResultSet rs=getHersteller(con);
-
- while(rs.next())
- {
- if(rs.getString("Name").equals(Hersteller))
- {
- pk_Hersteller=Integer.parseInt(rs.getString("pk"));
- }
- }
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- return pk_Hersteller;
-
- }
-
- public int addHersteller(Connection con, String Name){
-
- Statement stm;
- int ret=-1;
- try {
- stm=con.createStatement();
- ret=stm.executeUpdate("INSERT INTO `bwlehrpool`.`swhersteller`(`Name`)VALUES('"+Name+"');");
- con.commit();
- } catch (SQLException e) {
- // TODO Auto-generated catch block
-
- e.printStackTrace();
- }
- return ret;
-
- }
-
-}
diff --git a/Dozentenmodul_V1/src/db/SaveOS.java b/Dozentenmodul_V1/src/db/SaveOS.java deleted file mode 100644 index 8bdeda1f..00000000 --- a/Dozentenmodul_V1/src/db/SaveOS.java +++ /dev/null @@ -1,66 +0,0 @@ -package db;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-
-import javax.servlet.ServletException;
-import javax.servlet.annotation.WebServlet;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import com.mysql.jdbc.Connection;
-
-import db.MySQL;
-/**
- * Servlet implementation class SaveOS
- */
-@WebServlet("/SaveOS")
-public class SaveOS extends HttpServlet {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see HttpServlet#HttpServlet()
- */
- public SaveOS() {
- super();
- // TODO Auto-generated constructor stub
- }
-
- /**
- * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- doPost(request,response);
- }
-
- /**
- * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
- */
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- response.setContentType("text/html");
- PrintWriter out = response.getWriter();
- int Kosten=0;
-
- if(request.getParameter("Kosten").equals("Kostenpflichtig"))
- {
- Kosten=1;
- }
-
- MySQL sql=new MySQL();
- java.sql.Connection con=sql.getConnection();
-
- int ret=sql.AddOS(con, request.getParameter("Name"), request.getParameter("Version"), request.getParameter("Architektur"), Kosten, request.getParameter("Hersteller"));
-
- if(ret==1)
- {
- out.println("Eingabe erfolgreich gespeichert");
- }
- else
- {
- out.println("Bei der Speicherung der Daten ist ein Fehler aufgetreten, bitte wenden Sie sich an den Support");
- }
-
- }
-
-}
diff --git a/Dozentenmodul_V1/src/news/News.java b/Dozentenmodul_V1/src/news/News.java deleted file mode 100644 index 70146833..00000000 --- a/Dozentenmodul_V1/src/news/News.java +++ /dev/null @@ -1,43 +0,0 @@ -package news;
-
-import java.io.BufferedReader;
-import java.io.FileReader;
-import java.io.IOException;
-import java.util.StringTokenizer;
-
-public class News {
-
-
- @SuppressWarnings("resource")
- public String refreshNews(){
-
- String news="";
- BufferedReader in;
- int lineCounter=0;
- try {
- in = new BufferedReader(new FileReader("C:\\Users\\tspitzer\\Desktop\\news.txt"));
- String line;
- while((line = in.readLine()) != null) {
-
- StringTokenizer st = new StringTokenizer(line, ";");
- String Datum = st.nextToken();
- String msg = st.nextToken();
- if(lineCounter!=0)
- {
- news=news.concat(Datum+" "+msg+" <br \\><hr \\><br \\>");
- }
-
- lineCounter++;
- }
-
- } catch (NumberFormatException | IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
-
- return news;
-
- }
-
-}
|
