Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hauptseite HTML:
- <html>
- <head>
- <link href="css/lato.css" rel="stylesheet" type="text/css">
- <link href="css/base.css" rel="stylesheet" type="text/css">
- <link href="font-awesome-4.5.0/css/font-awesome.min.css" type="text/css" rel="stylesheet">
- <script src="lib/jquery-2.2.0.min.js"></script>
- <script src="js/formular.js?v=3"></script>
- <meta charset="utf-8">
- </head>
- <body>
- <div class = "Sitebody">
- <div class="Formularbox">
- <div class="alertBox" id="Alertbox">
- <div class="alertBoxFront" id="alertBoxFront">
- <div class="alertTop" id="alertTop">
- <div class="closealert" id="closealert" onclick="window.formular.service.closealertError()"><i class="fa fa-times-circle" ></i></div>
- <div class="alertType" id="alertType"></div>
- </div>
- <div class="alertBot" id="alertBot">
- <i class="" id="alertTypeIcon"></i>
- <div class="alertText" id="alertText"></div>
- </div>
- </div>
- </div>
- <div class="Formularsite" id="Formularsite1">
- <div class="Formularsiteheader"><span class="Headertitle">Anmeldung</span><div class="Schulbanner"></div><div class="Schullogo"></div></div>
- <p class="InputTag" id="TagVorname">Vorname</p>
- <input type="text" class="ForminputSite1" id="Vorname">
- <p class="InputTag">Nachname</p>
- <input type="text" class="ForminputSite1" id="Nachname">
- <p class="InputTag">Passwort</p>
- <input type="password" class="ForminputSite1" id="Passwort">
- <p class="InputTag">Klasse</p>
- <select class="ClassSelect" id="ClassSelect1">
- <option value="1">TGM 11/1</option>
- <option value="2">TGM 11/2</option>
- <option value="3">TGTM 11/3</option>
- <option value="4">TGG 11/4</option>
- <option value="5">TGI 11/5</option>
- </select>
- <p class="InputTag">Geburtsdatum</p>
- <input type="text" class="date" placeholder="DD" onfocus="this.placeholder = ''" onblur="this.placeholder = 'DD'" maxlength="2">
- <input type="text" class="date" placeholder="MM" onfocus="this.placeholder = ''" onblur="this.placeholder = 'MM'" maxlength="2">
- <input type="text" class="date" placeholder="JJJJ" onfocus="this.placeholder = ''" onblur="this.placeholder = 'JJJJ'" maxlength="4">
- <p class="InputTag">Religionsuntericht 11.Klasse</p>
- <select class="ClassSelect" id="ClassSelect2" onchange="window.formular.Onload.Fillselect('ClassSelect3')">
- <option value="7">Religion Katholisch</option>
- <option value="8">Religion Evangelisch</option>
- <option value="9">Ethik</option>
- </select>
- <select class="ClassSelect" id="ClassSelect3">
- </select>
- <p class="InputTag">Fremdsprache</p>
- <select class="ClassSelect" id="ClassSelect4">
- <option value="1">keine 2.Fremdsprache</option>
- <option value="2">Franzoesisch B</option>
- <option value="3">Spanisch B</option>
- </select>
- <select class="ClassSelect" id="ClassSelect5">
- <option value="1">keine Franzoesisch A</option>
- <option value="2">Franzoesisch A</option>
- </select>
- <button class="NextButton" onclick="window.formular.communication.authorizeUser();">Anmelden</button>
- </div>
- <div class="Formularsite" id="Formularsite2">
- <div class="Formularsiteheader"><span class="Headertitle">Pflichtfächer</span><div class="Schulbanner"></div><div class="Schullogo"></div></div>
- <table class="Fachbox" id="Pflichtfachbox">
- <tr id="tablehead1">
- <td>Fach</td>
- <td>Wochenstunden</td>
- <td>JGS 1.1</td>
- <td>JGS 1.2</td>
- <td>JGS 2.1</td>
- <td>JGS 2.2</td>
- </tr>
- </table>
- <i class="infoButton fa fa-info-circle fa-4x" onclick="window.formular.service.alertInfo(2)"></i>
- <button class="NextButton" onclick="window.formular.buttons.onSave(2);">Weiter</button>
- </div>
- <div class="Formularsite" id="Formularsite3">
- <div class="Formularsiteheader"><span class="Headertitle">Pflichtwahlfächer</span><div class="Schulbanner"></div><div class="Schullogo"></div></div>
- <table class="Fachbox" id="Pflichtwahlfachbox">
- <tr id="tablehead2">
- <td>Fach</td>
- <td>Wochenstunden</td>
- <td>JGS 1.1</td>
- <td>JGS 1.2</td>
- <td>JGS 2.1</td>
- <td>JGS 2.2</td>
- </tr>
- </table>
- <i class="infoButton fa fa-info-circle fa-4x" onclick="window.formular.service.alertInfo(3)"></i>
- <button class="NextButton" onclick="window.formular.buttons.onSave(3);">Weiter</button>
- </div>
- <div class="Formularsite" id="Formularsite4">
- <div class="Formularsiteheader"><span class="Headertitle">Wahlfächer</span><div class="Schulbanner"></div><div class="Schullogo"></div></div>
- <table class="Fachbox" id="Wahlfachbox">
- <tr id="tablehead2">
- <td>Fach</td>
- <td>Wochenstunden</td>
- <td>JGS 1.1</td>
- <td>JGS 1.2</td>
- <td>JGS 2.1</td>
- <td>JGS 2.2</td>
- </tr>
- </table>
- <i class="infoButton fa fa-info-circle fa-4x" onclick="window.formular.service.alertInfo(4)"></i>
- <button class="NextButton" onclick="window.formular.buttons.onSave(4);">Speichern & Weiter</button>
- </div>
- <div class="Formularsite" id="Formularsite5">
- <div class="Formularsiteheader"><span class="Headertitle">Übersicht</span><div class="Schulbanner"></div><div class="Schullogo"></div></div>
- <table class="Fachbox" id="Tablecopy">
- </table>
- <i class="infoButton fa fa-info-circle fa-4x" onclick="window.formular.service.alertInfo(5)"></i>
- <button class="NextButton" onclick="window.formular.buttons.onSave(5);">Exceltabelle downloaden</button>
- </div>
- <div class="Formulartrack">
- <button class="TrackButton" id="TrackButton1" onclick="window.formular.navigation.nextSiteTrack(1)">1.Anmeldung</button>
- <button class="TrackButton" id="TrackButton2" onclick="window.formular.navigation.nextSiteTrack(2)">2.Pflichtfächer</button>
- <button class="TrackButton" id="TrackButton3" onclick="window.formular.navigation.nextSiteTrack(3)">3.Pflichtwahlfächer</button>
- <button class="TrackButton" id="TrackButton4" onclick="window.formular.navigation.nextSiteTrack(4)">4.Wahlfächer</button>
- <button class="TrackButton" id="TrackButton5" onclick="window.formular.navigation.nextSiteTrack(5)">5.Übersicht</button>
- </div>
- </div>
- </div>
- </body>
- </html>
- Hauptseite CSS:
- html{font-family: 'Lato', sans-serif !important}
- /* HTML5 display-role reset for older browsers */
- article, aside, details, figcaption, figure,
- footer, header, hgroup, menu, nav, section {display: block;}
- body {line-height: 1;padding:0;margin:0;width:100%;height:100%;background-image:url(../background.jpg);display:table;}
- .Formularbox{}
- ol, ul {list-style: none;}
- blockquote, q {quotes: none;}
- blockquote:before, blockquote:after,q:before, q:after {content: '';content: none;}
- table {border-collapse: collapse;border-spacing: 0;}
- input:focus{box-shadow:0 0 5px #BD271D;outline: none !important;border:1px solid #BD271D;}
- /*Sitemarkup*/
- .Siteheader{width:1200px;height:10px;margin-bottom:40px; margin-left: auto;margin-right: auto;background-color:#2D3945;}
- /* Formular */
- .Formularbox{background-color:transparent; width:1200px;height:900px;position:relative;padding:0;bottom:0;margin-left: auto;margin-right: auto;margin-top:30px;border:solid 8px #2D3945;border-radius:5px;}
- .Formulartrack{background-color:#2D3945;width:1200px; height:80px;border-top: 8px solid #2D3945; position: absolute;bottom: 0;vertical-align: middle;line-height:80px;text-align: center;box-sizing: border-box;z-index:5;}
- .Formularsite{background-color:#F8F8F8;width:1200px;height:820px;position:absolute;text-align: center;border:none;padding:0;overflow: hidden;}
- .Formularsite input{display:block;margin-left: auto;margin-right: auto;}
- .Formularsite .date{display: inline-block;width:60px; height: 40px;text-align:center;padding: 0px;}
- .Formularsiteheader{width:100%;height:70px;background-color: #2D3945; position:relative;border-bottom: 8px solid #2D3945;line-height: 70px; text-align: center;}
- .Headertitle{font-size:40px;color:white;margin-left:270px;}
- .Schullogo{height:50px;width:50px;background-image:url(../images/photo.jpg);background-size: 50px 50px;float:right;margin-top:10px;}
- .Schulbanner{height:50px;width:205px;background-image:url(../images/logoalternativ.jpg);background-size:205px 50px;float:right;margin-top:10px;}
- .InputTag{font-size:15px;margin-top:15px;color:#8c8c8c;}
- .ForminputSite1 {background-color:white; border:1px solid black;height:50px;width:180px;text-align: center;border-radius:2px;font-size:20px;}
- .ForminputSite1:focus{border:1px solid #BD271D;box-shadow:0 0 5px #BD271D; outline: none !important;}
- #Formularsite1{z-index:5;}
- #Formularsite2{z-index:4;}
- #Formularsite3{z-index:3;}
- #Formularsite4{z-index:2;}
- #Formularsite5{z-index:1;overflow-y:scroll;}
- .checkBox{color:red;}
- #TagVorname{margin-top:50px;}
- .ClassSelect{width:180px;height:30px;font-size:15px;border:1px solid black;display: block;text-align: center; margin-right: auto;margin-left: auto;padding: 0px;}
- .Fachbox{ margin-left:200px; margin-top:30px;width:800px; min-height:20px;font-size:16px;}
- .Fachbox td{padding:8px;}
- .TableRow{background-color:#f8f8f8;}
- #tablefoot1{color:black;}
- #tablehead1{background-color:#2D3945;color:white;height:50px;font-size:18px;}
- #tablehead2{background-color:#2D3945;color:white;height:50px;font-size:18px;}
- table{border-collapse:collapse;border:5px solid #2D3945;}
- table tr{border-bottom:2px solid #2D3945}
- /* Buttons */
- button:active{padding:0;}
- button:hover{cursor:pointer;}
- #TrackLine4{border-bottom-right-radius: 20px; border-top-right-radius: 20px;}
- .NextButton{background-color:#DF392E;height:60px;width:150px;border:0;color:white;border-radius:3px;font-size:15px;position:absolute;bottom:0;right:0;margin-right:20px;margin-bottom:20px;}
- .NextButton:hover{background-color:#BD271D}
- .TrackButton{background-color:#DF392E;height:40px;width:150px;margin:0;border-radius:0%;color:white;border:0;box-sizing:border-box;text-align: center; vertical-align: middle;color: white;line-height:25px;padding:0;transition:.6s;margin-left:-5px;position:relative;z-index:2;}
- .TrackButton:hover{background-color:#BD271D;}
- #TrackButton1{}
- .infoButton{position:absolute;left:0;bottom:0;margin-left:50px;margin-bottom:10px;color:#DF392E;}
- .infoButton:hover{cursor:pointer;color:#BD271D;}
- /*AlertBox*/
- .alertBox{height:900px;width:1200px;opacity:0;z-index:0;position:absolute;background-color:rgba(150,150,150,0.4);transition:.1s;}
- .alertBoxFront{height:200px;width:350px;margin-left:425px;margin-top:350px;border:6px solid #28333e;border-radius:3px; box-shadow:0 5px 5px rgba(0,0,0,0.7)}
- .alertTop{height:60px;width:350px;text-align:center;background-color:#28333e;box-sizing:border-box;}
- .closealert{position:absolute;right:0;margin-right:435px;margin-top:10px;height:20px;width:20px; color:rgb(155,155,155);font-size:20px;text-shadow:0px 3px 5px rgba(0,0,0,0.4);}
- .closealert:hover{cursor:pointer;}
- .alertType{color:#DF392E;font-size:24px;padding-top:25px;text-align: center;text-shadow:0px 3px 5px rgba(0,0,0,0.4)}
- .alertBot{background-color:#2D3945;;height:140px;width:350px;}
- .falert{color:#778fa6;margin-left:15px;font-size:30px;position:absolute;margin-top:35px;}
- .alertText{padding-top:25px;width:250px;height:100px;margin-left:90px;line-height:25px;color:#778fa6;}
- Hauptseite Javascript:
- var v = 3; //Versions Nummer
- var Pflicht = "Pflichtfachbox";
- var Pflichtwahl = "Pflichtwahlfachbox";
- var Wahl = "Wahlfachbox";
- var totalHoursview = 0;
- var totalHours = new Array();
- var minTotalHours = 36;
- var Hours = false;
- var alertBox;
- var Pflichtfaecher = new Array("ReligionKa","ReligionEv","Ethik","Physik5","Chemie5","Schwimmen","Gymnastik","Geraeteturnen","LeichtathletikVolley","LeichtathletikFuss","LeichtathletikBasket");
- $(document).ready(function(){
- window.formular.Onload.Fillselect("ClassSelect3");
- });
- window.formular = {
- Onload: {
- ReligionsLehrer:{
- 1 : {Name: "Frau Eckstein", Fach:"Religion Katholisch"},
- 2 : {Name: "Herr Vollmer", Fach:"Religion Katholisch"},
- 3 : {Name: "Herr Derlin", Fach:"Religion Evangelisch" },
- 4 : {Name: "Herr Dr.Strasser", Fach:"Ethik"},
- 5 : {Name: "Frau Vogel", Fach:"Ethik"},
- 6 : {Name: "Herr Weiss", Fach:"Religion Evangelisch"},
- 7 : {Name: "Herr Weißinger", Fach:"Religion Evangelisch"},
- 8 : {Name: "Frau Üstünel", Fach:"Ethik"},
- 9 : {Name: "Herr Härringer", Fach:"Religion Katholisch"},
- },
- Fillselect : function(selectinput){
- var Lehrerselectinput = document.getElementById(selectinput);
- var Lehrerselect = window.formular.Onload.ReligionsLehrer;
- var length = Object.keys(Lehrerselect).length;
- document.getElementById("ClassSelect3").innerHTML = "";
- for(var i = 1; i <= length; i++){
- if(Lehrerselect[i].Fach == document.getElementById('ClassSelect2').selectedOptions[0].text){
- var option = document.createElement("option");
- option.text = Lehrerselect[i].Name;
- option.value = option.text;
- Lehrerselectinput.add(option);
- }
- }
- },
- Excludecheckbox: function(){
- for(var i = 2; i < 4; i++){
- document.getElementsByName("Kunst")[i].disabled = true;
- document.getElementsByName("Seminarkurs")[i].disabled = true;
- document.getElementsByName("Literatur")[i].disabled = true;
- document.getElementsByName("Physik2")[i].disabled = true;
- document.getElementsByName("Biologie2")[i].disabled = true;
- document.getElementsByName("Chemie2")[i].disabled = true;
- document.getElementsByName("ComputerTechnik")[i].disabled = true;
- }
- },
- },
- subjects: {
- /*Pflichtfächer*/
- Deutsch: { hours: 4, display: 'Deutsch', key: 'Deutsch', duty: Pflicht },
- Englisch: { hours: 4, display: 'Englisch', key: 'Englisch', duty: Pflicht },
- Mathematik: { hours: 4, display: 'Mathematik', key: 'Mathematik', duty: Pflicht },
- GGK: { hours: 2, display: 'GGK', key: 'GGK', duty: Pflicht },
- Projektmanagement: { hours: 2, display: 'Projektmanagement', key: 'Projektmanagement', duty: Pflicht },
- Mechatronik: { hours: 6, display: 'Mechatronik', key: 'Mechatronik', duty: Pflicht },
- TuM: { hours: 6, display: 'Technik und Management', key: 'TuM', duty: Pflicht },
- GmT: { hours: 6, display: 'Gestaltungs und Medientechnik', key: 'GmT', duty: Pflicht },
- IT: { hours: 6, display: 'Informationstechnik', key: 'IT', duty: Pflicht },
- Wirtschaftslehre: { hours: 2, display: 'Wirtschaftslehre', key: 'Wirtschaftslehre', duty: Pflicht },
- /*Pflichtwahlfächer*/
- FranzoesischA: { hours: 4, display: 'Französisch Niv.A', key: 'FranzoesischA', duty: Pflicht, ruleMask: 1 | 4, toExclude:['FranzoesischB'] ,toWatchOut:['SpanischB']},
- FranzoesischB: { hours: 4, display: 'Französisch Niv.B', key: 'FranzoesischB', duty: Pflicht, ruleMask: 1 | 4, toExclude:['FranzoesischA', 'SpanischB']},
- SpanischB: { hours: 4, display: 'Spanisch Niv.B', key: 'SpanischB', duty: Pflicht, ruleMask: 1 | 4, toExclude:['FranzoesischB'] , toWatchOut:['FranzoesischA']},
- Physik5: { hours: 5, display: 'Physik (5 stündig)', key: 'Physik5', duty: Pflichtwahl, ruleMask: 1 | 4, toExclude:['Chemie5','Physik2'], toWatchOut:['Chemie2'] },
- Chemie5: { hours: 5, display: 'Chemie (5 stündig)', key: 'Chemie5', duty: Pflichtwahl, ruleMask: 1 | 4, toExclude:['Physik5','Chemie2'], toWatchOut:['Physik2']},
- ReligionKa: { hours: 2, display: 'Religion Katholisch', key: 'ReligionKa', duty: Pflichtwahl, ruleMask: 1 | 4, toExclude:['Ethik','ReligionEv']},
- ReligionEv: { hours: 2, display: 'Religion Evangelisch', key: 'ReligionEv', duty: Pflichtwahl, ruleMask: 1 | 4, toExclude:['Ethik','ReligionKa']},
- Ethik: { hours: 2, display: 'Ethik', key: 'Ethik', duty: Pflichtwahl, ruleMask: 1 | 4, toExclude:['ReligionKa','ReligionEv'] },
- /*Sportfächer*/
- Gymnastik: { hours: 2, display: 'Gymnastik', key: 'Gymnastik', duty: Pflichtwahl, ruleMask: 1 | 4, toExclude:['Schwimmen','Geraeteturnen','LeichtathletikVolley','LeichtathletikFuss','LeichtathletikBasket']},
- Schwimmen: { hours: 2, display: 'Schwimmen', key: 'Schwimmen', duty: Pflichtwahl, ruleMask: 1 | 4, toExclude:['Gymnastik','Geraeteturnen','LeichtathletikVolley','LeichtathletikFuss','LeichtathletikBasket']},
- Geraeteturnen: { hours: 2, display: 'Geräteturnen', key: 'Geraeteturnen', duty: Pflichtwahl, ruleMask: 1 | 4, toExclude:['Schwimmen','Gymnastik','LeichtathletikVolley','LeichtathletikFuss','LeichtathletikBasket']},
- LeichtathletikVolley: { hours: 2, display: 'Leichtathletik (+VolleyBall)', key: 'LeichtathletikVolley', duty: Pflichtwahl, ruleMask: 1 | 4, toExclude:['Schwimmen','Geraeteturnen','Gymnastik','LeichtathletikFuss','LeichtathletikBasket']},
- LeichtathletikFuss: { hours: 2, display: 'Leichtathletik (+Fußball)', key: 'LeichtathletikFuss', duty: Pflichtwahl, ruleMask: 1 | 4, toExclude:['Schwimmen','Geraeteturnen','LeichtathletikVolley','Gymnastik','LeichtathletikBasket']},
- LeichtathletikBasket: { hours: 2, display: 'Leichtathletik (+Basketball)', key: 'LeichtathletikBasket', duty: Pflichtwahl, ruleMask: 1 | 4, toExclude:['Schwimmen','Geraeteturnen','LeichtathletikVolley','Gymnastik','LeichtathletikFuss']},
- Attest: { hours: 2, display: 'Attest', key: 'Attest', duty: Pflichtwahl},
- /*Wahlfächer*/
- Physik2: { hours: 2, display: 'Physik (2 stündig)', key: 'Physik2', duty: Wahl, ruleMask: 2 | 4 | 8, toExclude:['Chemie2', 'Physik5'] , toWatchOut:['Chemie5']},
- Chemie2: { hours: 2, display: 'Chemie (2 stündig)', key: 'Chemie2', duty: Wahl, ruleMask: 2 | 4 | 8, toExclude:['Chemie5', 'Physik2'] , toWatchOut:['Physik5']},
- Biologie2: { hours: 2, display: 'Biologie (2 stündig)', key: 'Biologie2', duty: Wahl, ruleMask: 2 | 8},
- Kunst: { hours: 2, display: 'Kunst', key: 'Kunst', duty: Wahl, ruleMask: 2},
- Seminarkurs: { hours: 2, display: 'Seminarkurs', key: 'Seminarkurs', duty: Wahl, ruleMask: 2},
- Literatur: { hours: 2, display: 'Literatur', key: 'Literatur', duty: Wahl, ruleMask: 2},
- ComputerTechnik: { hours: 2, display: 'Computertechnik', key: 'ComputerTechnik', duty: Wahl, ruleMask: 2 | 8},
- /*Fachseperater*/
- LanguageSeperater: {display:'Sprache',duty:Pflicht,seperate:1},
- ReligionSeperater: {display:'Religion',duty:Pflichtwahl,seperate:1},
- NaturSeperater: {display:'Naturwissenschaft',duty:Pflichtwahl,seperate:1},
- NaturwahlSeperater: {display:'Naturwissenschaft',duty:Wahl,seperate:1},
- SportSeperater: {display:'Sport',duty:Pflichtwahl,seperate:1},
- StandardSeperater: {display:'Standard',duty:Pflicht,seperate:1},
- FachSeperater: {display:'Fachspezifisch',duty:Pflicht,seperate:1},
- SonstigesSeperater: {display:'Sonstiges',duty:Wahl,seperate:1},
- /*Totalhoursrows*/
- TotalhoursPflicht : {display:'Kurse Gewählt/Minimal',duty:Pflicht,seperate:2},
- TotalhoursPflichtwahl : {display:'Kurse Gewählt/Minimal',duty:Pflichtwahl,seperate:2},
- TotalhoursWahl : {display:'Kurse Gewählt/Minimal',duty:Wahl,seperate:2},
- },
- buttons: {
- onSave: function (site) {
- switch (site) {
- case 1:
- window.formular.service.setupClass();
- window.formular.service.setupLanguage();
- window.formular.service.getTotalHours("Pflichtfachbox");
- window.formular.Onload.Excludecheckbox();
- break;
- case 2:
- window.formular.navigation.nextSite(site);
- break;
- case 3:
- window.formular.service.Pflichtwahl();
- break;
- case 4:
- if(totalHoursview >= minTotalHours){
- window.formular.navigation.nextSite(site);
- window.formular.communication.sendFormularData();
- window.formular.factory.createSubjectRowClone();
- }
- break;
- case 5:
- var toSend = window.formular.communication.createBasicRequest();
- toSend.Passkey = document.getElementById("Passwort").value;
- $.post("authorize.php", toSend, function (data){
- if(data == "updaten"){
- window.open("http://www.wms-hn.de/kurswahl/studentTable.php?Nachname=" + toSend.Nachname + "&Vorname=" + toSend.Vorname + "&Klasse="+ toSend.Klasse+ "&GebDatum=" + toSend.GebDatum+ "&Religion=" + toSend.Religion + "&ReligionsLehrer="+ toSend.ReligionLehrer + "&Passkey=" + toSend.Passkey,'_blank');
- }
- });
- break;
- default:
- break;
- }
- },
- },
- navigation: {
- next: 1,
- nextSite: function (site) {
- if (this.next <= site) {
- this.next = site + 1;
- }
- var thisSite = site;
- var nextSite = thisSite + 1;
- document.getElementById("Formularsite" + nextSite).style.zIndex = 5;
- document.getElementById("TrackButton" + nextSite).style.backgroundColor = "#BD271D";
- document.getElementById("TrackButton" + nextSite).style.color = "#ffffff";
- document.getElementById("TrackButton" + nextSite).style.textShadow = "0 2px 6px rgba(0,0,0,0.7)";
- var SitePuffer = 1;
- while (SitePuffer < 6) {
- if (SitePuffer != nextSite) {
- document.getElementById("Formularsite" + SitePuffer).style.zIndex = 1;
- document.getElementById("TrackButton" + SitePuffer).style.backgroundColor = "#DF392E";
- document.getElementById("TrackButton" + SitePuffer).style.color = "#e0e0e0";
- document.getElementById("TrackButton" + SitePuffer).style.textShadow = "0 0 0 rgba(0,0,0,0.7)";
- }
- SitePuffer += 1;
- }
- },
- nextSiteTrack: function (SiteTrack) {
- if(window.formular.service.twoLanguages.bool)
- {
- if (SiteTrack <= this.next) {
- var thisSite = SiteTrack;
- document.getElementById("Formularsite" + thisSite).style.zIndex = 4;
- document.getElementById("TrackButton" + thisSite).style.backgroundColor = "#BD271D";
- document.getElementById("TrackButton" + thisSite).style.color = "#ffffff";
- document.getElementById("TrackButton" + thisSite).style.textShadow = "0 2px 6px rgba(0,0,0,0.7)";
- var thisSiteTrack = 1;
- while (thisSiteTrack < 6) {
- if (thisSiteTrack != thisSite) {
- document.getElementById("Formularsite" + thisSiteTrack).style.zIndex = 1;
- document.getElementById("TrackButton" + thisSiteTrack).style.backgroundColor = "#DF392E";
- document.getElementById("TrackButton" + thisSiteTrack).style.color = "#e0e0e0";
- document.getElementById("TrackButton" + thisSiteTrack).style.textShadow = "0 0 0 rgba(0,0,0,0.7)";
- }
- thisSiteTrack += 1;
- }
- }
- }
- }
- },
- factory: {
- createSubjectRowClone: function(){
- var tabletocopyto = document.getElementById("Tablecopy");
- var tablelength = tabletocopyto.rows.length;
- for(var j = 0;j < tablelength; j++){
- tabletocopyto.deleteRow(0);
- }
- var Tables = window.formular.service.tables;
- var thisTable;
- var thisRow
- var node;
- for(var n = 1;n < 4;n++){
- thisTable = document.getElementById(Tables[n].Art);
- for(var i = 1; i < thisTable.rows.length-1; i++){
- node = thisTable.rows[i].cloneNode(true);
- tabletocopyto.appendChild(node);
- }
- }
- var subjects = window.formular.subjects;
- Object.keys(subjects).map(function (key) {
- var inputFields = document.getElementsByName(subjects[key].key);
- for(var i = 4; i < 8; i++){
- if(inputFields.length > 0)
- {
- inputFields[i].disabled = true;
- }
- }
- });
- },
- createSubjectRow: function (subject, isChecked) {
- var tableId = subject.duty;
- var tableElement = document.getElementById(tableId);
- var row = tableElement.insertRow(tableElement.rows.length);
- var cells = [row.insertCell(0)];
- for (var i = 1; i < 6; i++) {
- cells[i] = row.insertCell(i);
- cells[i].style.textAlign = "center";
- tableElement.rows[0].cells[i].style.textAlign = "center";
- }
- cells[0].innerHTML = subject.display;
- cells[1].innerHTML = subject.seperate ? '' : subject.hours;
- for (var i = 2; i < 6; i++) {
- row.className = "TableRow";
- if(subject.seperate >= 1){
- cells[i].innerHTML = '';
- if(subject.seperate == 1){
- row.style.backgroundColor = "#405263";
- }
- else{
- row.style.backgroundColor = "#2D3945";
- }
- row.style.color = "white";
- }
- else{
- cells[i].innerHTML = "<input class='chechBox' type='checkbox' name='" + subject.key
- + "' value='" + subject.hours
- + "' onchange='window.formular.service.check(\"" + subject.key + "\",this);window.formular.service.getTotalHours(\"" + tableId + "\")'"
- + ((isChecked || subject.duty == Pflicht) ? ' disabled checked>' : '>');
- }
- }
- },
- },
- service: {
- Pflichtwahl : function(){
- var FachArt = 0;
- for(i = 0; i < Pflichtfaecher.length;i++)
- {
- var Checkboxes = document.getElementsByName(Pflichtfaecher[i]);
- if(Checkboxes[0].checked)
- {
- FachArt += 1;
- }
- }
- if(FachArt == 3)
- {
- window.formular.navigation.nextSite(3);
- }
- else
- {
- window.formular.service.alertError("profile");
- }
- },
- alertInfo : function(Cases){
- alertBox = document.getElementById("Alertbox");
- document.getElementById("alertType").innerHTML= "Information";
- document.getElementById("alertType").style.color="#28333e";
- document.getElementById("closealert").style.color="#28333e";
- document.getElementById("alertTypeIcon").className="fa fa-info-circle falert fa-4x";
- document.getElementById("alertTypeIcon").style.color="#28333e";
- document.getElementById("alertTop").style.backgroundColor="#e7bd00";
- document.getElementById("alertBoxFront").style.border ="6px solid #e7bd00";
- document.getElementById("alertBot").style.backgroundColor="#dddd55";
- document.getElementById("alertText").style.color="#28333e";
- alertBox.style.zIndex = "10";
- alertBox.style.opacity = "1";
- switch(Cases){
- case 2:
- {
- document.getElementById("alertText").innerHTML = "Auf dieser Seite sehen Sie welche Fächer Ihnen automatisch durch Ihre Klassenzugehörigkeit zugewiesen sind.";
- break;
- }
- case 3:
- {
- document.getElementById("alertText").innerHTML = "Auf dieser Seite müssen sie aus allen 3 Pflichtkategorien mindestens einen Kurs gewählt haben.";
- break;
- }
- case 4:
- {
- document.getElementById("alertText").innerHTML = "Auf dieser Seite dürfen Sie weitere Kurse nach Bedarf wählen.";
- break;
- }
- case 5:
- {
- document.getElementById("alertText").innerHTML = "Auf dieser Seite sehen sie Ihre gesamte Wahl und können das entsprechende Exceldokument downloaden.";
- break;
- }
- case "Update":{
- document.getElementById("alertText").innerHTML = "Sie sind dabei Ihre Daten nochmals neu einzutragen.";
- break;
- }
- default: break;
- }
- },
- alertError : function(Cases){
- alertBox = document.getElementById("Alertbox");
- document.getElementById("alertType").innerHTML= "Warnung";
- document.getElementById("alertType").style.color="#DF392E";
- document.getElementById("closealert").style.color="rgb(155,155,155)";
- document.getElementById("alertTypeIcon").className="fa fa-exclamation-triangle falert fa-4x";
- document.getElementById("alertTypeIcon").style.color="#778fa6";
- document.getElementById("alertTop").style.backgroundColor="#28333e";
- document.getElementById("alertBoxFront").style.border ="6px solid #28333e";
- document.getElementById("alertBot").style.backgroundColor="#2D3945";
- document.getElementById("alertText").style.color="#778fa6";
- alertBox.style.zIndex = "10";
- alertBox.style.opacity = "1";
- switch(Cases){
- case "Language":
- {
- document.getElementById("alertText").innerHTML = "Französisch A und Französisch B können nicht gleichzeitig gewählt werden.";
- break;
- }
- case "nomberofhours":
- {
- document.getElementById("alertText").innerHTML = "Die Mindestanzahl an Kursen wurde nicht erreicht.";
- document.getElementById("alertType").innerHTML= "Warnung";
- document.getElementById("alertTypeIcon").className="fa fa-exclamation-triangle falert fa-4x";
- break;
- }
- case "profile":
- {
- document.getElementById("alertText").innerHTML = "Aus jeder Kategorie muss mindestens ein Fach gewählt werden.";
- document.getElementById("alertType").innerHTML= "Warnung";
- document.getElementById("alertTypeIcon").className="fa fa-exclamation-triangle falert fa-4x";
- break;
- }
- case "Login":
- {
- document.getElementById("alertText").innerHTML = "Ihre Anmeldedaten sind inkorrekt. Versuchen Sie es bitte noch einmal.";
- document.getElementById("alertType").innerHTML= "Warnung";
- document.getElementById("alertTypeIcon").className="fa fa-exclamation-triangle falert fa-4x";
- break;
- }
- default: break;
- }
- },
- closealertError : function(){
- alertBox = document.getElementById("Alertbox");
- alertBox.style.zIndex = "0";
- alertBox.style.opacity = "0";
- },
- forcheck: function(Name,checked){
- for(var i = 0; i<4; i++){
- document.getElementsByName(Name)[i].checked = checked;
- }
- },
- twoLanguages : {bool : true},
- setupLanguage : function(){
- var Language1 = document.getElementById("ClassSelect4").value;
- var Language2 = document.getElementById("ClassSelect5").value;
- if(Language1 == 2 && Language2 == 2)
- {
- window.formular.service.twoLanguages.bool = false;
- window.formular.service.alertError("Language");
- }
- else
- {
- window.formular.service.twoLanguages.bool = true;
- if(Language1 == 1){
- window.formular.service.forcheck("SpanischB",false);
- window.formular.service.forcheck("FranzoesischB",false);
- window.formular.service.forcheck("FranzoesischA",false);
- }
- if(Language1 == 2)
- {
- window.formular.service.forcheck("SpanischB",false);
- window.formular.service.forcheck("FranzoesischB",true);
- }
- if(Language1 == 3)
- {
- window.formular.service.forcheck("SpanischB",true);
- window.formular.service.forcheck("FranzoesischB",false);
- }
- if(Language2 == 1)
- {
- window.formular.service.forcheck("FranzoesischA",false);
- }
- else
- {
- window.formular.service.forcheck("FranzoesischA",true);
- }
- }
- },
- tables:{
- 1:{Art:Pflicht},
- 2:{Art:Pflichtwahl},
- 3:{Art:Wahl},
- },
- getTotalHours: function(tableId) {
- totalHoursview = 0;
- var subjects = window.formular.subjects;
- Object.keys(subjects).map(function (key) {
- var inputFields = document.getElementsByName(subjects[key].key);
- for(var i = 0; i < 4; i++){
- if(inputFields.length > 0 && inputFields[i].checked)
- {
- totalHoursview += 1;
- }
- }
- var Tables = window.formular.service.tables;
- var thisTable;
- var Totalhoursposition;
- for(var i = 1;i < 4;i++){
- thisTable = document.getElementById(Tables[i].Art);
- Totalhoursposition = thisTable.rows.length;
- thisTable.rows[Totalhoursposition-1].cells[5].innerHTML = String(totalHoursview) + "/" + String(minTotalHours);
- }
- });
- },
- check: function (subjectkey,checkbox) {
- var currentSubject = window.formular.subjects[subjectkey];
- var checkboxes = document.getElementsByName(currentSubject.key);
- /* Rule1, Alle 4 auf einmal Toggle */
- if(currentSubject.ruleMask & 1){
- window.formular.service.forcheck(currentSubject.key,checkbox.checked);
- }
- /* Rule2, Zwei halbjahre gleichzeitig toggeln*/
- if(currentSubject.ruleMask & 2){
- for(i = 0; i<4; i++)
- {
- if(checkboxes[i] == checkbox)
- {
- var k = i%2;
- if(k == 0)
- {
- k = i + 1;
- checkboxes[k].checked = checkboxes[i].checked;
- }
- else
- {
- k = i - 1;
- checkboxes[k].checked = checkboxes[i].checked;
- }
- }
- }
- }
- /* Rule3, Andere Fächer disablen */
- if(currentSubject.ruleMask & 4){
- var watchout = true;
- var watchboxes;
- var excludeboxes;
- var toggle;
- for(var i = 0; i < currentSubject.toExclude.length; ++i)
- {
- toggle = false;
- excludeboxes = document.getElementsByName(currentSubject.toExclude[i]);
- for(var g = 0; g < 4; g++)
- {
- if(checkboxes[g].checked)
- {
- toggle = true;
- }
- }
- if(!toggle){
- if(currentSubject.toWatchOut != null){
- for(var n = 0; n < currentSubject.toWatchOut.length; ++n){
- watchboxes = document.getElementsByName(currentSubject.toWatchOut[n]);
- for(var l = 0; l < watchboxes.length; ++l){
- if(watchboxes[l].checked)
- {
- watchout = false;
- }
- }
- }
- }
- if(watchout){
- for(var p = 0; p < excludeboxes.length; ++p)
- {
- excludeboxes[p].disabled = false;
- //New -----------------------------------------------------------------------------------------
- if(p == 1 && (excludeboxes[1].name == "Physik2" || excludeboxes[1].name == "Chemie2"))
- {
- p = excludeboxes.length;
- }
- //New -----------------------------------------------------------------------------------------
- }
- }
- }
- else
- {
- for(var m = 0; m < excludeboxes.length; ++m)
- {
- excludeboxes[m].checked = false;
- excludeboxes[m].disabled = true;
- }
- }
- }
- }
- //New ------------------------------------------------------------------
- if(currentSubject.ruleMask & 8){
- var checkboxes = document.getElementsByName(currentSubject.key);
- if(checkboxes[1].checked)
- {
- checkboxes[2].disabled = false;
- checkboxes[3].disabled = false;
- }
- else
- {
- checkboxes[2].checked = false;
- checkboxes[3].checked = false;
- checkboxes[2].disabled = true;
- checkboxes[3].disabled = true;
- }
- }
- //New ------------------------------------------------------------------
- },
- isClassSetuped: false,
- setupClass: function () {
- if (this.isClassSetuped)
- return;
- this.isClassSetuped = true;
- var toInsert = [];
- var subjects = window.formular.subjects;
- var classVal = document.getElementById("ClassSelect1").value;
- switch (classVal) {
- case "1":
- toInsert = [
- subjects.StandardSeperater,
- subjects.Deutsch,
- subjects.Englisch,
- subjects.Mathematik,
- subjects.GGK,
- subjects.LanguageSeperater,
- subjects.FranzoesischA,
- subjects.FranzoesischB,
- subjects.SpanischB,
- subjects.FachSeperater,
- subjects.Wirtschaftslehre,
- subjects.Mechatronik,
- subjects.TotalhoursPflicht,
- subjects.ReligionSeperater,
- subjects.ReligionKa,
- subjects.ReligionEv,
- subjects.Ethik,
- subjects.NaturSeperater,
- subjects.Physik5,
- subjects.Chemie5,
- subjects.SportSeperater,
- subjects.Gymnastik,
- subjects.Schwimmen,
- subjects.Geraeteturnen,
- subjects.LeichtathletikVolley,
- subjects.LeichtathletikFuss,
- subjects.LeichtathletikBasket,
- subjects.Attest,
- subjects.TotalhoursPflichtwahl,
- subjects.NaturwahlSeperater,
- subjects.Physik2,
- subjects.Chemie2,
- subjects.Biologie2,
- subjects.SonstigesSeperater,
- subjects.Kunst,
- subjects.Seminarkurs,
- subjects.Literatur,
- subjects.ComputerTechnik,
- subjects.TotalhoursWahl,
- ];
- break;
- case "2":
- toInsert = [
- subjects.StandardSeperater,
- subjects.Deutsch,
- subjects.Englisch,
- subjects.Mathematik,
- subjects.GGK,
- subjects.LanguageSeperater,
- subjects.FranzoesischA,
- subjects.FranzoesischB,
- subjects.SpanischB,
- subjects.FachSeperater,
- subjects.Wirtschaftslehre,
- subjects.Mechatronik,
- subjects.TotalhoursPflicht,
- subjects.ReligionSeperater,
- subjects.ReligionKa,
- subjects.ReligionEv,
- subjects.Ethik,
- subjects.NaturSeperater,
- subjects.Physik5,
- subjects.Chemie5,
- subjects.SportSeperater,
- subjects.Gymnastik,
- subjects.Schwimmen,
- subjects.Geraeteturnen,
- subjects.LeichtathletikVolley,
- subjects.LeichtathletikFuss,
- subjects.LeichtathletikBasket,
- subjects.Attest,
- subjects.TotalhoursPflichtwahl,
- subjects.NaturwahlSeperater,
- subjects.Physik2,
- subjects.Chemie2,
- subjects.Biologie2,
- subjects.SonstigesSeperater,
- subjects.Kunst,
- subjects.Seminarkurs,
- subjects.Literatur,
- subjects.ComputerTechnik,
- subjects.TotalhoursWahl,
- ];
- break;
- case "3":
- toInsert = [
- subjects.StandardSeperater,
- subjects.Deutsch,
- subjects.Englisch,
- subjects.Mathematik,
- subjects.GGK,
- subjects.LanguageSeperater,
- subjects.FranzoesischA,
- subjects.FranzoesischB,
- subjects.SpanischB,
- subjects.FachSeperater,
- subjects.TuM,
- subjects.Projektmanagement,
- subjects.TotalhoursPflicht,
- subjects.ReligionSeperater,
- subjects.ReligionKa,
- subjects.ReligionEv,
- subjects.Ethik,
- subjects.NaturSeperater,
- subjects.Physik5,
- subjects.Chemie5,
- subjects.SportSeperater,
- subjects.Gymnastik,
- subjects.Schwimmen,
- subjects.Geraeteturnen,
- subjects.LeichtathletikVolley,
- subjects.LeichtathletikFuss,
- subjects.LeichtathletikBasket,
- subjects.Attest,
- subjects.TotalhoursPflichtwahl,
- subjects.NaturwahlSeperater,
- subjects.Physik2,
- subjects.Chemie2,
- subjects.Biologie2,
- subjects.SonstigesSeperater,
- subjects.Kunst,
- subjects.Seminarkurs,
- subjects.Literatur,
- subjects.ComputerTechnik,
- subjects.TotalhoursWahl,
- ];
- break;
- case "4":
- subjects.ComputerTechnik.duty = Pflicht;
- toInsert = [
- subjects.StandardSeperater,
- subjects.Deutsch,
- subjects.Englisch,
- subjects.Mathematik,
- subjects.GGK,
- subjects.LanguageSeperater,
- subjects.FranzoesischA,
- subjects.FranzoesischB,
- subjects.SpanischB,
- subjects.FachSeperater,
- subjects.GmT,
- subjects.Wirtschaftslehre,
- subjects.ComputerTechnik,
- subjects.TotalhoursPflicht,
- subjects.ReligionSeperater,
- subjects.ReligionKa,
- subjects.ReligionEv,
- subjects.Ethik,
- subjects.NaturSeperater,
- subjects.Physik5,
- subjects.Chemie5,
- subjects.SportSeperater,
- subjects.Gymnastik,
- subjects.Schwimmen,
- subjects.Geraeteturnen,
- subjects.LeichtathletikVolley,
- subjects.LeichtathletikFuss,
- subjects.LeichtathletikBasket,
- subjects.Attest,
- subjects.TotalhoursPflichtwahl,
- subjects.NaturwahlSeperater,
- subjects.Physik2,
- subjects.Chemie2,
- subjects.Biologie2,
- subjects.SonstigesSeperater,
- subjects.Kunst,
- subjects.Seminarkurs,
- subjects.Literatur,
- subjects.TotalhoursWahl,
- ];
- break;
- case "5":
- subjects.ComputerTechnik.duty = Pflicht;
- toInsert = [
- subjects.StandardSeperater,
- subjects.Deutsch,
- subjects.Englisch,
- subjects.Mathematik,
- subjects.GGK,
- subjects.LanguageSeperater,
- subjects.FranzoesischA,
- subjects.FranzoesischB,
- subjects.SpanischB,
- subjects.FachSeperater,
- subjects.IT,
- subjects.Wirtschaftslehre,
- subjects.ComputerTechnik,
- subjects.TotalhoursPflicht,
- subjects.ReligionSeperater,
- subjects.ReligionKa,
- subjects.ReligionEv,
- subjects.Ethik,
- subjects.NaturSeperater,
- subjects.Physik5,
- subjects.Chemie5,
- subjects.SportSeperater,
- subjects.Gymnastik,
- subjects.Schwimmen,
- subjects.Geraeteturnen,
- subjects.LeichtathletikVolley,
- subjects.LeichtathletikFuss,
- subjects.LeichtathletikBasket,
- subjects.Attest,
- subjects.TotalhoursPflichtwahl,
- subjects.NaturwahlSeperater,
- subjects.Physik2,
- subjects.Chemie2,
- subjects.Biologie2,
- subjects.SonstigesSeperater,
- subjects.Kunst,
- subjects.Seminarkurs,
- subjects.Literatur,
- subjects.TotalhoursWahl,
- ];
- break;
- default:
- break;
- }
- for (var i = 0; i < toInsert.length; ++i) {
- window.formular.factory.createSubjectRow(toInsert[i]);
- }
- for(var i=1; i<4;i++){document.getElementsByName("Attest")[i].disabled = true;}
- },
- },
- communication: {
- createBasicRequest: function () {
- var year = document.getElementsByClassName("date")[2].value;
- var month = document.getElementsByClassName("date")[1].value;
- var day = document.getElementsByClassName("date")[0].value;
- if(month < 10 && month.length < 2){
- month = "0"+month;
- }
- if(day < 10 && day.length < 2){
- day = "0"+day;
- }
- var lastname = document.getElementById("Nachname").value;
- var firstname = document.getElementById("Vorname").value;
- var classVal = document.getElementById("ClassSelect1").value;
- var birthdate = year
- + "-" + month
- + "-" + day;
- var religion = document.getElementById("ClassSelect2").value;
- var religionLehrer = document.getElementById("ClassSelect3").value;
- return {
- Nachname: String(lastname),
- Vorname: String(firstname),
- Klasse: String(classVal),
- GebDatum: String(birthdate),
- Religion: String(religion),
- ReligionLehrer : String(religionLehrer),
- };
- },
- authorizeReturnValue :0,
- authorizeUser: function () {
- var password = document.getElementById("Passwort").value;
- var toSend = this.createBasicRequest();
- toSend.Passkey = String(password);
- $.post("authorize.php", toSend, function (data) {
- if(data == "nichtgewaehlt" && window.formular.service.twoLanguages.bool){
- window.formular.buttons.onSave(1);
- window.formular.navigation.nextSite(1);
- }
- if(data == "falscherlogin"){
- window.formular.service.alertError("Login");
- }
- if(data == "updaten" && window.formular.service.twoLanguages.bool){
- window.formular.buttons.onSave(1);
- window.formular.navigation.nextSite(1);
- window.formular.service.alertInfo("Update");
- }
- });
- toSend.Authoback = window.formular.communication.authorizeReturnValue;
- }, sendFormularData: function () {
- var toSend = this.createBasicRequest();
- toSend.Passkey = document.getElementById("Passwort").value;
- var subjects = window.formular.subjects;
- Object.keys(subjects).map(function (key) {
- if(!subjects[key].key)
- return;
- var inputFields = document.getElementsByName(subjects[key].key);
- var bf = 1;
- var val = 0;
- for (var i = 0; i < inputFields.length; ++i) {
- if(i <= 3)
- {
- if (inputFields[i].checked){
- val += bf;
- }
- bf *= 2;
- }
- }
- toSend[subjects[key].key] = val;
- });
- $.post("insertchoice.php", toSend, function (data) {
- });
- }
- }
- };
- Adminseite HTML:
- <html>
- <head>
- <link href="../css/lato.css" rel="stylesheet" type="text/css">
- <link href="../css/Admin.css" rel="stylesheet" type="text/css">
- <link href="../font-awesome-4.5.0/css/font-awesome.min.css" type="text/css" rel="stylesheet">
- <script src="../lib/jquery-2.2.0.min.js"></script>
- <script src="../js/Admin.js"></script>
- <meta charset="utf-8">
- </head>
- <body onload="window.formular.Onload.Fillselect('ClassSelect3');">
- <div class = "Sitebody">
- <div class="Formularbox">
- <div class="alertBox" id="Alertbox">
- <div class="alertBoxFront" id="alertBoxFront">
- <div class="alertTop" id="alertTop">
- <div class="closealert" id="closealert" onclick="window.formular.service.closealertError()"><i class="fa fa-times-circle" ></i></div>
- <div class="alertType" id="alertType"></div>
- </div>
- <div class="alertBot" id="alertBot">
- <i class="" id="alertTypeIcon"></i>
- <div class="alertText" id="alertText"></div>
- </div>
- </div>
- </div>
- <div class="Formularsite" id="Formularsite1">
- <select id="SelectClass">
- <option value="0">Alle Klassen</option>
- <option value="1">TGM 11/1</option>
- <option value="2">TGM 11/2</option>
- <option value="3">TGTM 11/3</option>
- <option value="4">TGG 11/4</option>
- <option value="5">TGI 11/5</option>
- </select>
- <button onclick="DownloadTable();">Übersicht</button>
- <button onclick="DownloadMissingPupil();">Fehlende Schüler</button>
- <input type="Password" id="Password" placeholder="Passwort">
- </div>
- </div>
- </div>
- </body>
- </html>
- Adminseite CSS:
- html{font-family: 'Lato', sans-serif !important}
- /* HTML5 display-role reset for older browsers */
- article, aside, details, figcaption, figure,
- footer, header, hgroup, menu, nav, section {display: block;}
- body {line-height: 1;padding:0;margin:0;width:100%;height:100%;background-image:url(../background.jpg);display:table;}
- .Formularbox{}
- ol, ul {list-style: none;}
- blockquote, q {quotes: none;}
- blockquote:before, blockquote:after,q:before, q:after {content: '';content: none;}
- table {border-collapse: collapse;border-spacing: 0;}
- input:focus{box-shadow:0 0 5px #BD271D;outline: none !important;border:1px solid #BD271D;}
- /*Sitemarkup*/
- .Siteheader{width:1200px;height:10px;margin-bottom:40px; margin-left: auto;margin-right: auto;background-color:#2D3945;}
- /* Formular */
- .Formularbox{background-color:transparent; width:400px;height:100px;position:relative;padding:0;bottom:0;margin-left: auto;margin-right: auto;margin-top:300px;border:solid 8px #2D3945;border-radius:5px;}
- .Formulartrack{background-color:#2D3945;width:1200px; height:80px;border-top: 8px solid #2D3945; position: absolute;bottom: 0;vertical-align: middle;line-height:80px;text-align: center;box-sizing: border-box;z-index:5;}
- #SelectClass{margin-top:40px;}
- #Password{margin-top:10px;}
- .Formularsite{background-color:#F8F8F8;width:400px;height:100px;position:absolute;text-align: center;border:none;padding:0;overflow: hidden;}
- .Formularsite input{display:block;margin-left: auto;margin-right: auto;}
- .Formularsite .date{display: inline-block;width:60px; height: 40px;text-align:center;padding: 0px;}
- .Formularsiteheader{width:100%;height:70px;background-color: #2D3945; position:relative;border-bottom: 8px solid #2D3945;line-height: 70px; text-align: center;}
- .Headertitle{font-size:40px;color:white;margin-left:270px;}
- .Schullogo{height:50px;width:50px;background-image:url(../images/photo.jpg);background-size: 50px 50px;float:right;margin-top:10px;}
- .Schulbanner{height:50px;width:205px;background-image:url(../images/logoalternativ.jpg);background-size:205px 50px;float:right;margin-top:10px;}
- .InputTag{font-size:15px;margin-top:15px;color:#8c8c8c;}
- .ForminputSite1 {background-color:white; border:1px solid black;height:50px;width:180px;text-align: center;border-radius:2px;font-size:20px;}
- .ForminputSite1:focus{border:1px solid #BD271D;box-shadow:0 0 5px #BD271D; outline: none !important;}
- #Formularsite1{z-index:5;}
- #Formularsite2{z-index:4;}
- #Formularsite3{z-index:3;}
- #Formularsite4{z-index:2;}
- #Formularsite5{z-index:1;overflow-y:scroll;}
- .checkBox{color:red;}
- #TagVorname{margin-top:50px;}
- .ClassSelect{width:180px;height:30px;font-size:15px;border:1px solid black;display: block;text-align: center; margin-right: auto;margin-left: auto;padding: 0px;}
- .Fachbox{ margin-left:200px; margin-top:30px;width:800px; min-height:20px;font-size:16px;}
- .Fachbox td{padding:8px;}
- .TableRow{background-color:#f8f8f8;}
- #tablefoot1{color:black;}
- #tablehead1{background-color:#2D3945;color:white;height:50px;font-size:18px;}
- #tablehead2{background-color:#2D3945;color:white;height:50px;font-size:18px;}
- table{border-collapse:collapse;border:5px solid #2D3945;}
- table tr{border-bottom:2px solid #2D3945}
- /* Buttons */
- button:active{padding:0;}
- button:hover{cursor:pointer;}
- #TrackLine4{border-bottom-right-radius: 20px; border-top-right-radius: 20px;}
- .NextButton{background-color:#DF392E;height:60px;width:150px;border:0;color:white;border-radius:3px;font-size:15px;position:absolute;bottom:0;right:0;margin-right:20px;margin-bottom:20px;}
- .NextButton:hover{background-color:#BD271D}
- .TrackButton{background-color:#DF392E;height:40px;width:150px;margin:0;border-radius:0%;color:white;border:0;box-sizing:border-box;text-align: center; vertical-align: middle;color: white;line-height:25px;padding:0;transition:.6s;margin-left:-5px;position:relative;z-index:2;}
- .TrackButton:hover{background-color:#BD271D;}
- #TrackButton1{}
- .infoButton{position:absolute;left:0;bottom:0;margin-left:50px;margin-bottom:10px;color:#DF392E;}
- .infoButton:hover{cursor:pointer;color:#BD271D;}
- /*AlertBox*/
- .alertBox{height:900px;width:1200px;opacity:0;z-index:0;position:absolute;background-color:rgba(150,150,150,0.4);transition:.1s;}
- .alertBoxFront{height:200px;width:350px;margin-left:425px;margin-top:350px;border:6px solid #28333e;border-radius:3px; box-shadow:0 5px 5px rgba(0,0,0,0.7)}
- .alertTop{height:60px;width:350px;text-align:center;background-color:#28333e;box-sizing:border-box;}
- .closealert{position:absolute;right:0;margin-right:435px;margin-top:10px;height:20px;width:20px; color:rgb(155,155,155);font-size:20px;text-shadow:0px 3px 5px rgba(0,0,0,0.4);}
- .closealert:hover{cursor:pointer;}
- .alertType{color:#DF392E;font-size:24px;padding-top:25px;text-align: center;text-shadow:0px 3px 5px rgba(0,0,0,0.4)}
- .alertBot{background-color:#2D3945;;height:140px;width:350px;}
- .falert{color:#778fa6;margin-left:15px;font-size:30px;position:absolute;margin-top:35px;}
- .alertText{padding-top:25px;width:250px;height:100px;margin-left:90px;line-height:25px;color:#778fa6;}
- Adminseite Javascript:
- function DownloadTable(){
- console.log("falsches Passwort");
- var passwort = document.getElementById("Password").value;
- if(passwort == "adminLenczak")
- {
- var Klasse = document.getElementById("SelectClass").value;
- window.open("http://www.wms-hn.de/kurswahl/AdminTables.php?Klassen=" + Klasse,'_blank');
- }
- }
- function DownloadMissingPupil()
- {
- var passwort = document.getElementById("Password").value;
- if(passwort == "adminLenczak")
- {
- window.open("http://www.wms-hn.de/kurswahl/getMissingStudents.php?Klassen=", 'blank');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement