commit 086d1e1e9eda020a9b9e101540991cd6aa8db649 Author: aschwarz Date: Tue Apr 25 13:25:59 2023 +0200 first commit diff --git a/#erm_freist_forschung.php b/#erm_freist_forschung.php new file mode 100755 index 0000000..134ae7f --- /dev/null +++ b/#erm_freist_forschung.php @@ -0,0 +1,231 @@ + +Jahrgang wählen!"; + exit; + } + + # Gespeicherte Funktionen + $query1 = "SELECT dkeid, bezeichnung, grundlage + FROM dep_kat_ermaessigung + WHERE grundlage IN ('§ 2 Abs. 8, 9 LVVO') + ORDER BY dkeid ASC"; + + $result1 = $db->query($query1) or die("Cannot execute query2"); + + while ($row1 = $result1->fetch_array()) { + $table_data1[] = $row1; + } + $smarty->assign('table_data1', $table_data1); + + if (isset($_GET['edit'])) { + $_SESSION["freistrekto_status"] = 'edit'; + $deid = $_GET['edit']; + $_SESSION["freistrekto_deid"] = $deid; + } else { + $_SESSION["freistrekto_status"] = 'neu'; + } + + # -- Fehlermeldungen -- # + if (isset($_GET[error])) { + + $errorno = $_GET[error]; + + $smarty->assign('freistrekto_error', 1); + + $smarty->assign('freistrekto_value_funktion', $_SESSION["freistrekto_value_funktion"]); + $smarty->assign('freistrekto_value_std', $_SESSION["freistrekto_value_sws"]); + $smarty->assign('freistrekto_value_datumvon', $_SESSION["freistrekto_value_beginn_funktion"]); + $smarty->assign('freistrekto_value_datumbis', $_SESSION["freistrekto_value_ende_funktion"]); + + if ($errorno == 3) { + # ungültiges Datum + $smarty->assign('freistrekto_error_text', "Das eingegebene Datum ist nicht korrekt. Bitte korrigieren Sie das Datum!"); + } + } + + # --- Wenn Werte editiert werden ------------ + if ($_SESSION["freistrekto_status"] == 'edit') { + $result_edit = $db->query("SELECT deid, funktion, date_format(beginn, '%d.%m.%Y') beginn, date_format(ende, '%d.%m.%Y') ende, sws, lvs + FROM dep_deputat_ermaessigung + WHERE deid = $deid"); + $row_edit = $result_edit->fetch_array(); + $smarty->assign('freistrekto_status', $_SESSION["freistrekto_status"]); + $smarty->assign('freistrekto_value_funktion', "$row_edit[funktion]"); + $smarty->assign('freistrekto_value_datumvon', "$row_edit[beginn]"); + $smarty->assign('freistrekto_value_datumbis', "$row_edit[ende]"); + $smarty->assign('freistrekto_value_std', "$row_edit[sws]"); + $smarty->assign('freistrekto_value_hinweise', "$row_edit[lvs]"); + + } + # --- Wenn Werte editiert werden Ende ------- + + if ($_GET['editende'] == 1) { + # Editieren ist beendet, als ein update auf einen Datensatz. Dann ist der status wieder Neu, damit wird wieder ein Insert durchgeführt + $_SESSION["freistrekto_status"] = 'neu'; + } + + + + + + + + # Gespeicherte Werte + $query2 = "SELECT deid, funktion, date_format(beginn, '%d.%m.%Y') beginn, date_format(ende, '%d.%m.%Y') ende, sws, lvs + FROM dep_deputat_ermaessigung + WHERE imtuid=$uid + AND jahr=$jahrgang + AND art ='Deputatsermäßigung aufgrund von Forschungs- und Entwicklungsaufgaben (§ 2 Abs. 8, 9 LVVO)' + ORDER BY deid ASC"; + + $result2 = $db->query($query2) or die("Cannot execute query2"); + + while ($row2 = $result2->fetch_array()) { + $query_funktion = $db->query("SELECT bezeichnung + FROM dep_kat_ermaessigung + WHERE dkeid = '$row2[funktion]'"); + $row_funktion = $query_funktion->fetch_array(); + + $lvs = number_format($row2['lvs'], 2, ',', '.'); + $row2['lvs'] = $lvs; + $row2['funktion'] = $row_funktion['bezeichnung']; + $sws = number_format($row2['sws'], 2, ',', '.'); + $row2['sws'] = $sws; + $table_data2[] = $row2; + } + $smarty->assign('table_data2', $table_data2); + + # Jahressumme + $query_jahrsum = $db->query("SELECT sum(lvs) summe_jahr + FROM dep_deputat_ermaessigung + WHERE imtuid=$uid + AND art ='Deputatsermäßigung aufgrund von Forschungs- und Entwicklungsaufgaben (§ 2 Abs. 8, 9 LVVO)' + AND jahr=$jahrgang"); + $row_jahrsum = $query_jahrsum->fetch_array(); + $summe_jahr = number_format($row_jahrsum['summe_jahr'], 2, ',', '.'); + $smarty->assign('freistrekto_value_summe_jahr', $summe_jahr); + +} + + +if ($action == 'save') { +$jahrgang2 = $jahrgang+1; + +$funktion = $_POST['funktion']; +$sws = str_replace(',','.',str_replace('.','', $_POST['sws'])); + +$beginn = preg_replace('/^(\\d{2})\\.(\\d{2})\\.(\\d{4})$/', '$3-$2-$1', $_POST['beginn_funktion']); +if($beginn == ''){ + $beginn = $jahrgang."-09-01"; +} + +$ende = preg_replace('/^(\\d{2})\\.(\\d{2})\\.(\\d{4})$/', '$3-$2-$1', $_POST['ende_funktion']); +if($ende == ''){ + $ende = $jahrgang2."-08-31"; +} + +$_SESSION["freistrekto_value_funktion"] = $funktion; +$_SESSION["freistrekto_value_sws"] = $sws; +$_SESSION["freistrekto_value_beginn_funktion"] = $_POST['beginn_funktion']; +$_SESSION["freistrekto_value_ende_funktion"] = $_POST['ende_funktion']; + +function validateDate($date, $format = 'Y-m-d') +{ + $d = DateTime::createFromFormat($format, $date); + return $d && $d->format($format) == $date; +} + +if(!validateDate($beginn)){ + echo ""; + exit; +} + +if(!validateDate($ende)){ + echo ""; + exit; +} + +$lvs = $_POST['lvs']; + $datum = date("Y-m-d H:i:s"); + if ($_SESSION["freistrekto_status"] == 'neu') { + $sql1 = $db->query("INSERT INTO dep_deputat_ermaessigung ( imtuid + , jahr + , art + , funktion + , beginn + , ende + , sws + , lvs + , sort_order + , created + ) + VALUES + ( '$uid' + , '$jahrgang' + , 'Deputatsermäßigung aufgrund von Forschungs- und Entwicklungsaufgaben (§ 2 Abs. 8, 9 LVVO)' + , '$funktion' + , '$beginn' + , '$ende' + , '$sws' + , '$lvs' + , 6 + , '$datum' + ) + "); + } + + if ($_SESSION["freistrekto_status"] == 'edit') { + $deid = $_SESSION["freistrekto_deid"]; + + $result = $db->query("UPDATE dep_deputat_ermaessigung + SET funktion = '$funktion' + , beginn = '$beginn' + , ende = '$ende' + , sws = '$sws' + , lvs = '$lvs' + , modify_date = '$datum' + WHERE deid = $deid + "); + + unset($_SESSION['freistrekto_deid']); + } + # Dann bekommts beim refresh den status neu, also es wird beim Abschicken ein Insert gemacht + $editende = 1; + echo ""; + + +} +if ($action == 'del') { + $deid = $_GET['deid']; + + ## Muss man nochmals überdenken, wenn ein Prof noch Deputate erfasst hat. + $del1 = $db->query("DELETE FROM dep_deputat_ermaessigung WHERE deid = $deid AND imtuid=$uid"); + + echo ""; +} + +$smarty->assign('action', "$action"); +$smarty->display("$template/$templatename"); + +?> \ No newline at end of file diff --git a/#erm_freist_funktion.php b/#erm_freist_funktion.php new file mode 100755 index 0000000..9f453ed --- /dev/null +++ b/#erm_freist_funktion.php @@ -0,0 +1,232 @@ +Jahrgang wählen!"; + exit; + } + + # Gespeicherte Funktionen + $query1 = "SELECT dkeid, bezeichnung, grundlage + FROM dep_kat_ermaessigung + WHERE grundlage IN ('§ 11 LVVO') + ORDER BY dkeid ASC"; + + $result1 = $db->query($query1) or die("Cannot execute query2"); + + while ($row1 = $result1->fetch_array()) { + $table_data1[] = $row1; + } + $smarty->assign('table_data1', $table_data1); + + if (isset($_GET['edit'])) { + $_SESSION["freistrekto_status"] = 'edit'; + $deid = $_GET['edit']; + $_SESSION["freistrekto_deid"] = $deid; + } else { + $_SESSION["freistrekto_status"] = 'neu'; + } + + # -- Fehlermeldungen -- # + if (isset($_GET[error])) { + + $errorno = $_GET[error]; + + $smarty->assign('freistrekto_error', 1); + + $smarty->assign('freistrekto_value_funktion', $_SESSION["freistrekto_value_funktion"]); + $smarty->assign('freistrekto_value_std', $_SESSION["freistrekto_value_sws"]); + $smarty->assign('freistrekto_value_datumvon', $_SESSION["freistrekto_value_beginn_funktion"]); + $smarty->assign('freistrekto_value_datumbis', $_SESSION["freistrekto_value_ende_funktion"]); + + if ($errorno == 3) { + # ungültiges Datum + $smarty->assign('freistrekto_error_text', "Das eingegebene Datum ist nicht korrekt. Bitte korrigieren Sie das Datum!"); + } + } + + + # --- Wenn Werte editiert werden ------------ + if ($_SESSION["freistrekto_status"] == 'edit') { + $result_edit = $db->query("SELECT deid, funktion, date_format(beginn, '%d.%m.%Y') beginn, date_format(ende, '%d.%m.%Y') ende, sws, lvs + FROM dep_deputat_ermaessigung + WHERE deid = $deid"); + $row_edit = $result_edit->fetch_array(); + $smarty->assign('freistrekto_status', $_SESSION["freistrekto_status"]); + $smarty->assign('freistrekto_value_funktion', "$row_edit[funktion]"); + $smarty->assign('freistrekto_value_datumvon', "$row_edit[beginn]"); + $smarty->assign('freistrekto_value_datumbis', "$row_edit[ende]"); + $smarty->assign('freistrekto_value_std', "$row_edit[sws]"); + $smarty->assign('freistrekto_value_hinweise', "$row_edit[lvs]"); + + } + # --- Wenn Werte editiert werden Ende ------- + + if ($_GET['editende'] == 1) { + # Editieren ist beendet, als ein update auf einen Datensatz. Dann ist der status wieder Neu, damit wird wieder ein Insert durchgeführt + $_SESSION["freistrekto_status"] = 'neu'; + } + + + + + + + + # Gespeicherte Werte + $query2 = "SELECT deid, funktion, date_format(beginn, '%d.%m.%Y') beginn, date_format(ende, '%d.%m.%Y') ende, sws, lvs + FROM dep_deputat_ermaessigung + WHERE imtuid=$uid + AND jahr=$jahrgang + AND art ='Deputatsermäßigung aufgrund einer Funktion/Beauftragung (§ 11 LVVO)' + ORDER BY deid ASC"; + + $result2 = $db->query($query2) or die("Cannot execute query2"); + + while ($row2 = $result2->fetch_array()) { + $query_funktion = $db->query("SELECT bezeichnung + FROM dep_kat_ermaessigung + WHERE dkeid = '$row2[funktion]'"); + $row_funktion = $query_funktion->fetch_array(); + + $lvs = number_format($row2['lvs'], 2, ',', '.'); + $row2['lvs'] = $lvs; + $row2['funktion'] = $row_funktion['bezeichnung']; + $sws = number_format($row2['sws'], 2, ',', '.'); + $row2['sws'] = $sws; + $table_data2[] = $row2; + } + $smarty->assign('table_data2', $table_data2); + + # Jahressumme + $query_jahrsum = $db->query("SELECT sum(lvs) summe_jahr + FROM dep_deputat_ermaessigung + WHERE imtuid=$uid + AND art ='Deputatsermäßigung aufgrund einer Funktion/Beauftragung (§ 11 LVVO)' + AND jahr=$jahrgang"); + $row_jahrsum = $query_jahrsum->fetch_array(); + $summe_jahr = number_format($row_jahrsum['summe_jahr'], 2, ',', '.'); + $smarty->assign('freistrekto_value_summe_jahr', $summe_jahr); + +} + + +if ($action == 'save') { +$jahrgang2 = $jahrgang+1; + +$funktion = $_POST['funktion']; +$sws = str_replace(',','.',str_replace('.','', $_POST['sws'])); + +$beginn = preg_replace('/^(\\d{2})\\.(\\d{2})\\.(\\d{4})$/', '$3-$2-$1', $_POST['beginn_funktion']); +if($beginn == ''){ + $beginn = $jahrgang."-09-01"; +} + +$ende = preg_replace('/^(\\d{2})\\.(\\d{2})\\.(\\d{4})$/', '$3-$2-$1', $_POST['ende_funktion']); +if($ende == ''){ + $ende = $jahrgang2."-08-31"; +} + + +$_SESSION["freistrekto_value_funktion"] = $funktion; +$_SESSION["freistrekto_value_sws"] = $sws; +$_SESSION["freistrekto_value_beginn_funktion"] = $_POST['beginn_funktion']; +$_SESSION["freistrekto_value_ende_funktion"] = $_POST['ende_funktion']; + +function validateDate($date, $format = 'Y-m-d') +{ + $d = DateTime::createFromFormat($format, $date); + return $d && $d->format($format) == $date; +} + +if(!validateDate($beginn)){ + echo ""; + exit; +} + +if(!validateDate($ende)){ + echo ""; + exit; +} + +$lvs = $_POST['lvs']; + $datum = date("Y-m-d H:i:s"); + if ($_SESSION["freistrekto_status"] == 'neu') { + $sql1 = $db->query("INSERT INTO dep_deputat_ermaessigung ( imtuid + , jahr + , art + , funktion + , beginn + , ende + , sws + , lvs + , sort_order + , created + ) + VALUES + ( '$uid' + , '$jahrgang' + , 'Deputatsermäßigung aufgrund einer Funktion/Beauftragung (§ 11 LVVO)' + , '$funktion' + , '$beginn' + , '$ende' + , '$sws' + , '$lvs' + , 5 + , '$datum' + ) + "); + } + + if ($_SESSION["freistrekto_status"] == 'edit') { + $deid = $_SESSION["freistrekto_deid"]; + + $result = $db->query("UPDATE dep_deputat_ermaessigung + SET funktion = '$funktion' + , beginn = '$beginn' + , ende = '$ende' + , sws = '$sws' + , lvs = '$lvs' + , modify_date = '$datum' + WHERE deid = $deid + "); + + unset($_SESSION['freistrekto_deid']); + } + # Dann bekommts beim refresh den status neu, also es wird beim Abschicken ein Insert gemacht + $editende = 1; + echo ""; + + +} +if ($action == 'del') { + $deid = $_GET['deid']; + + ## Muss man nochmals überdenken, wenn ein Prof noch Deputate erfasst hat. + $del1 = $db->query("DELETE FROM dep_deputat_ermaessigung WHERE deid = $deid AND imtuid=$uid"); + + echo ""; +} + +$smarty->assign('action', "$action"); +$smarty->display("$template/$templatename"); + +?> \ No newline at end of file diff --git a/#erm_mutterschutz.php b/#erm_mutterschutz.php new file mode 100755 index 0000000..8de5162 --- /dev/null +++ b/#erm_mutterschutz.php @@ -0,0 +1,221 @@ +Jahrgang wählen!"; + exit; + } + + + if (isset($_GET['edit'])) { + $_SESSION["muschu_status"] = 'edit'; + $deid = $_GET['edit']; + $_SESSION["muschu_deid"] = $deid; + } else { + $_SESSION["muschu_status"] = 'neu'; + } + + + # -- Fehlermeldungen -- # + if (isset($_GET[error])) { + + $errorno = $_GET[error]; + + $smarty->assign('muschu_error', 1); + + $smarty->assign('muschu_value_funktion', $_SESSION["muschu_value_funktion"]); + $smarty->assign('muschu_value_std', $_SESSION["muschu_value_sws"]); + $smarty->assign('muschu_value_datumvon', $_SESSION["muschu_value_beginn_funktion"]); + $smarty->assign('muschu_value_datumbis', $_SESSION["muschu_value_ende_funktion"]); + + if ($errorno == 3) { + # ungültiges Datum + $smarty->assign('muschu_error_text', "Das eingegebene Datum ist nicht korrekt. Bitte korrigieren Sie das Datum!"); + } + } + + # --- Wenn Werte editiert werden ------------ + if ($_SESSION["muschu_status"] == 'edit') { + $result_edit = $db->query("SELECT deid, funktion, date_format(beginn, '%d.%m.%Y') beginn, date_format(ende, '%d.%m.%Y') ende, sws, lvs + FROM dep_deputat_ermaessigung + WHERE deid = $deid"); + $row_edit = $result_edit->fetch_array(); + $smarty->assign('muschu_status', $_SESSION["muschu_status"]); + $smarty->assign('muschu_value_funktion', "$row_edit[funktion]"); + $smarty->assign('muschu_value_datumvon', "$row_edit[beginn]"); + $smarty->assign('muschu_value_datumbis', "$row_edit[ende]"); + $smarty->assign('muschu_value_std', "$row_edit[sws]"); + $smarty->assign('muschu_value_hinweise', "$row_edit[lvs]"); + + } + # --- Wenn Werte editiert werden Ende ------- + + if ($_GET['editende'] == 1) { + # Editieren ist beendet, als ein update auf einen Datensatz. Dann ist der status wieder Neu, damit wird wieder ein Insert durchgeführt + $_SESSION["muschu_status"] = 'neu'; + } + + + + + + + + # Gespeicherte Werte + $query2 = "SELECT deid, art, date_format(beginn, '%d.%m.%Y') beginn, date_format(ende, '%d.%m.%Y') ende, sws, lvs + FROM dep_deputat_ermaessigung + WHERE imtuid=$uid + AND jahr=$jahrgang + AND art ='Mutterschutz / Elternzeit / Pflegezeit' + ORDER BY deid ASC"; + + $result2 = $db->query($query2) or die("Cannot execute query2"); + + while ($row2 = $result2->fetch_array()) { + $query_funktion = $db->query("SELECT bezeichnung + FROM dep_kat_ermaessigung + WHERE dkeid = '$row2[funktion]'"); + $row_funktion = $query_funktion->fetch_array(); + + $lvs = number_format($row2['lvs'], 2, ',', '.'); + $row2['lvs'] = $lvs; + $row2['funktion'] = $row_funktion['bezeichnung']; + $sws = number_format($row2['sws'], 2, ',', '.'); + $row2['sws'] = $sws; + $table_data2[] = $row2; + } + $smarty->assign('table_data2', $table_data2); + + # Jahressumme + $query_jahrsum = $db->query("SELECT sum(lvs) summe_jahr + FROM dep_deputat_ermaessigung + WHERE imtuid=$uid + AND art ='Mutterschutz / Elternzeit / Pflegezeit' + AND jahr=$jahrgang"); + $row_jahrsum = $query_jahrsum->fetch_array(); + $summe_jahr = number_format($row_jahrsum['summe_jahr'], 2, ',', '.'); + $smarty->assign('muschu_value_summe_jahr', $summe_jahr); + +} + + +if ($action == 'save') { +$jahrgang2 = $jahrgang+1; + +$funktion = $_POST['funktion']; +$sws = $_POST['sws']; + +$beginn = preg_replace('/^(\\d{2})\\.(\\d{2})\\.(\\d{4})$/', '$3-$2-$1', $_POST['beginn_funktion']); +if($beginn == ''){ + $beginn = $jahrgang."-09-01"; +} + +$ende = preg_replace('/^(\\d{2})\\.(\\d{2})\\.(\\d{4})$/', '$3-$2-$1', $_POST['ende_funktion']); +if($ende == ''){ + $ende = $jahrgang2."-08-31"; +} + +$_SESSION["muschu_value_funktion"] = $funktion; +$_SESSION["muschu_value_sws"] = $sws; +$_SESSION["muschu_value_beginn_funktion"] = $_POST['beginn_funktion']; +$_SESSION["muschu_value_ende_funktion"] = $_POST['ende_funktion']; + +function validateDate($date, $format = 'Y-m-d') +{ + $d = DateTime::createFromFormat($format, $date); + return $d && $d->format($format) == $date; +} + +if(!validateDate($beginn)){ + echo ""; + exit; +} + +if(!validateDate($ende)){ + echo ""; + exit; +} + + + +$lvs = $_POST['lvs']; + $datum = date("Y-m-d H:i:s"); + if ($_SESSION["muschu_status"] == 'neu') { + $sql1 = $db->query("INSERT INTO dep_deputat_ermaessigung ( imtuid + , jahr + , art + , funktion + , beginn + , ende + , sws + , lvs + , sort_order + , created + ) + VALUES + ( '$uid' + , '$jahrgang' + , 'Mutterschutz / Elternzeit' + , '$funktion' + , '$beginn' + , '$ende' + , '$sws' + , '$lvs' + , 5 + , '$datum' + ) + "); + } + + if ($_SESSION["muschu_status"] == 'edit') { + $deid = $_SESSION["muschu_deid"]; + + $result = $db->query("UPDATE dep_deputat_ermaessigung + SET funktion = '$funktion' + , beginn = '$beginn' + , ende = '$ende' + , sws = '$sws' + , lvs = '$lvs' + , modify_date = '$datum' + WHERE deid = $deid + "); + + unset($_SESSION['muschu_deid']); + } + # Dann bekommts beim refresh den status neu, also es wird beim Abschicken ein Insert gemacht + $editende = 1; + echo ""; + + +} +if ($action == 'del') { + $deid = $_GET['deid']; + + ## Muss man nochmals überdenken, wenn ein Prof noch Deputate erfasst hat. + $del1 = $db->query("DELETE FROM dep_deputat_ermaessigung WHERE deid = $deid AND imtuid=$uid"); + + echo ""; +} + +$smarty->assign('action', "$action"); +$smarty->display("$template/$templatename"); + +?> \ No newline at end of file diff --git a/#func_lvs_teilzeit.php b/#func_lvs_teilzeit.php new file mode 100755 index 0000000..d13f7b2 --- /dev/null +++ b/#func_lvs_teilzeit.php @@ -0,0 +1,63 @@ +query("SELECT count(*) Anz + FROM dep_deputat_ermaessigung + WHERE jahr = '$jahrgang' + AND imtuid = $uid + AND art = 'Teilzeit'"); + $row_vorh = $query_vorh->fetch_array(); + + # Was ist die Standard LVS + $query_baselvs = $db->query("SELECT lvs + FROM dep_kat_lvs + WHERE jahr <=$jahrgang + ORDER BY jahr desc + LIMIT 1"); + $row_baselvs = $query_baselvs->fetch_array(); + + $baselvs = $row_baselvs['lvs']; + + if($row_vorh['Anz'] > 0){ + foreach (new DatePeriod($start, new DateInterval('P1M'), $end) as $cur) { + # Schleife läuft alle Monate des Studienjahrs durch und prüft monatliche Teilzeit + $akt_mon = $cur->format('Y-m'); + + $result_umf = $db->query("SELECT prozent + FROM dep_deputat_ermaessigung + WHERE date_format(beginn, '%Y-%m') <= '$akt_mon' + AND imtuid = $imtuid + AND art = 'Teilzeit' + ORDER BY beginn desc + LIMIT 1 + "); + $row_umf = $result_umf->fetch_array(); + $lvs_ber = $baselvs/12*$row_umf['prozent']; + $lvs = $lvs+$lvs_ber; + + echo "$akt_mon -> $row_umf[prozent] -> $lvs
"; + } + + }else{ + # Keine Teilzeit + $lvs = $baselvs; + } + return $lvs; +} + +echo lvs_teilzeit(1,2019); +?> diff --git a/abschlussarbeiten.php b/abschlussarbeiten.php new file mode 100755 index 0000000..0db2b14 --- /dev/null +++ b/abschlussarbeiten.php @@ -0,0 +1,320 @@ +Jahrgang wählen!"; + exit; + } + + # Prüfen ob der Jahrgang schon abgeschlossen wurde, dann soll der Button "Abschließen und absenden" ausgeblendet werden + $query_closed = $db->query("SELECT count(*) Anz + FROM dep_doz_abschluss + WHERE imtuid=$uid + AND jahr=$jahrgang"); + $row_closed = $query_closed->fetch_array(); + + if ($row_closed['Anz'] > 0) { + $smarty->assign('abschluss_abschluss', 1); + $smarty->assign('abschluss_error', 1); + $smarty->assign('abschluss_error_text', 'Der aktuelle Jahrgang ist bereits abgeschlossen!'); + } else { + $smarty->assign('abschluss_abschluss', 0); + } // Jahrgang abgeschlossen + # -- Fehlermeldungen -- # + if (isset($_GET[error])) { + + $errorno = $_GET[error]; + + $smarty->assign('abschluss_error', 1); + + $smarty->assign('abschluss_value_name', $_SESSION["abschluss_name"]); + $smarty->assign('abschluss_value_kaid', $_SESSION["abschluss_kaid"]); + $smarty->assign('abschluss_value_pauschale', $_SESSION['abschluss_pauschale']); + $smarty->assign('abschluss_value_semester', $_SESSION["abschluss_semester"]); + + if ($errorno == 1) { + $smarty->assign('abschluss_error_text', "Es müssen alle Felder ausgefüllt werden"); + } + + if ($errorno == 2) { + $smarty->assign('abschluss_error_text', "Sie haben die maximale Anzahl der Abschlussarbeiten pro Semester erreicht!"); + } + } + + + if (isset($_GET['edit'])) { + $_SESSION["abschluss_status"] = 'edit'; + $daid = $_GET['edit']; + $_SESSION["abschluss_daid"] = $daid; + } else { + $_SESSION["abschluss_status"] = 'neu'; + } + + + # --- Wenn Werte editiert werden ------------ + if ($_SESSION["abschluss_status"] == 'edit') { + $result_edit = $db->query("SELECT name, kaid, pauschale, semester + FROM dep_deputat_abschlussarbeiten + WHERE daid = $daid"); + + $row_edit = $result_edit->fetch_array(); + $smarty->assign('abschluss_value_name', "$row_edit[name]"); + $smarty->assign('abschluss_value_kaid', "$row_edit[kaid]"); + $smarty->assign('abschluss_value_pauschale', "$row_edit[pauschale]"); + $smarty->assign('abschluss_value_semester', "$row_edit[semester]"); + + } + # --- Wenn Werte editiert werden Ende ------- + + if ($_GET['editende'] == 1) { + # Editieren ist beendet, als ein update auf einen Datensatz. Dann ist der status wieder Neu, damit wird wieder ein Insert durchgeführt + $_SESSION["abschluss_status"] = 'neu'; + } + + + # Alle Veranstaltungsarten + $query = "SELECT kaid, bezeichnung + FROM dep_kat_abschlussarbeiten"; + + $result = $db->query($query) or die("Cannot execute query"); + + while ($row = $result->fetch_array()) { + $table_data1[] = $row; + } + $smarty->assign('table_data1', $table_data1); + + + # Gespeicherte Werte WS + $query2 = "SELECT daid, name, kaid, semester, pauschale, lvs + FROM dep_deputat_abschlussarbeiten + WHERE imtuid=$uid + AND jahr=$jahrgang + AND semester = 'WS'"; + + $result2 = $db->query($query2) or die("Cannot execute query"); + + while ($row2 = $result2->fetch_array()) { + + if ($row2['semester'] == 'SS') { + $semester = "Sommersemester"; + } + if ($row2['semester'] == 'WS') { + $semester = "Wintersemester"; + } + + $query_bez_sem = $db->query("SELECT bezeichnung + FROM dep_kat_abschlussarbeiten + WHERE kaid =$row2[kaid]"); + $row_bez_sem = $query_bez_sem->fetch_array(); + + $lvs = number_format($row2['lvs'], 2, ',', '.'); + $pauschale = number_format($row2['pauschale'], 2, ',', '.'); + + $row2['pauschale'] = $pauschale; + $row2['lvs'] = $lvs; + $row2['abschlussarbeit'] = $row_bez_sem['bezeichnung']; + $row2['semesterbez'] = $semester; + $table_data2[] = $row2; + } + $smarty->assign('table_data2', $table_data2); + # Summe LVS im WS + $query_sumlvs_ws = $db->query("SELECT sum(lvs) lvs + FROM dep_deputat_abschlussarbeiten + WHERE imtuid=$uid + AND jahr=$jahrgang + AND semester = 'WS'"); + $row_sumlvs_ws = $query_sumlvs_ws->fetch_array(); + $summe_jahr_lvs_ws = number_format($row_sumlvs_ws['lvs'], 2, ',', '.'); + $smarty->assign('abschluss_value_ws_summe_lvs', $summe_jahr_lvs_ws); + + # Gespeicherte Werte SS + $query3 = "SELECT daid, name, kaid, semester, pauschale, lvs + FROM dep_deputat_abschlussarbeiten + WHERE imtuid=$uid + AND jahr=$jahrgang + AND semester = 'SS'"; + + $result3 = $db->query($query3) or die("Cannot execute query"); + + while ($row3 = $result3->fetch_array()) { + + if ($row3['semester'] == 'SS') { + $semester = "Sommersemester"; + } + if ($row3['semester'] == 'WS') { + $semester = "Wintersemester"; + } + + $query_bez_sem = $db->query("SELECT bezeichnung + FROM dep_kat_abschlussarbeiten + WHERE kaid =$row3[kaid]"); + $row_bez_sem = $query_bez_sem->fetch_array(); + + $lvs = number_format($row3['lvs'], 2, ',', '.'); + $pauschale = number_format($row3['pauschale'], 2, ',', '.'); + + $row3['pauschale'] = $pauschale; + $row3['lvs'] = $lvs; + $row3['abschlussarbeit'] = $row_bez_sem['bezeichnung']; + $row3['semesterbez'] = $semester; + $table_data3[] = $row3; + } + $smarty->assign('table_data3', $table_data3); + # Summe LVS im SS + $query_sumlvs_ss = $db->query("SELECT sum(lvs) lvs + FROM dep_deputat_abschlussarbeiten + WHERE imtuid=$uid + AND jahr=$jahrgang + AND semester = 'SS'"); + $row_sumlvs_ss = $query_sumlvs_ss->fetch_array(); + $summe_jahr_lvs_ss = number_format($row_sumlvs_ss['lvs'], 2, ',', '.'); + $smarty->assign('abschluss_value_ss_summe_lvs', $summe_jahr_lvs_ss); + + + + # Max Anzahl der Abschlussarbeiten pro Semester + $query_sumabschl = $db->query("SELECT wert1 + FROM dep_parameter + WHERE pid =5"); + $row_summabschl = $query_sumabschl->fetch_array(); + $summe_jahr = number_format($row_summabschl['wert1'], 0); + $smarty->assign('abschluss_value_max_arbeiten', $summe_jahr); + + +} + +if ($action == 'register') { + + $name = $_POST['name']; + $kaid = $_POST['kaid']; + $pauschale = str_replace(',','.',str_replace('.','', $_POST['pauschale'])); + $semester = $_POST['semester']; + if($kaid == 1){ + # Bei Bachelorarbeit gibt es keine Pauschale + $pauschale = 0; + } + $_SESSION["abschluss_name"] = $name; + $_SESSION["abschluss_kaid"] = $kaid; + $_SESSION["abschluss_pauschale"] = $pauschale; + $_SESSION["abschluss_semester"] = $semester; + + if ($name == '' or $kaid == '' or $semester == '') { + echo ""; + exit; + } + + #Limit pro Semester + $query_anz = $db->query("SELECT count(*) Anz + FROM dep_deputat_abschlussarbeiten + WHERE semester ='$semester' + AND imtuid=$uid + AND jahr=$jahrgang"); + $row_anz = $query_anz->fetch_array(); + + # Max Anzahl der Abschlussarbeiten pro Semester + $query_sumabschl = $db->query("SELECT wert1 + FROM dep_parameter + WHERE pid =5"); + $row_summabschl = $query_sumabschl->fetch_array(); + + if ($row_anz['Anz'] >= $row_summabschl['wert1'] AND $_SESSION["abschluss_status"] != 'edit') { + echo ""; + exit; + } + + + # Faktor pro Arbeit ermitteln + $query_fak = $db->query("SELECT faktor + FROM dep_kat_abschlussarbeiten + WHERE kaid =$kaid"); + $row_fak = $query_fak->fetch_array(); + $faktor = $row_fak['faktor']; + + # Faktor wird mit den Wochen eines Semesters multipliziert 33Semesterwochen (2019) im Jahr. Dh. 16,5 pro Semester + $query_multipl = $db->query("SELECT jahr, sw/2 semesterwoche + FROM dep_kat_lvs + WHERE jahr <=$jahrgang + order by jahr desc + limit 1"); + $row_multiplikator = $query_multipl->fetch_array(); + $lvs = $row_multiplikator['semesterwoche'] * $faktor + $pauschale; + + $datum = date("Y-m-d H:i:s"); + if ($_SESSION["abschluss_status"] == 'neu') { + $sql1 = $db->query("INSERT INTO dep_deputat_abschlussarbeiten ( imtuid + , jahr + , kaid + , name + , semester + , pauschale + , lvs + , created + ) + VALUES + ( '$uid' + , '$jahrgang' + , '$kaid' + , '$name' + , '$semester' + , '$pauschale' + , '$lvs' + , '$datum' + ) + "); + } + + if ($_SESSION["abschluss_status"] == 'edit') { + $daid = $_SESSION["abschluss_daid"]; + $result = $db->query("UPDATE dep_deputat_abschlussarbeiten + SET name = '$name' + , kaid = '$kaid' + , semester = '$semester' + , pauschale = '$pauschale' + , lvs = '$lvs' + , modify_date = '$datum' + WHERE daid = $daid + "); + + unset($_SESSION['abschluss_daid']); + } + + # Dann bekommts beim refresh den status neu, also es wird beim Abschicken ein Insert gemacht + $editende = 1; + echo ""; + +} + + +if ($action == 'del') { + $daid = $_GET['daid']; + + ## Muss man nochmals überdenken, wenn ein Prof noch Deputate erfasst hat. + + $del1 = $db->query("DELETE FROM dep_deputat_abschlussarbeiten WHERE daid = $daid AND imtuid=$uid"); + + echo ""; + +} + +$smarty->assign('action', "$action"); +$smarty->display("$template/$templatename"); + +?> diff --git a/accordeio-css.html b/accordeio-css.html new file mode 100755 index 0000000..f98227c --- /dev/null +++ b/accordeio-css.html @@ -0,0 +1,124 @@ + + + + + + + + + + + + +
+
+
+ + +
+ +
+
+
+ + +
+ +
+
+
+ + +
+

Fruitcake marshmallow sugar plum soufflé biscuit.

+

Sesame snaps pie lemon drops.

+
+
+
+
+ + + + diff --git a/admin_frame.php b/admin_frame.php new file mode 100755 index 0000000..48e9414 --- /dev/null +++ b/admin_frame.php @@ -0,0 +1,4 @@ +display("$template/$templatename"); ?> \ No newline at end of file diff --git a/ajaxtabs/Thumbs.db b/ajaxtabs/Thumbs.db new file mode 100755 index 0000000..d5de7d8 Binary files /dev/null and b/ajaxtabs/Thumbs.db differ diff --git a/ajaxtabs/ajaxtabs.js b/ajaxtabs/ajaxtabs.js new file mode 100755 index 0000000..fb88ef2 --- /dev/null +++ b/ajaxtabs/ajaxtabs.js @@ -0,0 +1,224 @@ +//** Ajax Tabs Content script v2.0- Dynamic Drive DHTML code library (https://www.dynamicdrive.com) +//** Updated Oct 21st, 07 to version 2.0. Contains numerous improvements +//** Updated Feb 18th, 08 to version 2.1: Adds a public "tabinstance.cycleit(dir)" method to cycle forward or backward between tabs dynamically. Only .js file changed from v2.0. +//** Updated April 8th, 08 to version 2.2: +// -Adds support for expanding a tab using a URL parameter (ie: https://mysite.com/tabcontent.htm?tabinterfaceid=0) +// -Modified Ajax routine so testing the script out locally in IE7 now works + +var ddajaxtabssettings={} +ddajaxtabssettings.bustcachevar=1 //bust potential caching of external pages after initial request? (1=yes, 0=no) +ddajaxtabssettings.loadstatustext=" Requesting content..." + + +////NO NEED TO EDIT BELOW//////////////////////// + +function ddajaxtabs(tabinterfaceid, contentdivid){ + this.tabinterfaceid=tabinterfaceid //ID of Tab Menu main container + this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a") //Get all tab links within container + this.enabletabpersistence=true + this.hottabspositions=[] //Array to store position of tabs that have a "rel" attr defined, relative to all tab links, within container + this.currentTabIndex=0 //Index of currently selected hot tab (tab with sub content) within hottabspositions[] array + this.contentdivid=contentdivid + this.defaultHTML="" + this.defaultIframe='' + this.defaultIframe=this.defaultIframe.replace(/ + +``` + +**Note:** Using _min-width_ to set the width of the iFrame, works around an issue in iOS that can prevent the iFrame from sizing correctly. + +If you have problems, check the [troubleshooting](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/troubleshooting.md) section. + +### Example + +To see this working take a look at this [example](https://davidjbradshaw.com/iframe-resizer/example/) and watch the [console](https://developer.mozilla.org/en-US/docs/Tools/Web_Console). + +## API Documentation + +IFrame-Resizer provides an extensive range of options and APIs for both the parent page and the iframed page. + +- **Parent Page API** + - [Options](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/parent_page/options.md) + - [Events](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/parent_page/events.md) + - [Methods](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/parent_page/methods.md) +- **IFramed Page API** + - [Options](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/iframed_page/options.md) + - [Events](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/iframed_page/events.md) + - [Methods](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/iframed_page/methods.md) +- **Use with Libraries and Frameworks** + - [React](https://github.com/davidjbradshaw/iframe-resizer-react) + - [Vue](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/use_with/vue.md) + - [Angular](https://github.com/davidjbradshaw/iframe-resizer/issues/478#issuecomment-347958630) + - [Ember](https://github.com/alexlafroscia/ember-iframe-resizer-modifier) + - [jQuery](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/use_with/jquery.md) + - [Google Apps Script](https://stackoverflow.com/a/65724113/2087070) +- [Troubleshooting](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/troubleshooting.md) +- [Upgrade from version 3](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/upgrade.md) +- [Version history](https://github.com/davidjbradshaw/iframe-resizer/blob/master/CHANGELOG.md) + +## License + +Copyright © 2013-21 [David J. Bradshaw](https://github.com/davidjbradshaw) - +Licensed under the [MIT License](LICENSE) + + diff --git a/iframe-resizer-master/bower.json b/iframe-resizer-master/bower.json new file mode 100755 index 0000000..5576190 --- /dev/null +++ b/iframe-resizer-master/bower.json @@ -0,0 +1,34 @@ +{ + "name": "iframe-resizer", + "version": "4.3.2", + "homepage": "https://github.com/davidjbradshaw/iframe-resizer", + "authors": ["David J. Bradshaw "], + "description": "Responsively keep same and cross domain iFrames sized to their content with support for window/content resizing, multiple and nested iFrames. (Dependacy free and works with IE8+)", + "main": ["js/iframeResizer.js", "js/iframeResizer.contentWindow.js"], + "keywords": [ + "CrossDomain", + "Cross-Domain", + "iFrame", + "Resizing", + "Resizer", + "postMessage", + "content", + "resize", + "height", + "autoheight", + "auto-height", + "iframe-auto-height", + "height-iframe", + "heightiframe", + "width", + "mutationObserver", + "RWD", + "responsive", + "responsiveiframes", + "responsive-iframes" + ], + "license": "MIT", + "ignore": ["example", "test", "gruntfile.js", "*.md", "*.json"], + "dependencies": {}, + "devDependencies": {} +} diff --git a/iframe-resizer-master/docs/getting_started.md b/iframe-resizer-master/docs/getting_started.md new file mode 100755 index 0000000..e5cf408 --- /dev/null +++ b/iframe-resizer-master/docs/getting_started.md @@ -0,0 +1,40 @@ +## Getting Started + +### Install + +This package can be installed via NPM (`npm install iframe-resizer --save`). + +### Usage + +The package contains two minified JavaScript files in the [js](../js) folder. The first ([iframeResizer.min.js](https://raw.githubusercontent.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.min.js)) is for the page hosting the iFrames. It can be called with **native** JavaScript; + +```js +const iframes = iFrameResize( [{options}], [css selector] || [iframe] ); +``` + +The second file ([iframeResizer.contentWindow.min.js](https://raw.github.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.contentWindow.min.js)) needs placing in the page(s) contained within your iFrame. This file is designed to be a guest on someone else's system, so has no dependencies and won't do anything until it's activated by a message from the containing page. + +### Typical setup + +The normal configuration is to have the iFrame resize when the browser window changes size or the content of the iFrame changes. To set this up you need to configure one of the dimensions of the iFrame to a percentage and tell the library to only update the other dimension. Normally you would set the width to 100% and have the height scale to fit the content. + +```html + + + +``` + +**Note:** Using _min-width_ to set the width of the iFrame, works around an issue in iOS that can prevent the iFrame from sizing correctly. + +If you have problems, check the [troubleshooting](troubleshooting.md) section. + +### Example + +To see this working take a look at this [example](https://davidjbradshaw.com/iframe-resizer/example/) and watch the [console](https://developer.mozilla.org/en-US/docs/Tools/Web_Console). diff --git a/iframe-resizer-master/docs/iframed_page/events.md b/iframe-resizer-master/docs/iframed_page/events.md new file mode 100755 index 0000000..b1425fa --- /dev/null +++ b/iframe-resizer-master/docs/iframed_page/events.md @@ -0,0 +1,15 @@ +## IFrame Page Events + +The following events can be included in the [options](options.md) object attached to the iframed page. + +### onMessage + + type: function (message) + +Receive message posted from the parent page with the `iframe.iFrameResizer.sendMessage()` method. + +### onReady + + type: function() + +This function is called once iFrame-Resizer has been initialized after receiving a call from the parent page. If you need to call any of the [parentIFrame methods](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/iframed_page/methods.md) during page load, then they should be called from this event handler. diff --git a/iframe-resizer-master/docs/iframed_page/methods.md b/iframe-resizer-master/docs/iframed_page/methods.md new file mode 100755 index 0000000..4ec640e --- /dev/null +++ b/iframe-resizer-master/docs/iframed_page/methods.md @@ -0,0 +1,78 @@ +## IFrame Page Methods + +These methods are available in the iFrame via the `window.parentIFrame` object. These method should be contained by a test for the `window.parentIFrame` object, in case the page is not loaded inside an iFrame. For example: + +```js +if ('parentIFrame' in window) { + parentIFrame.close() +} +``` + +### autoResize([bool]) + +Turn autoResizing of the iFrame on and off. Returns bool of current state. + +### close() + +Remove the iFrame from the parent page. + +### getId() + +Returns the ID of the iFrame that the page is contained in. + +### getPageInfo(callback || false) + +Ask the containing page for its positioning coordinates. You need to provide a callback which receives an object with the following properties: + +* **iframeHeight** The height of the iframe in pixels +* **iframeWidth** The width of the iframe in pixels +* **offsetLeft** The number of pixels between the left edge of the containing page and the left edge of the iframe +* **offsetTop** The number of pixels between the top edge of the containing page and the top edge of the iframe +* **scrollLeft** The number of pixels between the left edge of the iframe and the left edge of the iframe viewport +* **scrollTop** The number of pixels between the top edge of the iframe and the top edge of the iframe viewport +* **documentHeight** The containing document's height in pixels (the equivalent of `document.documentElement.clientHeight` in the container) +* **documentWidth** The containing document's width in pixels (the equivalent of `document.documentElement.clientWidth` in the container) +* **windowHeight** The containing window's height in pixels (the equivalent of `window.innerHeight` in the container) +* **windowWidth** The containing window's width in pixels (the equivalent of `window.innerWidth` in the container) +* **clientHeight** (deprecated) The height of the containing document, considering the viewport, in pixels (`max(documentHeight, windowHeight)`). +* **clientWidth** (deprecated) The width of the containing document, considering the viewport, in pixels (`max(documentWidth, windowWidth)`). + + +Your callback function will be recalled when the parent page is scrolled or resized. + +Pass `false` to disable the callback. + +### scrollTo(x,y) + +Scroll the parent page to the coordinates x and y. + +### scrollToOffset(x,y) + +Scroll the parent page to the coordinates x and y relative to the position of the iFrame. + +### sendMessage(message,[targetOrigin]) + +Send data to the containing page, `message` can be any data type that can be serialized into JSON. The `targetOrigin` option is used to restrict where the message is sent to; to stop an attacker mimicking your parent page. See the MDN documentation on [postMessage](https://developer.mozilla.org/en-US/docs/Web/API/Window.postMessage) for more details. + +### setHeightCalculationMethod(heightCalculationMethod) + +Change the method use to workout the height of the iFrame. + +### size ([customHeight],[ customWidth]) + +Manually force iFrame to resize. This method optionally accepts two arguments: **customHeight** & **customWidth**. To use them you need first to disable the `autoResize` option to prevent auto resizing and enable the `sizeWidth` option if you wish to set the width. + +```js +iFrameResize({ + autoResize: false, + sizeWidth: true +}) +``` + +Then you can call the `size` method with dimensions: + +```js +if ('parentIFrame' in window) { + parentIFrame.size(100); // Set height to 100px +} +``` diff --git a/iframe-resizer-master/docs/iframed_page/options.md b/iframe-resizer-master/docs/iframed_page/options.md new file mode 100755 index 0000000..4661a7b --- /dev/null +++ b/iframe-resizer-master/docs/iframed_page/options.md @@ -0,0 +1,28 @@ +## IFrame Page Options + +The following options can be set from within the iFrame page by creating a `window.iFrameResizer` object before the JavaScript file is loaded into the page. + +```html + + +``` + +### targetOrigin + + default: '*' + type: string + +This option allows you to restrict the domain of the parent page, to prevent other sites mimicking your parent page. + +### heightCalculationMethod / widthCalculationMethod + + default: null + type: string | function() { return integer } + +These options can be used to override the option set in the parent page (See above for details on available values). This can be useful when moving between pages in the iFrame that require different values for these options. + +Altenatively you can pass a custom function that returns the size as an integer. This can be useful when none of the standard ways of working out the size are suitable. However, normally problems with sizing are due to CSS issues and this should be looked at first. diff --git a/iframe-resizer-master/docs/parent_page/events.md b/iframe-resizer-master/docs/parent_page/events.md new file mode 100755 index 0000000..8889f15 --- /dev/null +++ b/iframe-resizer-master/docs/parent_page/events.md @@ -0,0 +1,67 @@ +## Events + +The following callback events can be passed to iframe-resizer on the parent page, as part of the [options](options.md) object. + +### onClose + +```js +onClose: (iframeID) => boolean +``` + +Called before iFrame is closed via `parentIFrame.close()` or `iframe.iFrameResizer.close()` methods. Returning `false` will prevent the iFrame from closing. + +### onClosed + +```js +onClosed: (iframeID) => undefined +``` + +Called after iFrame is closed via `parentIFrame.close()` or `iframe.iFrameResizer.close()` methods. + +### onInit + +```js +onInit: (iframe) => undefined +``` + +Called after initial setup. + +### onMessage + +```js +onMessage: ({iframe,message}) => undefined +``` + +Receive message posted from iFrame with the `parentIFrame.sendMessage()` method. + +### onMouseEnter + +```js +onMouseEnter: ({iframe,height,width,type}) => undefined +``` + +Function called after the mouse enters the iframe. Passes `messageData` object containing the **iFrame**, **screenX**, **screenY** and the **type** of event that triggered the callback. + +### onMouseLeave + +```js +onMouseLeave: ({iframe,height,width,type}) => undefined +``` + +Function called after the mouse leaves the iframe. Passes `messageData` object containing the **iFrame**, **screenX**, **screenY** and the **type** of event that triggered the callback. + +### onResized + +```js +onResized: ({iframe,height,width,type}) => undefined +``` + +Function called after iFrame resized. Passes `messageData` object containing the **iFrame**, **height**, **width** and the **type** of event that triggered the iFrame to resize. + +### onScroll + +```js +onScroll: ({x,y}) => [true|false] +``` + +Called before the page is repositioned after a request from the iFrame, due to either an in page link, or a direct request from either [parentIFrame.scrollTo()](../iframed_page/methods.md#scrolltoxy) or [parentIFrame.scrollToOffset()](../iframed_page/methods.md#scrolltooffsetxy). If this function returns **false**, it will stop the library from repositioning the page, so that you can implement your own animated page scrolling instead. diff --git a/iframe-resizer-master/docs/parent_page/methods.md b/iframe-resizer-master/docs/parent_page/methods.md new file mode 100755 index 0000000..adfabbb --- /dev/null +++ b/iframe-resizer-master/docs/parent_page/methods.md @@ -0,0 +1,23 @@ +## IFrame Object Methods + +Once the iFrame has been initialized, an `iFrameResizer` object is bound to it. This has the following methods available. + +### close() + +Remove the iFrame from the page. + +### moveToAnchor(anchor) + +Move to anchor in iFrame. + +### removeListeners() + +Detach event listeners from iFrame. This is option allows Virtual DOMs to remove an iFrame tag. It should not normally be required. + +### resize() + +Tell the iFrame to resize itself. + +### sendMessage(message, [targetOrigin]) + +Send data to the containing page, `message` can be any data type that can be serialized into JSON. The `targetOrigin` option is used to restrict where the message is sent to, in case your iFrame navigates away to another domain. diff --git a/iframe-resizer-master/docs/parent_page/options.md b/iframe-resizer-master/docs/parent_page/options.md new file mode 100755 index 0000000..0aa552d --- /dev/null +++ b/iframe-resizer-master/docs/parent_page/options.md @@ -0,0 +1,162 @@ + +## Options + +The following options can be passed to iframe-resizer on the parent page. + +### log + + default: false + type: boolean + +Setting the `log` option to true will make the scripts in both the host page and the iFrame output everything they do to the JavaScript console so you can see the communication between the two scripts. + +### autoResize + + default: true + type: boolean + +When enabled changes to the Window size or the DOM will cause the iFrame to resize to the new content size. Disable if using size method with custom dimensions. + +Note: When set to false the iFrame will still inititally size to the contained content, only additional resizing events are disabled. + +### bodyBackground + + default: null + type: string + +Override the body background style in the iFrame. + +### bodyMargin + + default: null + type: string || number + +Override the default body margin style in the iFrame. A string can be any valid value for the CSS margin attribute, for example '8px 3em'. A number value is converted into px. + +### bodyPadding + + default: null + type: string || number + +Override the default body padding style in the iFrame. A string can be any valid value for the CSS margin attribute, for example '8px 3em'. A number value is converted into px. + +### checkOrigin + + default: true + type: boolean || array + +When set to true, only allow incoming messages from the domain listed in the `src` property of the iFrame tag. If your iFrame navigates between different domains, ports or protocols; then you will need to provide an array of URLs or disable this option. + +### inPageLinks + + default: false + type: boolean + +When enabled in page linking inside the iFrame and from the iFrame to the parent page will be enabled. + +### heightCalculationMethod + + default: 'bodyOffset' + values: 'bodyOffset' | 'bodyScroll' | 'documentElementOffset' | 'documentElementScroll' | + 'max' | 'min' | 'grow' | 'lowestElement' | 'taggedElement' + +By default the height of the iFrame is calculated by converting the margin of the `body` to px and then adding the top and bottom figures to the offsetHeight of the `body` tag. + +In cases where CSS styles causes the content to flow outside the `body` you may need to change this setting to one of the following options. Each can give different values depending on how CSS is used in the page and each has varying side-effects. You will need to experiment to see which is best for any particular circumstance. + +* **bodyOffset** uses `document.body.offsetHeight` +* **bodyScroll** uses `document.body.scrollHeight` * +* **documentElementOffset** uses `document.documentElement.offsetHeight` +* **documentElementScroll** uses `document.documentElement.scrollHeight` * +* **max** takes the largest value of the main four options * +* **min** takes the smallest value of the main four options * +* **lowestElement** Loops though every element in the DOM and finds the lowest bottom point +* **taggedElement** Finds the bottom of the lowest element with a `data-iframe-height` attribute + +Notes: + +**If the default option doesn't work then the best solutions is to use either** taggedElement, **or** lowestElement**.** Alternatively it is possible to add your own custom sizing method directly inside the iFrame, see the [iFrame Page Options](../iframed_page/options.md) section for more details. + + The **lowestElement** option is the most reliable way of determining the page height. However, it does have a performance impact, as it requires checking the position of every element on the page. The **taggedElement** option provides much greater performance by limiting the number of elements that need their position checked. + +* These methods can cause screen flicker in some browsers. + +### maxHeight / maxWidth + + default: infinity + type: integer + +Set maximum height/width of iFrame. + +### minHeight / minWidth + + default: 0 + type: integer + +Set minimum height/width of iFrame. + +### resizeFrom + + default: 'parent' + values: 'parent', 'child' + +Listen for resize events from the parent page, or the iFrame. Select the 'child' value if the iFrame can be resized independently of the browser window. Selecting this value can cause issues with some height calculation methods on mobile devices. + +### scrolling + + default: false + type: boolean | 'omit' + +Enable scroll bars in iFrame. + +* **true** applies `scrolling="yes"` +* **false** applies `scrolling="no"` +* **'omit'** applies no `scrolling` attribute to the iFrame + +### sizeHeight + + default: true + type: boolean + +Resize iFrame to content height. + +### sizeWidth + + default: false + type: boolean + +Resize iFrame to content width. + + +### tolerance + + default: 0 + type: integer + +Set the number of pixels the iFrame content size has to change by, before triggering a resize of the iFrame. + +### widthCalculationMethod + + default: 'scroll' + values: 'bodyOffset' | 'bodyScroll' | 'documentElementOffset' | 'documentElementScroll' | + 'max' | 'min' | 'scroll' | 'rightMostElement' | 'taggedElement' + +By default the width of the page is worked out by taking the greater of the **documentElement** and **body** scrollWidth values. + +Some CSS techniques may require you to change this setting to one of the following options. Each can give different values depending on how CSS is used in the page and each has varying side-effects. You will need to experiment to see which is best for any particular circumstance. + +* **bodyOffset** uses `document.body.offsetWidth` +* **bodyScroll** uses `document.body.scrollWidth` * +* **documentElementOffset** uses `document.documentElement.offsetWidth` +* **documentElementScroll** uses `document.documentElement.scrollWidth` * +* **scroll** takes the largest value of the two scroll options * +* **max** takes the largest value of the main four options * +* **min** takes the smallest value of the main four options * +* **rightMostElement** Loops though every element in the DOM and finds the right most point +* **taggedElement** Finds the left most element with a `data-iframe-width` attribute + +Alternatively it is possible to add your own custom sizing method directly inside the iFrame, see the [iFrame Page Options](../iframed_page/options.md) section for more details + + The **rightMostElement** option is the most reliable way of determining the page width. However, it does have a performance impact as it requires calculating the position of every element on the page. The **taggedElement** option provides much greater performance by limiting the number of elements that need their position checked. + +* These methods can cause screen flicker in some browsers. diff --git a/iframe-resizer-master/docs/readme.md b/iframe-resizer-master/docs/readme.md new file mode 100755 index 0000000..2aa1702 --- /dev/null +++ b/iframe-resizer-master/docs/readme.md @@ -0,0 +1,19 @@ +# iFrame-Resizer Documentation + +- [Getting Started](getting_started.md) +- **Parent Page API** + - [Options](parent_page/options.md) + - [Events](parent_page/events.md) + - [Methods](parent_page/methods.md) +- **IFramed Page API** + - [Options](iframed_page/options.md) + - [Events](iframed_page/events.md) + - [Methods](iframed_page/methods.md) +- **Use with Libraries and Frameworks** + - [React](https://github.com/davidjbradshaw/iframe-resizer-react) + - [Vue](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/use_with/vue.md) + - [Angular](https://github.com/davidjbradshaw/iframe-resizer/issues/478#issuecomment-347958630) + - [jQuery](use_with/jquery.md) +- [Troubleshooting](troubleshooting.md) +- [Upgrade from version 3](upgrade.md) +- [Version history](../CHANGELOG.md) diff --git a/iframe-resizer-master/docs/troubleshooting.md b/iframe-resizer-master/docs/troubleshooting.md new file mode 100755 index 0000000..c355afe --- /dev/null +++ b/iframe-resizer-master/docs/troubleshooting.md @@ -0,0 +1,119 @@ +## Troubleshooting + +The first steps to investigate a problem is to make sure you are using the latest version and then enable the [log](#log) option, which outputs everything that happens to the [JavaScript Console](https://developers.google.com/chrome-developer-tools/docs/console#opening_the_console). This will enable you to see what both the iFrame and host page are up to and also see any JavaScript error messages. + +Solutions for the most common problems are outlined in this section. If you need further help, then please ask questions on [StackOverflow](https://stackoverflow.com/questions/tagged/iframe-resizer) with the `iframe-resizer` tag. + +Bug reports and pull requests are welcome on the [issue tracker](https://github.com/davidjbradshaw/iframe-resizer/issues). Please read the [contributing guidelines](https://github.com/davidjbradshaw/iframe-resizer/blob/master/CONTRIBUTING.md) before opening a ticket, as this will ensure a faster resolution. + +### Multiple IFrames on one page + +When the resizer does not work using multiple IFrames on one page, make sure that each frame has an unique id or no ids at all. + +### IFrame not sizing correctly + +If a larger element of content is removed from the normal document flow, through the use of absolute positioning, it can prevent the browser working out the correct size of the page. In such cases you can change the [heightCalculationMethod](./parent_page/options.md#heightcalculationmethod) to uses one of the other sizing methods. + +### IFrame not downsizing + +The most likely cause of this problem is having set the height of an element to be 100% of the page somewhere in your CSS. This is normally on the `html` or `body` elements, but it could be on any element in the page. This can sometimes be got around by using the `taggedElement` height calculation method and added a `data-iframe-height` attribute to the element that you want to define the bottom position of the page. You may find it useful to use `position: relative` on this element to define a bottom margin or allow space for a floating footer. + +Not having a valid [HTML document type](https://en.wikipedia.org/wiki/Document_type_declaration) in the iFrame can also sometimes prevent downsizing. At it's most simplest this can be the following. + +```html + +``` + +### IFrame not resizing + +The most common cause of this is not placing the [iframeResizer.contentWindow.min.js](https://raw.github.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.contentWindow.min.js) script inside the iFramed page. If the other page is on a domain outside your control and you can not add JavaScript to that page, then now is the time to give up all hope of ever getting the iFrame to size to the content. As it is impossible to work out the size of the contained page, without using JavaScript on both the parent and child pages. + +### IFrame not detecting CSS :hover events + +If your page resizes via CSS `:hover` events, these won't be detected by default. It is however possible to create `mouseover` and `mouseout` event listeners on the elements that are resized via CSS and have these events call the [parentIFrame.size()](##parentiframesize-customheight-customwidth) method. With jQuery this can be done as follows + +```js +function resize(){ + if ('parentIFrame' in window) { + // Fix race condition in FireFox with setTimeout + setTimeout(parentIFrame.size.bind(parentIFrame),0); + } +} + +$(*Element with hover style*).hover(resize); +``` + +### IFrame not detecting textarea resizes + +Both FireFox and the WebKit based browsers allow the user to resize `textarea` input boxes. Unfortunately the WebKit browsers don't trigger the mutation event when this happens. This can be worked around to some extent with the following code. + +```js +function store() { + this.x = this.offsetWidth + this.y = this.offsetHeight +} + +$('textarea') + .each(store) + .on('mouseover mouseout', function() { + if (this.offsetWidth !== this.x || this.offsetHeight !== this.y) { + store.call(this) + if ('parentIFrame' in window) { + parentIFrame.size() + } + } + }) +``` + +### IFrame flickers + +Some of the alternate [height calculation methods](./parent_page/options.md#heightcalculationmethod), such as **max** can cause the iFrame to flicker. This is due to the fact that to check for downsizing, the iFrame first has to be downsized before the new height can be worked out. This effect can be reduced by setting a [minSize](./docs/parent_page/options.md#minheight--minwidth) value, so that the iFrame is not reset to zero height before regrowing. + +In modern browsers, if the default [height calculation method](./parent_page/options.md#heightcalculationmethod) does not work, then it is normally best to use **taggedElement** or **lowestElement**, which are both flicker free. + +Please see the notes section under [heightCalculationMethod](./parent_page/options.md#heightcalculationmethod) to understand the limitations of the different options. + +### Localhost 127.0.0.1 and file:/// + +When an iframe is located on your local machine the browser adds extra security restrictions to cross-domain iframes. These will stop iframe-resizer from functioning. If you need to test something locally, then it is best to use the external IP Address of the machine. + +### Failed to execute 'postMessage' on 'DOMWindow' + +This error occurs when the parent window tries to send a message to the iframe before it has loaded. IFrameResize makes multiple attempts to talk to the iFrame, so if everything is working then you can safely ignore this error message. + +If you're still having problems, or you really want to not ignore the error, then you can try delaying the call to `iframeResize()` until after the `onLoad` event of the iframe has fired. + +If this does not fix the problem then check `x-Frame-Options` http header on the server that is sending the iframe content, as this can also block calls to `postMessage` if set incorrectly. + + +### ParentIFrame not found errors + +The `parentIFrame` object is created once the iFrame has been initially resized. If you wish to use it during page load you will need call it from the onReady. + +```html + + +``` + +### PDF and OpenDocument files + +It is not possible to add the required JavaScript to PDF and ODF files. However, you can get around this limitation by using [ViewerJS](https://viewerjs.org/) to render these files inside a HTML page, that also contains the iFrame JavaScript file ([iframeResizer.contentWindow.min.js](https://raw.github.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.contentWindow.min.js)). + +### Unexpected message received error + +By default the origin of incoming messages is checked against the `src` attribute of the iFrame. If they don't match an error is thrown. This behaviour can be disabled by setting the [checkOrigin](./docs/parent_page/options.md#checkorigin) option to **false**. + +### Width not resizing + +By default only changes in height are detected, if you want to calculate the width you need to set the `sizeWidth` option to true and the `sizeHeight` option to false. + +### Frame has not responded within 5 seconds + +This can happen when postMessage is being blocked in browser. There could be multiple reasons to that but in some cases we found that RocketLoader extension within Cloudflare was the reason. Try disabling it if you are using cloudflare. diff --git a/iframe-resizer-master/docs/upgrade.md b/iframe-resizer-master/docs/upgrade.md new file mode 100755 index 0000000..5456d70 --- /dev/null +++ b/iframe-resizer-master/docs/upgrade.md @@ -0,0 +1,5 @@ +## Upgrading to version 4 + +In version 4 support for IE 8-10 and Andriod 4.4 has been removed, if you still need this then please use [version 3](https://github.com/davidjbradshaw/iframe-resizer/tree/V3) of this library. + +The callback methods have been renamed to onEvents, so for example `scrollCallback` is now called `onScroll`. This is to enable better integration with modern libraries such as React. diff --git a/iframe-resizer-master/docs/use_with/jquery.md b/iframe-resizer-master/docs/use_with/jquery.md new file mode 100755 index 0000000..355cef3 --- /dev/null +++ b/iframe-resizer-master/docs/use_with/jquery.md @@ -0,0 +1,7 @@ +## jQuery + +If jQuery is detected on the page, then this library provides a simple jQuery interface. + +```js +$('iframe').iFrameResize([{ options }]) +``` diff --git a/iframe-resizer-master/docs/use_with/vue.md b/iframe-resizer-master/docs/use_with/vue.md new file mode 100755 index 0000000..d6b8ed5 --- /dev/null +++ b/iframe-resizer-master/docs/use_with/vue.md @@ -0,0 +1,30 @@ +## Vue + +Create the following Vue directive + +```js +import Vue from 'vue' +import iframeResize from 'iframe-resizer/js/iframeResizer'; + +Vue.directive('resize', { + bind: function(el, { value = {} }) { + el.addEventListener('load', () => iframeResize(value, el)) + }, + unbind: function (el) { + el.iFrameResizer.removeListeners(); + } +}) +``` + +and then include it on your page as follows. + +```html + +``` + +- Thanks to [Aldebaran Desombergh](https://github.com/davidjbradshaw/iframe-resizer/issues/513#issuecomment-538333854) for this example diff --git a/iframe-resizer-master/example/frame.absolute.html b/iframe-resizer-master/example/frame.absolute.html new file mode 100755 index 0000000..6a9936c --- /dev/null +++ b/iframe-resizer-master/example/frame.absolute.html @@ -0,0 +1,127 @@ + + + + + iFrame message passing test + + + + + + + +

+ iFrame + + Back to page 1 +   + Bottom +   + Scroll to iFrame +   + Jump to iFrame anchor + Jump to parent anchor +

+

+ This page has an absolute position element that take it out side the + normal document body, which is marked with a red border on this page. This + prevents the normal height calculation, which is based on the body tag + from returning the correct height. To work around this you can set the + heightCalculationMethod option to use one of the other page height + properties. +

+

+ Use the dropdown to change the sizing method of the page, select the + different sizing options to see how the effect the page. Note that they + can have different effects in different browsers, so you are normally best + off selecting max if you need to change away from the default + bodyOffset option. +

+

+ Height Calculation Method + +

+

+ This option should be used sparingly, as the alternate methods can be + less accurate at working out the correct page size, can cause screen + flicker and can sometimes fail to reduce in size when the frame content + changes in browsers that do not support mutationObservers (See + caniuse.com for + details). +

+ Test in page anchor + +
+ Absolute positioned element + Top +
+ + + + + + + diff --git a/iframe-resizer-master/example/frame.content.html b/iframe-resizer-master/example/frame.content.html new file mode 100755 index 0000000..cd2d67f --- /dev/null +++ b/iframe-resizer-master/example/frame.content.html @@ -0,0 +1,125 @@ + + + + + iFrame message passing test + + + + + + + + iFrame + Toggle content +   + Size(250) +   + autoResize(true) + + autoResize(false) + + Nested +   + :Hover +   + TextArea +   + Absolute Position +   + Send Message +   + Close + +

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim + veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea + commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing + pleasure and praising pain was born and I will give you a complete account + of the system, and expound the actual teachings of the great explorer of + the truth, the master-builder of human happiness. No one rejects, + dislikes, or avoids pleasure itself, because it is pleasure, but because + those who do not know how to pursue pleasure rationally encounter + consequences that are extremely painful. Nor again is there anyone who + loves or pursues or desires to obtain pain of itself, because it is pain, + but because occasionally circumstances occur in which toil and pain can + procure him some great pleasure. To take a trivial example, which of us + ever undertakes laborious physical exercise, except to obtain some + advantage from it? But who has any right to find fault with a man who + chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men + who are so beguiled and demoralized by the charms of pleasure of the + moment, so blinded by desire, that they cannot foresee the pain and + trouble that are bound to ensue; and equal blame belongs to those who fail + in their duty through weakness of will, which is the same as saying + through shrinking from toil and pain. These cases are perfectly simple and + easy to distinguish. In a free hour, when our power of choice is + untrammelled and when nothing prevents our being able to do what we like + best, every pleasure is to be welcomed and every pain avoided. But in + certain circumstances and owing to the claims of duty or the obligations + of business it will frequently occur that pleasures have to be repudiated + and annoyances accepted. The wise man therefore always holds in these + matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+ + + + + + + + diff --git a/iframe-resizer-master/example/frame.hover.html b/iframe-resizer-master/example/frame.hover.html new file mode 100755 index 0000000..4c7da21 --- /dev/null +++ b/iframe-resizer-master/example/frame.hover.html @@ -0,0 +1,68 @@ + + + + + iFrame message passing test + + + + + + + iFrame :Hover Example + Back to page 1 + +

+ Mouse over the code example below. +

+ + + <!-- #code --> + + + + + + + +
+ + +
+ + + + diff --git a/iframe-resizer-master/example/frame.nested.html b/iframe-resizer-master/example/frame.nested.html new file mode 100755 index 0000000..02bf7bd --- /dev/null +++ b/iframe-resizer-master/example/frame.nested.html @@ -0,0 +1,100 @@ + + + + + iFrame message passing test + + + + + + + + Back to page 1 +

Nested iFrame

+

+ Resize window or click one of the links in the nested iFrame to watch it + resize. +

+
+ +
+

+ + + + + + + + diff --git a/iframe-resizer-master/example/frame.textarea.html b/iframe-resizer-master/example/frame.textarea.html new file mode 100755 index 0000000..9782ee8 --- /dev/null +++ b/iframe-resizer-master/example/frame.textarea.html @@ -0,0 +1,45 @@ + + + + + iFrame message passing test + + + + + + + iFrame TextArea Example + Back to page 1 + +

+ Resize the textarea below. +

+ + + + + + + + + diff --git a/iframe-resizer-master/example/frame.tolerance.html b/iframe-resizer-master/example/frame.tolerance.html new file mode 100755 index 0000000..e2847aa --- /dev/null +++ b/iframe-resizer-master/example/frame.tolerance.html @@ -0,0 +1,113 @@ + + + + + iFrame message passing test + + + + + +

+ iFrame + + Back to page 1 +   + Bottom +

+

+ This page has an absolute position element that take it out side the normal + document body, which is marked with a red border on this page. This + prevents the normal height calculation, which is based on the body tag + from returning the correct height. To work around this you can set the + heightCalculationMethod option to use one of the other page height + properties. +

+

+ Use the dropdown to change the sizing method of the page, select the + different sizing options to see how the effect the page. Note that they + can have different effects in different browsers, so you are normally best + off selecting max if you need to change away from the default + bodyOffset option. +

+

+ Height Calculation Method + +

+

+ This option should be used sparingly, as the alternate methods can be + less accurate at working out the correct page size, can cause screen + flicker and can sometimes fail to reduce in size when the frame content + changes in browsers that do not support mutationObservers (See + caniuse.com for + details). +

+ +
+ Absolute positioned element + Top +
+ + + + + + diff --git a/iframe-resizer-master/example/index.html b/iframe-resizer-master/example/index.html new file mode 100755 index 0000000..68291ca --- /dev/null +++ b/iframe-resizer-master/example/index.html @@ -0,0 +1,110 @@ + + + + + iFrame message passing test + + + + + + +

Automagically resizing iFrame

+

+ Resize window or click one of the links in the iFrame to watch it resize. + Or try with two iFrames. +

+
+ +
+

+
+ For details on how this works, see + https://davidjbradshaw.github.io/iframe-resizer/. +
+ + + + + + + + + diff --git a/iframe-resizer-master/example/two.html b/iframe-resizer-master/example/two.html new file mode 100755 index 0000000..3cfa4d7 --- /dev/null +++ b/iframe-resizer-master/example/two.html @@ -0,0 +1,88 @@ + + + + + iFrame message passing test + + + + + + +

Automagically resizing iFrame

+

+ Resize window or click one of the links in the iFrame to watch it resize. + Or go back to a + single iFrame. +

+
+ + +
+

+
+ For details on how this works, see + https://davidjbradshaw.github.io/iframe-resizer/. +
+ + + + + + + + + diff --git a/iframe-resizer-master/gruntfile.js b/iframe-resizer-master/gruntfile.js new file mode 100755 index 0000000..0256fc7 --- /dev/null +++ b/iframe-resizer-master/gruntfile.js @@ -0,0 +1,218 @@ +module.exports = function (grunt) { + // show elapsed time at the end + require('time-grunt')(grunt) // eslint-disable-line import/no-extraneous-dependencies + + // load all grunt tasks + // require('load-grunt-tasks')(grunt); + + // eslint-disable-next-line import/no-extraneous-dependencies + require('jit-grunt')(grunt, { + 'bump-only': 'grunt-bump', + 'bump-commit': 'grunt-bump', + coveralls: 'grunt-karma-coveralls' + }) + + // Project configuration. + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + + meta: { + bannerLocal: + '/*! iFrame Resizer (iframeSizer.min.js ) - v<%= pkg.version %> - ' + + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + + ' * Desc: Force cross domain iframes to size to content.\n' + + ' * Requires: iframeResizer.contentWindow.min.js to be loaded into the target frame.\n' + + ' * Copyright: (c) <%= grunt.template.today("yyyy") %> David J. Bradshaw - dave@bradshaw.net\n' + + ' * License: MIT\n */\n', + bannerRemote: + '/*! iFrame Resizer (iframeSizer.contentWindow.min.js) - v<%= pkg.version %> - ' + + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + + ' * Desc: Include this file in any page being loaded into an iframe\n' + + ' * to force the iframe to resize to the content size.\n' + + ' * Requires: iframeResizer.min.js on host page.\n' + + ' * Copyright: (c) <%= grunt.template.today("yyyy") %> David J. Bradshaw - dave@bradshaw.net\n' + + ' * License: MIT\n */\n' + }, + + clean: ['coverage', 'coverageLcov'], + + qunit: { + files: ['test/*.html'], + puppeteer: { + args: [ + '--disable-web-security', + '--allow-file-access-from-files', + '--user-data-dir=/tmp' + ] + } + }, + + karma: { + options: { + configFile: 'karma.conf.js' + }, + travis: { + singleRun: true, + browsers: ['Chrome'], // 'PhantomJS' + coverageReporter: { + type: 'lcov', + dir: 'coverageLcov/' + } + }, + single: { + singleRun: true, + browsers: ['Chrome', 'Firefox'] // 'Safari', 'PhantomJS' + }, + watch: { + singleRun: false, + browsers: ['Chrome'], // 'Firefox', 'Safari', 'PhantomJS' + reporters: ['logcapture', 'progress'] + } + }, + + coveralls: { + options: { + debug: true, + coverageDir: 'coverageLcov', + dryRun: false, + force: true, + recursive: true + } + }, + + uglify: { + options: { + sourceMap: true, + sourceMapIncludeSources: true, + report: 'gzip' + }, + local: { + options: { + banner: '<%= meta.bannerLocal %>', + sourceMapName: 'js/iframeResizer.map' + }, + src: ['js/iframeResizer.js'], + dest: 'js/iframeResizer.min.js' + }, + remote: { + options: { + banner: '<%= meta.bannerRemote %>', + sourceMapName: 'js/iframeResizer.contentWindow.map' + }, + src: ['js/iframeResizer.contentWindow.js'], + dest: 'js/iframeResizer.contentWindow.min.js' + } + }, + + watch: { + files: ['src/**/*'], + tasks: 'default' + }, + + bump: { + options: { + files: ['package.json', 'package-lock.json', 'bower.json'], + updateConfigs: ['pkg'], + commit: true, + commitMessage: 'Release v%VERSION%', + commitFiles: ['-a'], // '-a' for all files + createTag: true, + tagName: 'v%VERSION%', + tagMessage: 'Version %VERSION%', + push: true, + pushTo: 'origin', + gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d' // options to use with '$ git describe' + } + }, + + shell: { + options: { + stdout: true, + stderr: true, + failOnError: true + }, + npm: { + command: 'npm publish' + }, + deployExample: { + command: function () { + var retStr = '', + fs = require('fs') + + if (fs.existsSync('bin')) { + retStr = 'bin/deploy.sh' + } + + return retStr + } + } + }, + + jsonlint: { + json: { + src: ['*.json'] + } + }, + + removeBlock: { + options: ['TEST CODE START', 'TEST CODE END'], + files: [ + { + src: 'src/iframeResizer.contentWindow.js', + dest: 'js/iframeResizer.contentWindow.js' + } + ] + }, + + copy: { + main: { + nonull: true, + src: 'src/iframeResizer.js', + dest: 'js/iframeResizer.js' + } + }, + + eslint: { + target: ['src/**', '*.js'] + } + }) + + grunt.registerTask('default', ['notest', 'karma:single']) + grunt.registerTask('build', ['removeBlock', 'copy', 'uglify']) + grunt.registerTask('notest', ['eslint', 'jsonlint', 'build']) + grunt.registerTask('test', ['clean', 'eslint', 'karma:single', 'qunit']) + grunt.registerTask('test-watch', ['clean', 'karma:watch']) + grunt.registerTask('travis', [ + 'clean', + 'notest', + 'qunit', + 'karma:travis', + 'coveralls' + ]) + + grunt.registerTask('postBump', ['build', 'bump-commit', 'shell']) + grunt.registerTask('preBump', ['clean', 'notest']) + grunt.registerTask('patch', ['preBump', 'bump-only:patch', 'postBump']) + grunt.registerTask('minor', ['preBump', 'bump-only:minor', 'postBump']) + grunt.registerTask('major', ['preBump', 'bump-only:major', 'postBump']) + + grunt.registerMultiTask('removeBlock', function () { + // set up a removal regular expression + // eslint-disable-next-line security/detect-non-literal-regexp + var removalRegEx = new RegExp( + '(// ' + + this.options()[0] + + ' //)(?:[^])*?(// ' + + this.options()[1] + + ' //)', + 'g' + ) + + this.data.forEach(function (fileObj) { + var sourceFile = grunt.file.read(fileObj.src) + var removedFile = sourceFile.replace(removalRegEx, '') + + grunt.file.write(fileObj.dest, removedFile) + }) // for each loop end + }) +} diff --git a/iframe-resizer-master/index.js b/iframe-resizer-master/index.js new file mode 100755 index 0000000..bb62b01 --- /dev/null +++ b/iframe-resizer-master/index.js @@ -0,0 +1 @@ +module.exports = require('./js') diff --git a/iframe-resizer-master/js/iframeResizer.contentWindow.js b/iframe-resizer-master/js/iframeResizer.contentWindow.js new file mode 100755 index 0000000..017ac16 --- /dev/null +++ b/iframe-resizer-master/js/iframeResizer.contentWindow.js @@ -0,0 +1,1303 @@ +/* + * File: iframeResizer.contentWindow.js + * Desc: Include this file in any page being loaded into an iframe + * to force the iframe to resize to the content size. + * Requires: iframeResizer.js on host page. + * Doc: https://github.com/davidjbradshaw/iframe-resizer + * Author: David J. Bradshaw - dave@bradshaw.net + * + */ + +// eslint-disable-next-line sonarjs/cognitive-complexity, no-shadow-restricted-names +;(function (undefined) { + if (typeof window === 'undefined') return // don't run for server side render + + var autoResize = true, + base = 10, + bodyBackground = '', + bodyMargin = 0, + bodyMarginStr = '', + bodyObserver = null, + bodyPadding = '', + calculateWidth = false, + doubleEventList = { resize: 1, click: 1 }, + eventCancelTimer = 128, + firstRun = true, + height = 1, + heightCalcModeDefault = 'bodyOffset', + heightCalcMode = heightCalcModeDefault, + initLock = true, + initMsg = '', + inPageLinks = {}, + interval = 32, + intervalTimer = null, + logging = false, + mouseEvents = false, + msgID = '[iFrameSizer]', // Must match host page msg ID + msgIdLen = msgID.length, + myID = '', + resetRequiredMethods = { + max: 1, + min: 1, + bodyScroll: 1, + documentElementScroll: 1 + }, + resizeFrom = 'child', + sendPermit = true, + target = window.parent, + targetOriginDefault = '*', + tolerance = 0, + triggerLocked = false, + triggerLockedTimer = null, + throttledTimer = 16, + width = 1, + widthCalcModeDefault = 'scroll', + widthCalcMode = widthCalcModeDefault, + win = window, + onMessage = function () { + warn('onMessage function not defined') + }, + onReady = function () {}, + onPageInfo = function () {}, + customCalcMethods = { + height: function () { + warn('Custom height calculation function not defined') + return document.documentElement.offsetHeight + }, + width: function () { + warn('Custom width calculation function not defined') + return document.body.scrollWidth + } + }, + eventHandlersByName = {}, + passiveSupported = false + + function noop() {} + + try { + var options = Object.create( + {}, + { + passive: { + get: function () { + passiveSupported = true + } + } + } + ) + window.addEventListener('test', noop, options) + window.removeEventListener('test', noop, options) + } catch (error) { + /* */ + } + + function addEventListener(el, evt, func, options) { + el.addEventListener(evt, func, passiveSupported ? options || {} : false) + } + + function removeEventListener(el, evt, func) { + el.removeEventListener(evt, func, false) + } + + function capitalizeFirstLetter(string) { + return string.charAt(0).toUpperCase() + string.slice(1) + } + + // Based on underscore.js + function throttle(func) { + var context, + args, + result, + timeout = null, + previous = 0, + later = function () { + previous = Date.now() + timeout = null + result = func.apply(context, args) + if (!timeout) { + // eslint-disable-next-line no-multi-assign + context = args = null + } + } + + return function () { + var now = Date.now() + + if (!previous) { + previous = now + } + + var remaining = throttledTimer - (now - previous) + + context = this + args = arguments + + if (remaining <= 0 || remaining > throttledTimer) { + if (timeout) { + clearTimeout(timeout) + timeout = null + } + + previous = now + result = func.apply(context, args) + + if (!timeout) { + // eslint-disable-next-line no-multi-assign + context = args = null + } + } else if (!timeout) { + timeout = setTimeout(later, remaining) + } + + return result + } + } + + function formatLogMsg(msg) { + return msgID + '[' + myID + '] ' + msg + } + + function log(msg) { + if (logging && 'object' === typeof window.console) { + // eslint-disable-next-line no-console + console.log(formatLogMsg(msg)) + } + } + + function warn(msg) { + if ('object' === typeof window.console) { + // eslint-disable-next-line no-console + console.warn(formatLogMsg(msg)) + } + } + + function init() { + readDataFromParent() + log('Initialising iFrame (' + window.location.href + ')') + readDataFromPage() + setMargin() + setBodyStyle('background', bodyBackground) + setBodyStyle('padding', bodyPadding) + injectClearFixIntoBodyElement() + checkHeightMode() + checkWidthMode() + stopInfiniteResizingOfIFrame() + setupPublicMethods() + setupMouseEvents() + startEventListeners() + inPageLinks = setupInPageLinks() + sendSize('init', 'Init message from host page') + onReady() + } + + function readDataFromParent() { + function strBool(str) { + return 'true' === str + } + + var data = initMsg.substr(msgIdLen).split(':') + + myID = data[0] + bodyMargin = undefined !== data[1] ? Number(data[1]) : bodyMargin // For V1 compatibility + calculateWidth = undefined !== data[2] ? strBool(data[2]) : calculateWidth + logging = undefined !== data[3] ? strBool(data[3]) : logging + interval = undefined !== data[4] ? Number(data[4]) : interval + autoResize = undefined !== data[6] ? strBool(data[6]) : autoResize + bodyMarginStr = data[7] + heightCalcMode = undefined !== data[8] ? data[8] : heightCalcMode + bodyBackground = data[9] + bodyPadding = data[10] + tolerance = undefined !== data[11] ? Number(data[11]) : tolerance + inPageLinks.enable = undefined !== data[12] ? strBool(data[12]) : false + resizeFrom = undefined !== data[13] ? data[13] : resizeFrom + widthCalcMode = undefined !== data[14] ? data[14] : widthCalcMode + mouseEvents = undefined !== data[15] ? Boolean(data[15]) : mouseEvents + } + + function depricate(key) { + var splitName = key.split('Callback') + + if (splitName.length === 2) { + var name = + 'on' + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1) + this[name] = this[key] + delete this[key] + warn( + "Deprecated: '" + + key + + "' has been renamed '" + + name + + "'. The old method will be removed in the next major version." + ) + } + } + + function readDataFromPage() { + function readData() { + var data = window.iFrameResizer + + log('Reading data from page: ' + JSON.stringify(data)) + Object.keys(data).forEach(depricate, data) + + onMessage = 'onMessage' in data ? data.onMessage : onMessage + onReady = 'onReady' in data ? data.onReady : onReady + targetOriginDefault = + 'targetOrigin' in data ? data.targetOrigin : targetOriginDefault + heightCalcMode = + 'heightCalculationMethod' in data + ? data.heightCalculationMethod + : heightCalcMode + widthCalcMode = + 'widthCalculationMethod' in data + ? data.widthCalculationMethod + : widthCalcMode + } + + function setupCustomCalcMethods(calcMode, calcFunc) { + if ('function' === typeof calcMode) { + log('Setup custom ' + calcFunc + 'CalcMethod') + customCalcMethods[calcFunc] = calcMode + calcMode = 'custom' + } + + return calcMode + } + + if ( + 'iFrameResizer' in window && + Object === window.iFrameResizer.constructor + ) { + readData() + heightCalcMode = setupCustomCalcMethods(heightCalcMode, 'height') + widthCalcMode = setupCustomCalcMethods(widthCalcMode, 'width') + } + + log('TargetOrigin for parent set to: ' + targetOriginDefault) + } + + function chkCSS(attr, value) { + if (-1 !== value.indexOf('-')) { + warn('Negative CSS value ignored for ' + attr) + value = '' + } + return value + } + + function setBodyStyle(attr, value) { + if (undefined !== value && '' !== value && 'null' !== value) { + document.body.style[attr] = value + log('Body ' + attr + ' set to "' + value + '"') + } + } + + function setMargin() { + // If called via V1 script, convert bodyMargin from int to str + if (undefined === bodyMarginStr) { + bodyMarginStr = bodyMargin + 'px' + } + + setBodyStyle('margin', chkCSS('margin', bodyMarginStr)) + } + + function stopInfiniteResizingOfIFrame() { + document.documentElement.style.height = '' + document.body.style.height = '' + log('HTML & body height set to "auto"') + } + + function manageTriggerEvent(options) { + var listener = { + add: function (eventName) { + function handleEvent() { + sendSize(options.eventName, options.eventType) + } + + eventHandlersByName[eventName] = handleEvent + + addEventListener(window, eventName, handleEvent, { passive: true }) + }, + remove: function (eventName) { + var handleEvent = eventHandlersByName[eventName] + delete eventHandlersByName[eventName] + + removeEventListener(window, eventName, handleEvent) + } + } + + if (options.eventNames && Array.prototype.map) { + options.eventName = options.eventNames[0] + options.eventNames.map(listener[options.method]) + } else { + listener[options.method](options.eventName) + } + + log( + capitalizeFirstLetter(options.method) + + ' event listener: ' + + options.eventType + ) + } + + function manageEventListeners(method) { + manageTriggerEvent({ + method: method, + eventType: 'Animation Start', + eventNames: ['animationstart', 'webkitAnimationStart'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Animation Iteration', + eventNames: ['animationiteration', 'webkitAnimationIteration'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Animation End', + eventNames: ['animationend', 'webkitAnimationEnd'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Input', + eventName: 'input' + }) + manageTriggerEvent({ + method: method, + eventType: 'Mouse Up', + eventName: 'mouseup' + }) + manageTriggerEvent({ + method: method, + eventType: 'Mouse Down', + eventName: 'mousedown' + }) + manageTriggerEvent({ + method: method, + eventType: 'Orientation Change', + eventName: 'orientationchange' + }) + manageTriggerEvent({ + method: method, + eventType: 'Print', + eventNames: ['afterprint', 'beforeprint'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Ready State Change', + eventName: 'readystatechange' + }) + manageTriggerEvent({ + method: method, + eventType: 'Touch Start', + eventName: 'touchstart' + }) + manageTriggerEvent({ + method: method, + eventType: 'Touch End', + eventName: 'touchend' + }) + manageTriggerEvent({ + method: method, + eventType: 'Touch Cancel', + eventName: 'touchcancel' + }) + manageTriggerEvent({ + method: method, + eventType: 'Transition Start', + eventNames: [ + 'transitionstart', + 'webkitTransitionStart', + 'MSTransitionStart', + 'oTransitionStart', + 'otransitionstart' + ] + }) + manageTriggerEvent({ + method: method, + eventType: 'Transition Iteration', + eventNames: [ + 'transitioniteration', + 'webkitTransitionIteration', + 'MSTransitionIteration', + 'oTransitionIteration', + 'otransitioniteration' + ] + }) + manageTriggerEvent({ + method: method, + eventType: 'Transition End', + eventNames: [ + 'transitionend', + 'webkitTransitionEnd', + 'MSTransitionEnd', + 'oTransitionEnd', + 'otransitionend' + ] + }) + if ('child' === resizeFrom) { + manageTriggerEvent({ + method: method, + eventType: 'IFrame Resized', + eventName: 'resize' + }) + } + } + + function checkCalcMode(calcMode, calcModeDefault, modes, type) { + if (calcModeDefault !== calcMode) { + if (!(calcMode in modes)) { + warn( + calcMode + ' is not a valid option for ' + type + 'CalculationMethod.' + ) + calcMode = calcModeDefault + } + log(type + ' calculation method set to "' + calcMode + '"') + } + + return calcMode + } + + function checkHeightMode() { + heightCalcMode = checkCalcMode( + heightCalcMode, + heightCalcModeDefault, + getHeight, + 'height' + ) + } + + function checkWidthMode() { + widthCalcMode = checkCalcMode( + widthCalcMode, + widthCalcModeDefault, + getWidth, + 'width' + ) + } + + function startEventListeners() { + if (true === autoResize) { + manageEventListeners('add') + setupMutationObserver() + } else { + log('Auto Resize disabled') + } + } + + // function stopMsgsToParent() { + // log('Disable outgoing messages') + // sendPermit = false + // } + + // function removeMsgListener() { + // log('Remove event listener: Message') + // removeEventListener(window, 'message', receiver) + // } + + function disconnectMutationObserver() { + if (null !== bodyObserver) { + /* istanbul ignore next */ // Not testable in PhantonJS + bodyObserver.disconnect() + } + } + + function stopEventListeners() { + manageEventListeners('remove') + disconnectMutationObserver() + clearInterval(intervalTimer) + } + + // function teardown() { + // stopMsgsToParent() + // removeMsgListener() + // if (true === autoResize) stopEventListeners() + // } + + function injectClearFixIntoBodyElement() { + var clearFix = document.createElement('div') + clearFix.style.clear = 'both' + // Guard against the following having been globally redefined in CSS. + clearFix.style.display = 'block' + clearFix.style.height = '0' + document.body.appendChild(clearFix) + } + + function setupInPageLinks() { + function getPagePosition() { + return { + x: + window.pageXOffset !== undefined + ? window.pageXOffset + : document.documentElement.scrollLeft, + y: + window.pageYOffset !== undefined + ? window.pageYOffset + : document.documentElement.scrollTop + } + } + + function getElementPosition(el) { + var elPosition = el.getBoundingClientRect(), + pagePosition = getPagePosition() + + return { + x: parseInt(elPosition.left, 10) + parseInt(pagePosition.x, 10), + y: parseInt(elPosition.top, 10) + parseInt(pagePosition.y, 10) + } + } + + function findTarget(location) { + function jumpToTarget(target) { + var jumpPosition = getElementPosition(target) + + log( + 'Moving to in page link (#' + + hash + + ') at x: ' + + jumpPosition.x + + ' y: ' + + jumpPosition.y + ) + sendMsg(jumpPosition.y, jumpPosition.x, 'scrollToOffset') // X&Y reversed at sendMsg uses height/width + } + + var hash = location.split('#')[1] || location, // Remove # if present + hashData = decodeURIComponent(hash), + target = + document.getElementById(hashData) || + document.getElementsByName(hashData)[0] + + if (undefined !== target) { + jumpToTarget(target) + } else { + log( + 'In page link (#' + + hash + + ') not found in iFrame, so sending to parent' + ) + sendMsg(0, 0, 'inPageLink', '#' + hash) + } + } + + function checkLocationHash() { + var hash = window.location.hash + var href = window.location.href + + if ('' !== hash && '#' !== hash) { + findTarget(href) + } + } + + function bindAnchors() { + function setupLink(el) { + function linkClicked(e) { + e.preventDefault() + + /* jshint validthis:true */ + findTarget(this.getAttribute('href')) + } + + if ('#' !== el.getAttribute('href')) { + addEventListener(el, 'click', linkClicked) + } + } + + Array.prototype.forEach.call( + document.querySelectorAll('a[href^="#"]'), + setupLink + ) + } + + function bindLocationHash() { + addEventListener(window, 'hashchange', checkLocationHash) + } + + function initCheck() { + // Check if page loaded with location hash after init resize + setTimeout(checkLocationHash, eventCancelTimer) + } + + function enableInPageLinks() { + /* istanbul ignore else */ // Not testable in phantonJS + if (Array.prototype.forEach && document.querySelectorAll) { + log('Setting up location.hash handlers') + bindAnchors() + bindLocationHash() + initCheck() + } else { + warn( + 'In page linking not fully supported in this browser! (See README.md for IE8 workaround)' + ) + } + } + + if (inPageLinks.enable) { + enableInPageLinks() + } else { + log('In page linking not enabled') + } + + return { + findTarget: findTarget + } + } + + function setupMouseEvents() { + if (mouseEvents !== true) return + + function sendMouse(e) { + sendMsg(0, 0, e.type, e.screenY + ':' + e.screenX) + } + + function addMouseListener(evt, name) { + log('Add event listener: ' + name) + addEventListener(window.document, evt, sendMouse) + } + + addMouseListener('mouseenter', 'Mouse Enter') + addMouseListener('mouseleave', 'Mouse Leave') + } + + function setupPublicMethods() { + log('Enable public methods') + + win.parentIFrame = { + autoResize: function autoResizeF(resize) { + if (true === resize && false === autoResize) { + autoResize = true + startEventListeners() + } else if (false === resize && true === autoResize) { + autoResize = false + stopEventListeners() + } + sendMsg(0, 0, 'autoResize', JSON.stringify(autoResize)) + return autoResize + }, + + close: function closeF() { + sendMsg(0, 0, 'close') + // teardown() + }, + + getId: function getIdF() { + return myID + }, + + getPageInfo: function getPageInfoF(callback) { + if ('function' === typeof callback) { + onPageInfo = callback + sendMsg(0, 0, 'pageInfo') + } else { + onPageInfo = function () {} + sendMsg(0, 0, 'pageInfoStop') + } + }, + + moveToAnchor: function moveToAnchorF(hash) { + inPageLinks.findTarget(hash) + }, + + reset: function resetF() { + resetIFrame('parentIFrame.reset') + }, + + scrollTo: function scrollToF(x, y) { + sendMsg(y, x, 'scrollTo') // X&Y reversed at sendMsg uses height/width + }, + + scrollToOffset: function scrollToF(x, y) { + sendMsg(y, x, 'scrollToOffset') // X&Y reversed at sendMsg uses height/width + }, + + sendMessage: function sendMessageF(msg, targetOrigin) { + sendMsg(0, 0, 'message', JSON.stringify(msg), targetOrigin) + }, + + setHeightCalculationMethod: function setHeightCalculationMethodF( + heightCalculationMethod + ) { + heightCalcMode = heightCalculationMethod + checkHeightMode() + }, + + setWidthCalculationMethod: function setWidthCalculationMethodF( + widthCalculationMethod + ) { + widthCalcMode = widthCalculationMethod + checkWidthMode() + }, + + setTargetOrigin: function setTargetOriginF(targetOrigin) { + log('Set targetOrigin: ' + targetOrigin) + targetOriginDefault = targetOrigin + }, + + size: function sizeF(customHeight, customWidth) { + var valString = + '' + (customHeight || '') + (customWidth ? ',' + customWidth : '') + sendSize( + 'size', + 'parentIFrame.size(' + valString + ')', + customHeight, + customWidth + ) + } + } + } + + function initInterval() { + if (0 !== interval) { + log('setInterval: ' + interval + 'ms') + intervalTimer = setInterval(function () { + sendSize('interval', 'setInterval: ' + interval) + }, Math.abs(interval)) + } + } + + // Not testable in PhantomJS + /* istanbul ignore next */ + function setupBodyMutationObserver() { + function addImageLoadListners(mutation) { + function addImageLoadListener(element) { + if (false === element.complete) { + log('Attach listeners to ' + element.src) + element.addEventListener('load', imageLoaded, false) + element.addEventListener('error', imageError, false) + elements.push(element) + } + } + + if (mutation.type === 'attributes' && mutation.attributeName === 'src') { + addImageLoadListener(mutation.target) + } else if (mutation.type === 'childList') { + Array.prototype.forEach.call( + mutation.target.querySelectorAll('img'), + addImageLoadListener + ) + } + } + + function removeFromArray(element) { + elements.splice(elements.indexOf(element), 1) + } + + function removeImageLoadListener(element) { + log('Remove listeners from ' + element.src) + element.removeEventListener('load', imageLoaded, false) + element.removeEventListener('error', imageError, false) + removeFromArray(element) + } + + function imageEventTriggered(event, type, typeDesc) { + removeImageLoadListener(event.target) + sendSize(type, typeDesc + ': ' + event.target.src) + } + + function imageLoaded(event) { + imageEventTriggered(event, 'imageLoad', 'Image loaded') + } + + function imageError(event) { + imageEventTriggered(event, 'imageLoadFailed', 'Image load failed') + } + + function mutationObserved(mutations) { + sendSize( + 'mutationObserver', + 'mutationObserver: ' + mutations[0].target + ' ' + mutations[0].type + ) + + // Deal with WebKit / Blink asyncing image loading when tags are injected into the page + mutations.forEach(addImageLoadListners) + } + + function createMutationObserver() { + var target = document.querySelector('body'), + config = { + attributes: true, + attributeOldValue: false, + characterData: true, + characterDataOldValue: false, + childList: true, + subtree: true + } + + observer = new MutationObserver(mutationObserved) + + log('Create body MutationObserver') + observer.observe(target, config) + + return observer + } + + var elements = [], + MutationObserver = + window.MutationObserver || window.WebKitMutationObserver, + observer = createMutationObserver() + + return { + disconnect: function () { + if ('disconnect' in observer) { + log('Disconnect body MutationObserver') + observer.disconnect() + elements.forEach(removeImageLoadListener) + } + } + } + } + + function setupMutationObserver() { + var forceIntervalTimer = 0 > interval + + // Not testable in PhantomJS + /* istanbul ignore if */ if ( + window.MutationObserver || + window.WebKitMutationObserver + ) { + if (forceIntervalTimer) { + initInterval() + } else { + bodyObserver = setupBodyMutationObserver() + } + } else { + log('MutationObserver not supported in this browser!') + initInterval() + } + } + + // document.documentElement.offsetHeight is not reliable, so + // we have to jump through hoops to get a better value. + function getComputedStyle(prop, el) { + var retVal = 0 + el = el || document.body // Not testable in phantonJS + + retVal = document.defaultView.getComputedStyle(el, null) + retVal = null !== retVal ? retVal[prop] : 0 + + return parseInt(retVal, base) + } + + function chkEventThottle(timer) { + if (timer > throttledTimer / 2) { + throttledTimer = 2 * timer + log('Event throttle increased to ' + throttledTimer + 'ms') + } + } + + // Idea from https://github.com/guardian/iframe-messenger + function getMaxElement(side, elements) { + var elementsLength = elements.length, + elVal = 0, + maxVal = 0, + Side = capitalizeFirstLetter(side), + timer = Date.now() + + for (var i = 0; i < elementsLength; i++) { + elVal = + elements[i].getBoundingClientRect()[side] + + getComputedStyle('margin' + Side, elements[i]) + if (elVal > maxVal) { + maxVal = elVal + } + } + + timer = Date.now() - timer + + log('Parsed ' + elementsLength + ' HTML elements') + log('Element position calculated in ' + timer + 'ms') + + chkEventThottle(timer) + + return maxVal + } + + function getAllMeasurements(dimensions) { + return [ + dimensions.bodyOffset(), + dimensions.bodyScroll(), + dimensions.documentElementOffset(), + dimensions.documentElementScroll() + ] + } + + function getTaggedElements(side, tag) { + function noTaggedElementsFound() { + warn('No tagged elements (' + tag + ') found on page') + return document.querySelectorAll('body *') + } + + var elements = document.querySelectorAll('[' + tag + ']') + + if (elements.length === 0) noTaggedElementsFound() + + return getMaxElement(side, elements) + } + + function getAllElements() { + return document.querySelectorAll('body *') + } + + var getHeight = { + bodyOffset: function getBodyOffsetHeight() { + return ( + document.body.offsetHeight + + getComputedStyle('marginTop') + + getComputedStyle('marginBottom') + ) + }, + + offset: function () { + return getHeight.bodyOffset() // Backwards compatibility + }, + + bodyScroll: function getBodyScrollHeight() { + return document.body.scrollHeight + }, + + custom: function getCustomWidth() { + return customCalcMethods.height() + }, + + documentElementOffset: function getDEOffsetHeight() { + return document.documentElement.offsetHeight + }, + + documentElementScroll: function getDEScrollHeight() { + return document.documentElement.scrollHeight + }, + + max: function getMaxHeight() { + return Math.max.apply(null, getAllMeasurements(getHeight)) + }, + + min: function getMinHeight() { + return Math.min.apply(null, getAllMeasurements(getHeight)) + }, + + grow: function growHeight() { + return getHeight.max() // Run max without the forced downsizing + }, + + lowestElement: function getBestHeight() { + return Math.max( + getHeight.bodyOffset() || getHeight.documentElementOffset(), + getMaxElement('bottom', getAllElements()) + ) + }, + + taggedElement: function getTaggedElementsHeight() { + return getTaggedElements('bottom', 'data-iframe-height') + } + }, + getWidth = { + bodyScroll: function getBodyScrollWidth() { + return document.body.scrollWidth + }, + + bodyOffset: function getBodyOffsetWidth() { + return document.body.offsetWidth + }, + + custom: function getCustomWidth() { + return customCalcMethods.width() + }, + + documentElementScroll: function getDEScrollWidth() { + return document.documentElement.scrollWidth + }, + + documentElementOffset: function getDEOffsetWidth() { + return document.documentElement.offsetWidth + }, + + scroll: function getMaxWidth() { + return Math.max(getWidth.bodyScroll(), getWidth.documentElementScroll()) + }, + + max: function getMaxWidth() { + return Math.max.apply(null, getAllMeasurements(getWidth)) + }, + + min: function getMinWidth() { + return Math.min.apply(null, getAllMeasurements(getWidth)) + }, + + rightMostElement: function rightMostElement() { + return getMaxElement('right', getAllElements()) + }, + + taggedElement: function getTaggedElementsWidth() { + return getTaggedElements('right', 'data-iframe-width') + } + } + + function sizeIFrame( + triggerEvent, + triggerEventDesc, + customHeight, + customWidth + ) { + function resizeIFrame() { + height = currentHeight + width = currentWidth + + sendMsg(height, width, triggerEvent) + } + + function isSizeChangeDetected() { + function checkTolarance(a, b) { + var retVal = Math.abs(a - b) <= tolerance + return !retVal + } + + currentHeight = + undefined !== customHeight ? customHeight : getHeight[heightCalcMode]() + currentWidth = + undefined !== customWidth ? customWidth : getWidth[widthCalcMode]() + + return ( + checkTolarance(height, currentHeight) || + (calculateWidth && checkTolarance(width, currentWidth)) + ) + } + + function isForceResizableEvent() { + return !(triggerEvent in { init: 1, interval: 1, size: 1 }) + } + + function isForceResizableCalcMode() { + return ( + heightCalcMode in resetRequiredMethods || + (calculateWidth && widthCalcMode in resetRequiredMethods) + ) + } + + function logIgnored() { + log('No change in size detected') + } + + function checkDownSizing() { + if (isForceResizableEvent() && isForceResizableCalcMode()) { + resetIFrame(triggerEventDesc) + } else if (!(triggerEvent in { interval: 1 })) { + logIgnored() + } + } + + var currentHeight, currentWidth + + if (isSizeChangeDetected() || 'init' === triggerEvent) { + lockTrigger() + resizeIFrame() + } else { + checkDownSizing() + } + } + + var sizeIFrameThrottled = throttle(sizeIFrame) + + function sendSize(triggerEvent, triggerEventDesc, customHeight, customWidth) { + function recordTrigger() { + if (!(triggerEvent in { reset: 1, resetPage: 1, init: 1 })) { + log('Trigger event: ' + triggerEventDesc) + } + } + + function isDoubleFiredEvent() { + return triggerLocked && triggerEvent in doubleEventList + } + + if (!isDoubleFiredEvent()) { + recordTrigger() + if (triggerEvent === 'init') { + sizeIFrame(triggerEvent, triggerEventDesc, customHeight, customWidth) + } else { + sizeIFrameThrottled( + triggerEvent, + triggerEventDesc, + customHeight, + customWidth + ) + } + } else { + log('Trigger event cancelled: ' + triggerEvent) + } + } + + function lockTrigger() { + if (!triggerLocked) { + triggerLocked = true + log('Trigger event lock on') + } + clearTimeout(triggerLockedTimer) + triggerLockedTimer = setTimeout(function () { + triggerLocked = false + log('Trigger event lock off') + log('--') + }, eventCancelTimer) + } + + function triggerReset(triggerEvent) { + height = getHeight[heightCalcMode]() + width = getWidth[widthCalcMode]() + + sendMsg(height, width, triggerEvent) + } + + function resetIFrame(triggerEventDesc) { + var hcm = heightCalcMode + heightCalcMode = heightCalcModeDefault + + log('Reset trigger event: ' + triggerEventDesc) + lockTrigger() + triggerReset('reset') + + heightCalcMode = hcm + } + + function sendMsg(height, width, triggerEvent, msg, targetOrigin) { + function setTargetOrigin() { + if (undefined === targetOrigin) { + targetOrigin = targetOriginDefault + } else { + log('Message targetOrigin: ' + targetOrigin) + } + } + + function sendToParent() { + var size = height + ':' + width, + message = + myID + + ':' + + size + + ':' + + triggerEvent + + (undefined !== msg ? ':' + msg : '') + + log('Sending message to host page (' + message + ')') + target.postMessage(msgID + message, targetOrigin) + } + + if (true === sendPermit) { + setTargetOrigin() + sendToParent() + } + } + + function receiver(event) { + var processRequestFromParent = { + init: function initFromParent() { + initMsg = event.data + target = event.source + + init() + firstRun = false + setTimeout(function () { + initLock = false + }, eventCancelTimer) + }, + + reset: function resetFromParent() { + if (!initLock) { + log('Page size reset by host page') + triggerReset('resetPage') + } else { + log('Page reset ignored by init') + } + }, + + resize: function resizeFromParent() { + sendSize('resizeParent', 'Parent window requested size check') + }, + + moveToAnchor: function moveToAnchorF() { + inPageLinks.findTarget(getData()) + }, + inPageLink: function inPageLinkF() { + this.moveToAnchor() + }, // Backward compatibility + + pageInfo: function pageInfoFromParent() { + var msgBody = getData() + log('PageInfoFromParent called from parent: ' + msgBody) + onPageInfo(JSON.parse(msgBody)) + log(' --') + }, + + message: function messageFromParent() { + var msgBody = getData() + + log('onMessage called from parent: ' + msgBody) + // eslint-disable-next-line sonarjs/no-extra-arguments + onMessage(JSON.parse(msgBody)) + log(' --') + } + } + + function isMessageForUs() { + return msgID === ('' + event.data).substr(0, msgIdLen) // ''+ Protects against non-string messages + } + + function getMessageType() { + return event.data.split(']')[1].split(':')[0] + } + + function getData() { + return event.data.substr(event.data.indexOf(':') + 1) + } + + function isMiddleTier() { + return ( + (!(typeof module !== 'undefined' && module.exports) && + 'iFrameResize' in window) || + ('jQuery' in window && 'iFrameResize' in window.jQuery.prototype) + ) + } + + function isInitMsg() { + // Test if this message is from a child below us. This is an ugly test, however, updating + // the message format would break backwards compatibility. + return event.data.split(':')[2] in { true: 1, false: 1 } + } + + function callFromParent() { + var messageType = getMessageType() + + if (messageType in processRequestFromParent) { + processRequestFromParent[messageType]() + } else if (!isMiddleTier() && !isInitMsg()) { + warn('Unexpected message (' + event.data + ')') + } + } + + function processMessage() { + if (false === firstRun) { + callFromParent() + } else if (isInitMsg()) { + processRequestFromParent.init() + } else { + log( + 'Ignored message of type "' + + getMessageType() + + '". Received before initialization.' + ) + } + } + + if (isMessageForUs()) { + processMessage() + } + } + + // Normally the parent kicks things off when it detects the iFrame has loaded. + // If this script is async-loaded, then tell parent page to retry init. + function chkLateLoaded() { + if ('loading' !== document.readyState) { + window.parent.postMessage('[iFrameResizerChild]Ready', '*') + } + } + + addEventListener(window, 'message', receiver) + addEventListener(window, 'readystatechange', chkLateLoaded) + chkLateLoaded() + + +})() diff --git a/iframe-resizer-master/js/iframeResizer.contentWindow.map b/iframe-resizer-master/js/iframeResizer.contentWindow.map new file mode 100755 index 0000000..e933bb3 --- /dev/null +++ b/iframe-resizer-master/js/iframeResizer.contentWindow.map @@ -0,0 +1 @@ +{"version":3,"file":"iframeResizer.contentWindow.min.js","sources":["iframeResizer.contentWindow.js"],"names":["undefined","window","autoResize","base","bodyBackground","bodyMargin","bodyMarginStr","bodyObserver","bodyPadding","calculateWidth","doubleEventList","resize","click","eventCancelTimer","firstRun","height","heightCalcModeDefault","heightCalcMode","initLock","initMsg","inPageLinks","interval","intervalTimer","logging","mouseEvents","msgID","msgIdLen","length","myID","resetRequiredMethods","max","min","bodyScroll","documentElementScroll","resizeFrom","sendPermit","target","parent","targetOriginDefault","tolerance","triggerLocked","triggerLockedTimer","throttledTimer","width","widthCalcModeDefault","widthCalcMode","win","onMessage","warn","onReady","onPageInfo","customCalcMethods","document","documentElement","offsetHeight","body","scrollWidth","eventHandlersByName","passiveSupported","options","Object","create","passive","get","addEventListener","noop","removeEventListener","error","func","context","args","result","timeout","previous","getHeight","bodyOffset","getComputedStyle","offset","scrollHeight","custom","documentElementOffset","Math","apply","getAllMeasurements","grow","lowestElement","getMaxElement","getAllElements","taggedElement","getTaggedElements","getWidth","offsetWidth","scroll","rightMostElement","sizeIFrameThrottled","sizeIFrame","now","Date","remaining","this","arguments","clearTimeout","setTimeout","later","event","processRequestFromParent","init","data","source","reset","log","triggerReset","sendSize","moveToAnchor","findTarget","getData","inPageLink","pageInfo","msgBody","JSON","parse","message","getMessageType","split","substr","indexOf","isInitMsg","true","false","callFromParent","messageType","module","exports","jQuery","prototype","chkLateLoaded","el","evt","capitalizeFirstLetter","string","charAt","toUpperCase","slice","formatLogMsg","msg","console","strBool","str","clearFix","sendMouse","e","sendMsg","type","screenY","screenX","addMouseListener","name","Number","enable","Boolean","location","href","setupCustomCalcMethods","calcMode","calcFunc","iFrameResizer","constructor","stringify","keys","forEach","depricate","targetOrigin","heightCalculationMethod","widthCalculationMethod","readData","readDataFromPage","setBodyStyle","attr","value","chkCSS","setMargin","createElement","style","clear","display","appendChild","checkHeightMode","checkWidthMode","parentIFrame","startEventListeners","manageEventListeners","disconnect","clearInterval","close","getId","getPageInfo","callback","hash","resetIFrame","scrollTo","x","y","scrollToOffset","sendMessage","setHeightCalculationMethod","setWidthCalculationMethod","setTargetOrigin","size","customHeight","customWidth","getElementPosition","elPosition","getBoundingClientRect","pagePosition","pageXOffset","scrollLeft","pageYOffset","scrollTop","parseInt","left","top","hashData","decodeURIComponent","getElementById","getElementsByName","jumpPosition","checkLocationHash","bindAnchors","Array","call","querySelectorAll","getAttribute","preventDefault","enableInPageLinks","setupInPageLinks","key","splitName","manageTriggerEvent","listener","add","eventName","handleEvent","eventType","remove","eventNames","map","method","checkCalcMode","calcModeDefault","modes","forceIntervalTimer","MutationObserver","WebKitMutationObserver","initInterval","addImageLoadListners","mutation","addImageLoadListener","element","complete","src","imageLoaded","imageError","elements","push","attributeName","removeImageLoadListener","splice","imageEventTriggered","typeDesc","mutationObserved","mutations","observer","querySelector","observe","attributes","attributeOldValue","characterData","characterDataOldValue","childList","subtree","createMutationObserver","setupBodyMutationObserver","setInterval","abs","prop","retVal","defaultView","side","elVal","elementsLength","maxVal","Side","timer","i","dimensions","tag","triggerEvent","triggerEventDesc","checkDownSizing","currentHeight","currentWidth","checkTolarance","a","b","lockTrigger","resetPage","hcm","postMessage","readyState"],"mappings":";;;;;;;;CAWC,SAAWA,GACV,GAAsB,oBAAXC,OAAX,CAEA,IAAIC,GAAa,EACfC,EAAO,GACPC,EAAiB,GACjBC,EAAa,EACbC,EAAgB,GAChBC,EAAe,KACfC,EAAc,GACdC,GAAiB,EACjBC,EAAkB,CAAEC,OAAQ,EAAGC,MAAO,GACtCC,EAAmB,IACnBC,GAAW,EACXC,EAAS,EACTC,EAAwB,aACxBC,EAAiBD,EACjBE,GAAW,EACXC,EAAU,GACVC,EAAc,GACdC,EAAW,GACXC,EAAgB,KAChBC,GAAU,EACVC,GAAc,EACdC,EAAQ,gBACRC,EAAWD,EAAME,OACjBC,EAAO,GACPC,EAAuB,CACrBC,IAAK,EACLC,IAAK,EACLC,WAAY,EACZC,sBAAuB,GAEzBC,EAAa,QACbC,GAAa,EACbC,EAASnC,OAAOoC,OAChBC,EAAsB,IACtBC,EAAY,EACZC,GAAgB,EAChBC,EAAqB,KACrBC,EAAiB,GACjBC,EAAQ,EACRC,EAAuB,SACvBC,EAAgBD,EAChBE,EAAM7C,OACN8C,EAAY,WACVC,GAAK,mCAEPC,EAAU,aACVC,EAAa,aACbC,EAAoB,CAClBpC,OAAQ,WAEN,OADAiC,GAAK,kDACEI,SAASC,gBAAgBC,cAElCX,MAAO,WAEL,OADAK,GAAK,iDACEI,SAASG,KAAKC,cAGzBC,EAAsB,GACtBC,GAAmB,EAIrB,IACE,IAAIC,EAAUC,OAAOC,OACnB,GACA,CACEC,QAAS,CACPC,IAAK,WACHL,GAAmB,MAK3BzD,OAAO+D,iBAAiB,OAAQC,GAAMN,GACtC1D,OAAOiE,oBAAoB,OAAQD,GAAMN,GACzC,MAAOQ,IAg1BT,IA/zBkBC,EACZC,EACFC,EACAC,EACAC,EACAC,EA0zBAC,EAAY,CACZC,WAAY,WACV,OACEvB,SAASG,KAAKD,aACdsB,GAAiB,aACjBA,GAAiB,iBAIrBC,OAAQ,WACN,OAAOH,EAAUC,cAGnB3C,WAAY,WACV,OAAOoB,SAASG,KAAKuB,cAGvBC,OAAQ,WACN,OAAO5B,EAAkBpC,UAG3BiE,sBAAuB,WACrB,OAAO5B,SAASC,gBAAgBC,cAGlCrB,sBAAuB,WACrB,OAAOmB,SAASC,gBAAgByB,cAGlChD,IAAK,WACH,OAAOmD,KAAKnD,IAAIoD,MAAM,KAAMC,GAAmBT,KAGjD3C,IAAK,WACH,OAAOkD,KAAKlD,IAAImD,MAAM,KAAMC,GAAmBT,KAGjDU,KAAM,WACJ,OAAOV,EAAU5C,OAGnBuD,cAAe,WACb,OAAOJ,KAAKnD,IACV4C,EAAUC,cAAgBD,EAAUM,wBACpCM,GAAc,SAAUC,QAI5BC,cAAe,WACb,OAAOC,GAAkB,SAAU,wBAGvCC,EAAW,CACT1D,WAAY,WACV,OAAOoB,SAASG,KAAKC,aAGvBmB,WAAY,WACV,OAAOvB,SAASG,KAAKoC,aAGvBZ,OAAQ,WACN,OAAO5B,EAAkBR,SAG3BV,sBAAuB,WACrB,OAAOmB,SAASC,gBAAgBG,aAGlCwB,sBAAuB,WACrB,OAAO5B,SAASC,gBAAgBsC,aAGlCC,OAAQ,WACN,OAAOX,KAAKnD,IAAI4D,EAAS1D,aAAc0D,EAASzD,0BAGlDH,IAAK,WACH,OAAOmD,KAAKnD,IAAIoD,MAAM,KAAMC,GAAmBO,KAGjD3D,IAAK,WACH,OAAOkD,KAAKlD,IAAImD,MAAM,KAAMC,GAAmBO,KAGjDG,iBAAkB,WAChB,OAAOP,GAAc,QAASC,OAGhCC,cAAe,WACb,OAAOC,GAAkB,QAAS,uBAmEpCK,GA59Bc1B,EA49BiB2B,GAx9B/BvB,EAAU,KACVC,EAAW,EAWN,WACL,IAAIuB,EAAMC,KAAKD,MAMXE,EAAYxD,GAAkBsD,GAHhCvB,EADGA,GACQuB,IAyBb,OApBA3B,EAAU8B,KACV7B,EAAO8B,UAEHF,GAAa,GAAiBxD,EAAZwD,GAChB1B,IACF6B,aAAa7B,GACbA,EAAU,MAGZC,EAAWuB,EACXzB,EAASH,EAAKc,MAAMb,EAASC,GAExBE,IAEHH,EAAUC,EAAO,OAGnBE,EADUA,GACA8B,WAAWC,GAAOL,GAGvB3B,IA0nCXP,GAAiB/D,OAAQ,UAjHzB,SAAkBuG,GAChB,IAAIC,EAA2B,CAC7BC,KAAM,WACJvF,EAAUqF,EAAMG,KAChBvE,EAASoE,EAAMI,OAEfF,KACA5F,GAAW,EACXwF,WAAW,WACTpF,GAAW,GACVL,IAGLgG,MAAO,WACA3F,EAIH4F,GAAI,+BAHJA,GAAI,gCACJC,GAAa,eAMjBpG,OAAQ,WACNqG,GAAS,eAAgB,uCAG3BC,aAAc,WACZ7F,EAAY8F,WAAWC,MAEzBC,WAAY,WACVjB,KAAKc,gBAGPI,SAAU,WACR,IAAIC,EAAUH,IACdL,GAAI,0CAA4CQ,GAChDpE,EAAWqE,KAAKC,MAAMF,IACtBR,GAAI,QAGNW,QAAS,WACP,IAAIH,EAAUH,IAEdL,GAAI,iCAAmCQ,GAEvCvE,EAAUwE,KAAKC,MAAMF,IACrBR,GAAI,SAQR,SAASY,IACP,OAAOlB,EAAMG,KAAKgB,MAAM,KAAK,GAAGA,MAAM,KAAK,GAG7C,SAASR,IACP,OAAOX,EAAMG,KAAKiB,OAAOpB,EAAMG,KAAKkB,QAAQ,KAAO,GAWrD,SAASC,IAGP,OAAOtB,EAAMG,KAAKgB,MAAM,KAAK,IAAM,CAAEI,KAAM,EAAGC,MAAO,GAGvD,SAASC,IACP,IAAIC,EAAcR,IAEdQ,KAAezB,EACjBA,EAAyByB,MAhBJ,oBAAXC,SAA0BA,OAAOC,UACzC,iBAAkBnI,QACnB,WAAYA,QAAU,iBAAkBA,OAAOoI,OAAOC,WAe1BR,KAC7B9E,GAAK,uBAAyBwD,EAAMG,KAAO,KA/BtClF,KAAW,GAAK+E,EAAMG,MAAMiB,OAAO,EAAGlG,MAoCzC,IAAUZ,EACZmH,IACSH,IACTrB,EAAyBC,OAEzBI,GACE,4BACEY,IACA,yCAmBV1D,GAAiB/D,OAAQ,mBAAoBsI,IAC7CA,KAzsCA,SAAStE,MAmBT,SAASD,GAAiBwE,EAAIC,EAAKrE,EAAMT,GACvC6E,EAAGxE,iBAAiByE,EAAKrE,IAAMV,IAAmBC,GAAW,KAO/D,SAAS+E,GAAsBC,GAC7B,OAAOA,EAAOC,OAAO,GAAGC,cAAgBF,EAAOG,MAAM,GAqDvD,SAASC,GAAaC,GACpB,OAAOvH,EAAQ,IAAMG,EAAO,KAAOoH,EAGrC,SAASlC,GAAIkC,GACPzH,GAAW,iBAAoBtB,OAAOgJ,SAExCA,QAAQnC,IAAIiC,GAAaC,IAI7B,SAAShG,GAAKgG,GACR,iBAAoB/I,OAAOgJ,SAE7BA,QAAQjG,KAAK+F,GAAaC,IAI9B,SAAStC,KAoBP,SAASwC,EAAQC,GACf,MAAO,SAAWA,EAFtB,IAkUMC,EAmIJ,SAASC,EAAUC,GACjBC,GAAQ,EAAG,EAAGD,EAAEE,KAAMF,EAAEG,QAAU,IAAMH,EAAEI,SAG5C,SAASC,EAAiBlB,EAAKmB,GAC7B9C,GAAI,uBAAyB8C,GAC7B5F,GAAiB/D,OAAOmD,SAAUqF,EAAKY,GAtcrC1C,EAAOxF,EAAQyG,OAAOlG,GAAUiG,MAAM,KAE1C/F,EAAO+E,EAAK,GACZtG,EAAaL,IAAc2G,EAAK,GAAKkD,OAAOlD,EAAK,IAAMtG,EACvDI,EAAiBT,IAAc2G,EAAK,GAAKuC,EAAQvC,EAAK,IAAMlG,EAC5Dc,EAAUvB,IAAc2G,EAAK,GAAKuC,EAAQvC,EAAK,IAAMpF,EACrDF,EAAWrB,IAAc2G,EAAK,GAAKkD,OAAOlD,EAAK,IAAMtF,EACrDnB,EAAaF,IAAc2G,EAAK,GAAKuC,EAAQvC,EAAK,IAAMzG,EACxDI,EAAgBqG,EAAK,GACrB1F,EAAiBjB,IAAc2G,EAAK,GAAKA,EAAK,GAAK1F,EACnDb,EAAiBuG,EAAK,GACtBnG,EAAcmG,EAAK,IACnBpE,EAAYvC,IAAc2G,EAAK,IAAMkD,OAAOlD,EAAK,KAAOpE,EACxDnB,EAAY0I,OAAS9J,IAAc2G,EAAK,KAAMuC,EAAQvC,EAAK,KAC3DzE,EAAalC,IAAc2G,EAAK,IAAMA,EAAK,IAAMzE,EACjDW,EAAgB7C,IAAc2G,EAAK,IAAMA,EAAK,IAAM9D,EACpDrB,EAAcxB,IAAc2G,EAAK,IAAMoD,QAAQpD,EAAK,KAAOnF,EAtC3DsF,GAAI,wBAA0B7G,OAAO+J,SAASC,KAAO,KA2DvD,WAqBE,SAASC,EAAuBC,EAAUC,GAOxC,MANI,mBAAsBD,IACxBrD,GAAI,gBAAkBsD,EAAW,cACjCjH,EAAkBiH,GAAYD,EAC9BA,EAAW,UAGNA,EAIP,kBAAmBlK,QACnB2D,SAAW3D,OAAOoK,cAAcC,cAhClC,WACE,IAAI3D,EAAO1G,OAAOoK,cAElBvD,GAAI,2BAA6BS,KAAKgD,UAAU5D,IAChD/C,OAAO4G,KAAK7D,GAAM8D,QAAQC,GAAW/D,GAErC5D,EAAY,cAAe4D,EAAOA,EAAK5D,UAAYA,EACnDE,EAAU,YAAa0D,EAAOA,EAAK1D,QAAUA,EAC7CX,EACE,iBAAkBqE,EAAOA,EAAKgE,aAAerI,EAC/CrB,EACE,4BAA6B0F,EACzBA,EAAKiE,wBACL3J,EACN4B,EACE,2BAA4B8D,EACxBA,EAAKkE,uBACLhI,EAiBNiI,GACA7J,EAAiBiJ,EAAuBjJ,EAAgB,UACxD4B,EAAgBqH,EAAuBrH,EAAe,UAGxDiE,GAAI,mCAAqCxE,GAlGzCyI,GAoHF,WAEM/K,IAAcM,IAChBA,EAAgBD,EAAa,MAG/B2K,GAAa,SArBf,SAAgBC,EAAMC,IACf,IAAMA,EAAMrD,QAAQ,OACvB7E,GAAK,kCAAoCiI,GACzCC,EAAQ,IAEV,OAAOA,EAgBgBC,CAAO,SAAU7K,IAzHxC8K,GACAJ,GAAa,aAAc5K,GAC3B4K,GAAa,UAAWxK,IA+UpB4I,EAAWhG,SAASiI,cAAc,QAC7BC,MAAMC,MAAQ,OAEvBnC,EAASkC,MAAME,QAAU,QACzBpC,EAASkC,MAAMvK,OAAS,IACxBqC,SAASG,KAAKkI,YAAYrC,GAlV1BsC,KACAC,KAwHAvI,SAASC,gBAAgBiI,MAAMvK,OAAS,GACxCqC,SAASG,KAAK+H,MAAMvK,OAAS,GAC7B+F,GAAI,oCAmWJA,GAAI,yBAEJhE,EAAI8I,aAAe,CACjB1L,WAAY,SAAqBS,GAS/B,OARI,IAASA,IAAU,IAAUT,GAC/BA,GAAa,EACb2L,OACS,IAAUlL,IAAU,IAAST,IACtCA,GAAa,EArKnB4L,GAAqB,UAPjB,OAASvL,GAEXA,EAAawL,aAOfC,cAAc1K,IAsKViI,GAAQ,EAAG,EAAG,aAAchC,KAAKgD,UAAUrK,IACpCA,GAGT+L,MAAO,WACL1C,GAAQ,EAAG,EAAG,UAIhB2C,MAAO,WACL,OAAOtK,GAGTuK,YAAa,SAAsBC,GAC7B,mBAAsBA,GACxBlJ,EAAakJ,EACb7C,GAAQ,EAAG,EAAG,cAEdrG,EAAa,aACbqG,GAAQ,EAAG,EAAG,kBAIlBtC,aAAc,SAAuBoF,GACnCjL,EAAY8F,WAAWmF,IAGzBxF,MAAO,WACLyF,GAAY,uBAGdC,SAAU,SAAmBC,EAAGC,GAC9BlD,GAAQkD,EAAGD,EAAG,aAGhBE,eAAgB,SAAmBF,EAAGC,GACpClD,GAAQkD,EAAGD,EAAG,mBAGhBG,YAAa,SAAsB3D,EAAK2B,GACtCpB,GAAQ,EAAG,EAAG,UAAWhC,KAAKgD,UAAUvB,GAAM2B,IAGhDiC,2BAA4B,SAC1BhC,GAEA3J,EAAiB2J,EACjBc,MAGFmB,0BAA2B,SACzBhC,GAEAhI,EAAgBgI,EAChBc,MAGFmB,gBAAiB,SAA0BnC,GACzC7D,GAAI,qBAAuB6D,GAC3BrI,EAAsBqI,GAGxBoC,KAAM,SAAeC,EAAcC,GAGjCjG,GACE,OACA,uBAHMgG,GAAgB,KAAOC,EAAc,IAAMA,EAAc,KAG5B,IACnCD,EACAC,MAhGc,IAAhBzL,IAWJmI,EAAiB,aAAc,eAC/BA,EAAiB,aAAc,gBArd/BkC,KACAzK,EA+UF,WAcE,SAAS8L,EAAmB1E,GAC1B,IAAI2E,EAAa3E,EAAG4E,wBAClBC,EAdK,CACLb,EACEvM,OAAOqN,cAAgBtN,EACnBC,OAAOqN,YACPlK,SAASC,gBAAgBkK,WAC/Bd,EACExM,OAAOuN,cAAgBxN,EACnBC,OAAOuN,YACPpK,SAASC,gBAAgBoK,WAQjC,MAAO,CACLjB,EAAGkB,SAASP,EAAWQ,KAAM,IAAMD,SAASL,EAAab,EAAG,IAC5DC,EAAGiB,SAASP,EAAWS,IAAK,IAAMF,SAASL,EAAaZ,EAAG,KAI/D,SAASvF,EAAW8C,GAelB,IAdsB5H,EAclBiK,EAAOrC,EAASrC,MAAM,KAAK,IAAMqC,EACnC6D,EAAWC,mBAAmBzB,GAC9BjK,EACEgB,SAAS2K,eAAeF,IACxBzK,SAAS4K,kBAAkBH,GAAU,GAErC7N,IAAcoC,GAnBZ6L,EAAef,EADC9K,EAqBPA,GAlBb0E,GACE,4BACEuF,EACA,WACA4B,EAAazB,EACb,OACAyB,EAAaxB,GAEjBlD,GAAQ0E,EAAaxB,EAAGwB,EAAazB,EAAG,oBAYxC1F,GACE,kBACEuF,EACA,+CAEJ9C,GAAQ,EAAG,EAAG,aAAc,IAAM8C,IAItC,SAAS6B,IACP,IAAI7B,EAAOpM,OAAO+J,SAASqC,KACvBpC,EAAOhK,OAAO+J,SAASC,KAEvB,KAAOoC,GAAQ,MAAQA,GACzBnF,EAAW+C,GAIf,SAASkE,IAcPC,MAAM9F,UAAUmC,QAAQ4D,KACtBjL,SAASkL,iBAAiB,gBAd5B,SAAmB9F,GAQb,MAAQA,EAAG+F,aAAa,SAC1BvK,GAAiBwE,EAAI,QARvB,SAAqBc,GACnBA,EAAEkF,iBAGFtH,EAAWf,KAAKoI,aAAa,aAuBnC,SAASE,IAEHL,MAAM9F,UAAUmC,SAAWrH,SAASkL,kBACtCxH,GAAI,qCACJqH,IAZFnK,GAAiB/D,OAAQ,aAAciO,GAKvC5H,WAAW4H,EAAmBrN,IAW5BmC,GACE,2FAKF5B,EAAY0I,OACd2E,IAEA3H,GAAI,+BAGN,MAAO,CACLI,WAAYA,GAncAwH,GACd1H,GAAS,OAAQ,+BACjB/D,IA2BF,SAASyH,GAAUiE,GACjB,IAAIC,EAAYD,EAAIhH,MAAM,YAED,IAArBiH,EAAUjN,SAGZwE,KAFIyD,EACF,KAAOgF,EAAU,GAAGhG,OAAO,GAAGC,cAAgB+F,EAAU,GAAG9F,MAAM,IACtD3C,KAAKwI,UACXxI,KAAKwI,GACZ3L,GACE,gBACE2L,EACA,uBACA/E,EACA,iEAwDR,SAASoB,GAAaC,EAAMC,GACtBlL,IAAckL,GAAS,KAAOA,GAAS,SAAWA,GAEpDpE,GAAI,QAAUmE,EAAO,aADrB7H,SAASG,KAAK+H,MAAML,GAAQC,GACe,KAmB/C,SAAS2D,GAAmBlL,GAC1B,IAAImL,EAAW,CACbC,IAAK,SAAUC,GACb,SAASC,IACPjI,GAASrD,EAAQqL,UAAWrL,EAAQuL,WAGtCzL,EAAoBuL,GAAaC,EAEjCjL,GAAiB/D,OAAQ+O,EAAWC,EAAa,CAAEnL,SAAS,KAE9DqL,OAAQ,SAAUH,GAChB,IA9NuBxG,EA8NnByG,EAAcxL,EAAoBuL,UAC/BvL,EAAoBuL,GA/NJxG,EAiOHvI,OAjOOwI,EAiOCuG,EAjOI5K,EAiOO6K,EAhO3CzG,EAAGtE,oBAAoBuE,EAAKrE,GAAM,KAoO9BT,EAAQyL,YAAchB,MAAM9F,UAAU+G,KACxC1L,EAAQqL,UAAYrL,EAAQyL,WAAW,GACvCzL,EAAQyL,WAAWC,IAAIP,EAASnL,EAAQ2L,UAExCR,EAASnL,EAAQ2L,QAAQ3L,EAAQqL,WAGnClI,GACE4B,GAAsB/E,EAAQ2L,QAC5B,oBACA3L,EAAQuL,WAId,SAASpD,GAAqBwD,GAC5BT,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,kBACXE,WAAY,CAAC,iBAAkB,0BAEjCP,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,sBACXE,WAAY,CAAC,qBAAsB,8BAErCP,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,gBACXE,WAAY,CAAC,eAAgB,wBAE/BP,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,QACXF,UAAW,UAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,WACXF,UAAW,YAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,aACXF,UAAW,cAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,qBACXF,UAAW,sBAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,QACXE,WAAY,CAAC,aAAc,iBAE7BP,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,qBACXF,UAAW,qBAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,cACXF,UAAW,eAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,YACXF,UAAW,aAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,eACXF,UAAW,gBAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,mBACXE,WAAY,CACV,kBACA,wBACA,oBACA,mBACA,sBAGJP,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,uBACXE,WAAY,CACV,sBACA,4BACA,wBACA,uBACA,0BAGJP,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,iBACXE,WAAY,CACV,gBACA,sBACA,kBACA,iBACA,oBAGA,UAAYlN,GACd2M,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,iBACXF,UAAW,WAKjB,SAASO,GAAcpF,EAAUqF,EAAiBC,EAAOjG,GAWvD,OAVIgG,IAAoBrF,IAChBA,KAAYsF,IAChBzM,GACEmH,EAAW,8BAAgCX,EAAO,sBAEpDW,EAAWqF,GAEb1I,GAAI0C,EAAO,+BAAiCW,EAAW,MAGlDA,EAGT,SAASuB,KACPzK,EAAiBsO,GACftO,EACAD,EACA0D,EACA,UAIJ,SAASiH,KACP9I,EAAgB0M,GACd1M,EACAD,EACA8C,EACA,SAIJ,SAASmG,KAmXT,IACM6D,GAnXA,IAASxP,GACX4L,GAAqB,OAkXnB4D,EAAyBrO,EAAJ,EAIvBpB,OAAO0P,kBACP1P,OAAO2P,uBAEHF,EACFG,KAEAtP,EArGN,WACE,SAASuP,EAAqBC,GAC5B,SAASC,EAAqBC,IACxB,IAAUA,EAAQC,WACpBpJ,GAAI,uBAAyBmJ,EAAQE,KACrCF,EAAQjM,iBAAiB,OAAQoM,GAAa,GAC9CH,EAAQjM,iBAAiB,QAASqM,GAAY,GAC9CC,EAASC,KAAKN,IAII,eAAlBF,EAASvG,MAAoD,QAA3BuG,EAASS,cAC7CR,EAAqBD,EAAS3N,QACH,cAAlB2N,EAASvG,MAClB4E,MAAM9F,UAAUmC,QAAQ4D,KACtB0B,EAAS3N,OAAOkM,iBAAiB,OACjC0B,GASN,SAASS,EAAwBR,GAC/BnJ,GAAI,yBAA2BmJ,EAAQE,KACvCF,EAAQ/L,oBAAoB,OAAQkM,GAAa,GACjDH,EAAQ/L,oBAAoB,QAASmM,GAAY,GAP1BJ,EAQPA,EAPhBK,EAASI,OAAOJ,EAASzI,QAAQoI,GAAU,GAU7C,SAASU,EAAoBnK,EAAOgD,EAAMoH,GACxCH,EAAwBjK,EAAMpE,QAC9B4E,GAASwC,EAAMoH,EAAW,KAAOpK,EAAMpE,OAAO+N,KAGhD,SAASC,EAAY5J,GACnBmK,EAAoBnK,EAAO,YAAa,gBAG1C,SAAS6J,EAAW7J,GAClBmK,EAAoBnK,EAAO,kBAAmB,qBAGhD,SAASqK,EAAiBC,GACxB9J,GACE,mBACA,qBAAuB8J,EAAU,GAAG1O,OAAS,IAAM0O,EAAU,GAAGtH,MAIlEsH,EAAUrG,QAAQqF,GAsBpB,IAAIQ,EAAW,GACbX,EACE1P,OAAO0P,kBAAoB1P,OAAO2P,uBACpCmB,EAtBF,WACE,IAAI3O,EAASgB,SAAS4N,cAAc,QAepC,OALAD,EAAW,IAAIpB,EAAiBkB,GAEhC/J,GAAI,gCACJiK,EAASE,QAAQ7O,EAZN,CACP8O,YAAY,EACZC,mBAAmB,EACnBC,eAAe,EACfC,uBAAuB,EACvBC,WAAW,EACXC,SAAS,IAQNR,EAMIS,GAEb,MAAO,CACLzF,WAAY,WACN,eAAgBgF,IAClBjK,GAAI,oCACJiK,EAAShF,aACTuE,EAAS7F,QAAQgG,MAiBJgB,IAGjB3K,GAAI,mDACJ+I,OA7XA/I,GAAI,wBAyQR,SAAS+I,KACH,IAAMxO,IACRyF,GAAI,gBAAkBzF,EAAW,MACjCC,EAAgBoQ,YAAY,WAC1B1K,GAAS,WAAY,gBAAkB3F,IACtC4D,KAAK0M,IAAItQ,KAqHhB,SAASuD,GAAiBgN,EAAMpJ,GAC9B,IAAIqJ,EAAS,EAMb,OALArJ,EAAKA,GAAMpF,SAASG,KAGpBsO,EAAS,QADTA,EAASzO,SAAS0O,YAAYlN,iBAAiB4D,EAAI,OACxBqJ,EAAOD,GAAQ,EAEnClE,SAASmE,EAAQ1R,GAW1B,SAASmF,GAAcyM,EAAMzB,GAO3B,IANA,IACE0B,EADEC,EAAiB3B,EAAS3O,OAE5BuQ,EAAS,EACTC,EAAOzJ,GAAsBqJ,GAC7BK,EAAQnM,KAAKD,MAENqM,EAAI,EAAGA,EAAIJ,EAAgBI,IAItBH,GAHZF,EACE1B,EAAS+B,GAAGjF,wBAAwB2E,GACpCnN,GAAiB,SAAWuN,EAAM7B,EAAS+B,OAE3CH,EAASF,GAWb,OAPAI,EAAQnM,KAAKD,MAAQoM,EAErBtL,GAAI,UAAYmL,EAAiB,kBACjCnL,GAAI,kCAAoCsL,EAAQ,MA1BpC1P,EAAiB,GADN0P,EA6BPA,IA1BdtL,GAAI,gCADJpE,EAAiB,EAAI0P,GACiC,MA4BjDF,EAGT,SAAS/M,GAAmBmN,GAC1B,MAAO,CACLA,EAAW3N,aACX2N,EAAWtQ,aACXsQ,EAAWtN,wBACXsN,EAAWrQ,yBAIf,SAASwD,GAAkBsM,EAAMQ,GAM/B,IAAIjC,EAAWlN,SAASkL,iBAAiB,IAAMiE,EAAM,KAIrD,OAFwB,IAApBjC,EAAS3O,SANXqB,GAAK,uBAAyBuP,EAAM,mBAC7BnP,SAASkL,iBAAiB,WAO5BhJ,GAAcyM,EAAMzB,GAG7B,SAAS/K,KACP,OAAOnC,SAASkL,iBAAiB,UAiGnC,SAASvI,GACPyM,EACAC,EACAzF,EACAC,GAyCA,SAASyF,IAdEF,IAAgB,CAAE9L,KAAM,EAAGrF,SAAU,EAAG0L,KAAM,MAKrD9L,KAAkBY,GACjBpB,GAAkBoC,KAAiBhB,GAWzB2Q,IAAgB,CAAEnR,SAAU,IANzCyF,GAAI,8BAKFwF,GAAYmG,GAMhB,IAAIE,EAAeC,EAvCjB,SAASC,EAAeC,EAAGC,GAEzB,QADa9N,KAAK0M,IAAImB,EAAIC,IAAMxQ,GAIlCoQ,EACE3S,IAAcgN,EAAeA,EAAetI,EAAUzD,KACxD2R,EACE5S,IAAciN,EAAcA,EAAcvH,EAAS7C,KAGnDgQ,EAAe9R,EAAQ4R,IACtBlS,GAAkBoS,EAAelQ,EAAOiQ,IA6Bf,SAAWJ,GACvCQ,KA9CAzJ,GAHAxI,EAAS4R,EACThQ,EAAQiQ,EAEeJ,IAiDvBE,IAl9BQ,SAARnM,KACE9B,EAAWwB,KAAKD,MAChBxB,EAAU,KACVD,EAASH,EAAKc,MAAMb,EAASC,GACxBE,IAEHH,EAAUC,EAAO,MAk9BzB,SAAS0C,GAASwL,EAAcC,EAAkBzF,EAAcC,GAQrDzK,GAAiBgQ,KAAgB9R,EAgBxCoG,GAAI,4BAA8B0L,IAtB5BA,IAAgB,CAAE3L,MAAO,EAAGoM,UAAW,EAAGvM,KAAM,IACpDI,GAAI,kBAAoB2L,IAUL,SAAjBD,EACFzM,GAEAD,GAFW0M,EAAcC,EAAkBzF,EAAcC,IAc/D,SAAS+F,KACFxQ,IACHA,GAAgB,EAChBsE,GAAI,0BAENT,aAAa5D,GACbA,EAAqB6D,WAAW,WAC9B9D,GAAgB,EAChBsE,GAAI,0BACJA,GAAI,OACHjG,GAGL,SAASkG,GAAayL,GACpBzR,EAAS2D,EAAUzD,KACnB0B,EAAQ+C,EAAS7C,KAEjB0G,GAAQxI,EAAQ4B,EAAO6P,GAGzB,SAASlG,GAAYmG,GACnB,IAAIS,EAAMjS,EACVA,EAAiBD,EAEjB8F,GAAI,wBAA0B2L,GAC9BO,KACAjM,GAAa,SAEb9F,EAAiBiS,EAGnB,SAAS3J,GAAQxI,EAAQ4B,EAAO6P,EAAcxJ,EAAK2B,GASjD,IAEIlD,GAYA,IAAStF,IArBPnC,IAAc2K,EAChBA,EAAerI,EAEfwE,GAAI,yBAA2B6D,GAcjC7D,GAAI,kCARFW,EACE7F,EACA,KAHOb,EAAS,IAAM4B,GAKtB,IACA6P,GACCxS,IAAcgJ,EAAM,IAAMA,EAAM,KAEY,KACjD5G,EAAO+Q,YAAY1R,EAAQgG,EAASkD,IAoHxC,SAASpC,KACH,YAAcnF,SAASgQ,YACzBnT,OAAOoC,OAAO8Q,YAAY,4BAA6B,MAlwC5D"} \ No newline at end of file diff --git a/iframe-resizer-master/js/iframeResizer.contentWindow.min.js b/iframe-resizer-master/js/iframeResizer.contentWindow.min.js new file mode 100755 index 0000000..e33b95f --- /dev/null +++ b/iframe-resizer-master/js/iframeResizer.contentWindow.min.js @@ -0,0 +1,10 @@ +/*! iFrame Resizer (iframeSizer.contentWindow.min.js) - v4.3.2 - 2021-10-18 + * Desc: Include this file in any page being loaded into an iframe + * to force the iframe to resize to the content size. + * Requires: iframeResizer.min.js on host page. + * Copyright: (c) 2021 David J. Bradshaw - dave@bradshaw.net + * License: MIT + */ + +!function(c){if("undefined"!=typeof window){var i=!0,o=10,r="",a=0,u="",s=null,d="",l=!1,f={resize:1,click:1},m=128,h=!0,g=1,n="bodyOffset",p=n,v=!0,y="",w={},b=32,T=null,E=!1,O=!1,S="[iFrameSizer]",M=S.length,I="",N={max:1,min:1,bodyScroll:1,documentElementScroll:1},A="child",C=!0,z=window.parent,k="*",R=0,x=!1,e=null,L=16,F=1,t="scroll",P=t,D=window,j=function(){re("onMessage function not defined")},q=function(){},H=function(){},W={height:function(){return re("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return re("Custom width calculation function not defined"),document.body.scrollWidth}},B={},J=!1;try{var U=Object.create({},{passive:{get:function(){J=!0}}});window.addEventListener("test",ee,U),window.removeEventListener("test",ee,U)}catch(e){}var V,X,Y,K,Q,G,Z={bodyOffset:function(){return document.body.offsetHeight+pe("marginTop")+pe("marginBottom")},offset:function(){return Z.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return W.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ye(Z))},min:function(){return Math.min.apply(null,ye(Z))},grow:function(){return Z.max()},lowestElement:function(){return Math.max(Z.bodyOffset()||Z.documentElementOffset(),ve("bottom",be()))},taggedElement:function(){return we("bottom","data-iframe-height")}},$={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return W.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max($.bodyScroll(),$.documentElementScroll())},max:function(){return Math.max.apply(null,ye($))},min:function(){return Math.min.apply(null,ye($))},rightMostElement:function(){return ve("right",be())},taggedElement:function(){return we("right","data-iframe-width")}},_=(V=Te,Q=null,G=0,function(){var e=Date.now(),t=L-(e-(G=G||e));return X=this,Y=arguments,t<=0||L max) { + size = max + log(iframeId, 'Set ' + dimension + ' to max value') + } + + messageData[dimension] = '' + size + } + + function isMessageFromIFrame() { + function checkAllowedOrigin() { + function checkList() { + var i = 0, + retCode = false + + log( + iframeId, + 'Checking connection is from allowed list of origins: ' + + checkOrigin + ) + + for (; i < checkOrigin.length; i++) { + if (checkOrigin[i] === origin) { + retCode = true + break + } + } + return retCode + } + + function checkSingle() { + var remoteHost = settings[iframeId] && settings[iframeId].remoteHost + log(iframeId, 'Checking connection is from: ' + remoteHost) + return origin === remoteHost + } + + return checkOrigin.constructor === Array ? checkList() : checkSingle() + } + + var origin = event.origin, + checkOrigin = settings[iframeId] && settings[iframeId].checkOrigin + + if (checkOrigin && '' + origin !== 'null' && !checkAllowedOrigin()) { + throw new Error( + 'Unexpected message received from: ' + + origin + + ' for ' + + messageData.iframe.id + + '. Message was: ' + + event.data + + '. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.' + ) + } + + return true + } + + function isMessageForUs() { + return ( + msgId === ('' + msg).substr(0, msgIdLen) && + msg.substr(msgIdLen).split(':')[0] in settings + ) // ''+Protects against non-string msg + } + + function isMessageFromMetaParent() { + // Test if this message is from a parent above us. This is an ugly test, however, updating + // the message format would break backwards compatibility. + var retCode = messageData.type in { true: 1, false: 1, undefined: 1 } + + if (retCode) { + log(iframeId, 'Ignoring init message from meta parent page') + } + + return retCode + } + + function getMsgBody(offset) { + return msg.substr(msg.indexOf(':') + msgHeaderLen + offset) + } + + function forwardMsgFromIFrame(msgBody) { + log( + iframeId, + 'onMessage passed: {iframe: ' + + messageData.iframe.id + + ', message: ' + + msgBody + + '}' + ) + + on('onMessage', { + iframe: messageData.iframe, + message: JSON.parse(msgBody) + }) + + log(iframeId, '--') + } + + function getPageInfo() { + var bodyPosition = document.body.getBoundingClientRect(), + iFramePosition = messageData.iframe.getBoundingClientRect() + + return JSON.stringify({ + iframeHeight: iFramePosition.height, + iframeWidth: iFramePosition.width, + clientHeight: Math.max( + document.documentElement.clientHeight, + window.innerHeight || 0 + ), + clientWidth: Math.max( + document.documentElement.clientWidth, + window.innerWidth || 0 + ), + offsetTop: parseInt(iFramePosition.top - bodyPosition.top, 10), + offsetLeft: parseInt(iFramePosition.left - bodyPosition.left, 10), + scrollTop: window.pageYOffset, + scrollLeft: window.pageXOffset, + documentHeight: document.documentElement.clientHeight, + documentWidth: document.documentElement.clientWidth, + windowHeight: window.innerHeight, + windowWidth: window.innerWidth + }) + } + + function sendPageInfoToIframe(iframe, iframeId) { + function debouncedTrigger() { + trigger('Send Page Info', 'pageInfo:' + getPageInfo(), iframe, iframeId) + } + debounceFrameEvents(debouncedTrigger, 32, iframeId) + } + + function startPageInfoMonitor() { + function setListener(type, func) { + function sendPageInfo() { + if (settings[id]) { + sendPageInfoToIframe(settings[id].iframe, id) + } else { + stop() + } + } + + ;['scroll', 'resize'].forEach(function (evt) { + log(id, type + evt + ' listener for sendPageInfo') + func(window, evt, sendPageInfo) + }) + } + + function stop() { + setListener('Remove ', removeEventListener) + } + + function start() { + setListener('Add ', addEventListener) + } + + var id = iframeId // Create locally scoped copy of iFrame ID + + start() + + if (settings[id]) { + settings[id].stopPageInfo = stop + } + } + + function stopPageInfoMonitor() { + if (settings[iframeId] && settings[iframeId].stopPageInfo) { + settings[iframeId].stopPageInfo() + delete settings[iframeId].stopPageInfo + } + } + + function checkIFrameExists() { + var retBool = true + + if (null === messageData.iframe) { + warn(iframeId, 'IFrame (' + messageData.id + ') not found') + retBool = false + } + return retBool + } + + function getElementPosition(target) { + var iFramePosition = target.getBoundingClientRect() + + getPagePosition(iframeId) + + return { + x: Math.floor(Number(iFramePosition.left) + Number(pagePosition.x)), + y: Math.floor(Number(iFramePosition.top) + Number(pagePosition.y)) + } + } + + function scrollRequestFromChild(addOffset) { + /* istanbul ignore next */ // Not testable in Karma + function reposition() { + pagePosition = newPosition + scrollTo() + log(iframeId, '--') + } + + function calcOffset() { + return { + x: Number(messageData.width) + offset.x, + y: Number(messageData.height) + offset.y + } + } + + function scrollParent() { + if (window.parentIFrame) { + window.parentIFrame['scrollTo' + (addOffset ? 'Offset' : '')]( + newPosition.x, + newPosition.y + ) + } else { + warn( + iframeId, + 'Unable to scroll to requested position, window.parentIFrame not found' + ) + } + } + + var offset = addOffset + ? getElementPosition(messageData.iframe) + : { x: 0, y: 0 }, + newPosition = calcOffset() + + log( + iframeId, + 'Reposition requested from iFrame (offset x:' + + offset.x + + ' y:' + + offset.y + + ')' + ) + + if (window.top !== window.self) { + scrollParent() + } else { + reposition() + } + } + + function scrollTo() { + if (false !== on('onScroll', pagePosition)) { + setPagePosition(iframeId) + } else { + unsetPagePosition() + } + } + + function findTarget(location) { + function jumpToTarget() { + var jumpPosition = getElementPosition(target) + + log( + iframeId, + 'Moving to in page link (#' + + hash + + ') at x: ' + + jumpPosition.x + + ' y: ' + + jumpPosition.y + ) + pagePosition = { + x: jumpPosition.x, + y: jumpPosition.y + } + + scrollTo() + log(iframeId, '--') + } + + function jumpToParent() { + if (window.parentIFrame) { + window.parentIFrame.moveToAnchor(hash) + } else { + log( + iframeId, + 'In page link #' + + hash + + ' not found and window.parentIFrame not found' + ) + } + } + + var hash = location.split('#')[1] || '', + hashData = decodeURIComponent(hash), + target = + document.getElementById(hashData) || + document.getElementsByName(hashData)[0] + + if (target) { + jumpToTarget() + } else if (window.top !== window.self) { + jumpToParent() + } else { + log(iframeId, 'In page link #' + hash + ' not found') + } + } + + function onMouse(event) { + var mousePos = {} + + if (Number(messageData.width) === 0 && Number(messageData.height) === 0) { + var data = getMsgBody(9).split(':') + mousePos = { + x: data[1], + y: data[0] + } + } else { + mousePos = { + x: messageData.width, + y: messageData.height + } + } + + on(event, { + iframe: messageData.iframe, + screenX: Number(mousePos.x), + screenY: Number(mousePos.y), + type: messageData.type + }) + } + + function on(funcName, val) { + return chkEvent(iframeId, funcName, val) + } + + function actionMsg() { + if (settings[iframeId] && settings[iframeId].firstRun) firstRun() + + switch (messageData.type) { + case 'close': + closeIFrame(messageData.iframe) + break + + case 'message': + forwardMsgFromIFrame(getMsgBody(6)) + break + + case 'mouseenter': + onMouse('onMouseEnter') + break + + case 'mouseleave': + onMouse('onMouseLeave') + break + + case 'autoResize': + settings[iframeId].autoResize = JSON.parse(getMsgBody(9)) + break + + case 'scrollTo': + scrollRequestFromChild(false) + break + + case 'scrollToOffset': + scrollRequestFromChild(true) + break + + case 'pageInfo': + sendPageInfoToIframe( + settings[iframeId] && settings[iframeId].iframe, + iframeId + ) + startPageInfoMonitor() + break + + case 'pageInfoStop': + stopPageInfoMonitor() + break + + case 'inPageLink': + findTarget(getMsgBody(9)) + break + + case 'reset': + resetIFrame(messageData) + break + + case 'init': + resizeIFrame() + on('onInit', messageData.iframe) + break + + default: + if ( + Number(messageData.width) === 0 && + Number(messageData.height) === 0 + ) { + warn( + 'Unsupported message received (' + + messageData.type + + '), this is likely due to the iframe containing a later ' + + 'version of iframe-resizer than the parent page' + ) + } else { + resizeIFrame() + } + } + } + + function hasSettings(iframeId) { + var retBool = true + + if (!settings[iframeId]) { + retBool = false + warn( + messageData.type + + ' No settings for ' + + iframeId + + '. Message was: ' + + msg + ) + } + + return retBool + } + + function iFrameReadyMsgReceived() { + // eslint-disable-next-line no-restricted-syntax, guard-for-in + for (var iframeId in settings) { + trigger( + 'iFrame requested init', + createOutgoingMsg(iframeId), + settings[iframeId].iframe, + iframeId + ) + } + } + + function firstRun() { + if (settings[iframeId]) { + settings[iframeId].firstRun = false + } + } + + var msg = event.data, + messageData = {}, + iframeId = null + + if ('[iFrameResizerChild]Ready' === msg) { + iFrameReadyMsgReceived() + } else if (isMessageForUs()) { + messageData = processMsg() + iframeId = messageData.id + if (settings[iframeId]) { + settings[iframeId].loaded = true + } + + if (!isMessageFromMetaParent() && hasSettings(iframeId)) { + log(iframeId, 'Received: ' + msg) + + if (checkIFrameExists() && isMessageFromIFrame()) { + actionMsg() + } + } + } else { + info(iframeId, 'Ignored: ' + msg) + } + } + + function chkEvent(iframeId, funcName, val) { + var func = null, + retVal = null + + if (settings[iframeId]) { + func = settings[iframeId][funcName] + + if ('function' === typeof func) { + retVal = func(val) + } else { + throw new TypeError( + funcName + ' on iFrame[' + iframeId + '] is not a function' + ) + } + } + + return retVal + } + + function removeIframeListeners(iframe) { + var iframeId = iframe.id + delete settings[iframeId] + } + + function closeIFrame(iframe) { + var iframeId = iframe.id + if (chkEvent(iframeId, 'onClose', iframeId) === false) { + log(iframeId, 'Close iframe cancelled by onClose event') + return + } + log(iframeId, 'Removing iFrame: ' + iframeId) + + try { + // Catch race condition error with React + if (iframe.parentNode) { + iframe.parentNode.removeChild(iframe) + } + } catch (error) { + warn(error) + } + + chkEvent(iframeId, 'onClosed', iframeId) + log(iframeId, '--') + removeIframeListeners(iframe) + } + + function getPagePosition(iframeId) { + if (null === pagePosition) { + pagePosition = { + x: + window.pageXOffset !== undefined + ? window.pageXOffset + : document.documentElement.scrollLeft, + y: + window.pageYOffset !== undefined + ? window.pageYOffset + : document.documentElement.scrollTop + } + log( + iframeId, + 'Get page position: ' + pagePosition.x + ',' + pagePosition.y + ) + } + } + + function setPagePosition(iframeId) { + if (null !== pagePosition) { + window.scrollTo(pagePosition.x, pagePosition.y) + log( + iframeId, + 'Set page position: ' + pagePosition.x + ',' + pagePosition.y + ) + unsetPagePosition() + } + } + + function unsetPagePosition() { + pagePosition = null + } + + function resetIFrame(messageData) { + function reset() { + setSize(messageData) + trigger('reset', 'reset', messageData.iframe, messageData.id) + } + + log( + messageData.id, + 'Size reset requested by ' + + ('init' === messageData.type ? 'host page' : 'iFrame') + ) + getPagePosition(messageData.id) + syncResize(reset, messageData, 'reset') + } + + function setSize(messageData) { + function setDimension(dimension) { + if (!messageData.id) { + log('undefined', 'messageData id not set') + return + } + messageData.iframe.style[dimension] = messageData[dimension] + 'px' + log( + messageData.id, + 'IFrame (' + + iframeId + + ') ' + + dimension + + ' set to ' + + messageData[dimension] + + 'px' + ) + } + + function chkZero(dimension) { + // FireFox sets dimension of hidden iFrames to zero. + // So if we detect that set up an event to check for + // when iFrame becomes visible. + + /* istanbul ignore next */ // Not testable in PhantomJS + if (!hiddenCheckEnabled && '0' === messageData[dimension]) { + hiddenCheckEnabled = true + log(iframeId, 'Hidden iFrame detected, creating visibility listener') + fixHiddenIFrames() + } + } + + function processDimension(dimension) { + setDimension(dimension) + chkZero(dimension) + } + + var iframeId = messageData.iframe.id + + if (settings[iframeId]) { + if (settings[iframeId].sizeHeight) { + processDimension('height') + } + if (settings[iframeId].sizeWidth) { + processDimension('width') + } + } + } + + function syncResize(func, messageData, doNotSync) { + /* istanbul ignore if */ // Not testable in PhantomJS + if ( + doNotSync !== messageData.type && + requestAnimationFrame && + // including check for jasmine because had trouble getting spy to work in unit test using requestAnimationFrame + !window.jasmine + ) { + log(messageData.id, 'Requesting animation frame') + requestAnimationFrame(func) + } else { + func() + } + } + + function trigger(calleeMsg, msg, iframe, id, noResponseWarning) { + function postMessageToIFrame() { + var target = settings[id] && settings[id].targetOrigin + log( + id, + '[' + + calleeMsg + + '] Sending msg to iframe[' + + id + + '] (' + + msg + + ') targetOrigin: ' + + target + ) + iframe.contentWindow.postMessage(msgId + msg, target) + } + + function iFrameNotFound() { + warn(id, '[' + calleeMsg + '] IFrame(' + id + ') not found') + } + + function chkAndSend() { + if ( + iframe && + 'contentWindow' in iframe && + null !== iframe.contentWindow + ) { + // Null test for PhantomJS + postMessageToIFrame() + } else { + iFrameNotFound() + } + } + + function warnOnNoResponse() { + function warning() { + if (settings[id] && !settings[id].loaded && !errorShown) { + errorShown = true + warn( + id, + 'IFrame has not responded within ' + + settings[id].warningTimeout / 1000 + + ' seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.' + ) + } + } + + if ( + !!noResponseWarning && + settings[id] && + !!settings[id].warningTimeout + ) { + settings[id].msgTimeout = setTimeout( + warning, + settings[id].warningTimeout + ) + } + } + + var errorShown = false + + id = id || iframe.id + + if (settings[id]) { + chkAndSend() + warnOnNoResponse() + } + } + + function createOutgoingMsg(iframeId) { + return ( + iframeId + + ':' + + settings[iframeId].bodyMarginV1 + + ':' + + settings[iframeId].sizeWidth + + ':' + + settings[iframeId].log + + ':' + + settings[iframeId].interval + + ':' + + settings[iframeId].enablePublicMethods + + ':' + + settings[iframeId].autoResize + + ':' + + settings[iframeId].bodyMargin + + ':' + + settings[iframeId].heightCalculationMethod + + ':' + + settings[iframeId].bodyBackground + + ':' + + settings[iframeId].bodyPadding + + ':' + + settings[iframeId].tolerance + + ':' + + settings[iframeId].inPageLinks + + ':' + + settings[iframeId].resizeFrom + + ':' + + settings[iframeId].widthCalculationMethod + + ':' + + settings[iframeId].mouseEvents + ) + } + + function isNumber(value) { + return typeof value === 'number' + } + + function setupIFrame(iframe, options) { + function setLimits() { + function addStyle(style) { + var styleValue = settings[iframeId][style] + if (Infinity !== styleValue && 0 !== styleValue) { + iframe.style[style] = isNumber(styleValue) + ? styleValue + 'px' + : styleValue + log(iframeId, 'Set ' + style + ' = ' + iframe.style[style]) + } + } + + function chkMinMax(dimension) { + if ( + settings[iframeId]['min' + dimension] > + settings[iframeId]['max' + dimension] + ) { + throw new Error( + 'Value for min' + + dimension + + ' can not be greater than max' + + dimension + ) + } + } + + chkMinMax('Height') + chkMinMax('Width') + + addStyle('maxHeight') + addStyle('minHeight') + addStyle('maxWidth') + addStyle('minWidth') + } + + function newId() { + var id = (options && options.id) || defaults.id + count++ + if (null !== document.getElementById(id)) { + id += count++ + } + return id + } + + function ensureHasId(iframeId) { + if ('' === iframeId) { + // eslint-disable-next-line no-multi-assign + iframe.id = iframeId = newId() + logEnabled = (options || {}).log + log( + iframeId, + 'Added missing iframe ID: ' + iframeId + ' (' + iframe.src + ')' + ) + } + + return iframeId + } + + function setScrolling() { + log( + iframeId, + 'IFrame scrolling ' + + (settings[iframeId] && settings[iframeId].scrolling + ? 'enabled' + : 'disabled') + + ' for ' + + iframeId + ) + iframe.style.overflow = + false === (settings[iframeId] && settings[iframeId].scrolling) + ? 'hidden' + : 'auto' + switch (settings[iframeId] && settings[iframeId].scrolling) { + case 'omit': + break + + case true: + iframe.scrolling = 'yes' + break + + case false: + iframe.scrolling = 'no' + break + + default: + iframe.scrolling = settings[iframeId] + ? settings[iframeId].scrolling + : 'no' + } + } + + // The V1 iFrame script expects an int, where as in V2 expects a CSS + // string value such as '1px 3em', so if we have an int for V2, set V1=V2 + // and then convert V2 to a string PX value. + function setupBodyMarginValues() { + if ( + 'number' === + typeof (settings[iframeId] && settings[iframeId].bodyMargin) || + '0' === (settings[iframeId] && settings[iframeId].bodyMargin) + ) { + settings[iframeId].bodyMarginV1 = settings[iframeId].bodyMargin + settings[iframeId].bodyMargin = + '' + settings[iframeId].bodyMargin + 'px' + } + } + + function checkReset() { + // Reduce scope of firstRun to function, because IE8's JS execution + // context stack is borked and this value gets externally + // changed midway through running this function!!! + var firstRun = settings[iframeId] && settings[iframeId].firstRun, + resetRequertMethod = + settings[iframeId] && + settings[iframeId].heightCalculationMethod in resetRequiredMethods + + if (!firstRun && resetRequertMethod) { + resetIFrame({ iframe: iframe, height: 0, width: 0, type: 'init' }) + } + } + + function setupIFrameObject() { + if (settings[iframeId]) { + settings[iframeId].iframe.iFrameResizer = { + close: closeIFrame.bind(null, settings[iframeId].iframe), + + removeListeners: removeIframeListeners.bind( + null, + settings[iframeId].iframe + ), + + resize: trigger.bind( + null, + 'Window resize', + 'resize', + settings[iframeId].iframe + ), + + moveToAnchor: function (anchor) { + trigger( + 'Move to anchor', + 'moveToAnchor:' + anchor, + settings[iframeId].iframe, + iframeId + ) + }, + + sendMessage: function (message) { + message = JSON.stringify(message) + trigger( + 'Send Message', + 'message:' + message, + settings[iframeId].iframe, + iframeId + ) + } + } + } + } + + // We have to call trigger twice, as we can not be sure if all + // iframes have completed loading when this code runs. The + // event listener also catches the page changing in the iFrame. + function init(msg) { + function iFrameLoaded() { + trigger('iFrame.onload', msg, iframe, undefined, true) + checkReset() + } + + function createDestroyObserver(MutationObserver) { + if (!iframe.parentNode) { + return + } + + var destroyObserver = new MutationObserver(function (mutations) { + mutations.forEach(function (mutation) { + var removedNodes = Array.prototype.slice.call(mutation.removedNodes) // Transform NodeList into an Array + removedNodes.forEach(function (removedNode) { + if (removedNode === iframe) { + closeIFrame(iframe) + } + }) + }) + }) + destroyObserver.observe(iframe.parentNode, { + childList: true + }) + } + + var MutationObserver = getMutationObserver() + if (MutationObserver) { + createDestroyObserver(MutationObserver) + } + + addEventListener(iframe, 'load', iFrameLoaded) + trigger('init', msg, iframe, undefined, true) + } + + function checkOptions(options) { + if ('object' !== typeof options) { + throw new TypeError('Options is not an object') + } + } + + function copyOptions(options) { + // eslint-disable-next-line no-restricted-syntax + for (var option in defaults) { + if (Object.prototype.hasOwnProperty.call(defaults, option)) { + settings[iframeId][option] = Object.prototype.hasOwnProperty.call( + options, + option + ) + ? options[option] + : defaults[option] + } + } + } + + function getTargetOrigin(remoteHost) { + return '' === remoteHost || + null !== remoteHost.match(/^(about:blank|javascript:|file:\/\/)/) + ? '*' + : remoteHost + } + + function depricate(key) { + var splitName = key.split('Callback') + + if (splitName.length === 2) { + var name = + 'on' + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1) + this[name] = this[key] + delete this[key] + warn( + iframeId, + "Deprecated: '" + + key + + "' has been renamed '" + + name + + "'. The old method will be removed in the next major version." + ) + } + } + + function processOptions(options) { + options = options || {} + settings[iframeId] = { + firstRun: true, + iframe: iframe, + remoteHost: iframe.src && iframe.src.split('/').slice(0, 3).join('/') + } + + checkOptions(options) + Object.keys(options).forEach(depricate, options) + copyOptions(options) + + if (settings[iframeId]) { + settings[iframeId].targetOrigin = + true === settings[iframeId].checkOrigin + ? getTargetOrigin(settings[iframeId].remoteHost) + : '*' + } + } + + function beenHere() { + return iframeId in settings && 'iFrameResizer' in iframe + } + + var iframeId = ensureHasId(iframe.id) + + if (!beenHere()) { + processOptions(options) + setScrolling() + setLimits() + setupBodyMarginValues() + init(createOutgoingMsg(iframeId)) + setupIFrameObject() + } else { + warn(iframeId, 'Ignored iFrame, already setup.') + } + } + + function debouce(fn, time) { + if (null === timer) { + timer = setTimeout(function () { + timer = null + fn() + }, time) + } + } + + var frameTimer = {} + function debounceFrameEvents(fn, time, frameId) { + if (!frameTimer[frameId]) { + frameTimer[frameId] = setTimeout(function () { + frameTimer[frameId] = null + fn() + }, time) + } + } + + // Not testable in PhantomJS + /* istanbul ignore next */ + + function fixHiddenIFrames() { + function checkIFrames() { + function checkIFrame(settingId) { + function chkDimension(dimension) { + return ( + '0px' === + (settings[settingId] && settings[settingId].iframe.style[dimension]) + ) + } + + function isVisible(el) { + return null !== el.offsetParent + } + + if ( + settings[settingId] && + isVisible(settings[settingId].iframe) && + (chkDimension('height') || chkDimension('width')) + ) { + trigger( + 'Visibility change', + 'resize', + settings[settingId].iframe, + settingId + ) + } + } + + Object.keys(settings).forEach(function (key) { + checkIFrame(key) + }) + } + + function mutationObserved(mutations) { + log( + 'window', + 'Mutation observed: ' + mutations[0].target + ' ' + mutations[0].type + ) + debouce(checkIFrames, 16) + } + + function createMutationObserver() { + var target = document.querySelector('body'), + config = { + attributes: true, + attributeOldValue: false, + characterData: true, + characterDataOldValue: false, + childList: true, + subtree: true + }, + observer = new MutationObserver(mutationObserved) + + observer.observe(target, config) + } + + var MutationObserver = getMutationObserver() + if (MutationObserver) { + createMutationObserver() + } + } + + function resizeIFrames(event) { + function resize() { + sendTriggerMsg('Window ' + event, 'resize') + } + + log('window', 'Trigger event: ' + event) + debouce(resize, 16) + } + + // Not testable in PhantomJS + /* istanbul ignore next */ + function tabVisible() { + function resize() { + sendTriggerMsg('Tab Visible', 'resize') + } + + if ('hidden' !== document.visibilityState) { + log('document', 'Trigger event: Visibility change') + debouce(resize, 16) + } + } + + function sendTriggerMsg(eventName, event) { + function isIFrameResizeEnabled(iframeId) { + return ( + settings[iframeId] && + 'parent' === settings[iframeId].resizeFrom && + settings[iframeId].autoResize && + !settings[iframeId].firstRun + ) + } + + Object.keys(settings).forEach(function (iframeId) { + if (isIFrameResizeEnabled(iframeId)) { + trigger(eventName, event, settings[iframeId].iframe, iframeId) + } + }) + } + + function setupEventListeners() { + addEventListener(window, 'message', iFrameListener) + + addEventListener(window, 'resize', function () { + resizeIFrames('resize') + }) + + addEventListener(document, 'visibilitychange', tabVisible) + + addEventListener(document, '-webkit-visibilitychange', tabVisible) + } + + function factory() { + function init(options, element) { + function chkType() { + if (!element.tagName) { + throw new TypeError('Object is not a valid DOM element') + } else if ('IFRAME' !== element.tagName.toUpperCase()) { + throw new TypeError( + 'Expected \ No newline at end of file diff --git a/iframe-resizer-master/spec/javascripts/fixtures/iframe600.html b/iframe-resizer-master/spec/javascripts/fixtures/iframe600.html new file mode 100755 index 0000000..ebc3500 --- /dev/null +++ b/iframe-resizer-master/spec/javascripts/fixtures/iframe600.html @@ -0,0 +1,6 @@ + + +
+ +
+ \ No newline at end of file diff --git a/iframe-resizer-master/spec/javascripts/fixtures/iframe600WithId.html b/iframe-resizer-master/spec/javascripts/fixtures/iframe600WithId.html new file mode 100755 index 0000000..abd1969 --- /dev/null +++ b/iframe-resizer-master/spec/javascripts/fixtures/iframe600WithId.html @@ -0,0 +1,7 @@ + + + +
+ +
+ \ No newline at end of file diff --git a/iframe-resizer-master/spec/javascripts/fixtures/twoIFrame600WithId.html b/iframe-resizer-master/spec/javascripts/fixtures/twoIFrame600WithId.html new file mode 100755 index 0000000..14de593 --- /dev/null +++ b/iframe-resizer-master/spec/javascripts/fixtures/twoIFrame600WithId.html @@ -0,0 +1,8 @@ + + +
+ +
+
+ +
\ No newline at end of file diff --git a/iframe-resizer-master/spec/lib/common.js b/iframe-resizer-master/spec/lib/common.js new file mode 100755 index 0000000..799bcc5 --- /dev/null +++ b/iframe-resizer-master/spec/lib/common.js @@ -0,0 +1,67 @@ +'use strict'; + +var LOG = true; + +jasmine.DEFAULT_TIMEOUT_INTERVAL = 4000; +jasmine.getFixtures().fixturesPath = 'base/spec/javascripts/fixtures'; + +function tearDown(iframe) { + if (iframe) setTimeout(iframe.iFrameResizer.close, 1); + window.parentIFrame = undefined; +} + +function loadIFrame(filename) { + loadFixtures(filename); +} + +function getTarget(iframe) { + return iframe.src + .split('/') + .slice(0, 3) + .join('/'); +} + +function mockPostMsgViaHook(testIFrame, id, msg, callback) { + return testIFrame('[iFrameSizer]' + id + ':' + msg, callback); +} + +function mockPostMsg(id, msg) { + var message = '[iFrameSizer]' + id + ':' + msg; + console.log('Mock postMessage: ', message); + window.postMessage(message, '*'); +} + +function mockMsgFromIFrame(iframe, msg) { + mockPostMsg(iframe.id, '0:0:' + msg); +} + +function mockInitFromParent(testIFrame, id, log, callback) { + return mockPostMsgViaHook( + testIFrame, + id, + '8:false:' + log + ':0:true:false:null:max:wheat:null:0:true:child:scroll', + callback + ); +} + +function spyOnPostMessage(target) { + spyOn(target, 'postMessage'); +} + +function spyOnWindowPostMessage() { + spyOnPostMessage(window.parent); + return window.parent.postMessage; +} + +function spyOnIFramePostMessage(iframe) { + spyOnPostMessage(iframe.contentWindow); +} + +function closeChild(window, done) { + window.parentIFrame.close(); + done(); +} + +function strEnd(str, num) { + return str.slice(-num); +} diff --git a/iframe-resizer-master/spec/parentSpec.js b/iframe-resizer-master/spec/parentSpec.js new file mode 100755 index 0000000..8c97919 --- /dev/null +++ b/iframe-resizer-master/spec/parentSpec.js @@ -0,0 +1,166 @@ +define(['iframeResizer'], function (iFrameResize) { + describe('Parent Page', function () { + describe('default resize', function () { + var iframe + var log = LOG + var testId = 'defaultResize3' + var ready + + beforeEach(function (done) { + loadIFrame('iframe600.html') + iframe = iFrameResize({ + log: log, + id: testId, + onResized: function () { + ready = true + done() + } + })[0] + + mockMsgFromIFrame(iframe, 'foo') + }) + + afterEach(function () { + tearDown(iframe) + }) + + it('receive message', function () { + expect(ready).toBe(true) + }) + }) + + describe('reset Page', function () { + var iframe + var log = LOG + var testId = 'parentPage1' + + beforeEach(function (done) { + loadIFrame('iframe600.html') + iframe = iFrameResize({ + log: log, + id: testId + })[0] + + spyOn(iframe.contentWindow, 'postMessage').and.callFake(done) + mockMsgFromIFrame(iframe, 'reset') + }) + + afterEach(function () { + tearDown(iframe) + }) + + it('receive message', function () { + expect(iframe.contentWindow.postMessage).toHaveBeenCalledWith( + '[iFrameSizer]reset', + 'https://localhost:9876' + ) + }) + }) + + describe('late load msg received', function () { + var iframe + var log = LOG + var testId = 'parentPage2' + + beforeEach(function (done) { + loadIFrame('iframe600.html') + iframe = iFrameResize({ + log: log, + id: testId + })[0] + + spyOn(iframe.contentWindow, 'postMessage').and.callFake(done) + window.postMessage('[iFrameResizerChild]Ready', '*') + }) + + afterEach(function () { + tearDown(iframe) + }) + + it('receive message', function () { + expect(iframe.contentWindow.postMessage).toHaveBeenCalledWith( + '[iFrameSizer]parentPage2:8:false:true:32:true:true:null:bodyOffset:null:null:0:false:parent:scroll:true', + 'https://localhost:9876' + ) + }) + }) + + describe('resize height', function () { + var iframe + var log = LOG + var testId = 'parentPage3' + var HEIGHT = 90 + var extraHeights = [1, 2, 3, 4] + + var setUp = (boxSizing, units) => { + loadIFrame('iframe.html') + + iframe = iFrameResize({ + log: log, + id: testId + })[0] + + iframe.style.boxSizing = boxSizing + iframe.style.paddingTop = extraHeights[0] + units + iframe.style.paddingBottom = extraHeights[1] + units + iframe.style.borderTop = `${extraHeights[2]}${units} solid` + iframe.style.borderBottom = `${extraHeights[3]}${units} solid` + + spyPostMsg = spyOn(iframe.contentWindow, 'postMessage') + + // needs timeout so postMessage always comes after 'ready' postMessage + setTimeout(() => { + window.postMessage( + `[iFrameSizer]${testId}:${HEIGHT}:600:mutationObserver`, + '*' + ) + }, 0) + } + + afterEach(function () { + tearDown(iframe) + }) + + it('includes padding and borders from "px" units in height when CSS "box-sizing" is set to "border-box"', (done) => { + setUp('border-box', 'px') + + // timeout needed because of requestAnimationFrame and must be more than window.postMessage in setUp + setTimeout(() => { + expect(iframe.offsetHeight).toBe( + HEIGHT + extraHeights.reduce((a, b) => a + b, 0) + ) + done() + }, 100) + }) + + it('includes padding and borders from "rem" units in height when CSS "box-sizing" is set to "border-box"', (done) => { + const REM = 14 + + // changes the rem units of the doc so we can test accurately + document.querySelector('html').style.fontSize = `${REM}px` + + setUp('border-box', 'rem') + + // timeout needed because of requestAnimationFrame and must be more than window.postMessage in setUp + setTimeout(() => { + expect(iframe.offsetHeight).toBe( + HEIGHT + extraHeights.reduce((a, b) => a + b * REM, 0) + ) + done() + }, 100) + }) + + it('includes padding and borders from "px" units in height when CSS "box-sizing" is set to "content-box"', (done) => { + setUp('content-box', 'px') + + // timeout needed because of requestAnimationFrame and must be more than window.postMessage in setUp + setTimeout(() => { + expect(iframe.offsetHeight).toBe( + HEIGHT + extraHeights.reduce((a, b) => a + b, 0) + ) + done() + }, 100) + }) + }) + }) +}) diff --git a/iframe-resizer-master/spec/resources/djb.jpg b/iframe-resizer-master/spec/resources/djb.jpg new file mode 100755 index 0000000..5b4d98f Binary files /dev/null and b/iframe-resizer-master/spec/resources/djb.jpg differ diff --git a/iframe-resizer-master/spec/resources/frame.content.html b/iframe-resizer-master/spec/resources/frame.content.html new file mode 100755 index 0000000..ea02844 --- /dev/null +++ b/iframe-resizer-master/spec/resources/frame.content.html @@ -0,0 +1,243 @@ + + + + + + + iFrame message passing test + + + + + + + iFrame + +

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+ + + + + + + + diff --git a/iframe-resizer-master/spec/resources/frame.lateload.html b/iframe-resizer-master/spec/resources/frame.lateload.html new file mode 100755 index 0000000..b5732cb --- /dev/null +++ b/iframe-resizer-master/spec/resources/frame.lateload.html @@ -0,0 +1,47 @@ + + + + + + + iFrame message passing test + + + + + + + +

Late load JS test

+

Load JS with require after load event has fired.

+
+
+ + + + + + + \ No newline at end of file diff --git a/iframe-resizer-master/spec/resources/frame.nested.html b/iframe-resizer-master/spec/resources/frame.nested.html new file mode 100755 index 0000000..6869281 --- /dev/null +++ b/iframe-resizer-master/spec/resources/frame.nested.html @@ -0,0 +1,43 @@ + + + + + + iFrame message passing test + + + + + + + +

Nested iFrame

+

Resize window or click one of the links in the nested iFrame to watch it resize.

+
+ +
+

+

+ + + + + + + + + + diff --git a/iframe-resizer-master/spec/scrollSpec.js b/iframe-resizer-master/spec/scrollSpec.js new file mode 100755 index 0000000..dbe0a32 --- /dev/null +++ b/iframe-resizer-master/spec/scrollSpec.js @@ -0,0 +1,48 @@ +define(['iframeResizer'], function(iFrameResize) { + describe('Scroll Page', function() { + var iframe + var log = LOG + + beforeEach(function() { + loadIFrame('iframe600.html') + }) + + afterEach(function() { + tearDown(iframe) + }) + + it('mock incoming message', function(done) { + iframe = iFrameResize({ + log: log, + id: 'scroll1' + })[0] + + window.parentIFrame = { + scrollTo: function(x, y) { + expect(x).toBe(0) + expect(y).toBe(0) + done() + } + } + + mockMsgFromIFrame(iframe, 'scrollTo') + }) + + it('mock incoming message', function(done) { + iframe = iFrameResize({ + log: log, + id: 'scroll2' + })[0] + + window.parentIFrame = { + scrollToOffset: function(x, y) { + expect(x).toBe(8) + expect(y).toBe(8) + done() + } + } + + mockMsgFromIFrame(iframe, 'scrollToOffset') + }) + }) +}) diff --git a/iframe-resizer-master/spec/sendMessageSpec.js b/iframe-resizer-master/spec/sendMessageSpec.js new file mode 100755 index 0000000..830ed8c --- /dev/null +++ b/iframe-resizer-master/spec/sendMessageSpec.js @@ -0,0 +1,59 @@ +define(['iframeResizer'], function(iFrameResize) { + describe('Send Message from Host Page', function() { + var iframe + var log = LOG + + beforeEach(function() { + loadIFrame('iframe600.html') + }) + + afterEach(function() { + tearDown(iframe) + }) + + it('send message to iframe', function(done) { + var iframe1 = iFrameResize({ + log: log, + id: 'sendMessage1' + })[0] + + spyOnIFramePostMessage(iframe1) + setTimeout(function() { + iframe1.iFrameResizer.sendMessage('chkSendMsg:test') + expect(iframe1.contentWindow.postMessage).toHaveBeenCalledWith( + '[iFrameSizer]message:"chkSendMsg:test"', + getTarget(iframe1) + ) + tearDown(iframe1) + done() + }, 100) + }) + + it('mock incoming message', function(done) { + iframe = iFrameResize({ + log: log, + id: 'sendMessage2', + onMessage: function(messageData) { + expect(messageData.message).toBe('test:test') + done() + } + })[0] + + mockMsgFromIFrame(iframe, 'message:"test:test"') + }) + + it('send message and get response', function(done) { + iframe = iFrameResize({ + log: log, + id: 'sendMessage3', + onInit: function(iframe) { + iframe.iFrameResizer.sendMessage('chkSendMsg') + }, + onMessage: function(messageData) { + expect(messageData.message).toBe('message: test string') + done() + } + })[0] + }) + }) +}) diff --git a/iframe-resizer-master/spec/support/jasmine.json b/iframe-resizer-master/spec/support/jasmine.json new file mode 100755 index 0000000..7f62f96 --- /dev/null +++ b/iframe-resizer-master/spec/support/jasmine.json @@ -0,0 +1,5 @@ +{ + "spec_dir": "spec", + "spec_files": ["**/*[sS]pec.js"], + "helpers": ["helpers/**/*.js"] +} diff --git a/iframe-resizer-master/src/iframeResizer.contentWindow.js b/iframe-resizer-master/src/iframeResizer.contentWindow.js new file mode 100755 index 0000000..12b582f --- /dev/null +++ b/iframe-resizer-master/src/iframeResizer.contentWindow.js @@ -0,0 +1,1320 @@ +/* + * File: iframeResizer.contentWindow.js + * Desc: Include this file in any page being loaded into an iframe + * to force the iframe to resize to the content size. + * Requires: iframeResizer.js on host page. + * Doc: https://github.com/davidjbradshaw/iframe-resizer + * Author: David J. Bradshaw - dave@bradshaw.net + * + */ + +// eslint-disable-next-line sonarjs/cognitive-complexity, no-shadow-restricted-names +;(function (undefined) { + if (typeof window === 'undefined') return // don't run for server side render + + var autoResize = true, + base = 10, + bodyBackground = '', + bodyMargin = 0, + bodyMarginStr = '', + bodyObserver = null, + bodyPadding = '', + calculateWidth = false, + doubleEventList = { resize: 1, click: 1 }, + eventCancelTimer = 128, + firstRun = true, + height = 1, + heightCalcModeDefault = 'bodyOffset', + heightCalcMode = heightCalcModeDefault, + initLock = true, + initMsg = '', + inPageLinks = {}, + interval = 32, + intervalTimer = null, + logging = false, + mouseEvents = false, + msgID = '[iFrameSizer]', // Must match host page msg ID + msgIdLen = msgID.length, + myID = '', + resetRequiredMethods = { + max: 1, + min: 1, + bodyScroll: 1, + documentElementScroll: 1 + }, + resizeFrom = 'child', + sendPermit = true, + target = window.parent, + targetOriginDefault = '*', + tolerance = 0, + triggerLocked = false, + triggerLockedTimer = null, + throttledTimer = 16, + width = 1, + widthCalcModeDefault = 'scroll', + widthCalcMode = widthCalcModeDefault, + win = window, + onMessage = function () { + warn('onMessage function not defined') + }, + onReady = function () {}, + onPageInfo = function () {}, + customCalcMethods = { + height: function () { + warn('Custom height calculation function not defined') + return document.documentElement.offsetHeight + }, + width: function () { + warn('Custom width calculation function not defined') + return document.body.scrollWidth + } + }, + eventHandlersByName = {}, + passiveSupported = false + + function noop() {} + + try { + var options = Object.create( + {}, + { + passive: { + get: function () { + passiveSupported = true + } + } + } + ) + window.addEventListener('test', noop, options) + window.removeEventListener('test', noop, options) + } catch (error) { + /* */ + } + + function addEventListener(el, evt, func, options) { + el.addEventListener(evt, func, passiveSupported ? options || {} : false) + } + + function removeEventListener(el, evt, func) { + el.removeEventListener(evt, func, false) + } + + function capitalizeFirstLetter(string) { + return string.charAt(0).toUpperCase() + string.slice(1) + } + + // Based on underscore.js + function throttle(func) { + var context, + args, + result, + timeout = null, + previous = 0, + later = function () { + previous = Date.now() + timeout = null + result = func.apply(context, args) + if (!timeout) { + // eslint-disable-next-line no-multi-assign + context = args = null + } + } + + return function () { + var now = Date.now() + + if (!previous) { + previous = now + } + + var remaining = throttledTimer - (now - previous) + + context = this + args = arguments + + if (remaining <= 0 || remaining > throttledTimer) { + if (timeout) { + clearTimeout(timeout) + timeout = null + } + + previous = now + result = func.apply(context, args) + + if (!timeout) { + // eslint-disable-next-line no-multi-assign + context = args = null + } + } else if (!timeout) { + timeout = setTimeout(later, remaining) + } + + return result + } + } + + function formatLogMsg(msg) { + return msgID + '[' + myID + '] ' + msg + } + + function log(msg) { + if (logging && 'object' === typeof window.console) { + // eslint-disable-next-line no-console + console.log(formatLogMsg(msg)) + } + } + + function warn(msg) { + if ('object' === typeof window.console) { + // eslint-disable-next-line no-console + console.warn(formatLogMsg(msg)) + } + } + + function init() { + readDataFromParent() + log('Initialising iFrame (' + window.location.href + ')') + readDataFromPage() + setMargin() + setBodyStyle('background', bodyBackground) + setBodyStyle('padding', bodyPadding) + injectClearFixIntoBodyElement() + checkHeightMode() + checkWidthMode() + stopInfiniteResizingOfIFrame() + setupPublicMethods() + setupMouseEvents() + startEventListeners() + inPageLinks = setupInPageLinks() + sendSize('init', 'Init message from host page') + onReady() + } + + function readDataFromParent() { + function strBool(str) { + return 'true' === str + } + + var data = initMsg.slice(msgIdLen).split(':') + + myID = data[0] + bodyMargin = undefined !== data[1] ? Number(data[1]) : bodyMargin // For V1 compatibility + calculateWidth = undefined !== data[2] ? strBool(data[2]) : calculateWidth + logging = undefined !== data[3] ? strBool(data[3]) : logging + interval = undefined !== data[4] ? Number(data[4]) : interval + autoResize = undefined !== data[6] ? strBool(data[6]) : autoResize + bodyMarginStr = data[7] + heightCalcMode = undefined !== data[8] ? data[8] : heightCalcMode + bodyBackground = data[9] + bodyPadding = data[10] + tolerance = undefined !== data[11] ? Number(data[11]) : tolerance + inPageLinks.enable = undefined !== data[12] ? strBool(data[12]) : false + resizeFrom = undefined !== data[13] ? data[13] : resizeFrom + widthCalcMode = undefined !== data[14] ? data[14] : widthCalcMode + mouseEvents = undefined !== data[15] ? Boolean(data[15]) : mouseEvents + } + + function depricate(key) { + var splitName = key.split('Callback') + + if (splitName.length === 2) { + var name = + 'on' + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1) + this[name] = this[key] + delete this[key] + warn( + "Deprecated: '" + + key + + "' has been renamed '" + + name + + "'. The old method will be removed in the next major version." + ) + } + } + + function readDataFromPage() { + function readData() { + var data = window.iFrameResizer + + log('Reading data from page: ' + JSON.stringify(data)) + Object.keys(data).forEach(depricate, data) + + onMessage = 'onMessage' in data ? data.onMessage : onMessage + onReady = 'onReady' in data ? data.onReady : onReady + targetOriginDefault = + 'targetOrigin' in data ? data.targetOrigin : targetOriginDefault + heightCalcMode = + 'heightCalculationMethod' in data + ? data.heightCalculationMethod + : heightCalcMode + widthCalcMode = + 'widthCalculationMethod' in data + ? data.widthCalculationMethod + : widthCalcMode + } + + function setupCustomCalcMethods(calcMode, calcFunc) { + if ('function' === typeof calcMode) { + log('Setup custom ' + calcFunc + 'CalcMethod') + customCalcMethods[calcFunc] = calcMode + calcMode = 'custom' + } + + return calcMode + } + + if ( + 'iFrameResizer' in window && + Object === window.iFrameResizer.constructor + ) { + readData() + heightCalcMode = setupCustomCalcMethods(heightCalcMode, 'height') + widthCalcMode = setupCustomCalcMethods(widthCalcMode, 'width') + } + + log('TargetOrigin for parent set to: ' + targetOriginDefault) + } + + function chkCSS(attr, value) { + if (-1 !== value.indexOf('-')) { + warn('Negative CSS value ignored for ' + attr) + value = '' + } + return value + } + + function setBodyStyle(attr, value) { + if (undefined !== value && '' !== value && 'null' !== value) { + document.body.style[attr] = value + log('Body ' + attr + ' set to "' + value + '"') + } + } + + function setMargin() { + // If called via V1 script, convert bodyMargin from int to str + if (undefined === bodyMarginStr) { + bodyMarginStr = bodyMargin + 'px' + } + + setBodyStyle('margin', chkCSS('margin', bodyMarginStr)) + } + + function stopInfiniteResizingOfIFrame() { + document.documentElement.style.height = '' + document.body.style.height = '' + log('HTML & body height set to "auto"') + } + + function manageTriggerEvent(options) { + var listener = { + add: function (eventName) { + function handleEvent() { + sendSize(options.eventName, options.eventType) + } + + eventHandlersByName[eventName] = handleEvent + + addEventListener(window, eventName, handleEvent, { passive: true }) + }, + remove: function (eventName) { + var handleEvent = eventHandlersByName[eventName] + delete eventHandlersByName[eventName] + + removeEventListener(window, eventName, handleEvent) + } + } + + if (options.eventNames && Array.prototype.map) { + options.eventName = options.eventNames[0] + options.eventNames.map(listener[options.method]) + } else { + listener[options.method](options.eventName) + } + + log( + capitalizeFirstLetter(options.method) + + ' event listener: ' + + options.eventType + ) + } + + function manageEventListeners(method) { + manageTriggerEvent({ + method: method, + eventType: 'Animation Start', + eventNames: ['animationstart', 'webkitAnimationStart'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Animation Iteration', + eventNames: ['animationiteration', 'webkitAnimationIteration'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Animation End', + eventNames: ['animationend', 'webkitAnimationEnd'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Input', + eventName: 'input' + }) + manageTriggerEvent({ + method: method, + eventType: 'Mouse Up', + eventName: 'mouseup' + }) + manageTriggerEvent({ + method: method, + eventType: 'Mouse Down', + eventName: 'mousedown' + }) + manageTriggerEvent({ + method: method, + eventType: 'Orientation Change', + eventName: 'orientationchange' + }) + manageTriggerEvent({ + method: method, + eventType: 'Print', + eventNames: ['afterprint', 'beforeprint'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Ready State Change', + eventName: 'readystatechange' + }) + manageTriggerEvent({ + method: method, + eventType: 'Touch Start', + eventName: 'touchstart' + }) + manageTriggerEvent({ + method: method, + eventType: 'Touch End', + eventName: 'touchend' + }) + manageTriggerEvent({ + method: method, + eventType: 'Touch Cancel', + eventName: 'touchcancel' + }) + manageTriggerEvent({ + method: method, + eventType: 'Transition Start', + eventNames: [ + 'transitionstart', + 'webkitTransitionStart', + 'MSTransitionStart', + 'oTransitionStart', + 'otransitionstart' + ] + }) + manageTriggerEvent({ + method: method, + eventType: 'Transition Iteration', + eventNames: [ + 'transitioniteration', + 'webkitTransitionIteration', + 'MSTransitionIteration', + 'oTransitionIteration', + 'otransitioniteration' + ] + }) + manageTriggerEvent({ + method: method, + eventType: 'Transition End', + eventNames: [ + 'transitionend', + 'webkitTransitionEnd', + 'MSTransitionEnd', + 'oTransitionEnd', + 'otransitionend' + ] + }) + if ('child' === resizeFrom) { + manageTriggerEvent({ + method: method, + eventType: 'IFrame Resized', + eventName: 'resize' + }) + } + } + + function checkCalcMode(calcMode, calcModeDefault, modes, type) { + if (calcModeDefault !== calcMode) { + if (!(calcMode in modes)) { + warn( + calcMode + ' is not a valid option for ' + type + 'CalculationMethod.' + ) + calcMode = calcModeDefault + } + log(type + ' calculation method set to "' + calcMode + '"') + } + + return calcMode + } + + function checkHeightMode() { + heightCalcMode = checkCalcMode( + heightCalcMode, + heightCalcModeDefault, + getHeight, + 'height' + ) + } + + function checkWidthMode() { + widthCalcMode = checkCalcMode( + widthCalcMode, + widthCalcModeDefault, + getWidth, + 'width' + ) + } + + function startEventListeners() { + if (true === autoResize) { + manageEventListeners('add') + setupMutationObserver() + } else { + log('Auto Resize disabled') + } + } + + // function stopMsgsToParent() { + // log('Disable outgoing messages') + // sendPermit = false + // } + + // function removeMsgListener() { + // log('Remove event listener: Message') + // removeEventListener(window, 'message', receiver) + // } + + function disconnectMutationObserver() { + if (null !== bodyObserver) { + /* istanbul ignore next */ // Not testable in PhantonJS + bodyObserver.disconnect() + } + } + + function stopEventListeners() { + manageEventListeners('remove') + disconnectMutationObserver() + clearInterval(intervalTimer) + } + + // function teardown() { + // stopMsgsToParent() + // removeMsgListener() + // if (true === autoResize) stopEventListeners() + // } + + function injectClearFixIntoBodyElement() { + var clearFix = document.createElement('div') + clearFix.style.clear = 'both' + // Guard against the following having been globally redefined in CSS. + clearFix.style.display = 'block' + clearFix.style.height = '0' + document.body.appendChild(clearFix) + } + + function setupInPageLinks() { + function getPagePosition() { + return { + x: + window.pageXOffset !== undefined + ? window.pageXOffset + : document.documentElement.scrollLeft, + y: + window.pageYOffset !== undefined + ? window.pageYOffset + : document.documentElement.scrollTop + } + } + + function getElementPosition(el) { + var elPosition = el.getBoundingClientRect(), + pagePosition = getPagePosition() + + return { + x: parseInt(elPosition.left, 10) + parseInt(pagePosition.x, 10), + y: parseInt(elPosition.top, 10) + parseInt(pagePosition.y, 10) + } + } + + function findTarget(location) { + function jumpToTarget(target) { + var jumpPosition = getElementPosition(target) + + log( + 'Moving to in page link (#' + + hash + + ') at x: ' + + jumpPosition.x + + ' y: ' + + jumpPosition.y + ) + sendMsg(jumpPosition.y, jumpPosition.x, 'scrollToOffset') // X&Y reversed at sendMsg uses height/width + } + + var hash = location.split('#')[1] || location, // Remove # if present + hashData = decodeURIComponent(hash), + target = + document.getElementById(hashData) || + document.getElementsByName(hashData)[0] + + if (undefined !== target) { + jumpToTarget(target) + } else { + log( + 'In page link (#' + + hash + + ') not found in iFrame, so sending to parent' + ) + sendMsg(0, 0, 'inPageLink', '#' + hash) + } + } + + function checkLocationHash() { + var hash = window.location.hash + var href = window.location.href + + if ('' !== hash && '#' !== hash) { + findTarget(href) + } + } + + function bindAnchors() { + function setupLink(el) { + function linkClicked(e) { + e.preventDefault() + + /* jshint validthis:true */ + findTarget(this.getAttribute('href')) + } + + if ('#' !== el.getAttribute('href')) { + addEventListener(el, 'click', linkClicked) + } + } + + Array.prototype.forEach.call( + document.querySelectorAll('a[href^="#"]'), + setupLink + ) + } + + function bindLocationHash() { + addEventListener(window, 'hashchange', checkLocationHash) + } + + function initCheck() { + // Check if page loaded with location hash after init resize + setTimeout(checkLocationHash, eventCancelTimer) + } + + function enableInPageLinks() { + /* istanbul ignore else */ // Not testable in phantonJS + if (Array.prototype.forEach && document.querySelectorAll) { + log('Setting up location.hash handlers') + bindAnchors() + bindLocationHash() + initCheck() + } else { + warn( + 'In page linking not fully supported in this browser! (See README.md for IE8 workaround)' + ) + } + } + + if (inPageLinks.enable) { + enableInPageLinks() + } else { + log('In page linking not enabled') + } + + return { + findTarget: findTarget + } + } + + function setupMouseEvents() { + if (mouseEvents !== true) return + + function sendMouse(e) { + sendMsg(0, 0, e.type, e.screenY + ':' + e.screenX) + } + + function addMouseListener(evt, name) { + log('Add event listener: ' + name) + addEventListener(window.document, evt, sendMouse) + } + + addMouseListener('mouseenter', 'Mouse Enter') + addMouseListener('mouseleave', 'Mouse Leave') + } + + function setupPublicMethods() { + log('Enable public methods') + + win.parentIFrame = { + autoResize: function autoResizeF(resize) { + if (true === resize && false === autoResize) { + autoResize = true + startEventListeners() + } else if (false === resize && true === autoResize) { + autoResize = false + stopEventListeners() + } + sendMsg(0, 0, 'autoResize', JSON.stringify(autoResize)) + return autoResize + }, + + close: function closeF() { + sendMsg(0, 0, 'close') + // teardown() + }, + + getId: function getIdF() { + return myID + }, + + getPageInfo: function getPageInfoF(callback) { + if ('function' === typeof callback) { + onPageInfo = callback + sendMsg(0, 0, 'pageInfo') + } else { + onPageInfo = function () {} + sendMsg(0, 0, 'pageInfoStop') + } + }, + + moveToAnchor: function moveToAnchorF(hash) { + inPageLinks.findTarget(hash) + }, + + reset: function resetF() { + resetIFrame('parentIFrame.reset') + }, + + scrollTo: function scrollToF(x, y) { + sendMsg(y, x, 'scrollTo') // X&Y reversed at sendMsg uses height/width + }, + + scrollToOffset: function scrollToF(x, y) { + sendMsg(y, x, 'scrollToOffset') // X&Y reversed at sendMsg uses height/width + }, + + sendMessage: function sendMessageF(msg, targetOrigin) { + sendMsg(0, 0, 'message', JSON.stringify(msg), targetOrigin) + }, + + setHeightCalculationMethod: function setHeightCalculationMethodF( + heightCalculationMethod + ) { + heightCalcMode = heightCalculationMethod + checkHeightMode() + }, + + setWidthCalculationMethod: function setWidthCalculationMethodF( + widthCalculationMethod + ) { + widthCalcMode = widthCalculationMethod + checkWidthMode() + }, + + setTargetOrigin: function setTargetOriginF(targetOrigin) { + log('Set targetOrigin: ' + targetOrigin) + targetOriginDefault = targetOrigin + }, + + size: function sizeF(customHeight, customWidth) { + var valString = + '' + (customHeight || '') + (customWidth ? ',' + customWidth : '') + sendSize( + 'size', + 'parentIFrame.size(' + valString + ')', + customHeight, + customWidth + ) + } + } + } + + function initInterval() { + if (0 !== interval) { + log('setInterval: ' + interval + 'ms') + intervalTimer = setInterval(function () { + sendSize('interval', 'setInterval: ' + interval) + }, Math.abs(interval)) + } + } + + // Not testable in PhantomJS + /* istanbul ignore next */ + function setupBodyMutationObserver() { + function addImageLoadListners(mutation) { + function addImageLoadListener(element) { + if (false === element.complete) { + log('Attach listeners to ' + element.src) + element.addEventListener('load', imageLoaded, false) + element.addEventListener('error', imageError, false) + elements.push(element) + } + } + + if (mutation.type === 'attributes' && mutation.attributeName === 'src') { + addImageLoadListener(mutation.target) + } else if (mutation.type === 'childList') { + Array.prototype.forEach.call( + mutation.target.querySelectorAll('img'), + addImageLoadListener + ) + } + } + + function removeFromArray(element) { + elements.splice(elements.indexOf(element), 1) + } + + function removeImageLoadListener(element) { + log('Remove listeners from ' + element.src) + element.removeEventListener('load', imageLoaded, false) + element.removeEventListener('error', imageError, false) + removeFromArray(element) + } + + function imageEventTriggered(event, type, typeDesc) { + removeImageLoadListener(event.target) + sendSize(type, typeDesc + ': ' + event.target.src) + } + + function imageLoaded(event) { + imageEventTriggered(event, 'imageLoad', 'Image loaded') + } + + function imageError(event) { + imageEventTriggered(event, 'imageLoadFailed', 'Image load failed') + } + + function mutationObserved(mutations) { + sendSize( + 'mutationObserver', + 'mutationObserver: ' + mutations[0].target + ' ' + mutations[0].type + ) + + // Deal with WebKit / Blink asyncing image loading when tags are injected into the page + mutations.forEach(addImageLoadListners) + } + + function createMutationObserver() { + var target = document.querySelector('body'), + config = { + attributes: true, + attributeOldValue: false, + characterData: true, + characterDataOldValue: false, + childList: true, + subtree: true + } + + observer = new MutationObserver(mutationObserved) + + log('Create body MutationObserver') + observer.observe(target, config) + + return observer + } + + var elements = [], + MutationObserver = + window.MutationObserver || window.WebKitMutationObserver, + observer = createMutationObserver() + + return { + disconnect: function () { + if ('disconnect' in observer) { + log('Disconnect body MutationObserver') + observer.disconnect() + elements.forEach(removeImageLoadListener) + } + } + } + } + + function setupMutationObserver() { + var forceIntervalTimer = 0 > interval + + // Not testable in PhantomJS + /* istanbul ignore if */ if ( + window.MutationObserver || + window.WebKitMutationObserver + ) { + if (forceIntervalTimer) { + initInterval() + } else { + bodyObserver = setupBodyMutationObserver() + } + } else { + log('MutationObserver not supported in this browser!') + initInterval() + } + } + + // document.documentElement.offsetHeight is not reliable, so + // we have to jump through hoops to get a better value. + function getComputedStyle(prop, el) { + var retVal = 0 + el = el || document.body // Not testable in phantonJS + + retVal = document.defaultView.getComputedStyle(el, null) + retVal = null !== retVal ? retVal[prop] : 0 + + return parseInt(retVal, base) + } + + function chkEventThottle(timer) { + if (timer > throttledTimer / 2) { + throttledTimer = 2 * timer + log('Event throttle increased to ' + throttledTimer + 'ms') + } + } + + // Idea from https://github.com/guardian/iframe-messenger + function getMaxElement(side, elements) { + var elementsLength = elements.length, + elVal = 0, + maxVal = 0, + Side = capitalizeFirstLetter(side), + timer = Date.now() + + for (var i = 0; i < elementsLength; i++) { + elVal = + elements[i].getBoundingClientRect()[side] + + getComputedStyle('margin' + Side, elements[i]) + if (elVal > maxVal) { + maxVal = elVal + } + } + + timer = Date.now() - timer + + log('Parsed ' + elementsLength + ' HTML elements') + log('Element position calculated in ' + timer + 'ms') + + chkEventThottle(timer) + + return maxVal + } + + function getAllMeasurements(dimensions) { + return [ + dimensions.bodyOffset(), + dimensions.bodyScroll(), + dimensions.documentElementOffset(), + dimensions.documentElementScroll() + ] + } + + function getTaggedElements(side, tag) { + function noTaggedElementsFound() { + warn('No tagged elements (' + tag + ') found on page') + return document.querySelectorAll('body *') + } + + var elements = document.querySelectorAll('[' + tag + ']') + + if (elements.length === 0) noTaggedElementsFound() + + return getMaxElement(side, elements) + } + + function getAllElements() { + return document.querySelectorAll('body *') + } + + var getHeight = { + bodyOffset: function getBodyOffsetHeight() { + return ( + document.body.offsetHeight + + getComputedStyle('marginTop') + + getComputedStyle('marginBottom') + ) + }, + + offset: function () { + return getHeight.bodyOffset() // Backwards compatibility + }, + + bodyScroll: function getBodyScrollHeight() { + return document.body.scrollHeight + }, + + custom: function getCustomWidth() { + return customCalcMethods.height() + }, + + documentElementOffset: function getDEOffsetHeight() { + return document.documentElement.offsetHeight + }, + + documentElementScroll: function getDEScrollHeight() { + return document.documentElement.scrollHeight + }, + + max: function getMaxHeight() { + return Math.max.apply(null, getAllMeasurements(getHeight)) + }, + + min: function getMinHeight() { + return Math.min.apply(null, getAllMeasurements(getHeight)) + }, + + grow: function growHeight() { + return getHeight.max() // Run max without the forced downsizing + }, + + lowestElement: function getBestHeight() { + return Math.max( + getHeight.bodyOffset() || getHeight.documentElementOffset(), + getMaxElement('bottom', getAllElements()) + ) + }, + + taggedElement: function getTaggedElementsHeight() { + return getTaggedElements('bottom', 'data-iframe-height') + } + }, + getWidth = { + bodyScroll: function getBodyScrollWidth() { + return document.body.scrollWidth + }, + + bodyOffset: function getBodyOffsetWidth() { + return document.body.offsetWidth + }, + + custom: function getCustomWidth() { + return customCalcMethods.width() + }, + + documentElementScroll: function getDEScrollWidth() { + return document.documentElement.scrollWidth + }, + + documentElementOffset: function getDEOffsetWidth() { + return document.documentElement.offsetWidth + }, + + scroll: function getMaxWidth() { + return Math.max(getWidth.bodyScroll(), getWidth.documentElementScroll()) + }, + + max: function getMaxWidth() { + return Math.max.apply(null, getAllMeasurements(getWidth)) + }, + + min: function getMinWidth() { + return Math.min.apply(null, getAllMeasurements(getWidth)) + }, + + rightMostElement: function rightMostElement() { + return getMaxElement('right', getAllElements()) + }, + + taggedElement: function getTaggedElementsWidth() { + return getTaggedElements('right', 'data-iframe-width') + } + } + + function sizeIFrame( + triggerEvent, + triggerEventDesc, + customHeight, + customWidth + ) { + function resizeIFrame() { + height = currentHeight + width = currentWidth + + sendMsg(height, width, triggerEvent) + } + + function isSizeChangeDetected() { + function checkTolarance(a, b) { + var retVal = Math.abs(a - b) <= tolerance + return !retVal + } + + currentHeight = + undefined !== customHeight ? customHeight : getHeight[heightCalcMode]() + currentWidth = + undefined !== customWidth ? customWidth : getWidth[widthCalcMode]() + + return ( + checkTolarance(height, currentHeight) || + (calculateWidth && checkTolarance(width, currentWidth)) + ) + } + + function isForceResizableEvent() { + return !(triggerEvent in { init: 1, interval: 1, size: 1 }) + } + + function isForceResizableCalcMode() { + return ( + heightCalcMode in resetRequiredMethods || + (calculateWidth && widthCalcMode in resetRequiredMethods) + ) + } + + function logIgnored() { + log('No change in size detected') + } + + function checkDownSizing() { + if (isForceResizableEvent() && isForceResizableCalcMode()) { + resetIFrame(triggerEventDesc) + } else if (!(triggerEvent in { interval: 1 })) { + logIgnored() + } + } + + var currentHeight, currentWidth + + if (isSizeChangeDetected() || 'init' === triggerEvent) { + lockTrigger() + resizeIFrame() + } else { + checkDownSizing() + } + } + + var sizeIFrameThrottled = throttle(sizeIFrame) + + function sendSize(triggerEvent, triggerEventDesc, customHeight, customWidth) { + function recordTrigger() { + if (!(triggerEvent in { reset: 1, resetPage: 1, init: 1 })) { + log('Trigger event: ' + triggerEventDesc) + } + } + + function isDoubleFiredEvent() { + return triggerLocked && triggerEvent in doubleEventList + } + + if (!isDoubleFiredEvent()) { + recordTrigger() + if (triggerEvent === 'init') { + sizeIFrame(triggerEvent, triggerEventDesc, customHeight, customWidth) + } else { + sizeIFrameThrottled( + triggerEvent, + triggerEventDesc, + customHeight, + customWidth + ) + } + } else { + log('Trigger event cancelled: ' + triggerEvent) + } + } + + function lockTrigger() { + if (!triggerLocked) { + triggerLocked = true + log('Trigger event lock on') + } + clearTimeout(triggerLockedTimer) + triggerLockedTimer = setTimeout(function () { + triggerLocked = false + log('Trigger event lock off') + log('--') + }, eventCancelTimer) + } + + function triggerReset(triggerEvent) { + height = getHeight[heightCalcMode]() + width = getWidth[widthCalcMode]() + + sendMsg(height, width, triggerEvent) + } + + function resetIFrame(triggerEventDesc) { + var hcm = heightCalcMode + heightCalcMode = heightCalcModeDefault + + log('Reset trigger event: ' + triggerEventDesc) + lockTrigger() + triggerReset('reset') + + heightCalcMode = hcm + } + + function sendMsg(height, width, triggerEvent, msg, targetOrigin) { + function setTargetOrigin() { + if (undefined === targetOrigin) { + targetOrigin = targetOriginDefault + } else { + log('Message targetOrigin: ' + targetOrigin) + } + } + + function sendToParent() { + var size = height + ':' + width, + message = + myID + + ':' + + size + + ':' + + triggerEvent + + (undefined !== msg ? ':' + msg : '') + + log('Sending message to host page (' + message + ')') + target.postMessage(msgID + message, targetOrigin) + } + + if (true === sendPermit) { + setTargetOrigin() + sendToParent() + } + } + + function receiver(event) { + var processRequestFromParent = { + init: function initFromParent() { + initMsg = event.data + target = event.source + + init() + firstRun = false + setTimeout(function () { + initLock = false + }, eventCancelTimer) + }, + + reset: function resetFromParent() { + if (!initLock) { + log('Page size reset by host page') + triggerReset('resetPage') + } else { + log('Page reset ignored by init') + } + }, + + resize: function resizeFromParent() { + sendSize('resizeParent', 'Parent window requested size check') + }, + + moveToAnchor: function moveToAnchorF() { + inPageLinks.findTarget(getData()) + }, + inPageLink: function inPageLinkF() { + this.moveToAnchor() + }, // Backward compatibility + + pageInfo: function pageInfoFromParent() { + var msgBody = getData() + log('PageInfoFromParent called from parent: ' + msgBody) + onPageInfo(JSON.parse(msgBody)) + log(' --') + }, + + message: function messageFromParent() { + var msgBody = getData() + + log('onMessage called from parent: ' + msgBody) + // eslint-disable-next-line sonarjs/no-extra-arguments + onMessage(JSON.parse(msgBody)) + log(' --') + } + } + + function isMessageForUs() { + return msgID === ('' + event.data).slice(0, msgIdLen) // ''+ Protects against non-string messages + } + + function getMessageType() { + return event.data.split(']')[1].split(':')[0] + } + + function getData() { + return event.data.slice(event.data.indexOf(':') + 1) + } + + function isMiddleTier() { + return ( + (!(typeof module !== 'undefined' && module.exports) && + 'iFrameResize' in window) || + ('jQuery' in window && 'iFrameResize' in window.jQuery.prototype) + ) + } + + function isInitMsg() { + // Test if this message is from a child below us. This is an ugly test, however, updating + // the message format would break backwards compatibility. + return event.data.split(':')[2] in { true: 1, false: 1 } + } + + function callFromParent() { + var messageType = getMessageType() + + if (messageType in processRequestFromParent) { + processRequestFromParent[messageType]() + } else if (!isMiddleTier() && !isInitMsg()) { + warn('Unexpected message (' + event.data + ')') + } + } + + function processMessage() { + if (false === firstRun) { + callFromParent() + } else if (isInitMsg()) { + processRequestFromParent.init() + } else { + log( + 'Ignored message of type "' + + getMessageType() + + '". Received before initialization.' + ) + } + } + + if (isMessageForUs()) { + processMessage() + } + } + + // Normally the parent kicks things off when it detects the iFrame has loaded. + // If this script is async-loaded, then tell parent page to retry init. + function chkLateLoaded() { + if ('loading' !== document.readyState) { + window.parent.postMessage('[iFrameResizerChild]Ready', '*') + } + } + + addEventListener(window, 'message', receiver) + addEventListener(window, 'readystatechange', chkLateLoaded) + chkLateLoaded() + + // TEST CODE START // + + // Create test hooks + + function mockMsgListener(msgObject) { + receiver(msgObject) + return win + } + + win = {} + + removeEventListener(window, 'message', receiver) + + define([], function () { + return mockMsgListener + }) + + // TEST CODE END // +})() diff --git a/iframe-resizer-master/src/iframeResizer.js b/iframe-resizer-master/src/iframeResizer.js new file mode 100755 index 0000000..650baf6 --- /dev/null +++ b/iframe-resizer-master/src/iframeResizer.js @@ -0,0 +1,1441 @@ +/* + * File: iframeResizer.js + * Desc: Force iframes to size to content. + * Requires: iframeResizer.contentWindow.js to be loaded into the target frame. + * Doc: https://github.com/davidjbradshaw/iframe-resizer + * Author: David J. Bradshaw - dave@bradshaw.net + * Contributor: Jure Mav - jure.mav@gmail.com + * Contributor: Reed Dadoune - reed@dadoune.com + */ + +// eslint-disable-next-line sonarjs/cognitive-complexity, no-shadow-restricted-names +;(function (undefined) { + if (typeof window === 'undefined') return // don't run for server side render + + var count = 0, + logEnabled = false, + hiddenCheckEnabled = false, + msgHeader = 'message', + msgHeaderLen = msgHeader.length, + msgId = '[iFrameSizer]', // Must match iframe msg ID + msgIdLen = msgId.length, + pagePosition = null, + requestAnimationFrame = window.requestAnimationFrame, + resetRequiredMethods = { + max: 1, + scroll: 1, + bodyScroll: 1, + documentElementScroll: 1 + }, + settings = {}, + timer = null, + defaults = { + autoResize: true, + bodyBackground: null, + bodyMargin: null, + bodyMarginV1: 8, + bodyPadding: null, + checkOrigin: true, + inPageLinks: false, + enablePublicMethods: true, + heightCalculationMethod: 'bodyOffset', + id: 'iFrameResizer', + interval: 32, + log: false, + maxHeight: Infinity, + maxWidth: Infinity, + minHeight: 0, + minWidth: 0, + mouseEvents: true, + resizeFrom: 'parent', + scrolling: false, + sizeHeight: true, + sizeWidth: false, + warningTimeout: 5000, + tolerance: 0, + widthCalculationMethod: 'scroll', + onClose: function () { + return true + }, + onClosed: function () {}, + onInit: function () {}, + onMessage: function () { + warn('onMessage function not defined') + }, + onMouseEnter: function () {}, + onMouseLeave: function () {}, + onResized: function () {}, + onScroll: function () { + return true + } + } + + function getMutationObserver() { + return ( + window.MutationObserver || + window.WebKitMutationObserver || + window.MozMutationObserver + ) + } + + function addEventListener(el, evt, func) { + el.addEventListener(evt, func, false) + } + + function removeEventListener(el, evt, func) { + el.removeEventListener(evt, func, false) + } + + function setupRequestAnimationFrame() { + var vendors = ['moz', 'webkit', 'o', 'ms'] + var x + + // Remove vendor prefixing if prefixed and break early if not + for (x = 0; x < vendors.length && !requestAnimationFrame; x += 1) { + requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'] + } + + if (!requestAnimationFrame) { + log('setup', 'RequestAnimationFrame not supported') + } else { + // Firefox extension content-scripts have a globalThis object that is not the same as window. + // Binding `requestAnimationFrame` to window allows the function to work and prevents errors + // being thrown when run in that context, and should be a no-op in every other context. + requestAnimationFrame = requestAnimationFrame.bind(window) + } + } + + function getMyID(iframeId) { + var retStr = 'Host page: ' + iframeId + + if (window.top !== window.self) { + retStr = + window.parentIFrame && window.parentIFrame.getId + ? window.parentIFrame.getId() + ': ' + iframeId + : 'Nested host page: ' + iframeId + } + + return retStr + } + + function formatLogHeader(iframeId) { + return msgId + '[' + getMyID(iframeId) + ']' + } + + function isLogEnabled(iframeId) { + return settings[iframeId] ? settings[iframeId].log : logEnabled + } + + function log(iframeId, msg) { + output('log', iframeId, msg, isLogEnabled(iframeId)) + } + + function info(iframeId, msg) { + output('info', iframeId, msg, isLogEnabled(iframeId)) + } + + function warn(iframeId, msg) { + output('warn', iframeId, msg, true) + } + + function output(type, iframeId, msg, enabled) { + if (true === enabled && 'object' === typeof window.console) { + // eslint-disable-next-line no-console + console[type](formatLogHeader(iframeId), msg) + } + } + + function iFrameListener(event) { + function resizeIFrame() { + function resize() { + setSize(messageData) + setPagePosition(iframeId) + on('onResized', messageData) + } + + ensureInRange('Height') + ensureInRange('Width') + + syncResize(resize, messageData, 'init') + } + + function processMsg() { + var data = msg.slice(msgIdLen).split(':') + var height = data[1] ? parseInt(data[1], 10) : 0 + var iframe = settings[data[0]] && settings[data[0]].iframe + var compStyle = getComputedStyle(iframe) + + return { + iframe: iframe, + id: data[0], + height: height + getPaddingEnds(compStyle) + getBorderEnds(compStyle), + width: data[2], + type: data[3] + } + } + + function getPaddingEnds(compStyle) { + if (compStyle.boxSizing !== 'border-box') { + return 0 + } + var top = compStyle.paddingTop ? parseInt(compStyle.paddingTop, 10) : 0 + var bot = compStyle.paddingBottom + ? parseInt(compStyle.paddingBottom, 10) + : 0 + return top + bot + } + + function getBorderEnds(compStyle) { + if (compStyle.boxSizing !== 'border-box') { + return 0 + } + var top = compStyle.borderTopWidth + ? parseInt(compStyle.borderTopWidth, 10) + : 0 + var bot = compStyle.borderBottomWidth + ? parseInt(compStyle.borderBottomWidth, 10) + : 0 + return top + bot + } + + function ensureInRange(Dimension) { + var max = Number(settings[iframeId]['max' + Dimension]), + min = Number(settings[iframeId]['min' + Dimension]), + dimension = Dimension.toLowerCase(), + size = Number(messageData[dimension]) + + log(iframeId, 'Checking ' + dimension + ' is in range ' + min + '-' + max) + + if (size < min) { + size = min + log(iframeId, 'Set ' + dimension + ' to min value') + } + + if (size > max) { + size = max + log(iframeId, 'Set ' + dimension + ' to max value') + } + + messageData[dimension] = '' + size + } + + function isMessageFromIFrame() { + function checkAllowedOrigin() { + function checkList() { + var i = 0, + retCode = false + + log( + iframeId, + 'Checking connection is from allowed list of origins: ' + + checkOrigin + ) + + for (; i < checkOrigin.length; i++) { + if (checkOrigin[i] === origin) { + retCode = true + break + } + } + return retCode + } + + function checkSingle() { + var remoteHost = settings[iframeId] && settings[iframeId].remoteHost + log(iframeId, 'Checking connection is from: ' + remoteHost) + return origin === remoteHost + } + + return checkOrigin.constructor === Array ? checkList() : checkSingle() + } + + var origin = event.origin, + checkOrigin = settings[iframeId] && settings[iframeId].checkOrigin + + if (checkOrigin && '' + origin !== 'null' && !checkAllowedOrigin()) { + throw new Error( + 'Unexpected message received from: ' + + origin + + ' for ' + + messageData.iframe.id + + '. Message was: ' + + event.data + + '. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.' + ) + } + + return true + } + + function isMessageForUs() { + return ( + msgId === ('' + msg).slice(0, msgIdLen) && + msg.slice(msgIdLen).split(':')[0] in settings + ) // ''+Protects against non-string msg + } + + function isMessageFromMetaParent() { + // Test if this message is from a parent above us. This is an ugly test, however, updating + // the message format would break backwards compatibility. + var retCode = messageData.type in { true: 1, false: 1, undefined: 1 } + + if (retCode) { + log(iframeId, 'Ignoring init message from meta parent page') + } + + return retCode + } + + function getMsgBody(offset) { + return msg.slice(msg.indexOf(':') + msgHeaderLen + offset) + } + + function forwardMsgFromIFrame(msgBody) { + log( + iframeId, + 'onMessage passed: {iframe: ' + + messageData.iframe.id + + ', message: ' + + msgBody + + '}' + ) + + on('onMessage', { + iframe: messageData.iframe, + message: JSON.parse(msgBody) + }) + + log(iframeId, '--') + } + + function getPageInfo() { + var bodyPosition = document.body.getBoundingClientRect(), + iFramePosition = messageData.iframe.getBoundingClientRect() + + return JSON.stringify({ + iframeHeight: iFramePosition.height, + iframeWidth: iFramePosition.width, + clientHeight: Math.max( + document.documentElement.clientHeight, + window.innerHeight || 0 + ), + clientWidth: Math.max( + document.documentElement.clientWidth, + window.innerWidth || 0 + ), + offsetTop: parseInt(iFramePosition.top - bodyPosition.top, 10), + offsetLeft: parseInt(iFramePosition.left - bodyPosition.left, 10), + scrollTop: window.pageYOffset, + scrollLeft: window.pageXOffset, + documentHeight: document.documentElement.clientHeight, + documentWidth: document.documentElement.clientWidth, + windowHeight: window.innerHeight, + windowWidth: window.innerWidth + }) + } + + function sendPageInfoToIframe(iframe, iframeId) { + function debouncedTrigger() { + trigger('Send Page Info', 'pageInfo:' + getPageInfo(), iframe, iframeId) + } + debounceFrameEvents(debouncedTrigger, 32, iframeId) + } + + function startPageInfoMonitor() { + function setListener(type, func) { + function sendPageInfo() { + if (settings[id]) { + sendPageInfoToIframe(settings[id].iframe, id) + } else { + stop() + } + } + + ;['scroll', 'resize'].forEach(function (evt) { + log(id, type + evt + ' listener for sendPageInfo') + func(window, evt, sendPageInfo) + }) + } + + function stop() { + setListener('Remove ', removeEventListener) + } + + function start() { + setListener('Add ', addEventListener) + } + + var id = iframeId // Create locally scoped copy of iFrame ID + + start() + + if (settings[id]) { + settings[id].stopPageInfo = stop + } + } + + function stopPageInfoMonitor() { + if (settings[iframeId] && settings[iframeId].stopPageInfo) { + settings[iframeId].stopPageInfo() + delete settings[iframeId].stopPageInfo + } + } + + function checkIFrameExists() { + var retBool = true + + if (null === messageData.iframe) { + warn(iframeId, 'IFrame (' + messageData.id + ') not found') + retBool = false + } + return retBool + } + + function getElementPosition(target) { + var iFramePosition = target.getBoundingClientRect() + + getPagePosition(iframeId) + + return { + x: Math.floor(Number(iFramePosition.left) + Number(pagePosition.x)), + y: Math.floor(Number(iFramePosition.top) + Number(pagePosition.y)) + } + } + + function scrollRequestFromChild(addOffset) { + /* istanbul ignore next */ // Not testable in Karma + function reposition() { + pagePosition = newPosition + scrollTo() + log(iframeId, '--') + } + + function calcOffset() { + return { + x: Number(messageData.width) + offset.x, + y: Number(messageData.height) + offset.y + } + } + + function scrollParent() { + if (window.parentIFrame) { + window.parentIFrame['scrollTo' + (addOffset ? 'Offset' : '')]( + newPosition.x, + newPosition.y + ) + } else { + warn( + iframeId, + 'Unable to scroll to requested position, window.parentIFrame not found' + ) + } + } + + var offset = addOffset + ? getElementPosition(messageData.iframe) + : { x: 0, y: 0 }, + newPosition = calcOffset() + + log( + iframeId, + 'Reposition requested from iFrame (offset x:' + + offset.x + + ' y:' + + offset.y + + ')' + ) + + if (window.top !== window.self) { + scrollParent() + } else { + reposition() + } + } + + function scrollTo() { + if (false !== on('onScroll', pagePosition)) { + setPagePosition(iframeId) + } else { + unsetPagePosition() + } + } + + function findTarget(location) { + function jumpToTarget() { + var jumpPosition = getElementPosition(target) + + log( + iframeId, + 'Moving to in page link (#' + + hash + + ') at x: ' + + jumpPosition.x + + ' y: ' + + jumpPosition.y + ) + pagePosition = { + x: jumpPosition.x, + y: jumpPosition.y + } + + scrollTo() + log(iframeId, '--') + } + + function jumpToParent() { + if (window.parentIFrame) { + window.parentIFrame.moveToAnchor(hash) + } else { + log( + iframeId, + 'In page link #' + + hash + + ' not found and window.parentIFrame not found' + ) + } + } + + var hash = location.split('#')[1] || '', + hashData = decodeURIComponent(hash), + target = + document.getElementById(hashData) || + document.getElementsByName(hashData)[0] + + if (target) { + jumpToTarget() + } else if (window.top !== window.self) { + jumpToParent() + } else { + log(iframeId, 'In page link #' + hash + ' not found') + } + } + + function onMouse(event) { + var mousePos = {} + + if (Number(messageData.width) === 0 && Number(messageData.height) === 0) { + var data = getMsgBody(9).split(':') + mousePos = { + x: data[1], + y: data[0] + } + } else { + mousePos = { + x: messageData.width, + y: messageData.height + } + } + + on(event, { + iframe: messageData.iframe, + screenX: Number(mousePos.x), + screenY: Number(mousePos.y), + type: messageData.type + }) + } + + function on(funcName, val) { + return chkEvent(iframeId, funcName, val) + } + + function actionMsg() { + if (settings[iframeId] && settings[iframeId].firstRun) firstRun() + + switch (messageData.type) { + case 'close': + closeIFrame(messageData.iframe) + break + + case 'message': + forwardMsgFromIFrame(getMsgBody(6)) + break + + case 'mouseenter': + onMouse('onMouseEnter') + break + + case 'mouseleave': + onMouse('onMouseLeave') + break + + case 'autoResize': + settings[iframeId].autoResize = JSON.parse(getMsgBody(9)) + break + + case 'scrollTo': + scrollRequestFromChild(false) + break + + case 'scrollToOffset': + scrollRequestFromChild(true) + break + + case 'pageInfo': + sendPageInfoToIframe( + settings[iframeId] && settings[iframeId].iframe, + iframeId + ) + startPageInfoMonitor() + break + + case 'pageInfoStop': + stopPageInfoMonitor() + break + + case 'inPageLink': + findTarget(getMsgBody(9)) + break + + case 'reset': + resetIFrame(messageData) + break + + case 'init': + resizeIFrame() + on('onInit', messageData.iframe) + break + + default: + if ( + Number(messageData.width) === 0 && + Number(messageData.height) === 0 + ) { + warn( + 'Unsupported message received (' + + messageData.type + + '), this is likely due to the iframe containing a later ' + + 'version of iframe-resizer than the parent page' + ) + } else { + resizeIFrame() + } + } + } + + function hasSettings(iframeId) { + var retBool = true + + if (!settings[iframeId]) { + retBool = false + warn( + messageData.type + + ' No settings for ' + + iframeId + + '. Message was: ' + + msg + ) + } + + return retBool + } + + function iFrameReadyMsgReceived() { + // eslint-disable-next-line no-restricted-syntax, guard-for-in + for (var iframeId in settings) { + trigger( + 'iFrame requested init', + createOutgoingMsg(iframeId), + settings[iframeId].iframe, + iframeId + ) + } + } + + function firstRun() { + if (settings[iframeId]) { + settings[iframeId].firstRun = false + } + } + + var msg = event.data, + messageData = {}, + iframeId = null + + if ('[iFrameResizerChild]Ready' === msg) { + iFrameReadyMsgReceived() + } else if (isMessageForUs()) { + messageData = processMsg() + iframeId = messageData.id + if (settings[iframeId]) { + settings[iframeId].loaded = true + } + + if (!isMessageFromMetaParent() && hasSettings(iframeId)) { + log(iframeId, 'Received: ' + msg) + + if (checkIFrameExists() && isMessageFromIFrame()) { + actionMsg() + } + } + } else { + info(iframeId, 'Ignored: ' + msg) + } + } + + function chkEvent(iframeId, funcName, val) { + var func = null, + retVal = null + + if (settings[iframeId]) { + func = settings[iframeId][funcName] + + if ('function' === typeof func) { + retVal = func(val) + } else { + throw new TypeError( + funcName + ' on iFrame[' + iframeId + '] is not a function' + ) + } + } + + return retVal + } + + function removeIframeListeners(iframe) { + var iframeId = iframe.id + delete settings[iframeId] + } + + function closeIFrame(iframe) { + var iframeId = iframe.id + if (chkEvent(iframeId, 'onClose', iframeId) === false) { + log(iframeId, 'Close iframe cancelled by onClose event') + return + } + log(iframeId, 'Removing iFrame: ' + iframeId) + + try { + // Catch race condition error with React + if (iframe.parentNode) { + iframe.parentNode.removeChild(iframe) + } + } catch (error) { + warn(error) + } + + chkEvent(iframeId, 'onClosed', iframeId) + log(iframeId, '--') + removeIframeListeners(iframe) + } + + function getPagePosition(iframeId) { + if (null === pagePosition) { + pagePosition = { + x: + window.pageXOffset !== undefined + ? window.pageXOffset + : document.documentElement.scrollLeft, + y: + window.pageYOffset !== undefined + ? window.pageYOffset + : document.documentElement.scrollTop + } + log( + iframeId, + 'Get page position: ' + pagePosition.x + ',' + pagePosition.y + ) + } + } + + function setPagePosition(iframeId) { + if (null !== pagePosition) { + window.scrollTo(pagePosition.x, pagePosition.y) + log( + iframeId, + 'Set page position: ' + pagePosition.x + ',' + pagePosition.y + ) + unsetPagePosition() + } + } + + function unsetPagePosition() { + pagePosition = null + } + + function resetIFrame(messageData) { + function reset() { + setSize(messageData) + trigger('reset', 'reset', messageData.iframe, messageData.id) + } + + log( + messageData.id, + 'Size reset requested by ' + + ('init' === messageData.type ? 'host page' : 'iFrame') + ) + getPagePosition(messageData.id) + syncResize(reset, messageData, 'reset') + } + + function setSize(messageData) { + function setDimension(dimension) { + if (!messageData.id) { + log('undefined', 'messageData id not set') + return + } + messageData.iframe.style[dimension] = messageData[dimension] + 'px' + log( + messageData.id, + 'IFrame (' + + iframeId + + ') ' + + dimension + + ' set to ' + + messageData[dimension] + + 'px' + ) + } + + function chkZero(dimension) { + // FireFox sets dimension of hidden iFrames to zero. + // So if we detect that set up an event to check for + // when iFrame becomes visible. + + /* istanbul ignore next */ // Not testable in PhantomJS + if (!hiddenCheckEnabled && '0' === messageData[dimension]) { + hiddenCheckEnabled = true + log(iframeId, 'Hidden iFrame detected, creating visibility listener') + fixHiddenIFrames() + } + } + + function processDimension(dimension) { + setDimension(dimension) + chkZero(dimension) + } + + var iframeId = messageData.iframe.id + + if (settings[iframeId]) { + if (settings[iframeId].sizeHeight) { + processDimension('height') + } + if (settings[iframeId].sizeWidth) { + processDimension('width') + } + } + } + + function syncResize(func, messageData, doNotSync) { + /* istanbul ignore if */ // Not testable in PhantomJS + if ( + doNotSync !== messageData.type && + requestAnimationFrame && + // including check for jasmine because had trouble getting spy to work in unit test using requestAnimationFrame + !window.jasmine + ) { + log(messageData.id, 'Requesting animation frame') + requestAnimationFrame(func) + } else { + func() + } + } + + function trigger(calleeMsg, msg, iframe, id, noResponseWarning) { + function postMessageToIFrame() { + var target = settings[id] && settings[id].targetOrigin + log( + id, + '[' + + calleeMsg + + '] Sending msg to iframe[' + + id + + '] (' + + msg + + ') targetOrigin: ' + + target + ) + iframe.contentWindow.postMessage(msgId + msg, target) + } + + function iFrameNotFound() { + warn(id, '[' + calleeMsg + '] IFrame(' + id + ') not found') + } + + function chkAndSend() { + if ( + iframe && + 'contentWindow' in iframe && + null !== iframe.contentWindow + ) { + // Null test for PhantomJS + postMessageToIFrame() + } else { + iFrameNotFound() + } + } + + function warnOnNoResponse() { + function warning() { + if (settings[id] && !settings[id].loaded && !errorShown) { + errorShown = true + warn( + id, + 'IFrame has not responded within ' + + settings[id].warningTimeout / 1000 + + ' seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.' + ) + } + } + + if ( + !!noResponseWarning && + settings[id] && + !!settings[id].warningTimeout + ) { + settings[id].msgTimeout = setTimeout( + warning, + settings[id].warningTimeout + ) + } + } + + var errorShown = false + + id = id || iframe.id + + if (settings[id]) { + chkAndSend() + warnOnNoResponse() + } + } + + function createOutgoingMsg(iframeId) { + return ( + iframeId + + ':' + + settings[iframeId].bodyMarginV1 + + ':' + + settings[iframeId].sizeWidth + + ':' + + settings[iframeId].log + + ':' + + settings[iframeId].interval + + ':' + + settings[iframeId].enablePublicMethods + + ':' + + settings[iframeId].autoResize + + ':' + + settings[iframeId].bodyMargin + + ':' + + settings[iframeId].heightCalculationMethod + + ':' + + settings[iframeId].bodyBackground + + ':' + + settings[iframeId].bodyPadding + + ':' + + settings[iframeId].tolerance + + ':' + + settings[iframeId].inPageLinks + + ':' + + settings[iframeId].resizeFrom + + ':' + + settings[iframeId].widthCalculationMethod + + ':' + + settings[iframeId].mouseEvents + ) + } + + function isNumber(value) { + return typeof value === 'number' + } + + function setupIFrame(iframe, options) { + function setLimits() { + function addStyle(style) { + var styleValue = settings[iframeId][style] + if (Infinity !== styleValue && 0 !== styleValue) { + iframe.style[style] = isNumber(styleValue) + ? styleValue + 'px' + : styleValue + log(iframeId, 'Set ' + style + ' = ' + iframe.style[style]) + } + } + + function chkMinMax(dimension) { + if ( + settings[iframeId]['min' + dimension] > + settings[iframeId]['max' + dimension] + ) { + throw new Error( + 'Value for min' + + dimension + + ' can not be greater than max' + + dimension + ) + } + } + + chkMinMax('Height') + chkMinMax('Width') + + addStyle('maxHeight') + addStyle('minHeight') + addStyle('maxWidth') + addStyle('minWidth') + } + + function newId() { + var id = (options && options.id) || defaults.id + count++ + if (null !== document.getElementById(id)) { + id += count++ + } + return id + } + + function ensureHasId(iframeId) { + if ('' === iframeId) { + // eslint-disable-next-line no-multi-assign + iframe.id = iframeId = newId() + logEnabled = (options || {}).log + log( + iframeId, + 'Added missing iframe ID: ' + iframeId + ' (' + iframe.src + ')' + ) + } + + return iframeId + } + + function setScrolling() { + log( + iframeId, + 'IFrame scrolling ' + + (settings[iframeId] && settings[iframeId].scrolling + ? 'enabled' + : 'disabled') + + ' for ' + + iframeId + ) + iframe.style.overflow = + false === (settings[iframeId] && settings[iframeId].scrolling) + ? 'hidden' + : 'auto' + switch (settings[iframeId] && settings[iframeId].scrolling) { + case 'omit': + break + + case true: + iframe.scrolling = 'yes' + break + + case false: + iframe.scrolling = 'no' + break + + default: + iframe.scrolling = settings[iframeId] + ? settings[iframeId].scrolling + : 'no' + } + } + + // The V1 iFrame script expects an int, where as in V2 expects a CSS + // string value such as '1px 3em', so if we have an int for V2, set V1=V2 + // and then convert V2 to a string PX value. + function setupBodyMarginValues() { + if ( + 'number' === + typeof (settings[iframeId] && settings[iframeId].bodyMargin) || + '0' === (settings[iframeId] && settings[iframeId].bodyMargin) + ) { + settings[iframeId].bodyMarginV1 = settings[iframeId].bodyMargin + settings[iframeId].bodyMargin = + '' + settings[iframeId].bodyMargin + 'px' + } + } + + function checkReset() { + // Reduce scope of firstRun to function, because IE8's JS execution + // context stack is borked and this value gets externally + // changed midway through running this function!!! + var firstRun = settings[iframeId] && settings[iframeId].firstRun, + resetRequertMethod = + settings[iframeId] && + settings[iframeId].heightCalculationMethod in resetRequiredMethods + + if (!firstRun && resetRequertMethod) { + resetIFrame({ iframe: iframe, height: 0, width: 0, type: 'init' }) + } + } + + function setupIFrameObject() { + if (settings[iframeId]) { + settings[iframeId].iframe.iFrameResizer = { + close: closeIFrame.bind(null, settings[iframeId].iframe), + + removeListeners: removeIframeListeners.bind( + null, + settings[iframeId].iframe + ), + + resize: trigger.bind( + null, + 'Window resize', + 'resize', + settings[iframeId].iframe + ), + + moveToAnchor: function (anchor) { + trigger( + 'Move to anchor', + 'moveToAnchor:' + anchor, + settings[iframeId].iframe, + iframeId + ) + }, + + sendMessage: function (message) { + message = JSON.stringify(message) + trigger( + 'Send Message', + 'message:' + message, + settings[iframeId].iframe, + iframeId + ) + } + } + } + } + + // We have to call trigger twice, as we can not be sure if all + // iframes have completed loading when this code runs. The + // event listener also catches the page changing in the iFrame. + function init(msg) { + function iFrameLoaded() { + trigger('iFrame.onload', msg, iframe, undefined, true) + checkReset() + } + + function createDestroyObserver(MutationObserver) { + if (!iframe.parentNode) { + return + } + + var destroyObserver = new MutationObserver(function (mutations) { + mutations.forEach(function (mutation) { + var removedNodes = Array.prototype.slice.call(mutation.removedNodes) // Transform NodeList into an Array + removedNodes.forEach(function (removedNode) { + if (removedNode === iframe) { + closeIFrame(iframe) + } + }) + }) + }) + destroyObserver.observe(iframe.parentNode, { + childList: true + }) + } + + var MutationObserver = getMutationObserver() + if (MutationObserver) { + createDestroyObserver(MutationObserver) + } + + addEventListener(iframe, 'load', iFrameLoaded) + trigger('init', msg, iframe, undefined, true) + } + + function checkOptions(options) { + if ('object' !== typeof options) { + throw new TypeError('Options is not an object') + } + } + + function copyOptions(options) { + // eslint-disable-next-line no-restricted-syntax + for (var option in defaults) { + if (Object.prototype.hasOwnProperty.call(defaults, option)) { + settings[iframeId][option] = Object.prototype.hasOwnProperty.call( + options, + option + ) + ? options[option] + : defaults[option] + } + } + } + + function getTargetOrigin(remoteHost) { + return '' === remoteHost || + null !== remoteHost.match(/^(about:blank|javascript:|file:\/\/)/) + ? '*' + : remoteHost + } + + function depricate(key) { + var splitName = key.split('Callback') + + if (splitName.length === 2) { + var name = + 'on' + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1) + this[name] = this[key] + delete this[key] + warn( + iframeId, + "Deprecated: '" + + key + + "' has been renamed '" + + name + + "'. The old method will be removed in the next major version." + ) + } + } + + function processOptions(options) { + options = options || {} + settings[iframeId] = { + firstRun: true, + iframe: iframe, + remoteHost: iframe.src && iframe.src.split('/').slice(0, 3).join('/') + } + + checkOptions(options) + Object.keys(options).forEach(depricate, options) + copyOptions(options) + + if (settings[iframeId]) { + settings[iframeId].targetOrigin = + true === settings[iframeId].checkOrigin + ? getTargetOrigin(settings[iframeId].remoteHost) + : '*' + } + } + + function beenHere() { + return iframeId in settings && 'iFrameResizer' in iframe + } + + var iframeId = ensureHasId(iframe.id) + + if (!beenHere()) { + processOptions(options) + setScrolling() + setLimits() + setupBodyMarginValues() + init(createOutgoingMsg(iframeId)) + setupIFrameObject() + } else { + warn(iframeId, 'Ignored iFrame, already setup.') + } + } + + function debouce(fn, time) { + if (null === timer) { + timer = setTimeout(function () { + timer = null + fn() + }, time) + } + } + + var frameTimer = {} + function debounceFrameEvents(fn, time, frameId) { + if (!frameTimer[frameId]) { + frameTimer[frameId] = setTimeout(function () { + frameTimer[frameId] = null + fn() + }, time) + } + } + + // Not testable in PhantomJS + /* istanbul ignore next */ + + function fixHiddenIFrames() { + function checkIFrames() { + function checkIFrame(settingId) { + function chkDimension(dimension) { + return ( + '0px' === + (settings[settingId] && settings[settingId].iframe.style[dimension]) + ) + } + + function isVisible(el) { + return null !== el.offsetParent + } + + if ( + settings[settingId] && + isVisible(settings[settingId].iframe) && + (chkDimension('height') || chkDimension('width')) + ) { + trigger( + 'Visibility change', + 'resize', + settings[settingId].iframe, + settingId + ) + } + } + + Object.keys(settings).forEach(function (key) { + checkIFrame(key) + }) + } + + function mutationObserved(mutations) { + log( + 'window', + 'Mutation observed: ' + mutations[0].target + ' ' + mutations[0].type + ) + debouce(checkIFrames, 16) + } + + function createMutationObserver() { + var target = document.querySelector('body'), + config = { + attributes: true, + attributeOldValue: false, + characterData: true, + characterDataOldValue: false, + childList: true, + subtree: true + }, + observer = new MutationObserver(mutationObserved) + + observer.observe(target, config) + } + + var MutationObserver = getMutationObserver() + if (MutationObserver) { + createMutationObserver() + } + } + + function resizeIFrames(event) { + function resize() { + sendTriggerMsg('Window ' + event, 'resize') + } + + log('window', 'Trigger event: ' + event) + debouce(resize, 16) + } + + // Not testable in PhantomJS + /* istanbul ignore next */ + function tabVisible() { + function resize() { + sendTriggerMsg('Tab Visible', 'resize') + } + + if ('hidden' !== document.visibilityState) { + log('document', 'Trigger event: Visibility change') + debouce(resize, 16) + } + } + + function sendTriggerMsg(eventName, event) { + function isIFrameResizeEnabled(iframeId) { + return ( + settings[iframeId] && + 'parent' === settings[iframeId].resizeFrom && + settings[iframeId].autoResize && + !settings[iframeId].firstRun + ) + } + + Object.keys(settings).forEach(function (iframeId) { + if (isIFrameResizeEnabled(iframeId)) { + trigger(eventName, event, settings[iframeId].iframe, iframeId) + } + }) + } + + function setupEventListeners() { + addEventListener(window, 'message', iFrameListener) + + addEventListener(window, 'resize', function () { + resizeIFrames('resize') + }) + + addEventListener(document, 'visibilitychange', tabVisible) + + addEventListener(document, '-webkit-visibilitychange', tabVisible) + } + + function factory() { + function init(options, element) { + function chkType() { + if (!element.tagName) { + throw new TypeError('Object is not a valid DOM element') + } else if ('IFRAME' !== element.tagName.toUpperCase()) { + throw new TypeError( + 'Expected + + + + + + + + + diff --git a/iframe-resizer-master/test/_init_once.html b/iframe-resizer-master/test/_init_once.html new file mode 100755 index 0000000..25f7bba --- /dev/null +++ b/iframe-resizer-master/test/_init_once.html @@ -0,0 +1,52 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + diff --git a/iframe-resizer-master/test/_init_once_async.html b/iframe-resizer-master/test/_init_once_async.html new file mode 100755 index 0000000..dbf1fd6 --- /dev/null +++ b/iframe-resizer-master/test/_init_once_async.html @@ -0,0 +1,73 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + diff --git a/iframe-resizer-master/test/background.html b/iframe-resizer-master/test/background.html new file mode 100755 index 0000000..9b1e4fd --- /dev/null +++ b/iframe-resizer-master/test/background.html @@ -0,0 +1,47 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master/test/changePage.html b/iframe-resizer-master/test/changePage.html new file mode 100755 index 0000000..8e1074b --- /dev/null +++ b/iframe-resizer-master/test/changePage.html @@ -0,0 +1,55 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master/test/close.html b/iframe-resizer-master/test/close.html new file mode 100755 index 0000000..73b389e --- /dev/null +++ b/iframe-resizer-master/test/close.html @@ -0,0 +1,44 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master/test/getId.html b/iframe-resizer-master/test/getId.html new file mode 100755 index 0000000..a88322a --- /dev/null +++ b/iframe-resizer-master/test/getId.html @@ -0,0 +1,48 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master/test/interval.html b/iframe-resizer-master/test/interval.html new file mode 100755 index 0000000..081491d --- /dev/null +++ b/iframe-resizer-master/test/interval.html @@ -0,0 +1,59 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master/test/jqueryNoConflict.html b/iframe-resizer-master/test/jqueryNoConflict.html new file mode 100755 index 0000000..8e3f6df --- /dev/null +++ b/iframe-resizer-master/test/jqueryNoConflict.html @@ -0,0 +1,49 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + diff --git a/iframe-resizer-master/test/lateImageLoad.html b/iframe-resizer-master/test/lateImageLoad.html new file mode 100755 index 0000000..2ca9a76 --- /dev/null +++ b/iframe-resizer-master/test/lateImageLoad.html @@ -0,0 +1,92 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master/test/margin.html b/iframe-resizer-master/test/margin.html new file mode 100755 index 0000000..ad18fb4 --- /dev/null +++ b/iframe-resizer-master/test/margin.html @@ -0,0 +1,67 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master/test/mutationObserver.html b/iframe-resizer-master/test/mutationObserver.html new file mode 100755 index 0000000..a0d6cec --- /dev/null +++ b/iframe-resizer-master/test/mutationObserver.html @@ -0,0 +1,74 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + diff --git a/iframe-resizer-master/test/nested.html b/iframe-resizer-master/test/nested.html new file mode 100755 index 0000000..5173c80 --- /dev/null +++ b/iframe-resizer-master/test/nested.html @@ -0,0 +1,46 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master/test/noMessageForBlackListedOrigins.html b/iframe-resizer-master/test/noMessageForBlackListedOrigins.html new file mode 100755 index 0000000..bcb4051 --- /dev/null +++ b/iframe-resizer-master/test/noMessageForBlackListedOrigins.html @@ -0,0 +1,75 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+ + +
+ + + + + + + + diff --git a/iframe-resizer-master/test/removeIFrame.html b/iframe-resizer-master/test/removeIFrame.html new file mode 100755 index 0000000..ade5f18 --- /dev/null +++ b/iframe-resizer-master/test/removeIFrame.html @@ -0,0 +1,105 @@ + + + + + QUnit LoadHide + + + + +
+
+
+
+ +
+
+ + + + + + + diff --git a/iframe-resizer-master/test/resize.contentWidth.html b/iframe-resizer-master/test/resize.contentWidth.html new file mode 100755 index 0000000..405c236 --- /dev/null +++ b/iframe-resizer-master/test/resize.contentWidth.html @@ -0,0 +1,51 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master/test/resize.width.html b/iframe-resizer-master/test/resize.width.html new file mode 100755 index 0000000..d3dd5f3 --- /dev/null +++ b/iframe-resizer-master/test/resize.width.html @@ -0,0 +1,82 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + diff --git a/iframe-resizer-master/test/resources/djb.jpg b/iframe-resizer-master/test/resources/djb.jpg new file mode 100755 index 0000000..5b4d98f Binary files /dev/null and b/iframe-resizer-master/test/resources/djb.jpg differ diff --git a/iframe-resizer-master/test/resources/frame.content.html b/iframe-resizer-master/test/resources/frame.content.html new file mode 100755 index 0000000..64f1d66 --- /dev/null +++ b/iframe-resizer-master/test/resources/frame.content.html @@ -0,0 +1,270 @@ + + + + + + iFrame message passing test + + + + + + + + iFrame + +
Some content to be replaced
+ +

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+ + + + + + + + + diff --git a/iframe-resizer-master/test/resources/frame.lateload.html b/iframe-resizer-master/test/resources/frame.lateload.html new file mode 100755 index 0000000..84b73b7 --- /dev/null +++ b/iframe-resizer-master/test/resources/frame.lateload.html @@ -0,0 +1,46 @@ + + + + + + iFrame message passing test + + + + + + + +

Late load JS test

+

Load JS with require after load event has fired.

+
+
+ + + + + + + \ No newline at end of file diff --git a/iframe-resizer-master/test/resources/frame.nested.html b/iframe-resizer-master/test/resources/frame.nested.html new file mode 100755 index 0000000..e50d636 --- /dev/null +++ b/iframe-resizer-master/test/resources/frame.nested.html @@ -0,0 +1,45 @@ + + + + + + + + iFrame message passing test + + + + + + + +

Nested iFrame

+

Resize window or click one of the links in the nested iFrame to watch it resize.

+
+ +
+

+

+ + + + + + + + + + diff --git a/iframe-resizer-master/test/resources/jquery.js b/iframe-resizer-master/test/resources/jquery.js new file mode 100755 index 0000000..b091807 --- /dev/null +++ b/iframe-resizer-master/test/resources/jquery.js @@ -0,0 +1,6 @@ +/*! jQuery v2.0.3 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license +//@ sourceMappingURL=jquery-2.0.3.min.map +*/ +(function(e,undefined){var t,n,r=typeof undefined,i=e.location,o=e.document,s=o.documentElement,a=e.jQuery,u=e.$,l={},c=[],p="2.0.3",f=c.concat,h=c.push,d=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,x=function(e,n){return new x.fn.init(e,n,t)},b=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^-ms-/,N=/-([\da-z])/gi,E=function(e,t){return t.toUpperCase()},S=function(){o.removeEventListener("DOMContentLoaded",S,!1),e.removeEventListener("load",S,!1),x.ready()};x.fn=x.prototype={jquery:p,constructor:x,init:function(e,t,n){var r,i;if(!e)return this;if("string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:T.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),C.test(r[1])&&x.isPlainObject(t))for(r in t)x.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=o.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?n.ready(e):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return d.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},a=2),"object"==typeof s||x.isFunction(s)||(s={}),u===a&&(s=this,--a);u>a;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(l&&r&&(x.isPlainObject(r)||(i=x.isArray(r)))?(i?(i=!1,o=n&&x.isArray(n)?n:[]):o=n&&x.isPlainObject(n)?n:{},s[t]=x.extend(l,o,r)):r!==undefined&&(s[t]=r));return s},x.extend({expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=a),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){(e===!0?--x.readyWait:x.isReady)||(x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(o,[x]),x.fn.trigger&&x(o).trigger("ready").off("ready")))},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(r){t=undefined}return(!t||t.getElementsByTagName("parsererror").length)&&x.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){var t,n=eval;e=x.trim(e),e&&(1===e.indexOf("use strict")?(t=o.createElement("script"),t.text=e,o.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(k,"ms-").replace(N,E)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,s=j(e);if(n){if(s){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(s){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:function(e){return null==e?"":v.call(e)},makeArray:function(e,t){var n=t||[];return null!=e&&(j(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:g.call(t,e,n)},merge:function(e,t){var n=t.length,r=e.length,i=0;if("number"==typeof n)for(;n>i;i++)e[r++]=t[i];else while(t[i]!==undefined)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){var r,i=[],o=0,s=e.length;for(n=!!n;s>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,s=j(e),a=[];if(s)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(a[a.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(a[a.length]=r);return f.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),x.isFunction(e)?(r=d.call(arguments,2),i=function(){return e.apply(t||this,r.concat(d.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):undefined},access:function(e,t,n,r,i,o,s){var a=0,u=e.length,l=null==n;if("object"===x.type(n)){i=!0;for(a in n)x.access(e,t,a,n[a],!0,o,s)}else if(r!==undefined&&(i=!0,x.isFunction(r)||(s=!0),l&&(s?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(x(e),n)})),t))for(;u>a;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:l?t.call(e):u?t(e[0],n):o},now:Date.now,swap:function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i}}),x.ready.promise=function(t){return n||(n=x.Deferred(),"complete"===o.readyState?setTimeout(x.ready):(o.addEventListener("DOMContentLoaded",S,!1),e.addEventListener("load",S,!1))),n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function j(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}t=x(o),function(e,undefined){var t,n,r,i,o,s,a,u,l,c,p,f,h,d,g,m,y,v="sizzle"+-new Date,b=e.document,w=0,T=0,C=st(),k=st(),N=st(),E=!1,S=function(e,t){return e===t?(E=!0,0):0},j=typeof undefined,D=1<<31,A={}.hasOwnProperty,L=[],q=L.pop,H=L.push,O=L.push,F=L.slice,P=L.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",W="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",$=W.replace("w","w#"),B="\\["+M+"*("+W+")"+M+"*(?:([*^$|!~]?=)"+M+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+$+")|)|)"+M+"*\\]",I=":("+W+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+B.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=RegExp("^"+M+"*,"+M+"*"),X=RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=RegExp(M+"*[+~]"),Y=RegExp("="+M+"*([^\\]'\"]*)"+M+"*\\]","g"),V=RegExp(I),G=RegExp("^"+$+"$"),J={ID:RegExp("^#("+W+")"),CLASS:RegExp("^\\.("+W+")"),TAG:RegExp("^("+W.replace("w","w*")+")"),ATTR:RegExp("^"+B),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:RegExp("^(?:"+R+")$","i"),needsContext:RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Q=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/^(?:input|select|textarea|button)$/i,et=/^h\d$/i,tt=/'|\\/g,nt=RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),rt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{O.apply(L=F.call(b.childNodes),b.childNodes),L[b.childNodes.length].nodeType}catch(it){O={apply:L.length?function(e,t){H.apply(e,F.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function ot(e,t,r,i){var o,s,a,u,l,f,g,m,x,w;if((t?t.ownerDocument||t:b)!==p&&c(t),t=t||p,r=r||[],!e||"string"!=typeof e)return r;if(1!==(u=t.nodeType)&&9!==u)return[];if(h&&!i){if(o=K.exec(e))if(a=o[1]){if(9===u){if(s=t.getElementById(a),!s||!s.parentNode)return r;if(s.id===a)return r.push(s),r}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(a))&&y(t,s)&&s.id===a)return r.push(s),r}else{if(o[2])return O.apply(r,t.getElementsByTagName(e)),r;if((a=o[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&(!d||!d.test(e))){if(m=g=v,x=t,w=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){f=gt(e),(g=t.getAttribute("id"))?m=g.replace(tt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",l=f.length;while(l--)f[l]=m+mt(f[l]);x=U.test(e)&&t.parentNode||t,w=f.join(",")}if(w)try{return O.apply(r,x.querySelectorAll(w)),r}catch(T){}finally{g||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,r,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>i.cacheLength&&delete t[e.shift()],t[n]=r}return t}function at(e){return e[v]=!0,e}function ut(e){var t=p.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function lt(e,t){var n=e.split("|"),r=e.length;while(r--)i.attrHandle[n[r]]=t}function ct(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function pt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return at(function(t){return t=+t,at(function(n,r){var i,o=e([],n.length,t),s=o.length;while(s--)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}s=ot.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},n=ot.support={},c=ot.setDocument=function(e){var t=e?e.ownerDocument||e:b,r=t.defaultView;return t!==p&&9===t.nodeType&&t.documentElement?(p=t,f=t.documentElement,h=!s(t),r&&r.attachEvent&&r!==r.top&&r.attachEvent("onbeforeunload",function(){c()}),n.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ut(function(e){return e.appendChild(t.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=ut(function(e){return e.innerHTML="
",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),n.getById=ut(function(e){return f.appendChild(e).id=v,!t.getElementsByName||!t.getElementsByName(v).length}),n.getById?(i.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){return e.getAttribute("id")===t}}):(delete i.find.ID,i.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=n.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==j?t.getElementsByTagName(e):undefined}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==j&&h?t.getElementsByClassName(e):undefined},g=[],d=[],(n.qsa=Q.test(t.querySelectorAll))&&(ut(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll(":checked").length||d.push(":checked")}),ut(function(e){var n=t.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&d.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||d.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),d.push(",.*:")})),(n.matchesSelector=Q.test(m=f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ut(function(e){n.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),g.push("!=",I)}),d=d.length&&RegExp(d.join("|")),g=g.length&&RegExp(g.join("|")),y=Q.test(f.contains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},S=f.compareDocumentPosition?function(e,r){if(e===r)return E=!0,0;var i=r.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(r);return i?1&i||!n.sortDetached&&r.compareDocumentPosition(e)===i?e===t||y(b,e)?-1:r===t||y(b,r)?1:l?P.call(l,e)-P.call(l,r):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,n){var r,i=0,o=e.parentNode,s=n.parentNode,a=[e],u=[n];if(e===n)return E=!0,0;if(!o||!s)return e===t?-1:n===t?1:o?-1:s?1:l?P.call(l,e)-P.call(l,n):0;if(o===s)return ct(e,n);r=e;while(r=r.parentNode)a.unshift(r);r=n;while(r=r.parentNode)u.unshift(r);while(a[i]===u[i])i++;return i?ct(a[i],u[i]):a[i]===b?-1:u[i]===b?1:0},t):p},ot.matches=function(e,t){return ot(e,null,null,t)},ot.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&c(e),t=t.replace(Y,"='$1']"),!(!n.matchesSelector||!h||g&&g.test(t)||d&&d.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return ot(t,p,null,[e]).length>0},ot.contains=function(e,t){return(e.ownerDocument||e)!==p&&c(e),y(e,t)},ot.attr=function(e,t){(e.ownerDocument||e)!==p&&c(e);var r=i.attrHandle[t.toLowerCase()],o=r&&A.call(i.attrHandle,t.toLowerCase())?r(e,t,!h):undefined;return o===undefined?n.attributes||!h?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null:o},ot.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},ot.uniqueSort=function(e){var t,r=[],i=0,o=0;if(E=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(S),E){while(t=e[o++])t===e[o]&&(i=r.push(o));while(i--)e.splice(r[i],1)}return e},o=ot.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},i=ot.selectors={cacheLength:50,createPseudo:at,match:J,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(nt,rt),e[3]=(e[4]||e[5]||"").replace(nt,rt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ot.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ot.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return J.CHILD.test(e[0])?null:(e[3]&&e[4]!==undefined?e[2]=e[4]:n&&V.test(n)&&(t=gt(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(nt,rt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ot.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,p,f,h,d,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,y=a&&t.nodeName.toLowerCase(),x=!u&&!a;if(m){if(o){while(g){p=t;while(p=p[g])if(a?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&x){c=m[v]||(m[v]={}),l=c[e]||[],h=l[0]===w&&l[1],f=l[0]===w&&l[2],p=h&&m.childNodes[h];while(p=++h&&p&&p[g]||(f=h=0)||d.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[w,h,f];break}}else if(x&&(l=(t[v]||(t[v]={}))[e])&&l[0]===w)f=l[1];else while(p=++h&&p&&p[g]||(f=h=0)||d.pop())if((a?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(x&&((p[v]||(p[v]={}))[e]=[w,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ot.error("unsupported pseudo: "+e);return r[v]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?at(function(e,n){var i,o=r(e,t),s=o.length;while(s--)i=P.call(e,o[s]),e[i]=!(n[i]=o[s])}):function(e){return r(e,0,n)}):r}},pseudos:{not:at(function(e){var t=[],n=[],r=a(e.replace(z,"$1"));return r[v]?at(function(e,t,n,i){var o,s=r(e,null,i,[]),a=e.length;while(a--)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:at(function(e){return function(t){return ot(e,t).length>0}}),contains:at(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:at(function(e){return G.test(e||"")||ot.error("unsupported lang: "+e),e=e.replace(nt,rt).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return et.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},i.pseudos.nth=i.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=pt(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=ft(t);function dt(){}dt.prototype=i.filters=i.pseudos,i.setFilters=new dt;function gt(e,t){var n,r,o,s,a,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);a=e,u=[],l=i.preFilter;while(a){(!n||(r=_.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=X.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(z," ")}),a=a.slice(n.length));for(s in i.filter)!(r=J[s].exec(a))||l[s]&&!(r=l[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ot.error(e):k(e,u).slice(0)}function mt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function yt(e,t,n){var i=t.dir,o=n&&"parentNode"===i,s=T++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,a){var u,l,c,p=w+" "+s;if(a){while(t=t[i])if((1===t.nodeType||o)&&e(t,n,a))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[v]||(t[v]={}),(l=c[i])&&l[0]===p){if((u=l[1])===!0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,a)||r,l[1]===!0)return!0}}function vt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,s=[],a=0,u=e.length,l=null!=t;for(;u>a;a++)(o=e[a])&&(!n||n(o,r,i))&&(s.push(o),l&&t.push(a));return s}function bt(e,t,n,r,i,o){return r&&!r[v]&&(r=bt(r)),i&&!i[v]&&(i=bt(i,o)),at(function(o,s,a,u){var l,c,p,f=[],h=[],d=s.length,g=o||Ct(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?g:xt(g,f,e,a,u),y=n?i||(o?e:d||r)?[]:s:m;if(n&&n(m,y,a,u),r){l=xt(y,h),r(l,[],a,u),c=l.length;while(c--)(p=l[c])&&(y[h[c]]=!(m[h[c]]=p))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&&l.push(m[c]=p);i(null,y=[],l,u)}c=y.length;while(c--)(p=y[c])&&(l=i?P.call(o,p):f[c])>-1&&(o[l]=!(s[l]=p))}}else y=xt(y===s?y.splice(d,y.length):y),i?i(null,s,y,u):O.apply(s,y)})}function wt(e){var t,n,r,o=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,c=yt(function(e){return e===t},a,!0),p=yt(function(e){return P.call(t,e)>-1},a,!0),f=[function(e,n,r){return!s&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;o>l;l++)if(n=i.relative[e[l].type])f=[yt(vt(f),n)];else{if(n=i.filter[e[l].type].apply(null,e[l].matches),n[v]){for(r=++l;o>r;r++)if(i.relative[e[r].type])break;return bt(l>1&&vt(f),l>1&&mt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&wt(e.slice(l,r)),o>r&&wt(e=e.slice(r)),o>r&&mt(e))}f.push(n)}return vt(f)}function Tt(e,t){var n=0,o=t.length>0,s=e.length>0,a=function(a,l,c,f,h){var d,g,m,y=[],v=0,x="0",b=a&&[],T=null!=h,C=u,k=a||s&&i.find.TAG("*",h&&l.parentNode||l),N=w+=null==C?1:Math.random()||.1;for(T&&(u=l!==p&&l,r=n);null!=(d=k[x]);x++){if(s&&d){g=0;while(m=e[g++])if(m(d,l,c)){f.push(d);break}T&&(w=N,r=++n)}o&&((d=!m&&d)&&v--,a&&b.push(d))}if(v+=x,o&&x!==v){g=0;while(m=t[g++])m(b,y,l,c);if(a){if(v>0)while(x--)b[x]||y[x]||(y[x]=q.call(f));y=xt(y)}O.apply(f,y),T&&!a&&y.length>0&&v+t.length>1&&ot.uniqueSort(f)}return T&&(w=N,u=C),b};return o?at(a):a}a=ot.compile=function(e,t){var n,r=[],i=[],o=N[e+" "];if(!o){t||(t=gt(e)),n=t.length;while(n--)o=wt(t[n]),o[v]?r.push(o):i.push(o);o=N(e,Tt(i,r))}return o};function Ct(e,t,n){var r=0,i=t.length;for(;i>r;r++)ot(e,t[r],n);return n}function kt(e,t,r,o){var s,u,l,c,p,f=gt(e);if(!o&&1===f.length){if(u=f[0]=f[0].slice(0),u.length>2&&"ID"===(l=u[0]).type&&n.getById&&9===t.nodeType&&h&&i.relative[u[1].type]){if(t=(i.find.ID(l.matches[0].replace(nt,rt),t)||[])[0],!t)return r;e=e.slice(u.shift().value.length)}s=J.needsContext.test(e)?0:u.length;while(s--){if(l=u[s],i.relative[c=l.type])break;if((p=i.find[c])&&(o=p(l.matches[0].replace(nt,rt),U.test(u[0].type)&&t.parentNode||t))){if(u.splice(s,1),e=o.length&&mt(u),!e)return O.apply(r,o),r;break}}}return a(e,f)(o,t,!h,r,U.test(e)),r}n.sortStable=v.split("").sort(S).join("")===v,n.detectDuplicates=E,c(),n.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),ut(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||lt("type|href|height|width",function(e,t,n){return n?undefined:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ut(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||lt("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?undefined:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||lt(R,function(e,t,n){var r;return n?undefined:(r=e.getAttributeNode(t))&&r.specified?r.value:e[t]===!0?t.toLowerCase():null}),x.find=ot,x.expr=ot.selectors,x.expr[":"]=x.expr.pseudos,x.unique=ot.uniqueSort,x.text=ot.getText,x.isXMLDoc=ot.isXML,x.contains=ot.contains}(e);var D={};function A(e){var t=D[e]={};return x.each(e.match(w)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?D[e]||A(e):x.extend({},e);var t,n,r,i,o,s,a=[],u=!e.once&&[],l=function(p){for(t=e.memory&&p,n=!0,s=i||0,i=0,o=a.length,r=!0;a&&o>s;s++)if(a[s].apply(p[0],p[1])===!1&&e.stopOnFalse){t=!1;break}r=!1,a&&(u?u.length&&l(u.shift()):t?a=[]:c.disable())},c={add:function(){if(a){var n=a.length;(function s(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==r&&s(n)})})(arguments),r?o=a.length:t&&(i=n,l(t))}return this},remove:function(){return a&&x.each(arguments,function(e,t){var n;while((n=x.inArray(t,a,n))>-1)a.splice(n,1),r&&(o>=n&&o--,s>=n&&s--)}),this},has:function(e){return e?x.inArray(e,a)>-1:!(!a||!a.length)},empty:function(){return a=[],o=0,this},disable:function(){return a=u=t=undefined,this},disabled:function(){return!a},lock:function(){return u=undefined,t||c.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!a||n&&!u||(t=t||[],t=[e,t.slice?t.slice():t],r?u.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var s=o[0],a=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=d.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),s=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?d.call(arguments):r,n===a?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},a,u,l;if(r>1)for(a=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(s(t,l,n)).fail(o.reject).progress(s(t,u,a)):--i;return i||o.resolveWith(l,n),o.promise()}}),x.support=function(t){var n=o.createElement("input"),r=o.createDocumentFragment(),i=o.createElement("div"),s=o.createElement("select"),a=s.appendChild(o.createElement("option"));return n.type?(n.type="checkbox",t.checkOn=""!==n.value,t.optSelected=a.selected,t.reliableMarginRight=!0,t.boxSizingReliable=!0,t.pixelPosition=!1,n.checked=!0,t.noCloneChecked=n.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!a.disabled,n=o.createElement("input"),n.value="t",n.type="radio",t.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),r.appendChild(n),t.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,t.focusinBubbles="onfocusin"in e,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===i.style.backgroundClip,x(function(){var n,r,s="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",a=o.getElementsByTagName("body")[0];a&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(n).appendChild(i),i.innerHTML="",i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",x.swap(a,null!=a.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===i.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(i,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(i,null)||{width:"4px"}).width,r=i.appendChild(o.createElement("div")),r.style.cssText=i.style.cssText=s,r.style.marginRight=r.style.width="0",i.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),a.removeChild(n))}),t):t}({});var L,q,H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,O=/([A-Z])/g;function F(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=x.expando+Math.random()}F.uid=1,F.accepts=function(e){return e.nodeType?1===e.nodeType||9===e.nodeType:!0},F.prototype={key:function(e){if(!F.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=F.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,x.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(x.isEmptyObject(o))x.extend(this.cache[i],t);else for(r in t)o[r]=t[r];return o},get:function(e,t){var n=this.cache[this.key(e)];return t===undefined?n:n[t]},access:function(e,t,n){var r;return t===undefined||t&&"string"==typeof t&&n===undefined?(r=this.get(e,t),r!==undefined?r:this.get(e,x.camelCase(t))):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,r,i,o=this.key(e),s=this.cache[o];if(t===undefined)this.cache[o]={};else{x.isArray(t)?r=t.concat(t.map(x.camelCase)):(i=x.camelCase(t),t in s?r=[t,i]:(r=i,r=r in s?[r]:r.match(w)||[])),n=r.length;while(n--)delete s[r[n]]}},hasData:function(e){return!x.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}},L=new F,q=new F,x.extend({acceptData:F.accepts,hasData:function(e){return L.hasData(e)||q.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return q.access(e,t,n)},_removeData:function(e,t){q.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,r,i=this[0],o=0,s=null;if(e===undefined){if(this.length&&(s=L.get(i),1===i.nodeType&&!q.get(i,"hasDataAttrs"))){for(n=i.attributes;n.length>o;o++)r=n[o].name,0===r.indexOf("data-")&&(r=x.camelCase(r.slice(5)),P(i,r,s[r]));q.set(i,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each(function(){L.set(this,e)}):x.access(this,function(t){var n,r=x.camelCase(e);if(i&&t===undefined){if(n=L.get(i,e),n!==undefined)return n;if(n=L.get(i,r),n!==undefined)return n;if(n=P(i,r,undefined),n!==undefined)return n}else this.each(function(){var n=L.get(this,r);L.set(this,r,t),-1!==e.indexOf("-")&&n!==undefined&&L.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){L.remove(this,e)})}});function P(e,t,n){var r;if(n===undefined&&1===e.nodeType)if(r="data-"+t.replace(O,"-$1").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:H.test(n)?JSON.parse(n):n}catch(i){}L.set(e,t,n)}else n=undefined;return n}x.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=q.get(e,t),n&&(!r||x.isArray(n)?r=q.access(e,t,x.makeArray(n)):r.push(n)),r||[]):undefined},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),s=function(){x.dequeue(e,t) +};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return q.get(e,n)||q.access(e,n,{empty:x.Callbacks("once memory").add(function(){q.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),n>arguments.length?x.queue(this[0],e):t===undefined?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=undefined),e=e||"fx";while(s--)n=q.get(o[s],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var R,M,W=/[\t\r\n\f]/g,$=/\r/g,B=/^(?:input|select|textarea|button)$/i;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})},addClass:function(e){var t,n,r,i,o,s=0,a=this.length,u="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,s=0,a=this.length,u=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,i=0,o=x(this),s=e.match(w)||[];while(t=s[i++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===r||"boolean"===n)&&(this.className&&q.set(this,"__className__",this.className),this.className=this.className||e===!1?"":q.get(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(W," ").indexOf(t)>=0)return!0;return!1},val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=x.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,x(this).val()):e,null==i?i="":"number"==typeof i?i+="":x.isArray(i)&&(i=x.map(i,function(e){return null==e?"":e+""})),t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,i,"value")!==undefined||(this.value=i))});if(i)return t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(i,"value"))!==undefined?n:(n=i.value,"string"==typeof n?n.replace($,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,s=o?null:[],a=o?i+1:r.length,u=0>i?a:o?i:0;for(;a>u;u++)if(n=r[u],!(!n.selected&&u!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),s=i.length;while(s--)r=i[s],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,t,n){var i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===r?x.prop(e,t,n):(1===s&&x.isXMLDoc(e)||(t=t.toLowerCase(),i=x.attrHooks[t]||(x.expr.match.bool.test(t)?M:R)),n===undefined?i&&"get"in i&&null!==(o=i.get(e,t))?o:(o=x.find.attr(e,t),null==o?undefined:o):null!==n?i&&"set"in i&&(o=i.set(e,n,t))!==undefined?o:(e.setAttribute(t,n+""),n):(x.removeAttr(e,t),undefined))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return o=1!==s||!x.isXMLDoc(e),o&&(t=x.propFix[t]||t,i=x.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||B.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),M={set:function(e,t,n){return t===!1?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=x.expr.attrHandle[t]||x.find.attr;x.expr.attrHandle[t]=function(e,t,r){var i=x.expr.attrHandle[t],o=r?undefined:(x.expr.attrHandle[t]=undefined)!=n(e,t,r)?t.toLowerCase():null;return x.expr.attrHandle[t]=i,o}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){return x.isArray(t)?e.checked=x.inArray(x(e).val(),t)>=0:undefined}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var I=/^key/,z=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;function U(){return!0}function Y(){return!1}function V(){try{return o.activeElement}catch(e){}}x.event={global:{},add:function(e,t,n,i,o){var s,a,u,l,c,p,f,h,d,g,m,y=q.get(e);if(y){n.handler&&(s=n,n=s.handler,o=s.selector),n.guid||(n.guid=x.guid++),(l=y.events)||(l=y.events={}),(a=y.handle)||(a=y.handle=function(e){return typeof x===r||e&&x.event.triggered===e.type?undefined:x.event.dispatch.apply(a.elem,arguments)},a.elem=e),t=(t||"").match(w)||[""],c=t.length;while(c--)u=X.exec(t[c])||[],d=m=u[1],g=(u[2]||"").split(".").sort(),d&&(f=x.event.special[d]||{},d=(o?f.delegateType:f.bindType)||d,f=x.event.special[d]||{},p=x.extend({type:d,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:g.join(".")},s),(h=l[d])||(h=l[d]=[],h.delegateCount=0,f.setup&&f.setup.call(e,i,g,a)!==!1||e.addEventListener&&e.addEventListener(d,a,!1)),f.add&&(f.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,p):h.push(p),x.event.global[d]=!0);e=null}},remove:function(e,t,n,r,i){var o,s,a,u,l,c,p,f,h,d,g,m=q.hasData(e)&&q.get(e);if(m&&(u=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(a=X.exec(t[l])||[],h=g=a[1],d=(a[2]||"").split(".").sort(),h){p=x.event.special[h]||{},h=(r?p.delegateType:p.bindType)||h,f=u[h]||[],a=a[2]&&RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;while(o--)c=f[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,p.remove&&p.remove.call(e,c));s&&!f.length&&(p.teardown&&p.teardown.call(e,d,m.handle)!==!1||x.removeEvent(e,h,m.handle),delete u[h])}else for(h in u)x.event.remove(e,h+t[l],n,r,!0);x.isEmptyObject(u)&&(delete m.handle,q.remove(e,"events"))}},trigger:function(t,n,r,i){var s,a,u,l,c,p,f,h=[r||o],d=y.call(t,"type")?t.type:t,g=y.call(t,"namespace")?t.namespace.split("."):[];if(a=u=r=r||o,3!==r.nodeType&&8!==r.nodeType&&!_.test(d+x.event.triggered)&&(d.indexOf(".")>=0&&(g=d.split("."),d=g.shift(),g.sort()),c=0>d.indexOf(":")&&"on"+d,t=t[x.expando]?t:new x.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.namespace_re=t.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=r),n=null==n?[t]:x.makeArray(n,[t]),f=x.event.special[d]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!x.isWindow(r)){for(l=f.delegateType||d,_.test(l+d)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||o)&&h.push(u.defaultView||u.parentWindow||e)}s=0;while((a=h[s++])&&!t.isPropagationStopped())t.type=s>1?l:f.bindType||d,p=(q.get(a,"events")||{})[t.type]&&q.get(a,"handle"),p&&p.apply(a,n),p=c&&a[c],p&&x.acceptData(a)&&p.apply&&p.apply(a,n)===!1&&t.preventDefault();return t.type=d,i||t.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),n)!==!1||!x.acceptData(r)||c&&x.isFunction(r[d])&&!x.isWindow(r)&&(u=r[c],u&&(r[c]=null),x.event.triggered=d,r[d](),x.event.triggered=undefined,u&&(r[c]=u)),t.result}},dispatch:function(e){e=x.event.fix(e);var t,n,r,i,o,s=[],a=d.call(arguments),u=(q.get(this,"events")||{})[e.type]||[],l=x.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),t=0;while((i=s[t++])&&!e.isPropagationStopped()){e.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(o.namespace))&&(e.handleObj=o,e.data=o.data,r=((x.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a),r!==undefined&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,s=[],a=t.delegateCount,u=e.target;if(a&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==e.type){for(r=[],n=0;a>n;n++)o=t[n],i=o.selector+" ",r[i]===undefined&&(r[i]=o.needsContext?x(i,this).index(u)>=0:x.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return t.length>a&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,s=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||o,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||s===undefined||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,s=e,a=this.fixHooks[i];a||(this.fixHooks[i]=a=z.test(i)?this.mouseHooks:I.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new x.Event(s),t=r.length;while(t--)n=r[t],e[n]=s[n];return e.target||(e.target=o),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,s):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==V()&&this.focus?(this.focus(),!1):undefined},delegateType:"focusin"},blur:{trigger:function(){return this===V()&&this.blur?(this.blur(),!1):undefined},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&x.nodeName(this,"input")?(this.click(),!1):undefined},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},x.Event=function(e,t){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.getPreventDefault&&e.getPreventDefault()?U:Y):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,undefined):new x.Event(e,t)},x.Event.prototype={isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=U,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=U,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=U,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,t,n,r,i){var o,s;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=undefined);for(s in e)this.on(s,t,n,e[s],i);return this}if(null==n&&null==r?(r=t,n=t=undefined):null==r&&("string"==typeof t?(r=n,n=undefined):(r=n,n=t,t=undefined)),r===!1)r=Y;else if(!r)return this;return 1===i&&(o=r,r=function(e){return x().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=x.guid++)),this.each(function(){x.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=undefined),n===!1&&(n=Y),this.each(function(){x.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?x.event.trigger(e,t,n,!0):undefined}});var G=/^.[^:#\[\.,]*$/,J=/^(?:parents|prev(?:Until|All))/,Q=x.expr.match.needsContext,K={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){var e=0;for(;n>e;e++)if(x.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(et(this,e||[],!0))},filter:function(e){return this.pushStack(et(this,e||[],!1))},is:function(e){return!!et(this,"string"==typeof e&&Q.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],s=Q.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(s?s.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?g.call(x(e),this[0]):g.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function Z(e,t){while((e=e[t])&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return Z(e,"nextSibling")},prev:function(e){return Z(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return e.contentDocument||x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(K[e]||x.unique(i),J.test(e)&&i.reverse()),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,t,n){var r=[],i=n!==undefined;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&x(e).is(n))break;r.push(e)}return r},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function et(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(G.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return g.call(t,e)>=0!==n})}var tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,nt=/<([\w:]+)/,rt=/<|&#?\w+;/,it=/<(?:script|style|link)/i,ot=/^(?:checkbox|radio)$/i,st=/checked\s*(?:[^=]|=\s*.checked.)/i,at=/^$|\/(?:java|ecma)script/i,ut=/^true\/(.*)/,lt=/^\s*\s*$/g,ct={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ct.optgroup=ct.option,ct.tbody=ct.tfoot=ct.colgroup=ct.caption=ct.thead,ct.th=ct.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===undefined?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(mt(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&dt(mt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(mt(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!it.test(e)&&!ct[(nt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(tt,"<$1>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(x.cleanData(mt(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=f.apply([],e);var r,i,o,s,a,u,l=0,c=this.length,p=this,h=c-1,d=e[0],g=x.isFunction(d);if(g||!(1>=c||"string"!=typeof d||x.support.checkClone)&&st.test(d))return this.each(function(r){var i=p.eq(r);g&&(e[0]=d.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(r=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(o=x.map(mt(r,"script"),ft),s=o.length;c>l;l++)a=r,l!==h&&(a=x.clone(a,!0,!0),s&&x.merge(o,mt(a,"script"))),t.call(this[l],a,l);if(s)for(u=o[o.length-1].ownerDocument,x.map(o,ht),l=0;s>l;l++)a=o[l],at.test(a.type||"")&&!q.access(a,"globalEval")&&x.contains(u,a)&&(a.src?x._evalUrl(a.src):x.globalEval(a.textContent.replace(lt,"")))}return this}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=[],i=x(e),o=i.length-1,s=0;for(;o>=s;s++)n=s===o?this:this.clone(!0),x(i[s])[t](n),h.apply(r,n.get());return this.pushStack(r)}}),x.extend({clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=x.contains(e.ownerDocument,e);if(!(x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(s=mt(a),o=mt(e),r=0,i=o.length;i>r;r++)yt(o[r],s[r]);if(t)if(n)for(o=o||mt(e),s=s||mt(a),r=0,i=o.length;i>r;r++)gt(o[r],s[r]);else gt(e,a);return s=mt(a,"script"),s.length>0&&dt(s,!u&&mt(e,"script")),a},buildFragment:function(e,t,n,r){var i,o,s,a,u,l,c=0,p=e.length,f=t.createDocumentFragment(),h=[];for(;p>c;c++)if(i=e[c],i||0===i)if("object"===x.type(i))x.merge(h,i.nodeType?[i]:i);else if(rt.test(i)){o=o||f.appendChild(t.createElement("div")),s=(nt.exec(i)||["",""])[1].toLowerCase(),a=ct[s]||ct._default,o.innerHTML=a[1]+i.replace(tt,"<$1>")+a[2],l=a[0];while(l--)o=o.lastChild;x.merge(h,o.childNodes),o=f.firstChild,o.textContent=""}else h.push(t.createTextNode(i));f.textContent="",c=0;while(i=h[c++])if((!r||-1===x.inArray(i,r))&&(u=x.contains(i.ownerDocument,i),o=mt(f.appendChild(i),"script"),u&&dt(o),n)){l=0;while(i=o[l++])at.test(i.type||"")&&n.push(i)}return f},cleanData:function(e){var t,n,r,i,o,s,a=x.event.special,u=0;for(;(n=e[u])!==undefined;u++){if(F.accepts(n)&&(o=n[q.expando],o&&(t=q.cache[o]))){if(r=Object.keys(t.events||{}),r.length)for(s=0;(i=r[s])!==undefined;s++)a[i]?x.event.remove(n,i):x.removeEvent(n,i,t.handle);q.cache[o]&&delete q.cache[o]}delete L.cache[n[L.expando]]}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}});function pt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ft(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ht(e){var t=ut.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function dt(e,t){var n=e.length,r=0;for(;n>r;r++)q.set(e[r],"globalEval",!t||q.get(t[r],"globalEval"))}function gt(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(q.hasData(e)&&(o=q.access(e),s=q.set(t,o),l=o.events)){delete s.handle,s.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)x.event.add(t,i,l[i][n])}L.hasData(e)&&(a=L.access(e),u=x.extend({},a),L.set(t,u))}}function mt(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return t===undefined||t&&x.nodeName(e,t)?x.merge([e],n):n}function yt(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ot.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}x.fn.extend({wrapAll:function(e){var t;return x.isFunction(e)?this.each(function(t){x(this).wrapAll(e.call(this,t))}):(this[0]&&(t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var vt,xt,bt=/^(none|table(?!-c[ea]).+)/,wt=/^margin/,Tt=RegExp("^("+b+")(.*)$","i"),Ct=RegExp("^("+b+")(?!px)[a-z%]+$","i"),kt=RegExp("^([+-])=("+b+")","i"),Nt={BODY:"block"},Et={position:"absolute",visibility:"hidden",display:"block"},St={letterSpacing:0,fontWeight:400},jt=["Top","Right","Bottom","Left"],Dt=["Webkit","O","Moz","ms"];function At(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Dt.length;while(i--)if(t=Dt[i]+n,t in e)return t;return r}function Lt(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function qt(t){return e.getComputedStyle(t,null)}function Ht(e,t){var n,r,i,o=[],s=0,a=e.length;for(;a>s;s++)r=e[s],r.style&&(o[s]=q.get(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&Lt(r)&&(o[s]=q.access(r,"olddisplay",Rt(r.nodeName)))):o[s]||(i=Lt(r),(n&&"none"!==n||!i)&&q.set(r,"olddisplay",i?n:x.css(r,"display"))));for(s=0;a>s;s++)r=e[s],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none"));return e}x.fn.extend({css:function(e,t){return x.access(this,function(e,t,n){var r,i,o={},s=0;if(x.isArray(t)){for(r=qt(e),i=t.length;i>s;s++)o[t[s]]=x.css(e,t[s],!1,r);return o}return n!==undefined?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)},show:function(){return Ht(this,!0)},hide:function(){return Ht(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Lt(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=vt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=x.camelCase(t),u=e.style;return t=x.cssProps[a]||(x.cssProps[a]=At(u,a)),s=x.cssHooks[t]||x.cssHooks[a],n===undefined?s&&"get"in s&&(i=s.get(e,!1,r))!==undefined?i:u[t]:(o=typeof n,"string"===o&&(i=kt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(x.css(e,t)),o="number"),null==n||"number"===o&&isNaN(n)||("number"!==o||x.cssNumber[a]||(n+="px"),x.support.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&(n=s.set(e,n,r))===undefined||(u[t]=n)),undefined)}},css:function(e,t,n,r){var i,o,s,a=x.camelCase(t);return t=x.cssProps[a]||(x.cssProps[a]=At(e.style,a)),s=x.cssHooks[t]||x.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),i===undefined&&(i=vt(e,t,r)),"normal"===i&&t in St&&(i=St[t]),""===n||n?(o=parseFloat(i),n===!0||x.isNumeric(o)?o||0:i):i}}),vt=function(e,t,n){var r,i,o,s=n||qt(e),a=s?s.getPropertyValue(t)||s[t]:undefined,u=e.style;return s&&(""!==a||x.contains(e.ownerDocument,e)||(a=x.style(e,t)),Ct.test(a)&&wt.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=s.width,u.width=r,u.minWidth=i,u.maxWidth=o)),a};function Ot(e,t,n){var r=Tt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function Ft(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;for(;4>o;o+=2)"margin"===n&&(s+=x.css(e,n+jt[o],!0,i)),r?("content"===n&&(s-=x.css(e,"padding"+jt[o],!0,i)),"margin"!==n&&(s-=x.css(e,"border"+jt[o]+"Width",!0,i))):(s+=x.css(e,"padding"+jt[o],!0,i),"padding"!==n&&(s+=x.css(e,"border"+jt[o]+"Width",!0,i)));return s}function Pt(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=qt(e),s=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=vt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Ct.test(i))return i;r=s&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+Ft(e,t,n||(s?"border":"content"),r,o)+"px"}function Rt(e){var t=o,n=Nt[e];return n||(n=Mt(e,t),"none"!==n&&n||(xt=(xt||x(" + + + + + + + + diff --git a/iframe-resizer-master/test/sendMessage.html b/iframe-resizer-master/test/sendMessage.html new file mode 100755 index 0000000..d143354 --- /dev/null +++ b/iframe-resizer-master/test/sendMessage.html @@ -0,0 +1,65 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master/test/setHeightCalculationMethod.html b/iframe-resizer-master/test/setHeightCalculationMethod.html new file mode 100755 index 0000000..aa0586b --- /dev/null +++ b/iframe-resizer-master/test/setHeightCalculationMethod.html @@ -0,0 +1,48 @@ + + + + + QUnit LoadHide + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master/test/size.html b/iframe-resizer-master/test/size.html new file mode 100755 index 0000000..9310f5a --- /dev/null +++ b/iframe-resizer-master/test/size.html @@ -0,0 +1,74 @@ + + + + + QUnit LoadHide + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master/test/v1.html b/iframe-resizer-master/test/v1.html new file mode 100755 index 0000000..8e447eb --- /dev/null +++ b/iframe-resizer-master/test/v1.html @@ -0,0 +1,203 @@ + + + + + QUnit LoadHide + + + +
+
+
+ +
+
+ + + + + + diff --git a/iframe-resizer-master_old/.eslintrc b/iframe-resizer-master_old/.eslintrc new file mode 100755 index 0000000..350cf2d --- /dev/null +++ b/iframe-resizer-master_old/.eslintrc @@ -0,0 +1,36 @@ +{ + "extends": ["airbnb-base", "adjunct", "prettier"], + "plugins": ["prettier", "ie11"], + "env": { + "amd": true, + "browser": true, + "jasmine": true + }, + "parserOptions": { "ecmaVersion": 5 }, + "rules": { + "func-names": 0, + "no-param-reassign": 0, + "no-plusplus": 0, + "no-restricted-globals": 0, + "no-use-before-define": 0, + "no-shadow": 0, + "no-var": 0, + "object-shorthand": 0, + "one-var": 0, + "prefer-destructuring": 0, + "prefer-rest-params": 0, + "prefer-template": 0, + "vars-on-top": 0, + "yoda": 0, + "ie11/no-collection-args": [ "error" ], + "ie11/no-for-in-const": [ "error" ], + "ie11/no-loop-func": [ "warn" ], + "ie11/no-weak-collections": [ "error" ], + "import/no-amd": 0, + "unicorn/filename-case": 0, + "unicorn/prefer-node-append": 0, + "unicorn/prefer-node-remove": 0, + "unicorn/prefer-query-selector": 0, + "unicorn/prevent-abbreviations": 0 + } +} diff --git a/iframe-resizer-master_old/.gitignore b/iframe-resizer-master_old/.gitignore new file mode 100755 index 0000000..526126a --- /dev/null +++ b/iframe-resizer-master_old/.gitignore @@ -0,0 +1,10 @@ +.DS_Store +.coveralls.yml +node_modules +bin +example/test.html +test/*.off +npm-debug.log +bower_components +coverage* +.idea diff --git a/iframe-resizer-master_old/.ncurc.json b/iframe-resizer-master_old/.ncurc.json new file mode 100755 index 0000000..fdf87e6 --- /dev/null +++ b/iframe-resizer-master_old/.ncurc.json @@ -0,0 +1,3 @@ +{ + "reject": ["grunt-contrib-qunit"] +} diff --git a/iframe-resizer-master_old/.npmignore b/iframe-resizer-master_old/.npmignore new file mode 100755 index 0000000..46cb3e8 --- /dev/null +++ b/iframe-resizer-master_old/.npmignore @@ -0,0 +1,17 @@ +.DS_Store +.coveralls.yml +.idea +node_modules +bin +docs +example +test +spec +src +npm-debug.log +bower_components +bower.json +gruntfile.js +karma.conf.js +test-main.js +coverage* diff --git a/iframe-resizer-master_old/.prettierrc b/iframe-resizer-master_old/.prettierrc new file mode 100755 index 0000000..db185d6 --- /dev/null +++ b/iframe-resizer-master_old/.prettierrc @@ -0,0 +1,10 @@ +{ + "printWidth": 80, + "tabWidth": 2, + "useTabs": false, + "semi": false, + "singleQuote": true, + "trailingComma": "none", + "bracketSpacing": true, + "jsxBracketSameLine": false + } diff --git a/iframe-resizer-master_old/.travis.yml b/iframe-resizer-master_old/.travis.yml new file mode 100755 index 0000000..93ada01 --- /dev/null +++ b/iframe-resizer-master_old/.travis.yml @@ -0,0 +1,6 @@ +language: node_js +node_js: + - "11.0" +before_script: + - npm install -g grunt-cli +sudo: false diff --git a/iframe-resizer-master_old/CHANGELOG.md b/iframe-resizer-master_old/CHANGELOG.md new file mode 100755 index 0000000..0e5ff5b --- /dev/null +++ b/iframe-resizer-master_old/CHANGELOG.md @@ -0,0 +1,98 @@ +# Version History + +- v4.1.1 [#686](https://github.com/davidjbradshaw/iframe-resizer/pull/694) Fix IE11 regression with Object.values [[Jonathan Lehman]](jdlehman) +- v4.1.0 [#686](https://github.com/davidjbradshaw/iframe-resizer/pull/686) Split client(Height/Width) into document and window values [[Bernhard Mäder]](nuschk) +- v4.0.4 [#674](https://github.com/davidjbradshaw/iframe-resizer/pull/674) Fix default export. +- v4.0.3 [#606](https://github.com/davidjbradshaw/iframe-resizer/pull/606) Force height of clearFix div in iframe to 0. +- v4.0.2 [#671](https://github.com/davidjbradshaw/iframe-resizer/pull/671) Fix issue with window resize. +- v4.0.1 Fix documentation links in `README.md`. +- v4.0.0 Drop support for IE8-10 and Andriod 4, renamed event handlers from `fooCallback` to `onFoo` and restructure documentation. Reformat code with Prettier and add eslint to build. +- v3.6.5 [#658](https://github.com/davidjbradshaw/iframe-resizer/pull/658) Add `.npmignore` to project [[Sebastian Lamelas]](smulesoft). +- v3.6.4 [#651](https://github.com/davidjbradshaw/iframe-resizer/pull/651) Fix issue resource leak when iframe removed from the page [[Steffen Eckardt](seckardt)]. [#651](https://github.com/davidjbradshaw/iframe-resizer/pull/651) Make Require.js optional when it is included on the page before iframe-resizer [[Dahmian Owen](dahmian)]. +- v3.6.3 [#635](https://github.com/davidjbradshaw/iframe-resizer/pull/635) Fix issue with undefined ID [[Henry Schein](ddxdental)]. [#582](https://github.com/davidjbradshaw/iframe-resizer/pull/582) Add `omit` option to `scrolling` config [[Matt Ryan](mryand)]. +- v3.6.2 [#596](https://github.com/davidjbradshaw/iframe-resizer/pull/596) Add Passive Event Listener for Performance [[Henrik Vendelbo](thepian)]. [#613](https://github.com/davidjbradshaw/iframe-resizer/pull/613) Check if the iFrameResize function is attached to the prototype of jQuery [[Paul Antal](paul-antal)]. [#620](https://github.com/davidjbradshaw/iframe-resizer/pull/620) Fixed an issue where host page fires init before iframe receiver setup [[Mark Zhou](mrmarktyy)]. [#620](https://github.com/davidjbradshaw/iframe-resizer/pull/620) Add `removeListeners` method to better support React [[Khang Nguyen](khangiskhan)]. +- v3.6.1 [#576](https://github.com/davidjbradshaw/iframe-resizer/pull/576) Fix race condition caused by react-iframe-resizer removing the domNode and calling `close()`. +- v3.6.0 [#562](https://github.com/davidjbradshaw/iframe-resizer/pull/562) Fix issue with debounce getPageInfo when their is more than one iFrame on the page [[Thomas Pringle](thomaspringle)]. [#568](https://github.com/davidjbradshaw/iframe-resizer/pull/568) Fix bug in Chrome 65 when iframe parent element has `display:none` set [[Steve Hong](aniude)]. +- v3.5.16 [#554](https://github.com/davidjbradshaw/iframe-resizer/issues/554) Fix throttling of init event [[SHOTA](senta)]. [#553](https://github.com/davidjbradshaw/iframe-resizer/issues/553) Prevents unhandled exception in IE11 [[vitoss](vitoss)]. [#555](https://github.com/davidjbradshaw/iframe-resizer/issues/555) Fix IE PolyFil and make grunt-cli local [[Jan Schmidle](bitcloud)]. +- v3.5.15 [#498](https://github.com/davidjbradshaw/iframe-resizer/issues/498) Fix bug "Cannot read property 'firstRun' of undefined" [[Shaun Johansen](shaunjohansen)]. [#517] Fix readyState issue in iFrame [[lostincomputer](lostincomputer)]. +- v3.5.14 [#477](https://github.com/davidjbradshaw/iframe-resizer/issues/477) Fix bug when iFrame closed before first resize. +- v3.5.13 [#473](https://github.com/davidjbradshaw/iframe-resizer/issues/473) Improve no response from iFrame warning message. +- v3.5.12 [#475](https://github.com/davidjbradshaw/iframe-resizer/issues/475) Delay onResize until after the iFrame has resized [[Codener](codener)]. +- v3.5.11 [#470](https://github.com/davidjbradshaw/iframe-resizer/issues/470) Fix jQuery reference error [[Russell Schick](rschick)]. +- v3.5.10 [#461](https://github.com/davidjbradshaw/iframe-resizer/issues/461) Don't run for server-side render +- v3.5.9 Show warning message if no response from iFrame. [#463](https://github.com/davidjbradshaw/iframe-resizer/issues/463) Suppress warning message when code loaded via module [[Sergey Pereskokov](SerjoPepper)]. +- v3.5.8 [#315](https://github.com/davidjbradshaw/iframe-resizer/issues/315) Allow Scrolling to be set to 'auto'. +- v3.5.7 [#438](https://github.com/davidjbradshaw/iframe-resizer/issues/438) Check jQuery pluging wrapper not already loaded. [#423](https://github.com/davidjbradshaw/iframe-resizer/issues/423) Properly remove event listeners [[Aaron Hardy](Aaronius)]. [#401](https://github.com/davidjbradshaw/iframe-resizer/issues/401) Make tagged element fall back to all elements if tag not found. [#381](https://github.com/davidjbradshaw/iframe-resizer/issues/381) Fixing disconnect when iframe is missing temporarly [[Jeff Hicken](jhicken)]. Added warnings for missing iFrame and deprecated options. +- v3.5.5 [#373](https://github.com/davidjbradshaw/iframe-resizer/issues/373) Add option for custom size calculation methods in iFrame. [#374](https://github.com/davidjbradshaw/iframe-resizer/issues/374) Fix bug with in page links called from parent page. +- v3.5.4 [#362](https://github.com/davidjbradshaw/iframe-resizer/issues/362) Handle jQuery being loaded in odd ways. [#297](https://github.com/davidjbradshaw/iframe-resizer/issues/297) Ensure document ready before resizing +- v3.5.3 [#283](https://github.com/davidjbradshaw/iframe-resizer/issues/283) Added _readystatechange_ event listener. +- v3.5.2 [#314](https://github.com/davidjbradshaw/iframe-resizer/pull/314) Add iframeHeight and iframeWidth properties to pageInfo [[Pierre Olivier](https://github.com/pomartel)]. [#303](https://github.com/davidjbradshaw/iframe-resizer/issues/303) Fix issue with IE8 polyFils. +- v3.5.1 [#286](https://github.com/davidjbradshaw/iframe-resizer/issues/286) Fixed _taggedElement / lowestElement / rightMostElement_ to calculate correct margin [[Dan Ballance](danballance)]. +- v3.5.0 Recall getPageInfo callback when parent page position changes. Added _Array.prototype.forEach_ to IE8 polyfils. +- v3.4.2 Only teardown events on close if currently enabled. +- v3.4.1 [#271](https://github.com/davidjbradshaw/iframe-resizer/issues/271) Fix bower.json to point to _js_ folder, rather then _src_ [[Yachi](https://github.com/yachi)]. +- v3.4.0 [#262](https://github.com/davidjbradshaw/iframe-resizer/issues/262) Add _getPageInfo_ method to _parentIFrame_ [[Pierre Olivier](https://github.com/pomartel)]. [#263](https://github.com/davidjbradshaw/iframe-resizer/issues/263) Change _leftMostElement_ to rightMostElement [[Luiz Panariello](https://github.com/LuizPanariello)]. [#265](https://github.com/davidjbradshaw/iframe-resizer/issues/265) Fix issue when no options being passed and added test for this. +- v3.3.1 Point index.js to the JS folder, instead of the src folder. Added touch event listeners. _AutoResize_ method now returns current state. +- v3.3.0 [#97](https://github.com/davidjbradshaw/iframe-resizer/issues/97) Add _autoResize_ method to _parentIFrame_. Fix bug when _setHeightCalculationMethod_ is called with invalid value. Add interval timer to event teardown. Log targetOrigin\*. [#253](https://github.com/davidjbradshaw/iframe-resizer/issues/253) Work around bug with MooTools interfering with system objects. +- v3.2.0 Added calculation of margin to _LowestElement_, _LeftMostElement_ and _taggedElement_ calculation modes. Check callback function is a function before calling it. [#246](https://github.com/davidjbradshaw/iframe-resizer/issues/246) Fixed issue when _onScroll_ changes the page position. [#247](https://github.com/davidjbradshaw/iframe-resizer/issues/247) Fix rounding issue when page is zoomed in Chrome [[thenewguy](https://github.com/thenewguy)]. +- v3.1.1 Added _onReady_ to iFrame. Create _iFrameResizer_ object on iFrame during setup, rather than waiting for init message to be returned from iFrame. Add ref to iFrame in host page log messages. [#245](https://github.com/davidjbradshaw/iframe-resizer/issues/245) Fix issue with iFrame not correctly resizing when multiple images are injected into the page [[mdgbayly](https://github.com/mdgbayly)]. [#246](https://github.com/davidjbradshaw/iframe-resizer/issues/246) Fix issue with including ':' in messages passed to iFrames. +- v3.1.0 [#101](https://github.com/davidjbradshaw/iframe-resizer/issues/101) Support async loading of iFrame script. [#239](https://github.com/davidjbradshaw/iframe-resizer/issues/239) Throttle size checking to once per screen refresh (16ms). Fixed issue with hidden iFrames in FireFox. Improved handling of parent page events. [#236](https://github.com/davidjbradshaw/iframe-resizer/issues/236) Cope with iFrames that don't have a _src_ value. [#242](https://github.com/davidjbradshaw/iframe-resizer/issues/242) Fix issue where iFrame is removed and then put back with same ID [[Alban Mouton](https://github.com/albanm)]. +- v3.0.0 Added _taggedElement_ size calculation method. [#199](https://github.com/davidjbradshaw/iframe-resizer/issues/199) Added in page options to iFrame. [#70](https://github.com/davidjbradshaw/iframe-resizer/issues/70) Added width calculation method options. Added methods to bound iFrames to comunicate from parent to iFrame. Ignore calls to setup an already bound iFrame. Improved event handling. Refactored MutationObserver functions. Moved IE8 polyfil from docs to own JS file and added _Funtion.prototype.bind()_. Added detection for tab focus. Fixed bug with nested inPageLinks. Public methods in iFrame now always enabled and option removed. Renamed enableInPageLinks to inPageLinks. Added double iFrame example. +- v2.8.10 Fixed bug with resizeFrom option not having default value in iFrame, if called from old version in parent page. +- v2.8.9 [#220](https://github.com/davidjbradshaw/iframe-resizer/issues/220) Switched from using _deviceorientation_ to _orientationchange_ event listner [[Brandon Kobel](https://github.com/kobelb)]. +- v2.8.8 [#213](https://github.com/davidjbradshaw/iframe-resizer/issues/213) Ensure onInit fires when iFrame not sized during initialisation. Check autoResize option before resizing from parent. Lower message about resize before initialisation from 'warn' to 'log'. Updated hover example. +- v2.8.7 [#205](https://github.com/davidjbradshaw/iframe-resizer/issues/205) Fix race condition when page resized during page init [[Ian Caunce](https://github.com/IanCaunce)]. [#203](https://github.com/davidjbradshaw/iframe-resizer/issues/203) Added option for _checkOrigin_ to have list of allowed domains for the iFrame [[Andrej Golcov](https://github.com/andrej2k)]. [#202](https://github.com/davidjbradshaw/iframe-resizer/issues/202) Handle script being loaded more than once [[Nickolay Ribal](https://github.com/elektronik2k5)]. + [#167](https://github.com/davidjbradshaw/iframe-resizer/issues/167) Added WebPack support [[Stephan Salat](https://github.com/ssalat)]. +- v2.8.6 [#163](https://github.com/davidjbradshaw/iframe-resizer/issues/163) Moved window resize event detection from iFrame to parent page. [#160](https://github.com/davidjbradshaw/iframe-resizer/issues/160) Warn, rather than error, if iFrame has been unexpectantly removed from page. The _parentIFrame.close()_ method nolonger calls _onResized()_. +- v2.8.5 [#173](https://github.com/davidjbradshaw/iframe-resizer/issues/173) Scope settings to iFrame. [#171](https://github.com/davidjbradshaw/iframe-resizer/issues/171) Fixed _parentIFrame.close()_ to work with 0 height iframes [Both [Reed Dadoune](https://github.com/ReedD)]. +- v2.8.4 Added switch for inPageLinking support. +- v2.8.3 Throw error if passed a non-DOM object. +- v2.8.2 [#145](https://github.com/davidjbradshaw/iframe-resizer/issues/145) Fixed in page links, to work with HTML IDs that are not valid CSS IDs [[Erin Millard](https://github.com/ezzatron)]. Moved map files from src to js folder. Added to NPM. +- v2.8.1 [#138](https://github.com/davidjbradshaw/iframe-resizer/issues/138) Added option to pass in iFrame object, instead of selector. +- v2.8.0 [#68](https://github.com/davidjbradshaw/iframe-resizer/issues/68) Added support for in page links and _onScroll()_ function. [#140](https://github.com/davidjbradshaw/iframe-resizer/issues/140) Added listener for _transitionend_ event [[Mat Brown](https://github.com/outoftime)]. Added listeners for animation events. Added listener for _deviceorientation_ event. Improved logging for nested iFrames. +- v2.7.1 [#131](https://github.com/davidjbradshaw/iframe-resizer/issues/131) Fix code that works out position of iFrame on host page. +- v2.7.0 [#129](https://github.com/davidjbradshaw/iframe-resizer/issues/129) Parse data passed to _parentIFrame.sendMessage()_ into JSON to allow complex data types to be sent to _onMessage()_. +- v2.6.5 [#107](https://github.com/davidjbradshaw/iframe-resizer/issues/107) Added Node support for use with Browserify. +- v2.6.4 [#115](https://github.com/davidjbradshaw/iframe-resizer/issues/115) Added _parentIFrame.scrollToOffset()_ method. +- v2.6.3 [#115](https://github.com/davidjbradshaw/iframe-resizer/issues/115) Fixed issue with the range check sometimes causing non-resizing messages to be rejected. +- v2.6.2 [#104](https://github.com/davidjbradshaw/iframe-resizer/issues/104) Fixed issue with jQuery.noConflict [[Dmitry Mukhutdinov](https://github.com/flyingleafe)]. +- v2.6.1 [#91](https://github.com/davidjbradshaw/iframe-resizer/issues/91) Fixed issue with jQuery version requiring empty object if no options are being set. +- v2.6.0 Added _parentIFrame.scrollTo()_ method. Added _Tolerance_ option. [#85](https://github.com/davidjbradshaw/iframe-resizer/issues/85) Update troubleshooting guide [[Kevin Sproles](https://github.com/kevinsproles)]. +- v2.5.2 [#67](https://github.com/davidjbradshaw/iframe-resizer/issues/67) Allow lowercase ` + +``` + +**Note:** Using _min-width_ to set the width of the iFrame, works around an issue in iOS that can prevent the iFrame from sizing correctly. + +If you have problems, check the [troubleshooting](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/troubleshooting.md) section. + +### Example + +To see this working take a look at this [example](https://davidjbradshaw.com/iframe-resizer/example/) and watch the [console](https://developer.mozilla.org/en-US/docs/Tools/Web_Console). + +## API Documentation + +IFrame-Resizer provides an extensive range of options and APIs for both the parent page and the iframed page. + +- **Parent Page API** + - [Options](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/parent_page/options.md) + - [Events](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/parent_page/events.md) + - [Methods](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/parent_page/methods.md) +- **IFramed Page API** + - [Options](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/iframed_page/options.md) + - [Events](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/iframed_page/events.md) + - [Methods](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/iframed_page/methods.md) +- [Use with jQuery](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/jquery.md) +- [Troubleshooting](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/troubleshooting.md) +- [Upgrade from version 3](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/upgrade.md) +- [Version history](https://github.com/davidjbradshaw/iframe-resizer/blob/master/CHANGELOG.md) + +## Donate + +If you would like to show your support for this project, then please feel free to buy me a coffee. + +Buy Me A Coffee + +## License + +Copyright © 2013-19 [David J. Bradshaw](https://github.com/davidjbradshaw). +Licensed under the [MIT License](LICENSE). + + diff --git a/iframe-resizer-master_old/bower.json b/iframe-resizer-master_old/bower.json new file mode 100755 index 0000000..9f8ad94 --- /dev/null +++ b/iframe-resizer-master_old/bower.json @@ -0,0 +1,34 @@ +{ + "name": "iframe-resizer", + "version": "4.1.1", + "homepage": "https://github.com/davidjbradshaw/iframe-resizer", + "authors": ["David J. Bradshaw "], + "description": "Responsively keep same and cross domain iFrames sized to their content with support for window/content resizing, multiple and nested iFrames. (Dependacy free and works with IE8+)", + "main": ["js/iframeResizer.js", "js/iframeResizer.contentWindow.js"], + "keywords": [ + "CrossDomain", + "Cross-Domain", + "iFrame", + "Resizing", + "Resizer", + "postMessage", + "content", + "resize", + "height", + "autoheight", + "auto-height", + "iframe-auto-height", + "height-iframe", + "heightiframe", + "width", + "mutationObserver", + "RWD", + "responsive", + "responsiveiframes", + "responsive-iframes" + ], + "license": "MIT", + "ignore": ["example", "test", "gruntfile.js", "*.md", "*.json"], + "dependencies": {}, + "devDependencies": {} +} diff --git a/iframe-resizer-master_old/docs/getting_started.md b/iframe-resizer-master_old/docs/getting_started.md new file mode 100755 index 0000000..e5cf408 --- /dev/null +++ b/iframe-resizer-master_old/docs/getting_started.md @@ -0,0 +1,40 @@ +## Getting Started + +### Install + +This package can be installed via NPM (`npm install iframe-resizer --save`). + +### Usage + +The package contains two minified JavaScript files in the [js](../js) folder. The first ([iframeResizer.min.js](https://raw.githubusercontent.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.min.js)) is for the page hosting the iFrames. It can be called with **native** JavaScript; + +```js +const iframes = iFrameResize( [{options}], [css selector] || [iframe] ); +``` + +The second file ([iframeResizer.contentWindow.min.js](https://raw.github.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.contentWindow.min.js)) needs placing in the page(s) contained within your iFrame. This file is designed to be a guest on someone else's system, so has no dependencies and won't do anything until it's activated by a message from the containing page. + +### Typical setup + +The normal configuration is to have the iFrame resize when the browser window changes size or the content of the iFrame changes. To set this up you need to configure one of the dimensions of the iFrame to a percentage and tell the library to only update the other dimension. Normally you would set the width to 100% and have the height scale to fit the content. + +```html + + + +``` + +**Note:** Using _min-width_ to set the width of the iFrame, works around an issue in iOS that can prevent the iFrame from sizing correctly. + +If you have problems, check the [troubleshooting](troubleshooting.md) section. + +### Example + +To see this working take a look at this [example](https://davidjbradshaw.com/iframe-resizer/example/) and watch the [console](https://developer.mozilla.org/en-US/docs/Tools/Web_Console). diff --git a/iframe-resizer-master_old/docs/iframed_page/events.md b/iframe-resizer-master_old/docs/iframed_page/events.md new file mode 100755 index 0000000..98fa490 --- /dev/null +++ b/iframe-resizer-master_old/docs/iframed_page/events.md @@ -0,0 +1,15 @@ +## IFrame Page Events + +The following events can be included in the [options](options.md) object attached to the iframed page. + +### onMessage + + type: function (message) + +Receive message posted from the parent page with the `iframe.iFrameResizer.sendMessage()` method. + +### onReady + + type: function() + +This function is called once iFrame-Resizer has been initialized after receiving a call from the parent page. If you need to call any of the parentIFrame methods (See below) during page load, then they should be called from this event handler. diff --git a/iframe-resizer-master_old/docs/iframed_page/methods.md b/iframe-resizer-master_old/docs/iframed_page/methods.md new file mode 100755 index 0000000..d6b0eea --- /dev/null +++ b/iframe-resizer-master_old/docs/iframed_page/methods.md @@ -0,0 +1,78 @@ +## IFrame Page Methods + +These methods are available in the iFrame via the `window.parentIFrame` object. These method should be contained by a test for the `window.parentIFrame` object, in case the page is not loaded inside an iFrame. For example: + +```js +if ('parentIFrame' in window) { + parentIFrame.close(); +} +``` + +### autoResize([bool]) + +Turn autoResizing of the iFrame on and off. Returns bool of current state. + +### close() + +Remove the iFrame from the parent page. + +### getId() + +Returns the ID of the iFrame that the page is contained in. + +### getPageInfo(callback || false) + +Ask the containing page for its positioning coordinates. You need to provide a callback which receives an object with the following properties: + +* **iframeHeight** The height of the iframe in pixels +* **iframeWidth** The width of the iframe in pixels +* **offsetLeft** The number of pixels between the left edge of the containing page and the left edge of the iframe +* **offsetTop** The number of pixels between the top edge of the containing page and the top edge of the iframe +* **scrollLeft** The number of pixels between the left edge of the iframe and the left edge of the iframe viewport +* **scrollTop** The number of pixels between the top edge of the iframe and the top edge of the iframe viewport +* **documentHeight** The containing document's height in pixels (the equivalent of `document.documentElement.clientHeight` in the container) +* **documentWidth** The containing document's width in pixels (the equivalent of `document.documentElement.clientWidth` in the container) +* **windowHeight** The containing window's height in pixels (the equivalent of `window.innerHeight` in the container) +* **windowWidth** The containing window's width in pixels (the equivalent of `window.innerWidth` in the container) +* **clientHeight** (deprecated) The height of the containing document, considering the viewport, in pixels (`max(documentHeight, windowHeight)`). +* **clientWidth** (deprecated) The width of the containing document, considering the viewport, in pixels (`max(documentWidth, windowWidth)`). + + +Your callback function will be recalled when the parent page is scrolled or resized. + +Pass `false` to disable the callback. + +### scrollTo(x,y) + +Scroll the parent page to the coordinates x and y. + +### scrollToOffset(x,y) + +Scroll the parent page to the coordinates x and y relative to the position of the iFrame. + +### sendMessage(message,[targetOrigin]) + +Send data to the containing page, `message` can be any data type that can be serialized into JSON. The `targetOrigin` option is used to restrict where the message is sent to; to stop an attacker mimicking your parent page. See the MDN documentation on [postMessage](https://developer.mozilla.org/en-US/docs/Web/API/Window.postMessage) for more details. + +### setHeightCalculationMethod(heightCalculationMethod) + +Change the method use to workout the height of the iFrame. + +### size ([customHeight],[ customWidth]) + +Manually force iFrame to resize. This method optionally accepts two arguments: **customHeight** & **customWidth**. To use them you need first to disable the `autoResize` option to prevent auto resizing and enable the `sizeWidth` option if you wish to set the width. + +```js +iFrameResize({ + autoResize: false, + sizeWidth: true +}); +``` + +Then you can call the `size` method with dimensions: + +```js +if ('parentIFrame' in window) { + parentIFrame.size(100); // Set height to 100px +} +``` diff --git a/iframe-resizer-master_old/docs/iframed_page/options.md b/iframe-resizer-master_old/docs/iframed_page/options.md new file mode 100755 index 0000000..18b2895 --- /dev/null +++ b/iframe-resizer-master_old/docs/iframed_page/options.md @@ -0,0 +1,28 @@ +## IFrame Page Options + +The following options can be set from within the iFrame page by creating a `window.iFrameResizer` object before the JavaScript file is loaded into the page. + +```html + + +``` + +### targetOrigin + + default: '*' + type: string + +This option allows you to restrict the domain of the parent page, to prevent other sites mimicing your parent page. + +### heightCalculationMethod / widthCalculationMethod + + default: null + type: string | function() { return integer } + +These options can be used to override the option set in the parent page (See above for details on available values). This can be useful when moving between pages in the iFrame that require different values for these options. + +Altenatively you can pass a custom function that returns the size as an integer. This can be useful when none of the standard ways of working out the size are suitable. However, normally problems with sizing are due to CSS issues and this should be looked at first. diff --git a/iframe-resizer-master_old/docs/jquery.md b/iframe-resizer-master_old/docs/jquery.md new file mode 100755 index 0000000..e61c928 --- /dev/null +++ b/iframe-resizer-master_old/docs/jquery.md @@ -0,0 +1,7 @@ +## jQuery + +This library also provides a simple jQuery interface + +```js +$('iframe').iFrameResize([{ options }]) +``` diff --git a/iframe-resizer-master_old/docs/parent_page/events.md b/iframe-resizer-master_old/docs/parent_page/events.md new file mode 100755 index 0000000..1ade249 --- /dev/null +++ b/iframe-resizer-master_old/docs/parent_page/events.md @@ -0,0 +1,43 @@ +## Events + +The following callback events can be passed to iframe-resizer on the parent page, as part of the [options](options.md) object. + +### onClosed + +```js +onClosed: (iframeID) => undefined +``` + +Called when iFrame is closed via `parentIFrame.close()` or `iframe.iFrameResizer.close()` methods. See below for details. + +### onInit + +```js +onInit: (iframe) => undefined +``` + +Called after initial setup. + +### onMessage + +```js +onMessage: ({iframe,message}) => undefined +``` + +Receive message posted from iFrame with the `parentIFrame.sendMessage()` method. + +### onResized + +```js +onResized: ({iframe,height,width,type}) => undefined +``` + +Function called after iFrame resized. Passes in messageData object containing the **iFrame**, **height**, **width** and the **type** of event that triggered the iFrame to resize. + +### onScroll + +```js +onScroll: ({x,y}) => [true|false] +``` + +Called before the page is repositioned after a request from the iFrame, due to either an in page link, or a direct request from either [parentIFrame.scrollTo()](../iframed_page/methods.md#scrolltoxy) or [parentIFrame.scrollToOffset()](../iframed_page/methods.md#scrolltooffsetxy). If this function returns **false**, it will stop the library from repositioning the page, so that you can implement your own animated page scrolling instead. diff --git a/iframe-resizer-master_old/docs/parent_page/methods.md b/iframe-resizer-master_old/docs/parent_page/methods.md new file mode 100755 index 0000000..adfabbb --- /dev/null +++ b/iframe-resizer-master_old/docs/parent_page/methods.md @@ -0,0 +1,23 @@ +## IFrame Object Methods + +Once the iFrame has been initialized, an `iFrameResizer` object is bound to it. This has the following methods available. + +### close() + +Remove the iFrame from the page. + +### moveToAnchor(anchor) + +Move to anchor in iFrame. + +### removeListeners() + +Detach event listeners from iFrame. This is option allows Virtual DOMs to remove an iFrame tag. It should not normally be required. + +### resize() + +Tell the iFrame to resize itself. + +### sendMessage(message, [targetOrigin]) + +Send data to the containing page, `message` can be any data type that can be serialized into JSON. The `targetOrigin` option is used to restrict where the message is sent to, in case your iFrame navigates away to another domain. diff --git a/iframe-resizer-master_old/docs/parent_page/options.md b/iframe-resizer-master_old/docs/parent_page/options.md new file mode 100755 index 0000000..3c43feb --- /dev/null +++ b/iframe-resizer-master_old/docs/parent_page/options.md @@ -0,0 +1,162 @@ + +## Options + +The following options can be passed to iframe-resizer on the parent page. + +### log + + default: false + type: boolean + +Setting the `log` option to true will make the scripts in both the host page and the iFrame output everything they do to the JavaScript console so you can see the communication between the two scripts. + +### autoResize + + default: true + type: boolean + +When enabled changes to the Window size or the DOM will cause the iFrame to resize to the new content size. Disable if using size method with custom dimensions. + +Note: When set to false the iFrame will still inititally size to the contained content, only additional resizing events are disabled. + +### bodyBackground + + default: null + type: string + +Override the body background style in the iFrame. + +### bodyMargin + + default: null + type: string || number + +Override the default body margin style in the iFrame. A string can be any valid value for the CSS margin attribute, for example '8px 3em'. A number value is converted into px. + +### bodyPadding + + default: null + type: string || number + +Override the default body padding style in the iFrame. A string can be any valid value for the CSS margin attribute, for example '8px 3em'. A number value is converted into px. + +### checkOrigin + + default: true + type: boolean || array + +When set to true, only allow incoming messages from the domain listed in the `src` property of the iFrame tag. If your iFrame navigates between different domains, ports or protocols; then you will need to provide an array of URLs or disable this option. + +### inPageLinks + + default: false + type: boolean + +When enabled in page linking inside the iFrame and from the iFrame to the parent page will be enabled. + +### heightCalculationMethod + + default: 'bodyOffset' + values: 'bodyOffset' | 'bodyScroll' | 'documentElementOffset' | 'documentElementScroll' | + 'max' | 'min' | 'grow' | 'lowestElement' | 'taggedElement' + +By default the height of the iFrame is calculated by converting the margin of the `body` to px and then adding the top and bottom figures to the offsetHeight of the `body` tag. + +In cases where CSS styles causes the content to flow outside the `body` you may need to change this setting to one of the following options. Each can give different values depending on how CSS is used in the page and each has varying side-effects. You will need to experiment to see which is best for any particular circumstance. + +* **bodyOffset** uses `document.body.offsetHeight` +* **bodyScroll** uses `document.body.scrollHeight` * +* **documentElementOffset** uses `document.documentElement.offsetHeight` +* **documentElementScroll** uses `document.documentElement.scrollHeight` * +* **max** takes the largest value of the main four options * +* **min** takes the smallest value of the main four options * +* **lowestElement** Loops though every element in the the DOM and finds the lowest bottom point +* **taggedElement** Finds the bottom of the lowest element with a `data-iframe-height` attribute + +Notes: + +**If the default option doesn't work then the best solutions is to use either** taggedElement, **or** lowestElement**.** Alternatively it is possible to add your own custom sizing method directly inside the iFrame, see the [iFrame Page Options](../iframed_page/options.md) section for more details. + + The **lowestElement** option is the most reliable way of determining the page height. However, it does have a performance impact, as it requires checking the position of every element on the page. The **taggedElement** option provides much greater performance by limiting the number of elements that need their position checked. + +* These methods can cause screen flicker in some browsers. + +### maxHeight / maxWidth + + default: infinity + type: integer + +Set maximum height/width of iFrame. + +### minHeight / minWidth + + default: 0 + type: integer + +Set minimum height/width of iFrame. + +### resizeFrom + + default: 'parent' + values: 'parent', 'child' + +Listen for resize events from the parent page, or the iFrame. Select the 'child' value if the iFrame can be resized independently of the browser window. Selecting this value can cause issues with some height calculation methods on mobile devices. + +### scrolling + + default: false + type: boolean | 'omit' + +Enable scroll bars in iFrame. + +* **true** applies `scrolling="yes"` +* **false** applies `scrolling="no"` +* **'omit'** applies no `scrolling` attribute to the iFrame + +### sizeHeight + + default: true + type: boolean + +Resize iFrame to content height. + +### sizeWidth + + default: false + type: boolean + +Resize iFrame to content width. + + +### tolerance + + default: 0 + type: integer + +Set the number of pixels the iFrame content size has to change by, before triggering a resize of the iFrame. + +### widthCalculationMethod + + default: 'scroll' + values: 'bodyOffset' | 'bodyScroll' | 'documentElementOffset' | 'documentElementScroll' | + 'max' | 'min' | 'scroll' | 'rightMostElement' | 'taggedElement' + +By default the width of the page is worked out by taking the greater of the **documentElement** and **body** scrollWidth values. + +Some CSS techniques may require you to change this setting to one of the following options. Each can give different values depending on how CSS is used in the page and each has varying side-effects. You will need to experiment to see which is best for any particular circumstance. + +* **bodyOffset** uses `document.body.offsetWidth` +* **bodyScroll** uses `document.body.scrollWidth` * +* **documentElementOffset** uses `document.documentElement.offsetWidth` +* **documentElementScroll** uses `document.documentElement.scrollWidth` * +* **scroll** takes the largest value of the two scroll options * +* **max** takes the largest value of the main four options * +* **min** takes the smallest value of the main four options * +* **rightMostElement** Loops though every element in the the DOM and finds the right most point +* **taggedElement** Finds the left most element with a `data-iframe-width` attribute + +Alternatively it is possible to add your own custom sizing method directly inside the iFrame, see the [iFrame Page Options](../iframed_page/options.md) section for more details + + The **rightMostElement** option is the most reliable way of determining the page width. However, it does have a performance impact as it requires calculating the position of every element on the page. The **taggedElement** option provides much greater performance by limiting the number of elements that need their position checked. + +* These methods can cause screen flicker in some browsers. diff --git a/iframe-resizer-master_old/docs/readme.md b/iframe-resizer-master_old/docs/readme.md new file mode 100755 index 0000000..6a9bc8e --- /dev/null +++ b/iframe-resizer-master_old/docs/readme.md @@ -0,0 +1,15 @@ +# iFrame-Resizer Documentation + +- [Getting Started](getting_started.md) +- **Parent Page API** + - [Options](parent_page/options.md) + - [Events](parent_page/events.md) + - [Methods](parent_page/methods.md) +- **IFramed Page API** + - [Options](iframed_page/options.md) + - [Events](iframed_page/events.md) + - [Methods](iframed_page/methods.md) +- [Use with jQuery](jquery.md) +- [Troubleshooting](troubleshooting.md) +- [Upgrade from version 3](upgrade.md) +- [Version history](../CHANGELOG.md) diff --git a/iframe-resizer-master_old/docs/troubleshooting.md b/iframe-resizer-master_old/docs/troubleshooting.md new file mode 100755 index 0000000..6631e6c --- /dev/null +++ b/iframe-resizer-master_old/docs/troubleshooting.md @@ -0,0 +1,102 @@ +## Troubleshooting + +The first steps to investigate a problem is to make sure you are using the latest version and then enable the [log](#log) option, which outputs everything that happens to the [JavaScript Console](https://developers.google.com/chrome-developer-tools/docs/console#opening_the_console). This will enable you to see what both the iFrame and host page are up to and also see any JavaScript error messages. + +Solutions for the most common problems are outlined in this section. If you need futher help, then please ask questions on [StackOverflow](https://stackoverflow.com/questions/tagged/iframe-resizer) with the `iframe-resizer` tag. + +Bug reports and pull requests are welcome on the [issue tracker](https://github.com/davidjbradshaw/iframe-resizer/issues). Please read the [contributing guidelines](https://github.com/davidjbradshaw/iframe-resizer/blob/master/CONTRIBUTING.md) before openning a ticket, as this will ensure a faster resolution. + +### Multiple IFrames on one page + +When the resizer does not work using multiple IFrames on one page, make sure that each frame has an unique id or no ids at all. + +### IFrame not sizing correctly + +If a larger element of content is removed from the normal document flow, through the use of absolute positioning, it can prevent the browser working out the correct size of the page. In such cases you can change the [heightCalculationMethod](#heightcalculationmethod) to uses one of the other sizing methods. + +### IFrame not downsizing + +The most likely cause of this problem is having set the height of an element to be 100% of the page somewhere in your CSS. This is normally on the `html` or `body` elements, but it could be on any element in the page. This can sometimes be got around by using the `taggedElement` height calculation method and added a `data-iframe-height` attribute to the element that you want to define the bottom position of the page. You may find it useful to use `position: relative` on this element to define a bottom margin or allow space for a floating footer. + +Not having a valid [HTML document type](https://en.wikipedia.org/wiki/Document_type_declaration) in the iFrame can also sometimes prevent downsizing. At it's most simplest this can be the following. + +```html + +``` + +### IFrame not resizing + +The most common cause of this is not placing the [iframeResizer.contentWindow.min.js](https://raw.github.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.contentWindow.min.js) script inside the iFramed page. If the other page is on a domain outside your control and you can not add JavaScript to that page, then now is the time to give up all hope of ever getting the iFrame to size to the content. As it is impossible to work out the size of the contained page, without using JavaScript on both the parent and child pages. + +### IFrame not detecting CSS :hover events + +If your page resizes via CSS `:hover` events, these won't be detected by default. It is however possible to create `mouseover` and `mouseout` event listeners on the elements that are resized via CSS and have these events call the [parentIFrame.size()](##parentiframesize-customheight-customwidth) method. With jQuery this can be done as follows + +```js +function resize(){ + if ('parentIFrame' in window) { + // Fix race condition in FireFox with setTimeout + setTimeout(parentIFrame.size.bind(parentIFrame),0); + } +} + +$(*Element with hover style*).hover(resize); +``` + +### IFrame not detecting textarea resizes + +Both FireFox and the WebKit based browsers allow the user to resize `textarea` input boxes. Unfortunately the WebKit browsers don't trigger the mutation event when this happens. This can be worked around to some extent with the following code. + +```js +function store() { + this.x = this.offsetWidth + this.y = this.offsetHeight +} + +$('textarea') + .each(store) + .on('mouseover mouseout', function() { + if (this.offsetWidth !== this.x || this.offsetHeight !== this.y) { + store.call(this) + if ('parentIFrame' in window) { + parentIFrame.size() + } + } + }) +``` + +### IFrame flickers + +Some of the alternate [height calculation methods](#heightcalculationmethod), such as **max** can cause the iFrame to flicker. This is due to the fact that to check for downsizing, the iFrame first has to be downsized before the new height can be worked out. This effect can be reduced by setting a [minSize](#minheight--minwidth) value, so that the iFrame is not reset to zero height before regrowing. + +In modern browsers, if the default [height calculation method](#heightcalculationmethod) does not work, then it is normally best to use **taggedElement** or **lowestElement**, which are both flicker free. + +Please see the notes section under [heightCalculationMethod](#heightcalculationmethod) to understand the limitations of the different options. + +### ParentIFrame not found errors + +The `parentIFrame` object is created once the iFrame has been initially resized. If you wish to use it during page load you will need call it from the onReady. + +```html + + +``` + +### PDF and OpenDocument files + +It is not possible to add the required JavaScript to PDF and ODF files. However, you can get around this limitation by using [ViewerJS](https://viewerjs.org/) to render these files inside a HTML page, that also contains the iFrame JavaScript file ([iframeResizer.contentWindow.min.js](https://raw.github.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.contentWindow.min.js)). + +### Unexpected message received error + +By default the origin of incoming messages is checked against the `src` attribute of the iFrame. If they don't match an error is thrown. This behaviour can be disabled by setting the [checkOrigin](#checkorigin) option to **false**. + +### Width not resizing + +By default only changes in height are detected, if you want to calculate the width you need to set the `sizeWidth` opion to true and the `sizeHeight` option to false. diff --git a/iframe-resizer-master_old/docs/upgrade.md b/iframe-resizer-master_old/docs/upgrade.md new file mode 100755 index 0000000..5456d70 --- /dev/null +++ b/iframe-resizer-master_old/docs/upgrade.md @@ -0,0 +1,5 @@ +## Upgrading to version 4 + +In version 4 support for IE 8-10 and Andriod 4.4 has been removed, if you still need this then please use [version 3](https://github.com/davidjbradshaw/iframe-resizer/tree/V3) of this library. + +The callback methods have been renamed to onEvents, so for example `scrollCallback` is now called `onScroll`. This is to enable better integration with modern libraries such as React. diff --git a/iframe-resizer-master_old/example/frame.absolute.html b/iframe-resizer-master_old/example/frame.absolute.html new file mode 100755 index 0000000..7d568e7 --- /dev/null +++ b/iframe-resizer-master_old/example/frame.absolute.html @@ -0,0 +1,127 @@ + + + + + iFrame message passing test + + + + + + + +

+ iFrame + + Back to page 1 +   + Bottom +   + Scroll to iFrame +   + Jump to iFrame anchor + Jump to parent anchor +

+

+ This page has an absolute position element that take it out side the + normal document body, which is marked with a red border on this page. This + prevents the normal height calculation, which is based on the body tag + from returning the correct height. To work around this you can set the + heightCalculationMethod option to use one of the other page height + propeties. +

+

+ Use the dropdown to change the sizing method of the page, select the + different sizing options to see how the effect the page. Note that they + can have different effects in different browsers, so you are normally best + off selecting max if you need to change away from the default + bodyOffset option. +

+

+ Height Calculation Method + +

+

+ This option should be used sparingly, as the alternate methods can be + less acurate at working out the correct page size, can cause screen + flicker and can sometimes fail to reduce in size when the frame content + changes in browsers that do not support mutationObservers (See + caniuse.com for + details). +

+ Test in page anchor + +
+ Absolute positioned element + Top +
+ + + + + + + diff --git a/iframe-resizer-master_old/example/frame.content.html b/iframe-resizer-master_old/example/frame.content.html new file mode 100755 index 0000000..ffc7acc --- /dev/null +++ b/iframe-resizer-master_old/example/frame.content.html @@ -0,0 +1,113 @@ + + + + + iFrame message passing test + + + + + + + + iFrame + Toggle content +   + Size(250) +   + Nested +   + :Hover +   + TextArea +   + Absolute Position +   + Send Message +   + Close + +

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod + tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim + veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea + commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id + est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing + pleasure and praising pain was born and I will give you a complete account + of the system, and expound the actual teachings of the great explorer of + the truth, the master-builder of human happiness. No one rejects, + dislikes, or avoids pleasure itself, because it is pleasure, but because + those who do not know how to pursue pleasure rationally encounter + consequences that are extremely painful. Nor again is there anyone who + loves or pursues or desires to obtain pain of itself, because it is pain, + but because occasionally circumstances occur in which toil and pain can + procure him some great pleasure. To take a trivial example, which of us + ever undertakes laborious physical exercise, except to obtain some + advantage from it? But who has any right to find fault with a man who + chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men + who are so beguiled and demoralized by the charms of pleasure of the + moment, so blinded by desire, that they cannot foresee the pain and + trouble that are bound to ensue; and equal blame belongs to those who fail + in their duty through weakness of will, which is the same as saying + through shrinking from toil and pain. These cases are perfectly simple and + easy to distinguish. In a free hour, when our power of choice is + untrammelled and when nothing prevents our being able to do what we like + best, every pleasure is to be welcomed and every pain avoided. But in + certain circumstances and owing to the claims of duty or the obligations + of business it will frequently occur that pleasures have to be repudiated + and annoyances accepted. The wise man therefore always holds in these + matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+ + + + + + + + diff --git a/iframe-resizer-master_old/example/frame.hover.html b/iframe-resizer-master_old/example/frame.hover.html new file mode 100755 index 0000000..4c7da21 --- /dev/null +++ b/iframe-resizer-master_old/example/frame.hover.html @@ -0,0 +1,68 @@ + + + + + iFrame message passing test + + + + + + + iFrame :Hover Example + Back to page 1 + +

+ Mouse over the code example below. +

+ + + <!-- #code --> + + + + + + + +
+ + +
+ + + + diff --git a/iframe-resizer-master_old/example/frame.nested.html b/iframe-resizer-master_old/example/frame.nested.html new file mode 100755 index 0000000..02bf7bd --- /dev/null +++ b/iframe-resizer-master_old/example/frame.nested.html @@ -0,0 +1,100 @@ + + + + + iFrame message passing test + + + + + + + + Back to page 1 +

Nested iFrame

+

+ Resize window or click one of the links in the nested iFrame to watch it + resize. +

+
+ +
+

+ + + + + + + + diff --git a/iframe-resizer-master_old/example/frame.textarea.html b/iframe-resizer-master_old/example/frame.textarea.html new file mode 100755 index 0000000..9782ee8 --- /dev/null +++ b/iframe-resizer-master_old/example/frame.textarea.html @@ -0,0 +1,45 @@ + + + + + iFrame message passing test + + + + + + + iFrame TextArea Example + Back to page 1 + +

+ Resize the textarea below. +

+ + + + + + + + + diff --git a/iframe-resizer-master_old/example/frame.tolerance.html b/iframe-resizer-master_old/example/frame.tolerance.html new file mode 100755 index 0000000..ea09d93 --- /dev/null +++ b/iframe-resizer-master_old/example/frame.tolerance.html @@ -0,0 +1,113 @@ + + + + + iFrame message passing test + + + + + +

+ iFrame + + Back to page 1 +   + Bottom +

+

+ This page has an absolute position elemnt that take it out side the normal + document body, which is marked with a red border on this page. This + prevents the normal height calculation, which is based on the body tag + from returning the correct height. To work around this you can set the + heightCalculationMethod option to use one of the other page height + propeties. +

+

+ Use the dropdown to change the sizing method of the page, select the + different sizing options to see how the effect the page. Note that they + can have different effects in different browsers, so you are normally best + off selecting max if you need to change away from the default + bodyOffset option. +

+

+ Height Calculation Method + +

+

+ This option should be used sparingly, as the alternate methods can be + less acurate at working out the correct page size, can cause screen + flicker and can sometimes fail to reduce in size when the frame content + changes in browsers that do not support mutationObservers (See + caniuse.com for + details). +

+ +
+ Absolute positioned element + Top +
+ + + + + + diff --git a/iframe-resizer-master_old/example/index.html b/iframe-resizer-master_old/example/index.html new file mode 100755 index 0000000..0e0c0d7 --- /dev/null +++ b/iframe-resizer-master_old/example/index.html @@ -0,0 +1,83 @@ + + + + + iFrame message passing test + + + + + + +

Automagically resizing iFrame

+

+ Resize window or click one of the links in the iFrame to watch it resize. + Or try with two iFrames. +

+
+ +
+

+
+ For details on how this works, see + https://davidjbradshaw.github.io/iframe-resizer/. +
+ + + + + + + + + diff --git a/iframe-resizer-master_old/example/two.html b/iframe-resizer-master_old/example/two.html new file mode 100755 index 0000000..3cfa4d7 --- /dev/null +++ b/iframe-resizer-master_old/example/two.html @@ -0,0 +1,88 @@ + + + + + iFrame message passing test + + + + + + +

Automagically resizing iFrame

+

+ Resize window or click one of the links in the iFrame to watch it resize. + Or go back to a + single iFrame. +

+
+ + +
+

+
+ For details on how this works, see + https://davidjbradshaw.github.io/iframe-resizer/. +
+ + + + + + + + + diff --git a/iframe-resizer-master_old/gruntfile.js b/iframe-resizer-master_old/gruntfile.js new file mode 100755 index 0000000..71f68a2 --- /dev/null +++ b/iframe-resizer-master_old/gruntfile.js @@ -0,0 +1,233 @@ +/*global module:false*/ +module.exports = function(grunt) { + // show elapsed time at the end + require('time-grunt')(grunt) + + // load all grunt tasks + //require('load-grunt-tasks')(grunt); + require('jit-grunt')(grunt, { + 'bump-only': 'grunt-bump', + 'bump-commit': 'grunt-bump', + coveralls: 'grunt-karma-coveralls' + }) + + // Project configuration. + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + + meta: { + bannerLocal: + '/*! iFrame Resizer (iframeSizer.min.js ) - v<%= pkg.version %> - ' + + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + + ' * Desc: Force cross domain iframes to size to content.\n' + + ' * Requires: iframeResizer.contentWindow.min.js to be loaded into the target frame.\n' + + ' * Copyright: (c) <%= grunt.template.today("yyyy") %> David J. Bradshaw - dave@bradshaw.net\n' + + ' * License: MIT\n */\n', + bannerRemote: + '/*! iFrame Resizer (iframeSizer.contentWindow.min.js) - v<%= pkg.version %> - ' + + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + + ' * Desc: Include this file in any page being loaded into an iframe\n' + + ' * to force the iframe to resize to the content size.\n' + + ' * Requires: iframeResizer.min.js on host page.\n' + + ' * Copyright: (c) <%= grunt.template.today("yyyy") %> David J. Bradshaw - dave@bradshaw.net\n' + + ' * License: MIT\n */\n' + }, + + clean: ['coverage', 'coverageLcov'], + + qunit: { + files: ['test/*.html'], + puppeteer: { + args: [ + '--disable-web-security', + '--allow-file-access-from-files', + '--user-data-dir=/tmp' + ] + } + }, + + karma: { + options: { + configFile: 'karma.conf.js' + }, + travis: { + singleRun: true, + browsers: ['Chrome'], // 'PhantomJS' + coverageReporter: { + type: 'lcov', + dir: 'coverageLcov/' + } + }, + single: { + singleRun: true, + browsers: ['Chrome', 'Firefox'] // 'Safari', 'PhantomJS' + } + }, + + coveralls: { + options: { + debug: true, + coverageDir: 'coverageLcov', + dryRun: false, + force: true, + recursive: true + } + }, + + jshint: { + options: { + asi: true, + eqeqeq: true, + laxbreak: true, + globals: { + jQuery: false, + require: true, + process: true + } + }, + gruntfile: { + src: 'gruntfile.js' + }, + code: { + src: 'src/**/*.js' + } + }, + + uglify: { + options: { + sourceMap: true, + sourceMapIncludeSources: true, + report: 'gzip' + }, + local: { + options: { + banner: '<%= meta.bannerLocal %>', + sourceMapName: 'js/iframeResizer.map' + }, + src: ['js/iframeResizer.js'], + dest: 'js/iframeResizer.min.js' + }, + remote: { + options: { + banner: '<%= meta.bannerRemote %>', + sourceMapName: 'js/iframeResizer.contentWindow.map' + }, + src: ['js/iframeResizer.contentWindow.js'], + dest: 'js/iframeResizer.contentWindow.min.js' + } + }, + + watch: { + files: ['src/**/*'], + tasks: 'default' + }, + + bump: { + options: { + files: [ + 'package.json', + 'package-lock.json', + 'bower.json', + 'iframeResizer.jquery.json' + ], + updateConfigs: ['pkg'], + commit: true, + commitMessage: 'Release v%VERSION%', + commitFiles: ['-a'], // '-a' for all files + createTag: true, + tagName: 'v%VERSION%', + tagMessage: 'Version %VERSION%', + push: true, + pushTo: 'origin', + gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d' // options to use with '$ git describe' + } + }, + + shell: { + options: { + stdout: true, + stderr: true, + failOnError: true + }, + npm: { + command: 'npm publish' + }, + deployExample: { + command: function() { + var retStr = '', + fs = require('fs') + + if (fs.existsSync('bin')) { + retStr = 'bin/deploy.sh' + } + + return retStr + } + } + }, + + jsonlint: { + json: { + src: ['*.json'] + } + }, + + removeBlock: { + options: ['TEST CODE START', 'TEST CODE END'], + files: [ + { + src: 'src/iframeResizer.contentWindow.js', + dest: 'js/iframeResizer.contentWindow.js' + } + ] + }, + + copy: { + main: { + nonull: true, + src: 'src/iframeResizer.js', + dest: 'js/iframeResizer.js' + } + }, + + eslint: { + target: ['src/**'] + } + }) + + grunt.registerTask('default', ['notest', 'karma:single']) + grunt.registerTask('build', ['removeBlock', 'copy', 'uglify']) + grunt.registerTask('notest', ['eslint', 'jsonlint', 'jshint', 'build']) + grunt.registerTask('test', ['clean', 'eslint', 'karma:single', 'qunit']) + grunt.registerTask('travis', [ + 'clean', + 'notest', + 'qunit', + 'karma:travis', + 'coveralls' + ]) + + grunt.registerTask('postBump', ['build', 'bump-commit', 'shell']) + grunt.registerTask('preBump', ['clean', 'notest']) + grunt.registerTask('patch', ['preBump', 'bump-only:patch', 'postBump']) + grunt.registerTask('minor', ['preBump', 'bump-only:minor', 'postBump']) + grunt.registerTask('major', ['preBump', 'bump-only:major', 'postBump']) + + grunt.registerMultiTask('removeBlock', function() { + // set up a removal regular expression + var removalRegEx = new RegExp( + '(// ' + + this.options()[0] + + ' //)(?:[^])*?(// ' + + this.options()[1] + + ' //)', + 'g' + ) + + this.data.forEach(function(fileObj) { + var sourceFile = grunt.file.read(fileObj.src), + removedFile = sourceFile.replace(removalRegEx, ''), + targetFile = grunt.file.write(fileObj.dest, removedFile) + }) // for each loop end + }) +} diff --git a/iframe-resizer-master_old/index.js b/iframe-resizer-master_old/index.js new file mode 100755 index 0000000..ec050de --- /dev/null +++ b/iframe-resizer-master_old/index.js @@ -0,0 +1,3 @@ +'use strict' + +module.exports = require('./js') diff --git a/iframe-resizer-master_old/js/iframeResizer.contentWindow.js b/iframe-resizer-master_old/js/iframeResizer.contentWindow.js new file mode 100755 index 0000000..5ac726a --- /dev/null +++ b/iframe-resizer-master_old/js/iframeResizer.contentWindow.js @@ -0,0 +1,1288 @@ +/* + * File: iframeResizer.contentWindow.js + * Desc: Include this file in any page being loaded into an iframe + * to force the iframe to resize to the content size. + * Requires: iframeResizer.js on host page. + * Doc: https://github.com/davidjbradshaw/iframe-resizer + * Author: David J. Bradshaw - dave@bradshaw.net + * + */ + +// eslint-disable-next-line sonarjs/cognitive-complexity, no-shadow-restricted-names +;(function(undefined) { + if (typeof window === 'undefined') return // don't run for server side render + + var autoResize = true, + base = 10, + bodyBackground = '', + bodyMargin = 0, + bodyMarginStr = '', + bodyObserver = null, + bodyPadding = '', + calculateWidth = false, + doubleEventList = { resize: 1, click: 1 }, + eventCancelTimer = 128, + firstRun = true, + height = 1, + heightCalcModeDefault = 'bodyOffset', + heightCalcMode = heightCalcModeDefault, + initLock = true, + initMsg = '', + inPageLinks = {}, + interval = 32, + intervalTimer = null, + logging = false, + msgID = '[iFrameSizer]', // Must match host page msg ID + msgIdLen = msgID.length, + myID = '', + resetRequiredMethods = { + max: 1, + min: 1, + bodyScroll: 1, + documentElementScroll: 1 + }, + resizeFrom = 'child', + sendPermit = true, + target = window.parent, + targetOriginDefault = '*', + tolerance = 0, + triggerLocked = false, + triggerLockedTimer = null, + throttledTimer = 16, + width = 1, + widthCalcModeDefault = 'scroll', + widthCalcMode = widthCalcModeDefault, + win = window, + onMessage = function() { + warn('onMessage function not defined') + }, + onReady = function() {}, + onPageInfo = function() {}, + customCalcMethods = { + height: function() { + warn('Custom height calculation function not defined') + return document.documentElement.offsetHeight + }, + width: function() { + warn('Custom width calculation function not defined') + return document.body.scrollWidth + } + }, + eventHandlersByName = {}, + passiveSupported = false + + function noop() {} + + try { + var options = Object.create( + {}, + { + passive: { + get: function() { + passiveSupported = true + } + } + } + ) + window.addEventListener('test', noop, options) + window.removeEventListener('test', noop, options) + } catch (error) { + /* */ + } + + function addEventListener(el, evt, func, options) { + el.addEventListener(evt, func, passiveSupported ? options || {} : false) + } + + function removeEventListener(el, evt, func) { + el.removeEventListener(evt, func, false) + } + + function capitalizeFirstLetter(string) { + return string.charAt(0).toUpperCase() + string.slice(1) + } + + // Based on underscore.js + function throttle(func) { + var context, + args, + result, + timeout = null, + previous = 0, + later = function() { + previous = getNow() + timeout = null + result = func.apply(context, args) + if (!timeout) { + // eslint-disable-next-line no-multi-assign + context = args = null + } + } + + return function() { + var now = getNow() + + if (!previous) { + previous = now + } + + var remaining = throttledTimer - (now - previous) + + context = this + args = arguments + + if (remaining <= 0 || remaining > throttledTimer) { + if (timeout) { + clearTimeout(timeout) + timeout = null + } + + previous = now + result = func.apply(context, args) + + if (!timeout) { + // eslint-disable-next-line no-multi-assign + context = args = null + } + } else if (!timeout) { + timeout = setTimeout(later, remaining) + } + + return result + } + } + + var getNow = + Date.now || + function() { + /* istanbul ignore next */ // Not testable in PhantonJS + return new Date().getTime() + } + + function formatLogMsg(msg) { + return msgID + '[' + myID + '] ' + msg + } + + function log(msg) { + if (logging && 'object' === typeof window.console) { + // eslint-disable-next-line no-console + console.log(formatLogMsg(msg)) + } + } + + function warn(msg) { + if ('object' === typeof window.console) { + // eslint-disable-next-line no-console + console.warn(formatLogMsg(msg)) + } + } + + function init() { + readDataFromParent() + log('Initialising iFrame (' + location.href + ')') + readDataFromPage() + setMargin() + setBodyStyle('background', bodyBackground) + setBodyStyle('padding', bodyPadding) + injectClearFixIntoBodyElement() + checkHeightMode() + checkWidthMode() + stopInfiniteResizingOfIFrame() + setupPublicMethods() + startEventListeners() + inPageLinks = setupInPageLinks() + sendSize('init', 'Init message from host page') + onReady() + } + + function readDataFromParent() { + function strBool(str) { + return 'true' === str + } + + var data = initMsg.substr(msgIdLen).split(':') + + myID = data[0] + bodyMargin = undefined !== data[1] ? Number(data[1]) : bodyMargin // For V1 compatibility + calculateWidth = undefined !== data[2] ? strBool(data[2]) : calculateWidth + logging = undefined !== data[3] ? strBool(data[3]) : logging + interval = undefined !== data[4] ? Number(data[4]) : interval + autoResize = undefined !== data[6] ? strBool(data[6]) : autoResize + bodyMarginStr = data[7] + heightCalcMode = undefined !== data[8] ? data[8] : heightCalcMode + bodyBackground = data[9] + bodyPadding = data[10] + tolerance = undefined !== data[11] ? Number(data[11]) : tolerance + inPageLinks.enable = undefined !== data[12] ? strBool(data[12]) : false + resizeFrom = undefined !== data[13] ? data[13] : resizeFrom + widthCalcMode = undefined !== data[14] ? data[14] : widthCalcMode + } + + function depricate(key) { + var splitName = key.split('Callback') + + if (splitName.length === 2) { + var name = + 'on' + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1) + this[name] = this[key] + delete this[key] + warn( + "Deprecated: '" + + key + + "' has been renamed '" + + name + + "'. The old method will be removed in the next major version." + ) + } + } + + function readDataFromPage() { + function readData() { + var data = window.iFrameResizer + + log('Reading data from page: ' + JSON.stringify(data)) + Object.keys(data).forEach(depricate, data) + + onMessage = 'onMessage' in data ? data.onMessage : onMessage + onReady = 'onReady' in data ? data.onReady : onReady + targetOriginDefault = + 'targetOrigin' in data ? data.targetOrigin : targetOriginDefault + heightCalcMode = + 'heightCalculationMethod' in data + ? data.heightCalculationMethod + : heightCalcMode + widthCalcMode = + 'widthCalculationMethod' in data + ? data.widthCalculationMethod + : widthCalcMode + } + + function setupCustomCalcMethods(calcMode, calcFunc) { + if ('function' === typeof calcMode) { + log('Setup custom ' + calcFunc + 'CalcMethod') + customCalcMethods[calcFunc] = calcMode + calcMode = 'custom' + } + + return calcMode + } + + if ( + 'iFrameResizer' in window && + Object === window.iFrameResizer.constructor + ) { + readData() + heightCalcMode = setupCustomCalcMethods(heightCalcMode, 'height') + widthCalcMode = setupCustomCalcMethods(widthCalcMode, 'width') + } + + log('TargetOrigin for parent set to: ' + targetOriginDefault) + } + + function chkCSS(attr, value) { + if (-1 !== value.indexOf('-')) { + warn('Negative CSS value ignored for ' + attr) + value = '' + } + return value + } + + function setBodyStyle(attr, value) { + if (undefined !== value && '' !== value && 'null' !== value) { + document.body.style[attr] = value + log('Body ' + attr + ' set to "' + value + '"') + } + } + + function setMargin() { + // If called via V1 script, convert bodyMargin from int to str + if (undefined === bodyMarginStr) { + bodyMarginStr = bodyMargin + 'px' + } + + setBodyStyle('margin', chkCSS('margin', bodyMarginStr)) + } + + function stopInfiniteResizingOfIFrame() { + document.documentElement.style.height = '' + document.body.style.height = '' + log('HTML & body height set to "auto"') + } + + function manageTriggerEvent(options) { + var listener = { + add: function(eventName) { + function handleEvent() { + sendSize(options.eventName, options.eventType) + } + + eventHandlersByName[eventName] = handleEvent + + addEventListener(window, eventName, handleEvent, { passive: true }) + }, + remove: function(eventName) { + var handleEvent = eventHandlersByName[eventName] + delete eventHandlersByName[eventName] + + removeEventListener(window, eventName, handleEvent) + } + } + + if (options.eventNames && Array.prototype.map) { + options.eventName = options.eventNames[0] + options.eventNames.map(listener[options.method]) + } else { + listener[options.method](options.eventName) + } + + log( + capitalizeFirstLetter(options.method) + + ' event listener: ' + + options.eventType + ) + } + + function manageEventListeners(method) { + manageTriggerEvent({ + method: method, + eventType: 'Animation Start', + eventNames: ['animationstart', 'webkitAnimationStart'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Animation Iteration', + eventNames: ['animationiteration', 'webkitAnimationIteration'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Animation End', + eventNames: ['animationend', 'webkitAnimationEnd'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Input', + eventName: 'input' + }) + manageTriggerEvent({ + method: method, + eventType: 'Mouse Up', + eventName: 'mouseup' + }) + manageTriggerEvent({ + method: method, + eventType: 'Mouse Down', + eventName: 'mousedown' + }) + manageTriggerEvent({ + method: method, + eventType: 'Orientation Change', + eventName: 'orientationchange' + }) + manageTriggerEvent({ + method: method, + eventType: 'Print', + eventName: ['afterprint', 'beforeprint'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Ready State Change', + eventName: 'readystatechange' + }) + manageTriggerEvent({ + method: method, + eventType: 'Touch Start', + eventName: 'touchstart' + }) + manageTriggerEvent({ + method: method, + eventType: 'Touch End', + eventName: 'touchend' + }) + manageTriggerEvent({ + method: method, + eventType: 'Touch Cancel', + eventName: 'touchcancel' + }) + manageTriggerEvent({ + method: method, + eventType: 'Transition Start', + eventNames: [ + 'transitionstart', + 'webkitTransitionStart', + 'MSTransitionStart', + 'oTransitionStart', + 'otransitionstart' + ] + }) + manageTriggerEvent({ + method: method, + eventType: 'Transition Iteration', + eventNames: [ + 'transitioniteration', + 'webkitTransitionIteration', + 'MSTransitionIteration', + 'oTransitionIteration', + 'otransitioniteration' + ] + }) + manageTriggerEvent({ + method: method, + eventType: 'Transition End', + eventNames: [ + 'transitionend', + 'webkitTransitionEnd', + 'MSTransitionEnd', + 'oTransitionEnd', + 'otransitionend' + ] + }) + if ('child' === resizeFrom) { + manageTriggerEvent({ + method: method, + eventType: 'IFrame Resized', + eventName: 'resize' + }) + } + } + + function checkCalcMode(calcMode, calcModeDefault, modes, type) { + if (calcModeDefault !== calcMode) { + if (!(calcMode in modes)) { + warn( + calcMode + ' is not a valid option for ' + type + 'CalculationMethod.' + ) + calcMode = calcModeDefault + } + log(type + ' calculation method set to "' + calcMode + '"') + } + + return calcMode + } + + function checkHeightMode() { + heightCalcMode = checkCalcMode( + heightCalcMode, + heightCalcModeDefault, + getHeight, + 'height' + ) + } + + function checkWidthMode() { + widthCalcMode = checkCalcMode( + widthCalcMode, + widthCalcModeDefault, + getWidth, + 'width' + ) + } + + function startEventListeners() { + if (true === autoResize) { + manageEventListeners('add') + setupMutationObserver() + } else { + log('Auto Resize disabled') + } + } + + function stopMsgsToParent() { + log('Disable outgoing messages') + sendPermit = false + } + + function removeMsgListener() { + log('Remove event listener: Message') + removeEventListener(window, 'message', receiver) + } + + function disconnectMutationObserver() { + if (null !== bodyObserver) { + /* istanbul ignore next */ // Not testable in PhantonJS + bodyObserver.disconnect() + } + } + + function stopEventListeners() { + manageEventListeners('remove') + disconnectMutationObserver() + clearInterval(intervalTimer) + } + + function teardown() { + stopMsgsToParent() + removeMsgListener() + if (true === autoResize) stopEventListeners() + } + + function injectClearFixIntoBodyElement() { + var clearFix = document.createElement('div') + clearFix.style.clear = 'both' + // Guard against the following having been globally redefined in CSS. + clearFix.style.display = 'block' + clearFix.style.height = '0' + document.body.appendChild(clearFix) + } + + function setupInPageLinks() { + function getPagePosition() { + return { + x: + window.pageXOffset !== undefined + ? window.pageXOffset + : document.documentElement.scrollLeft, + y: + window.pageYOffset !== undefined + ? window.pageYOffset + : document.documentElement.scrollTop + } + } + + function getElementPosition(el) { + var elPosition = el.getBoundingClientRect(), + pagePosition = getPagePosition() + + return { + x: parseInt(elPosition.left, 10) + parseInt(pagePosition.x, 10), + y: parseInt(elPosition.top, 10) + parseInt(pagePosition.y, 10) + } + } + + function findTarget(location) { + function jumpToTarget(target) { + var jumpPosition = getElementPosition(target) + + log( + 'Moving to in page link (#' + + hash + + ') at x: ' + + jumpPosition.x + + ' y: ' + + jumpPosition.y + ) + sendMsg(jumpPosition.y, jumpPosition.x, 'scrollToOffset') // X&Y reversed at sendMsg uses height/width + } + + var hash = location.split('#')[1] || location, // Remove # if present + hashData = decodeURIComponent(hash), + target = + document.getElementById(hashData) || + document.getElementsByName(hashData)[0] + + if (undefined !== target) { + jumpToTarget(target) + } else { + log( + 'In page link (#' + + hash + + ') not found in iFrame, so sending to parent' + ) + sendMsg(0, 0, 'inPageLink', '#' + hash) + } + } + + function checkLocationHash() { + if ('' !== location.hash && '#' !== location.hash) { + findTarget(location.href) + } + } + + function bindAnchors() { + function setupLink(el) { + function linkClicked(e) { + e.preventDefault() + + /* jshint validthis:true */ + findTarget(this.getAttribute('href')) + } + + if ('#' !== el.getAttribute('href')) { + addEventListener(el, 'click', linkClicked) + } + } + + Array.prototype.forEach.call( + document.querySelectorAll('a[href^="#"]'), + setupLink + ) + } + + function bindLocationHash() { + addEventListener(window, 'hashchange', checkLocationHash) + } + + function initCheck() { + // Check if page loaded with location hash after init resize + setTimeout(checkLocationHash, eventCancelTimer) + } + + function enableInPageLinks() { + /* istanbul ignore else */ // Not testable in phantonJS + if (Array.prototype.forEach && document.querySelectorAll) { + log('Setting up location.hash handlers') + bindAnchors() + bindLocationHash() + initCheck() + } else { + warn( + 'In page linking not fully supported in this browser! (See README.md for IE8 workaround)' + ) + } + } + + if (inPageLinks.enable) { + enableInPageLinks() + } else { + log('In page linking not enabled') + } + + return { + findTarget: findTarget + } + } + + function setupPublicMethods() { + log('Enable public methods') + + win.parentIFrame = { + autoResize: function autoResizeF(resize) { + if (true === resize && false === autoResize) { + autoResize = true + startEventListeners() + } else if (false === resize && true === autoResize) { + autoResize = false + stopEventListeners() + } + + return autoResize + }, + + close: function closeF() { + sendMsg(0, 0, 'close') + teardown() + }, + + getId: function getIdF() { + return myID + }, + + getPageInfo: function getPageInfoF(callback) { + if ('function' === typeof callback) { + onPageInfo = callback + sendMsg(0, 0, 'pageInfo') + } else { + onPageInfo = function() {} + sendMsg(0, 0, 'pageInfoStop') + } + }, + + moveToAnchor: function moveToAnchorF(hash) { + inPageLinks.findTarget(hash) + }, + + reset: function resetF() { + resetIFrame('parentIFrame.reset') + }, + + scrollTo: function scrollToF(x, y) { + sendMsg(y, x, 'scrollTo') // X&Y reversed at sendMsg uses height/width + }, + + scrollToOffset: function scrollToF(x, y) { + sendMsg(y, x, 'scrollToOffset') // X&Y reversed at sendMsg uses height/width + }, + + sendMessage: function sendMessageF(msg, targetOrigin) { + sendMsg(0, 0, 'message', JSON.stringify(msg), targetOrigin) + }, + + setHeightCalculationMethod: function setHeightCalculationMethodF( + heightCalculationMethod + ) { + heightCalcMode = heightCalculationMethod + checkHeightMode() + }, + + setWidthCalculationMethod: function setWidthCalculationMethodF( + widthCalculationMethod + ) { + widthCalcMode = widthCalculationMethod + checkWidthMode() + }, + + setTargetOrigin: function setTargetOriginF(targetOrigin) { + log('Set targetOrigin: ' + targetOrigin) + targetOriginDefault = targetOrigin + }, + + size: function sizeF(customHeight, customWidth) { + var valString = + '' + (customHeight || '') + (customWidth ? ',' + customWidth : '') + sendSize( + 'size', + 'parentIFrame.size(' + valString + ')', + customHeight, + customWidth + ) + } + } + } + + function initInterval() { + if (0 !== interval) { + log('setInterval: ' + interval + 'ms') + intervalTimer = setInterval(function() { + sendSize('interval', 'setInterval: ' + interval) + }, Math.abs(interval)) + } + } + + // Not testable in PhantomJS + /* istanbul ignore next */ + function setupBodyMutationObserver() { + function addImageLoadListners(mutation) { + function addImageLoadListener(element) { + if (false === element.complete) { + log('Attach listeners to ' + element.src) + element.addEventListener('load', imageLoaded, false) + element.addEventListener('error', imageError, false) + elements.push(element) + } + } + + if (mutation.type === 'attributes' && mutation.attributeName === 'src') { + addImageLoadListener(mutation.target) + } else if (mutation.type === 'childList') { + Array.prototype.forEach.call( + mutation.target.querySelectorAll('img'), + addImageLoadListener + ) + } + } + + function removeFromArray(element) { + elements.splice(elements.indexOf(element), 1) + } + + function removeImageLoadListener(element) { + log('Remove listeners from ' + element.src) + element.removeEventListener('load', imageLoaded, false) + element.removeEventListener('error', imageError, false) + removeFromArray(element) + } + + function imageEventTriggered(event, type, typeDesc) { + removeImageLoadListener(event.target) + sendSize(type, typeDesc + ': ' + event.target.src, undefined, undefined) + } + + function imageLoaded(event) { + imageEventTriggered(event, 'imageLoad', 'Image loaded') + } + + function imageError(event) { + imageEventTriggered(event, 'imageLoadFailed', 'Image load failed') + } + + function mutationObserved(mutations) { + sendSize( + 'mutationObserver', + 'mutationObserver: ' + mutations[0].target + ' ' + mutations[0].type + ) + + // Deal with WebKit / Blink asyncing image loading when tags are injected into the page + mutations.forEach(addImageLoadListners) + } + + function createMutationObserver() { + var target = document.querySelector('body'), + config = { + attributes: true, + attributeOldValue: false, + characterData: true, + characterDataOldValue: false, + childList: true, + subtree: true + } + + observer = new MutationObserver(mutationObserved) + + log('Create body MutationObserver') + observer.observe(target, config) + + return observer + } + + var elements = [], + MutationObserver = + window.MutationObserver || window.WebKitMutationObserver, + observer = createMutationObserver() + + return { + disconnect: function() { + if ('disconnect' in observer) { + log('Disconnect body MutationObserver') + observer.disconnect() + elements.forEach(removeImageLoadListener) + } + } + } + } + + function setupMutationObserver() { + var forceIntervalTimer = 0 > interval + + // Not testable in PhantomJS + /* istanbul ignore if */ if ( + window.MutationObserver || + window.WebKitMutationObserver + ) { + if (forceIntervalTimer) { + initInterval() + } else { + bodyObserver = setupBodyMutationObserver() + } + } else { + log('MutationObserver not supported in this browser!') + initInterval() + } + } + + // document.documentElement.offsetHeight is not reliable, so + // we have to jump through hoops to get a better value. + function getComputedStyle(prop, el) { + var retVal = 0 + el = el || document.body // Not testable in phantonJS + + retVal = document.defaultView.getComputedStyle(el, null) + retVal = null !== retVal ? retVal[prop] : 0 + + return parseInt(retVal, base) + } + + function chkEventThottle(timer) { + if (timer > throttledTimer / 2) { + throttledTimer = 2 * timer + log('Event throttle increased to ' + throttledTimer + 'ms') + } + } + + // Idea from https://github.com/guardian/iframe-messenger + function getMaxElement(side, elements) { + var elementsLength = elements.length, + elVal = 0, + maxVal = 0, + Side = capitalizeFirstLetter(side), + timer = getNow() + + for (var i = 0; i < elementsLength; i++) { + elVal = + elements[i].getBoundingClientRect()[side] + + getComputedStyle('margin' + Side, elements[i]) + if (elVal > maxVal) { + maxVal = elVal + } + } + + timer = getNow() - timer + + log('Parsed ' + elementsLength + ' HTML elements') + log('Element position calculated in ' + timer + 'ms') + + chkEventThottle(timer) + + return maxVal + } + + function getAllMeasurements(dimention) { + return [ + dimention.bodyOffset(), + dimention.bodyScroll(), + dimention.documentElementOffset(), + dimention.documentElementScroll() + ] + } + + function getTaggedElements(side, tag) { + function noTaggedElementsFound() { + warn('No tagged elements (' + tag + ') found on page') + return document.querySelectorAll('body *') + } + + var elements = document.querySelectorAll('[' + tag + ']') + + if (0 === elements.length) noTaggedElementsFound() + + return getMaxElement(side, elements) + } + + function getAllElements() { + return document.querySelectorAll('body *') + } + + var getHeight = { + bodyOffset: function getBodyOffsetHeight() { + return ( + document.body.offsetHeight + + getComputedStyle('marginTop') + + getComputedStyle('marginBottom') + ) + }, + + offset: function() { + return getHeight.bodyOffset() // Backwards compatability + }, + + bodyScroll: function getBodyScrollHeight() { + return document.body.scrollHeight + }, + + custom: function getCustomWidth() { + return customCalcMethods.height() + }, + + documentElementOffset: function getDEOffsetHeight() { + return document.documentElement.offsetHeight + }, + + documentElementScroll: function getDEScrollHeight() { + return document.documentElement.scrollHeight + }, + + max: function getMaxHeight() { + return Math.max.apply(null, getAllMeasurements(getHeight)) + }, + + min: function getMinHeight() { + return Math.min.apply(null, getAllMeasurements(getHeight)) + }, + + grow: function growHeight() { + return getHeight.max() // Run max without the forced downsizing + }, + + lowestElement: function getBestHeight() { + return Math.max( + getHeight.bodyOffset() || getHeight.documentElementOffset(), + getMaxElement('bottom', getAllElements()) + ) + }, + + taggedElement: function getTaggedElementsHeight() { + return getTaggedElements('bottom', 'data-iframe-height') + } + }, + getWidth = { + bodyScroll: function getBodyScrollWidth() { + return document.body.scrollWidth + }, + + bodyOffset: function getBodyOffsetWidth() { + return document.body.offsetWidth + }, + + custom: function getCustomWidth() { + return customCalcMethods.width() + }, + + documentElementScroll: function getDEScrollWidth() { + return document.documentElement.scrollWidth + }, + + documentElementOffset: function getDEOffsetWidth() { + return document.documentElement.offsetWidth + }, + + scroll: function getMaxWidth() { + return Math.max(getWidth.bodyScroll(), getWidth.documentElementScroll()) + }, + + max: function getMaxWidth() { + return Math.max.apply(null, getAllMeasurements(getWidth)) + }, + + min: function getMinWidth() { + return Math.min.apply(null, getAllMeasurements(getWidth)) + }, + + rightMostElement: function rightMostElement() { + return getMaxElement('right', getAllElements()) + }, + + taggedElement: function getTaggedElementsWidth() { + return getTaggedElements('right', 'data-iframe-width') + } + } + + function sizeIFrame( + triggerEvent, + triggerEventDesc, + customHeight, + customWidth + ) { + function resizeIFrame() { + height = currentHeight + width = currentWidth + + sendMsg(height, width, triggerEvent) + } + + function isSizeChangeDetected() { + function checkTolarance(a, b) { + var retVal = Math.abs(a - b) <= tolerance + return !retVal + } + + currentHeight = + undefined !== customHeight ? customHeight : getHeight[heightCalcMode]() + currentWidth = + undefined !== customWidth ? customWidth : getWidth[widthCalcMode]() + + return ( + checkTolarance(height, currentHeight) || + (calculateWidth && checkTolarance(width, currentWidth)) + ) + } + + function isForceResizableEvent() { + return !(triggerEvent in { init: 1, interval: 1, size: 1 }) + } + + function isForceResizableCalcMode() { + return ( + heightCalcMode in resetRequiredMethods || + (calculateWidth && widthCalcMode in resetRequiredMethods) + ) + } + + function logIgnored() { + log('No change in size detected') + } + + function checkDownSizing() { + if (isForceResizableEvent() && isForceResizableCalcMode()) { + resetIFrame(triggerEventDesc) + } else if (!(triggerEvent in { interval: 1 })) { + logIgnored() + } + } + + var currentHeight, currentWidth + + if (isSizeChangeDetected() || 'init' === triggerEvent) { + lockTrigger() + resizeIFrame() + } else { + checkDownSizing() + } + } + + var sizeIFrameThrottled = throttle(sizeIFrame) + + function sendSize(triggerEvent, triggerEventDesc, customHeight, customWidth) { + function recordTrigger() { + if (!(triggerEvent in { reset: 1, resetPage: 1, init: 1 })) { + log('Trigger event: ' + triggerEventDesc) + } + } + + function isDoubleFiredEvent() { + return triggerLocked && triggerEvent in doubleEventList + } + + if (!isDoubleFiredEvent()) { + recordTrigger() + if (triggerEvent === 'init') { + sizeIFrame(triggerEvent, triggerEventDesc, customHeight, customWidth) + } else { + sizeIFrameThrottled( + triggerEvent, + triggerEventDesc, + customHeight, + customWidth + ) + } + } else { + log('Trigger event cancelled: ' + triggerEvent) + } + } + + function lockTrigger() { + if (!triggerLocked) { + triggerLocked = true + log('Trigger event lock on') + } + clearTimeout(triggerLockedTimer) + triggerLockedTimer = setTimeout(function() { + triggerLocked = false + log('Trigger event lock off') + log('--') + }, eventCancelTimer) + } + + function triggerReset(triggerEvent) { + height = getHeight[heightCalcMode]() + width = getWidth[widthCalcMode]() + + sendMsg(height, width, triggerEvent) + } + + function resetIFrame(triggerEventDesc) { + var hcm = heightCalcMode + heightCalcMode = heightCalcModeDefault + + log('Reset trigger event: ' + triggerEventDesc) + lockTrigger() + triggerReset('reset') + + heightCalcMode = hcm + } + + function sendMsg(height, width, triggerEvent, msg, targetOrigin) { + function setTargetOrigin() { + if (undefined === targetOrigin) { + targetOrigin = targetOriginDefault + } else { + log('Message targetOrigin: ' + targetOrigin) + } + } + + function sendToParent() { + var size = height + ':' + width, + message = + myID + + ':' + + size + + ':' + + triggerEvent + + (undefined !== msg ? ':' + msg : '') + + log('Sending message to host page (' + message + ')') + target.postMessage(msgID + message, targetOrigin) + } + + if (true === sendPermit) { + setTargetOrigin() + sendToParent() + } + } + + function receiver(event) { + var processRequestFromParent = { + init: function initFromParent() { + initMsg = event.data + target = event.source + + init() + firstRun = false + setTimeout(function() { + initLock = false + }, eventCancelTimer) + }, + + reset: function resetFromParent() { + if (!initLock) { + log('Page size reset by host page') + triggerReset('resetPage') + } else { + log('Page reset ignored by init') + } + }, + + resize: function resizeFromParent() { + sendSize('resizeParent', 'Parent window requested size check') + }, + + moveToAnchor: function moveToAnchorF() { + inPageLinks.findTarget(getData()) + }, + inPageLink: function inPageLinkF() { + this.moveToAnchor() + }, // Backward compatability + + pageInfo: function pageInfoFromParent() { + var msgBody = getData() + log('PageInfoFromParent called from parent: ' + msgBody) + onPageInfo(JSON.parse(msgBody)) + log(' --') + }, + + message: function messageFromParent() { + var msgBody = getData() + + log('onMessage called from parent: ' + msgBody) + // eslint-disable-next-line sonarjs/no-extra-arguments + onMessage(JSON.parse(msgBody)) + log(' --') + } + } + + function isMessageForUs() { + return msgID === ('' + event.data).substr(0, msgIdLen) // ''+ Protects against non-string messages + } + + function getMessageType() { + return event.data.split(']')[1].split(':')[0] + } + + function getData() { + return event.data.substr(event.data.indexOf(':') + 1) + } + + function isMiddleTier() { + return ( + (!(typeof module !== 'undefined' && module.exports) && + 'iFrameResize' in window) || + ('jQuery' in window && 'iFrameResize' in window.jQuery.prototype) + ) + } + + function isInitMsg() { + // Test if this message is from a child below us. This is an ugly test, however, updating + // the message format would break backwards compatibity. + return event.data.split(':')[2] in { true: 1, false: 1 } + } + + function callFromParent() { + var messageType = getMessageType() + + if (messageType in processRequestFromParent) { + processRequestFromParent[messageType]() + } else if (!isMiddleTier() && !isInitMsg()) { + warn('Unexpected message (' + event.data + ')') + } + } + + function processMessage() { + if (false === firstRun) { + callFromParent() + } else if (isInitMsg()) { + processRequestFromParent.init() + } else { + log( + 'Ignored message of type "' + + getMessageType() + + '". Received before initialization.' + ) + } + } + + if (isMessageForUs()) { + processMessage() + } + } + + // Normally the parent kicks things off when it detects the iFrame has loaded. + // If this script is async-loaded, then tell parent page to retry init. + function chkLateLoaded() { + if ('loading' !== document.readyState) { + window.parent.postMessage('[iFrameResizerChild]Ready', '*') + } + } + + addEventListener(window, 'message', receiver) + addEventListener(window, 'readystatechange', chkLateLoaded) + chkLateLoaded() + + +})() diff --git a/iframe-resizer-master_old/js/iframeResizer.contentWindow.map b/iframe-resizer-master_old/js/iframeResizer.contentWindow.map new file mode 100755 index 0000000..c4bfad5 --- /dev/null +++ b/iframe-resizer-master_old/js/iframeResizer.contentWindow.map @@ -0,0 +1 @@ +{"version":3,"sources":["iframeResizer.contentWindow.js"],"names":["undefined","window","autoResize","base","bodyBackground","bodyMargin","bodyMarginStr","bodyObserver","bodyPadding","calculateWidth","doubleEventList","resize","click","eventCancelTimer","firstRun","height","heightCalcModeDefault","heightCalcMode","initLock","initMsg","inPageLinks","interval","intervalTimer","logging","msgID","msgIdLen","length","myID","resetRequiredMethods","max","min","bodyScroll","documentElementScroll","resizeFrom","sendPermit","target","parent","targetOriginDefault","tolerance","triggerLocked","triggerLockedTimer","throttledTimer","width","widthCalcModeDefault","widthCalcMode","win","onMessage","warn","onReady","onPageInfo","customCalcMethods","document","documentElement","offsetHeight","body","scrollWidth","eventHandlersByName","passiveSupported","options","Object","create","passive","get","addEventListener","noop","removeEventListener","error","func","context","args","result","timeout","previous","later","getNow","Date","now","getTime","getHeight","bodyOffset","getComputedStyle","offset","scrollHeight","custom","documentElementOffset","Math","apply","getAllMeasurements","grow","lowestElement","getMaxElement","getAllElements","taggedElement","getTaggedElements","getWidth","offsetWidth","scroll","rightMostElement","sizeIFrameThrottled","sizeIFrame","remaining","this","arguments","clearTimeout","setTimeout","receiver","chkLateLoaded","el","evt","capitalizeFirstLetter","string","charAt","toUpperCase","slice","formatLogMsg","msg","log","console","init","clearFix","strBool","str","data","substr","split","Number","enable","readDataFromParent","location","href","setupCustomCalcMethods","calcMode","calcFunc","iFrameResizer","constructor","JSON","stringify","keys","forEach","depricate","targetOrigin","heightCalculationMethod","widthCalculationMethod","readDataFromPage","setBodyStyle","attr","value","indexOf","chkCSS","setMargin","createElement","style","clear","display","appendChild","checkHeightMode","checkWidthMode","parentIFrame","startEventListeners","stopEventListeners","close","sendMsg","getId","getPageInfo","callback","moveToAnchor","hash","findTarget","reset","resetIFrame","scrollTo","x","y","scrollToOffset","sendMessage","setHeightCalculationMethod","setWidthCalculationMethod","setTargetOrigin","size","customHeight","customWidth","valString","sendSize","getElementPosition","elPosition","getBoundingClientRect","pagePosition","pageXOffset","scrollLeft","pageYOffset","scrollTop","parseInt","left","top","jumpPosition","hashData","decodeURIComponent","getElementById","getElementsByName","checkLocationHash","bindAnchors","Array","prototype","call","querySelectorAll","linkClicked","e","preventDefault","getAttribute","setupInPageLinks","key","splitName","name","manageTriggerEvent","listener","add","eventName","handleEvent","eventType","remove","eventNames","map","method","manageEventListeners","checkCalcMode","calcModeDefault","modes","type","forceIntervalTimer","MutationObserver","WebKitMutationObserver","initInterval","addImageLoadListners","mutation","addImageLoadListener","element","complete","src","imageLoaded","imageError","elements","push","attributeName","removeImageLoadListener","splice","imageEventTriggered","event","typeDesc","mutationObserved","mutations","config","observer","querySelector","attributes","attributeOldValue","characterData","characterDataOldValue","childList","subtree","observe","disconnect","setupBodyMutationObserver","clearInterval","setInterval","abs","prop","retVal","defaultView","side","timer","elementsLength","elVal","maxVal","Side","i","dimention","tag","triggerEvent","triggerEventDesc","currentHeight","currentWidth","checkTolarance","a","b","isSizeChangeDetected","lockTrigger","resetPage","triggerReset","hcm","message","postMessage","processRequestFromParent","source","getData","inPageLink","pageInfo","msgBody","parse","getMessageType","isInitMsg","true","false","callFromParent","messageType","module","exports","jQuery","readyState"],"mappings":";;;;;;;;CAWC,SAAUA,GACT,GAAsB,oBAAXC,OAAX,CAEA,IAAIC,GAAa,EACfC,EAAO,GACPC,EAAiB,GACjBC,EAAa,EACbC,EAAgB,GAChBC,EAAe,KACfC,EAAc,GACdC,GAAiB,EACjBC,EAAkB,CAAEC,OAAQ,EAAGC,MAAO,GACtCC,EAAmB,IACnBC,GAAW,EACXC,EAAS,EACTC,EAAwB,aACxBC,EAAiBD,EACjBE,GAAW,EACXC,EAAU,GACVC,EAAc,GACdC,EAAW,GACXC,EAAgB,KAChBC,GAAU,EACVC,EAAQ,gBACRC,EAAWD,EAAME,OACjBC,EAAO,GACPC,EAAuB,CACrBC,IAAK,EACLC,IAAK,EACLC,WAAY,EACZC,sBAAuB,GAEzBC,EAAa,QACbC,GAAa,EACbC,EAASlC,OAAOmC,OAChBC,EAAsB,IACtBC,EAAY,EACZC,GAAgB,EAChBC,EAAqB,KACrBC,EAAiB,GACjBC,EAAQ,EACRC,EAAuB,SACvBC,EAAgBD,EAChBE,EAAM5C,OACN6C,EAAY,WACVC,GAAK,mCAEPC,EAAU,aACVC,EAAa,aACbC,EAAoB,CAClBnC,OAAQ,WAEN,OADAgC,GAAK,kDACEI,SAASC,gBAAgBC,cAElCX,MAAO,WAEL,OADAK,GAAK,iDACEI,SAASG,KAAKC,cAGzBC,EAAsB,GACtBC,GAAmB,EAIrB,IACE,IAAIC,EAAUC,OAAOC,OACnB,GACA,CACEC,QAAS,CACPC,IAAK,WACHL,GAAmB,MAK3BxD,OAAO8D,iBAAiB,OAAQC,GAAMN,GACtCzD,OAAOgE,oBAAoB,OAAQD,GAAMN,GACzC,MAAOQ,IAkET,IAjDkBC,EACZC,EACFC,EACAC,EACAC,EACAC,EACAC,EA2CAC,EACFC,KAAKC,KACL,WAEE,OAAO,IAAID,MAAOE,WA4vBlBC,EAAY,CACZC,WAAY,WACV,OACE5B,SAASG,KAAKD,aACd2B,GAAiB,aACjBA,GAAiB,iBAIrBC,OAAQ,WACN,OAAOH,EAAUC,cAGnBhD,WAAY,WACV,OAAOoB,SAASG,KAAK4B,cAGvBC,OAAQ,WACN,OAAOjC,EAAkBnC,UAG3BqE,sBAAuB,WACrB,OAAOjC,SAASC,gBAAgBC,cAGlCrB,sBAAuB,WACrB,OAAOmB,SAASC,gBAAgB8B,cAGlCrD,IAAK,WACH,OAAOwD,KAAKxD,IAAIyD,MAAM,KAAMC,GAAmBT,KAGjDhD,IAAK,WACH,OAAOuD,KAAKvD,IAAIwD,MAAM,KAAMC,GAAmBT,KAGjDU,KAAM,WACJ,OAAOV,EAAUjD,OAGnB4D,cAAe,WACb,OAAOJ,KAAKxD,IACViD,EAAUC,cAAgBD,EAAUM,wBACpCM,GAAc,SAAUC,QAI5BC,cAAe,WACb,OAAOC,GAAkB,SAAU,wBAGvCC,EAAW,CACT/D,WAAY,WACV,OAAOoB,SAASG,KAAKC,aAGvBwB,WAAY,WACV,OAAO5B,SAASG,KAAKyC,aAGvBZ,OAAQ,WACN,OAAOjC,EAAkBR,SAG3BV,sBAAuB,WACrB,OAAOmB,SAASC,gBAAgBG,aAGlC6B,sBAAuB,WACrB,OAAOjC,SAASC,gBAAgB2C,aAGlCC,OAAQ,WACN,OAAOX,KAAKxD,IAAIiE,EAAS/D,aAAc+D,EAAS9D,0BAGlDH,IAAK,WACH,OAAOwD,KAAKxD,IAAIyD,MAAM,KAAMC,GAAmBO,KAGjDhE,IAAK,WACH,OAAOuD,KAAKvD,IAAIwD,MAAM,KAAMC,GAAmBO,KAGjDG,iBAAkB,WAChB,OAAOP,GAAc,QAASC,OAGhCC,cAAe,WACb,OAAOC,GAAkB,QAAS,uBAmEpCK,IA98Bc/B,EA88BiBgC,GA18B/B5B,EAAU,KACVC,EAAW,EACXC,EAAQ,WACND,EAAWE,IACXH,EAAU,KACVD,EAASH,EAAKmB,MAAMlB,EAASC,GACxBE,IAEHH,EAAUC,EAAO,OAIhB,WACL,IAAIO,EAAMF,IAELF,IACHA,EAAWI,GAGb,IAAIwB,EAAY3D,GAAkBmC,EAAMJ,GAsBxC,OApBAJ,EAAUiC,KACVhC,EAAOiC,UAEHF,GAAa,GAAiB3D,EAAZ2D,GAChB7B,IACFgC,aAAahC,GACbA,EAAU,MAGZC,EAAWI,EACXN,EAASH,EAAKmB,MAAMlB,EAASC,GAExBE,IAEHH,EAAUC,EAAO,OAETE,IACVA,EAAUiC,WAAW/B,EAAO2B,IAGvB9B,IA4mCXP,GAAiB9D,OAAQ,UAAWwG,IACpC1C,GAAiB9D,OAAQ,mBAAoByG,IAC7CA,KA3rCA,SAAS1C,MAmBT,SAASD,GAAiB4C,EAAIC,EAAKzC,EAAMT,GACvCiD,EAAG5C,iBAAiB6C,EAAKzC,IAAMV,IAAmBC,GAAW,KAG/D,SAASO,GAAoB0C,EAAIC,EAAKzC,GACpCwC,EAAG1C,oBAAoB2C,EAAKzC,GAAM,GAGpC,SAAS0C,GAAsBC,GAC7B,OAAOA,EAAOC,OAAO,GAAGC,cAAgBF,EAAOG,MAAM,GA4DvD,SAASC,GAAaC,GACpB,OAAO3F,EAAQ,IAAMG,EAAO,KAAOwF,EAGrC,SAASC,GAAID,GACP5F,GAAW,iBAAoBtB,OAAOoH,SAExCA,QAAQD,IAAIF,GAAaC,IAI7B,SAASpE,GAAKoE,GACR,iBAAoBlH,OAAOoH,SAE7BA,QAAQtE,KAAKmE,GAAaC,IAI9B,SAASG,KAkVT,IACMC,GAjUN,WACE,SAASC,EAAQC,GACf,MAAO,SAAWA,EAGpB,IAAIC,EAAOvG,EAAQwG,OAAOlG,GAAUmG,MAAM,KAE1CjG,EAAO+F,EAAK,GACZrH,EAAaL,IAAc0H,EAAK,GAAKG,OAAOH,EAAK,IAAMrH,EACvDI,EAAiBT,IAAc0H,EAAK,GAAKF,EAAQE,EAAK,IAAMjH,EAC5Dc,EAAUvB,IAAc0H,EAAK,GAAKF,EAAQE,EAAK,IAAMnG,EACrDF,EAAWrB,IAAc0H,EAAK,GAAKG,OAAOH,EAAK,IAAMrG,EACrDnB,EAAaF,IAAc0H,EAAK,GAAKF,EAAQE,EAAK,IAAMxH,EACxDI,EAAgBoH,EAAK,GACrBzG,EAAiBjB,IAAc0H,EAAK,GAAKA,EAAK,GAAKzG,EACnDb,EAAiBsH,EAAK,GACtBlH,EAAckH,EAAK,IACnBpF,EAAYtC,IAAc0H,EAAK,IAAMG,OAAOH,EAAK,KAAOpF,EACxDlB,EAAY0G,OAAS9H,IAAc0H,EAAK,KAAMF,EAAQE,EAAK,KAC3DzF,EAAajC,IAAc0H,EAAK,IAAMA,EAAK,IAAMzF,EACjDW,EAAgB5C,IAAc0H,EAAK,IAAMA,EAAK,IAAM9E,EArCpDmF,GACAX,GAAI,wBAA0BY,SAASC,KAAO,KAyDhD,WAqBE,SAASC,EAAuBC,EAAUC,GAOxC,MANI,mBAAsBD,IACxBf,GAAI,gBAAkBgB,EAAW,cACjClF,EAAkBkF,GAAYD,EAC9BA,EAAW,UAGNA,EAIP,kBAAmBlI,QACnB0D,SAAW1D,OAAOoI,cAAcC,cA/B5BZ,EAAOzH,OAAOoI,cAElBjB,GAAI,2BAA6BmB,KAAKC,UAAUd,IAChD/D,OAAO8E,KAAKf,GAAMgB,QAAQC,GAAWjB,GAErC5E,EAAY,cAAe4E,EAAOA,EAAK5E,UAAYA,EACnDE,EAAU,YAAa0E,EAAOA,EAAK1E,QAAUA,EAC7CX,EACE,iBAAkBqF,EAAOA,EAAKkB,aAAevG,EAC/CpB,EACE,4BAA6ByG,EACzBA,EAAKmB,wBACL5H,EACN2B,EACE,2BAA4B8E,EACxBA,EAAKoB,uBACLlG,EAkBN3B,EAAiBiH,EAAuBjH,EAAgB,UACxD2B,EAAgBsF,EAAuBtF,EAAe,UApCxD,IACM8E,EAsCNN,GAAI,mCAAqC/E,GAhGzC0G,GAkHF,WAEM/I,IAAcM,IAChBA,EAAgBD,EAAa,MAG/B2I,GAAa,SArBf,SAAgBC,EAAMC,IACf,IAAMA,EAAMC,QAAQ,OACvBpG,GAAK,kCAAoCkG,GACzCC,EAAQ,IAEV,OAAOA,EAgBgBE,CAAO,SAAU9I,IAvHxC+I,GACAL,GAAa,aAAc5I,GAC3B4I,GAAa,UAAWxI,IA6UpB+G,EAAWpE,SAASmG,cAAc,QAC7BC,MAAMC,MAAQ,OAEvBjC,EAASgC,MAAME,QAAU,QACzBlC,EAASgC,MAAMxI,OAAS,IACxBoC,SAASG,KAAKoG,YAAYnC,GAhV1BoC,KACAC,KAsHAzG,SAASC,gBAAgBmG,MAAMxI,OAAS,GACxCoC,SAASG,KAAKiG,MAAMxI,OAAS,GAC7BqG,GAAI,oCAgVJA,GAAI,yBAEJvE,EAAIgH,aAAe,CACjB3J,WAAY,SAAqBS,GAS/B,OARI,IAASA,IAAU,IAAUT,GAC/BA,GAAa,EACb4J,OACS,IAAUnJ,IAAU,IAAST,IACtCA,GAAa,EACb6J,MAGK7J,GAGT8J,MAAO,WACLC,GAAQ,EAAG,EAAG,SA3KlB7C,GAAI,6BACJlF,GAAa,EAIbkF,GAAI,kCACJnD,GAAoBhE,OAAQ,UAAWwG,KAmBnC,IAASvG,GAAY6J,MAsJvBG,MAAO,WACL,OAAOvI,GAGTwI,YAAa,SAAsBC,GAC7B,mBAAsBA,GACxBnH,EAAamH,EACbH,GAAQ,EAAG,EAAG,cAEdhH,EAAa,aACbgH,GAAQ,EAAG,EAAG,kBAIlBI,aAAc,SAAuBC,GACnClJ,EAAYmJ,WAAWD,IAGzBE,MAAO,WACLC,GAAY,uBAGdC,SAAU,SAAmBC,EAAGC,GAC9BX,GAAQW,EAAGD,EAAG,aAGhBE,eAAgB,SAAmBF,EAAGC,GACpCX,GAAQW,EAAGD,EAAG,mBAGhBG,YAAa,SAAsB3D,EAAKyB,GACtCqB,GAAQ,EAAG,EAAG,UAAW1B,KAAKC,UAAUrB,GAAMyB,IAGhDmC,2BAA4B,SAC1BlC,GAEA5H,EAAiB4H,EACjBc,MAGFqB,0BAA2B,SACzBlC,GAEAlG,EAAgBkG,EAChBc,MAGFqB,gBAAiB,SAA0BrC,GACzCxB,GAAI,qBAAuBwB,GAC3BvG,EAAsBuG,GAGxBsC,KAAM,SAAeC,EAAcC,GACjC,IAAIC,GACIF,GAAgB,KAAOC,EAAc,IAAMA,EAAc,IACjEE,GACE,OACA,qBAAuBD,EAAY,IACnCF,EACAC,KArhBNtB,KACA1I,EA8UF,WAcE,SAASmK,EAAmB5E,GAC1B,IAAI6E,EAAa7E,EAAG8E,wBAClBC,EAdK,CACLf,EACE1K,OAAO0L,cAAgB3L,EACnBC,OAAO0L,YACPxI,SAASC,gBAAgBwI,WAC/BhB,EACE3K,OAAO4L,cAAgB7L,EACnBC,OAAO4L,YACP1I,SAASC,gBAAgB0I,WAQjC,MAAO,CACLnB,EAAGoB,SAASP,EAAWQ,KAAM,IAAMD,SAASL,EAAaf,EAAG,IAC5DC,EAAGmB,SAASP,EAAWS,IAAK,IAAMF,SAASL,EAAad,EAAG,KAI/D,SAASL,EAAWvC,GAelB,IAbMkE,EAaF5B,EAAOtC,EAASJ,MAAM,KAAK,IAAMI,EACnCmE,EAAWC,mBAAmB9B,GAC9BnI,EACEgB,SAASkJ,eAAeF,IACxBhJ,SAASmJ,kBAAkBH,GAAU,GAErCnM,IAAcmC,GAnBZ+J,EAAeX,EAoBNpJ,GAlBbiF,GACE,4BACEkD,EACA,WACA4B,EAAavB,EACb,OACAuB,EAAatB,GAEjBX,GAAQiC,EAAatB,EAAGsB,EAAavB,EAAG,oBAYxCvD,GACE,kBACEkD,EACA,+CAEJL,GAAQ,EAAG,EAAG,aAAc,IAAMK,IAItC,SAASiC,IACH,KAAOvE,SAASsC,MAAQ,MAAQtC,SAASsC,MAC3CC,EAAWvC,SAASC,MAIxB,SAASuE,IAcPC,MAAMC,UAAUhE,QAAQiE,KACtBxJ,SAASyJ,iBAAiB,gBAd5B,SAAmBjG,GACjB,SAASkG,EAAYC,GACnBA,EAAEC,iBAGFxC,EAAWlE,KAAK2G,aAAa,SAG3B,MAAQrG,EAAGqG,aAAa,SAC1BjJ,GAAiB4C,EAAI,QAASkG,KAiChCzL,EAAY0G,OAZV2E,MAAMC,UAAUhE,SAAWvF,SAASyJ,kBACtCxF,GAAI,qCACJoF,IAZFzI,GAAiB9D,OAAQ,aAAcsM,GAKvC/F,WAAW+F,EAAmB1L,IAW5BkC,GACE,2FAQJqE,GAAI,+BAGN,MAAO,CACLmD,WAAYA,GA/bA0C,GACd3B,GAAS,OAAQ,+BACjBtI,IA0BF,SAAS2F,GAAUuE,GACjB,IAAIC,EAAYD,EAAItF,MAAM,YAE1B,GAAyB,IAArBuF,EAAUzL,OAAc,CAC1B,IAAI0L,EACF,KAAOD,EAAU,GAAGpG,OAAO,GAAGC,cAAgBmG,EAAU,GAAGlG,MAAM,GACnEZ,KAAK+G,GAAQ/G,KAAK6G,UACX7G,KAAK6G,GACZnK,GACE,gBACEmK,EACA,uBACAE,EACA,iEAwDR,SAASpE,GAAaC,EAAMC,GACtBlJ,IAAckJ,GAAS,KAAOA,GAAS,SAAWA,GAEpD9B,GAAI,QAAU6B,EAAO,aADrB9F,SAASG,KAAKiG,MAAMN,GAAQC,GACe,KAmB/C,SAASmE,GAAmB3J,GAC1B,IAAI4J,EAAW,CACbC,IAAK,SAASC,GACZ,SAASC,IACPnC,GAAS5H,EAAQ8J,UAAW9J,EAAQgK,WAGtClK,EAAoBgK,GAAaC,EAEjC1J,GAAiB9D,OAAQuN,EAAWC,EAAa,CAAE5J,SAAS,KAE9D8J,OAAQ,SAASH,GACf,IAAIC,EAAcjK,EAAoBgK,UAC/BhK,EAAoBgK,GAE3BvJ,GAAoBhE,OAAQuN,EAAWC,KAIvC/J,EAAQkK,YAAcnB,MAAMC,UAAUmB,KACxCnK,EAAQ8J,UAAY9J,EAAQkK,WAAW,GACvClK,EAAQkK,WAAWC,IAAIP,EAAS5J,EAAQoK,UAExCR,EAAS5J,EAAQoK,QAAQpK,EAAQ8J,WAGnCpG,GACEP,GAAsBnD,EAAQoK,QAC5B,oBACApK,EAAQgK,WAId,SAASK,GAAqBD,GAC5BT,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,kBACXE,WAAY,CAAC,iBAAkB,0BAEjCP,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,sBACXE,WAAY,CAAC,qBAAsB,8BAErCP,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,gBACXE,WAAY,CAAC,eAAgB,wBAE/BP,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,QACXF,UAAW,UAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,WACXF,UAAW,YAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,aACXF,UAAW,cAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,qBACXF,UAAW,sBAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,QACXF,UAAW,CAAC,aAAc,iBAE5BH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,qBACXF,UAAW,qBAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,cACXF,UAAW,eAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,YACXF,UAAW,aAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,eACXF,UAAW,gBAEbH,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,mBACXE,WAAY,CACV,kBACA,wBACA,oBACA,mBACA,sBAGJP,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,uBACXE,WAAY,CACV,sBACA,4BACA,wBACA,uBACA,0BAGJP,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,iBACXE,WAAY,CACV,gBACA,sBACA,kBACA,iBACA,oBAGA,UAAY3L,GACdoL,GAAmB,CACjBS,OAAQA,EACRJ,UAAW,iBACXF,UAAW,WAKjB,SAASQ,GAAc7F,EAAU8F,EAAiBC,EAAOC,GAWvD,OAVIF,IAAoB9F,IAChBA,KAAY+F,IAChBnL,GACEoF,EAAW,8BAAgCgG,EAAO,sBAEpDhG,EAAW8F,GAEb7G,GAAI+G,EAAO,+BAAiChG,EAAW,MAGlDA,EAGT,SAASwB,KACP1I,EAAiB+M,GACf/M,EACAD,EACA8D,EACA,UAIJ,SAAS8E,KACPhH,EAAgBoL,GACdpL,EACAD,EACAmD,EACA,SAIJ,SAASgE,KAgWT,IACMsE,GAhWA,IAASlO,GACX6N,GAAqB,OA+VnBK,EAAyB/M,EAAJ,EAIvBpB,OAAOoO,kBACPpO,OAAOqO,uBAEHF,EACFG,KAEAhO,EArGN,WACE,SAASiO,EAAqBC,GAC5B,SAASC,EAAqBC,IACxB,IAAUA,EAAQC,WACpBxH,GAAI,uBAAyBuH,EAAQE,KACrCF,EAAQ5K,iBAAiB,OAAQ+K,GAAa,GAC9CH,EAAQ5K,iBAAiB,QAASgL,GAAY,GAC9CC,EAASC,KAAKN,IAII,eAAlBF,EAASN,MAAoD,QAA3BM,EAASS,cAC7CR,EAAqBD,EAAStM,QACH,cAAlBsM,EAASN,MAClB1B,MAAMC,UAAUhE,QAAQiE,KACtB8B,EAAStM,OAAOyK,iBAAiB,OACjC8B,GASN,SAASS,EAAwBR,GAJjC,IAAyBA,EAKvBvH,GAAI,yBAA2BuH,EAAQE,KACvCF,EAAQ1K,oBAAoB,OAAQ6K,GAAa,GACjDH,EAAQ1K,oBAAoB,QAAS8K,GAAY,GAP1BJ,EAQPA,EAPhBK,EAASI,OAAOJ,EAAS7F,QAAQwF,GAAU,GAU7C,SAASU,EAAoBC,EAAOnB,EAAMoB,GACxCJ,EAAwBG,EAAMnN,QAC9BmJ,GAAS6C,EAAMoB,EAAW,KAAOD,EAAMnN,OAAO0M,IAAK7O,EAAWA,GAGhE,SAAS8O,EAAYQ,GACnBD,EAAoBC,EAAO,YAAa,gBAG1C,SAASP,EAAWO,GAClBD,EAAoBC,EAAO,kBAAmB,qBAGhD,SAASE,EAAiBC,GACxBnE,GACE,mBACA,qBAAuBmE,EAAU,GAAGtN,OAAS,IAAMsN,EAAU,GAAGtB,MAIlEsB,EAAU/G,QAAQ8F,GAsBpB,IAlBMrM,EACFuN,EAiBAV,EAAW,GACbX,EACEpO,OAAOoO,kBAAoBpO,OAAOqO,uBACpCqB,GArBIxN,EAASgB,SAASyM,cAAc,QAClCF,EAAS,CACPG,YAAY,EACZC,mBAAmB,EACnBC,eAAe,EACfC,uBAAuB,EACvBC,WAAW,EACXC,SAAS,GAGbP,EAAW,IAAItB,EAAiBmB,GAEhCpI,GAAI,gCACJuI,EAASQ,QAAQhO,EAAQuN,GAElBC,GAQT,MAAO,CACLS,WAAY,WACN,eAAgBT,IAClBvI,GAAI,oCACJuI,EAASS,aACTpB,EAAStG,QAAQyG,MAiBJkB,IAGjBjJ,GAAI,mDACJmH,OA1WAnH,GAAI,wBAqBR,SAAS2C,KACPgE,GAAqB,UAPjB,OAASxN,GAEXA,EAAa6P,aAOfE,cAAchP,GA8NhB,SAASiN,KACH,IAAMlN,IACR+F,GAAI,gBAAkB/F,EAAW,MACjCC,EAAgBiP,YAAY,WAC1BjF,GAAS,WAAY,gBAAkBjK,IACtCgE,KAAKmL,IAAInP,KAqHhB,SAAS2D,GAAiByL,EAAM9J,GAC9B,IAAI+J,EAAS,EAMb,OALA/J,EAAKA,GAAMxD,SAASG,KAGpBoN,EAAS,QADTA,EAASvN,SAASwN,YAAY3L,iBAAiB2B,EAAI,OACxB+J,EAAOD,GAAQ,EAEnC1E,SAAS2E,EAAQvQ,GAW1B,SAASuF,GAAckL,EAAM5B,GAO3B,IANA,IATuB6B,EASnBC,EAAiB9B,EAAStN,OAC5BqP,EAAQ,EACRC,EAAS,EACTC,EAAOpK,GAAsB+J,GAC7BC,EAAQnM,IAEDwM,EAAI,EAAGA,EAAIJ,EAAgBI,IAItBF,GAHZD,EACE/B,EAASkC,GAAGzF,wBAAwBmF,GACpC5L,GAAiB,SAAWiM,EAAMjC,EAASkC,OAE3CF,EAASD,GAWb,OAPAF,EAAQnM,IAAWmM,EAEnBzJ,GAAI,UAAY0J,EAAiB,kBACjC1J,GAAI,kCAAoCyJ,EAAQ,MA1BpCpO,EAAiB,GADNoO,EA6BPA,IA1BdzJ,GAAI,gCADJ3E,EAAiB,EAAIoO,GACiC,MA4BjDG,EAGT,SAASzL,GAAmB4L,GAC1B,MAAO,CACLA,EAAUpM,aACVoM,EAAUpP,aACVoP,EAAU/L,wBACV+L,EAAUnP,yBAId,SAAS6D,GAAkB+K,EAAMQ,GAM/B,IAAIpC,EAAW7L,SAASyJ,iBAAiB,IAAMwE,EAAM,KAIrD,OAFI,IAAMpC,EAAStN,SANjBqB,GAAK,uBAAyBqO,EAAM,mBAC7BjO,SAASyJ,iBAAiB,WAO5BlH,GAAckL,EAAM5B,GAG7B,SAASrJ,KACP,OAAOxC,SAASyJ,iBAAiB,UAiGnC,SAASzG,GACPkL,EACAC,EACAnG,EACAC,GAiDA,IAAImG,EAAeC,GAxCnB,WACE,SAASC,EAAeC,EAAGC,GAEzB,QADatM,KAAKmL,IAAIkB,EAAIC,IAAMrP,GASlC,OALAiP,EACEvR,IAAcmL,EAAeA,EAAerG,EAAU7D,KACxDuQ,EACExR,IAAcoL,EAAcA,EAActF,EAASlD,KAGnD6O,EAAe1Q,EAAQwQ,IACtB9Q,GAAkBgR,EAAe/O,EAAO8O,GA6BzCI,IAA0B,SAAWP,EAxB9BA,IAAgB,CAAE/J,KAAM,EAAGjG,SAAU,EAAG6J,KAAM,MAKrDjK,KAAkBW,GACjBnB,GAAkBmC,KAAiBhB,GAWzByP,IAAgB,CAAEhQ,SAAU,IANzC+F,GAAI,8BAKFqD,GAAY6G,IASdO,KA9CA5H,GAHAlJ,EAASwQ,EACT7O,EAAQ8O,EAEeH,IAuD3B,SAAS/F,GAAS+F,EAAcC,EAAkBnG,EAAcC,GAQrD7I,GAAiB8O,KAAgB3Q,EAgBxC0G,GAAI,4BAA8BiK,IAtB5BA,IAAgB,CAAE7G,MAAO,EAAGsH,UAAW,EAAGxK,KAAM,IACpDF,GAAI,kBAAoBkK,GAUL,SAAjBD,EACFlL,GAAWkL,EAAcC,EAAkBnG,EAAcC,GAEzDlF,GACEmL,EACAC,EACAnG,EACAC,IAQR,SAASyG,KACFtP,IACHA,GAAgB,EAChB6E,GAAI,0BAENb,aAAa/D,GACbA,EAAqBgE,WAAW,WAC9BjE,GAAgB,EAChB6E,GAAI,0BACJA,GAAI,OACHvG,GAGL,SAASkR,GAAaV,GACpBtQ,EAAS+D,EAAU7D,KACnByB,EAAQoD,EAASlD,KAEjBqH,GAAQlJ,EAAQ2B,EAAO2O,GAGzB,SAAS5G,GAAY6G,GACnB,IAAIU,EAAM/Q,EACVA,EAAiBD,EAEjBoG,GAAI,wBAA0BkK,GAC9BO,KACAE,GAAa,SAEb9Q,EAAiB+Q,EAGnB,SAAS/H,GAAQlJ,EAAQ2B,EAAO2O,EAAclK,EAAKyB,GASjD,IAEIqJ,GAYA,IAAS/P,IArBPlC,IAAc4I,EAChBA,EAAevG,EAEf+E,GAAI,yBAA2BwB,GAcjCxB,GAAI,kCARF6K,EACEtQ,EACA,IAHOZ,EAAS,IAAM2B,EAKtB,IACA2O,GACCrR,IAAcmH,EAAM,IAAMA,EAAM,KAEY,KACjDhF,EAAO+P,YAAY1Q,EAAQyQ,EAASrJ,IASxC,SAASnC,GAAS6I,GAChB,IAAI6C,EAA2B,CAC7B7K,KAAM,WACJnG,EAAUmO,EAAM5H,KAChBvF,EAASmN,EAAM8C,OAEf9K,KACAxG,GAAW,EACX0F,WAAW,WACTtF,GAAW,GACVL,IAGL2J,MAAO,WACAtJ,EAIHkG,GAAI,+BAHJA,GAAI,gCACJ2K,GAAa,eAMjBpR,OAAQ,WACN2K,GAAS,eAAgB,uCAG3BjB,aAAc,WACZjJ,EAAYmJ,WAAW8H,MAEzBC,WAAY,WACVjM,KAAKgE,gBAGPkI,SAAU,WACR,IAAIC,EAAUH,IACdjL,GAAI,0CAA4CoL,GAChDvP,EAAWsF,KAAKkK,MAAMD,IACtBpL,GAAI,QAGN6K,QAAS,WACP,IAAIO,EAAUH,IAEdjL,GAAI,iCAAmCoL,GAEvC1P,EAAUyF,KAAKkK,MAAMD,IACrBpL,GAAI,SAQR,SAASsL,IACP,OAAOpD,EAAM5H,KAAKE,MAAM,KAAK,GAAGA,MAAM,KAAK,GAG7C,SAASyK,IACP,OAAO/C,EAAM5H,KAAKC,OAAO2H,EAAM5H,KAAKyB,QAAQ,KAAO,GAWrD,SAASwJ,IAGP,OAAOrD,EAAM5H,KAAKE,MAAM,KAAK,IAAM,CAAEgL,KAAM,EAAGC,MAAO,GAGvD,SAASC,IACP,IAAIC,EAAcL,IAEdK,KAAeZ,EACjBA,EAAyBY,MAhBJ,oBAAXC,SAA0BA,OAAOC,UACzC,iBAAkBhT,QACnB,WAAYA,QAAU,iBAAkBA,OAAOiT,OAAOxG,WAe1BiG,KAC7B5P,GAAK,uBAAyBuM,EAAM5H,KAAO,KA/BtClG,KAAW,GAAK8N,EAAM5H,MAAMC,OAAO,EAAGlG,MAoCzC,IAAUX,EACZgS,IACSH,IACTR,EAAyB7K,OAEzBF,GACE,4BACEsL,IACA,uCAYV,SAAShM,KACH,YAAcvD,SAASgQ,YACzBlT,OAAOmC,OAAO8P,YAAY,4BAA6B,MAnvC5D","file":"iframeResizer.contentWindow.min.js"} \ No newline at end of file diff --git a/iframe-resizer-master_old/js/iframeResizer.contentWindow.min.js b/iframe-resizer-master_old/js/iframeResizer.contentWindow.min.js new file mode 100755 index 0000000..c4dcf7d --- /dev/null +++ b/iframe-resizer-master_old/js/iframeResizer.contentWindow.min.js @@ -0,0 +1,10 @@ +/*! iFrame Resizer (iframeSizer.contentWindow.min.js) - v4.1.1 - 2019-04-10 + * Desc: Include this file in any page being loaded into an iframe + * to force the iframe to resize to the content size. + * Requires: iframeResizer.min.js on host page. + * Copyright: (c) 2019 David J. Bradshaw - dave@bradshaw.net + * License: MIT + */ + +!function(l){if("undefined"!=typeof window){var n=!0,o=10,i="",r=0,a="",t=null,u="",c=!1,s={resize:1,click:1},d=128,f=!0,m=1,h="bodyOffset",g=h,p=!0,v="",y={},b=32,e=null,w=!1,T="[iFrameSizer]",E=T.length,O="",S={max:1,min:1,bodyScroll:1,documentElementScroll:1},M="child",I=!0,N=window.parent,A="*",C=0,k=!1,z=null,R=16,x=1,L="scroll",F=L,P=window,D=function(){ue("onMessage function not defined")},j=function(){},q=function(){},H={height:function(){return ue("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ue("Custom width calculation function not defined"),document.body.scrollWidth}},W={},B=!1;try{var U=Object.create({},{passive:{get:function(){B=!0}}});window.addEventListener("test",te,U),window.removeEventListener("test",te,U)}catch(e){}var J,V,K,Q,X,Y,G,Z=Date.now||function(){return(new Date).getTime()},$={bodyOffset:function(){return document.body.offsetHeight+be("marginTop")+be("marginBottom")},offset:function(){return $.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return H.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,Te($))},min:function(){return Math.min.apply(null,Te($))},grow:function(){return $.max()},lowestElement:function(){return Math.max($.bodyOffset()||$.documentElementOffset(),we("bottom",Oe()))},taggedElement:function(){return Ee("bottom","data-iframe-height")}},_={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return H.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(_.bodyScroll(),_.documentElementScroll())},max:function(){return Math.max.apply(null,Te(_))},min:function(){return Math.min.apply(null,Te(_))},rightMostElement:function(){return we("right",Oe())},taggedElement:function(){return Ee("right","data-iframe-width")}},ee=(J=Se,X=null,Y=0,G=function(){Y=Z(),X=null,Q=J.apply(V,K),X||(V=K=null)},function(){var e=Z();Y||(Y=e);var t=R-(e-Y);return V=this,K=arguments,t<=0||R max) { + size = max + log(iframeId, 'Set ' + dimension + ' to max value') + } + + messageData[dimension] = '' + size + } + + function isMessageFromIFrame() { + function checkAllowedOrigin() { + function checkList() { + var i = 0, + retCode = false + + log( + iframeId, + 'Checking connection is from allowed list of origins: ' + + checkOrigin + ) + + for (; i < checkOrigin.length; i++) { + if (checkOrigin[i] === origin) { + retCode = true + break + } + } + return retCode + } + + function checkSingle() { + var remoteHost = settings[iframeId] && settings[iframeId].remoteHost + log(iframeId, 'Checking connection is from: ' + remoteHost) + return origin === remoteHost + } + + return checkOrigin.constructor === Array ? checkList() : checkSingle() + } + + var origin = event.origin, + checkOrigin = settings[iframeId] && settings[iframeId].checkOrigin + + if (checkOrigin && '' + origin !== 'null' && !checkAllowedOrigin()) { + throw new Error( + 'Unexpected message received from: ' + + origin + + ' for ' + + messageData.iframe.id + + '. Message was: ' + + event.data + + '. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.' + ) + } + + return true + } + + function isMessageForUs() { + return ( + msgId === ('' + msg).substr(0, msgIdLen) && + msg.substr(msgIdLen).split(':')[0] in settings + ) // ''+Protects against non-string msg + } + + function isMessageFromMetaParent() { + // Test if this message is from a parent above us. This is an ugly test, however, updating + // the message format would break backwards compatibity. + var retCode = messageData.type in { true: 1, false: 1, undefined: 1 } + + if (retCode) { + log(iframeId, 'Ignoring init message from meta parent page') + } + + return retCode + } + + function getMsgBody(offset) { + return msg.substr(msg.indexOf(':') + msgHeaderLen + offset) + } + + function forwardMsgFromIFrame(msgBody) { + log( + iframeId, + 'onMessage passed: {iframe: ' + + messageData.iframe.id + + ', message: ' + + msgBody + + '}' + ) + on('onMessage', { + iframe: messageData.iframe, + message: JSON.parse(msgBody) + }) + log(iframeId, '--') + } + + function getPageInfo() { + var bodyPosition = document.body.getBoundingClientRect(), + iFramePosition = messageData.iframe.getBoundingClientRect() + + return JSON.stringify({ + iframeHeight: iFramePosition.height, + iframeWidth: iFramePosition.width, + clientHeight: Math.max( + document.documentElement.clientHeight, + window.innerHeight || 0 + ), + clientWidth: Math.max( + document.documentElement.clientWidth, + window.innerWidth || 0 + ), + offsetTop: parseInt(iFramePosition.top - bodyPosition.top, 10), + offsetLeft: parseInt(iFramePosition.left - bodyPosition.left, 10), + scrollTop: window.pageYOffset, + scrollLeft: window.pageXOffset, + documentHeight: document.documentElement.clientHeight, + documentWidth: document.documentElement.clientWidth, + windowHeight: window.innerHeight, + windowWidth: window.innerWidth + }) + } + + function sendPageInfoToIframe(iframe, iframeId) { + function debouncedTrigger() { + trigger('Send Page Info', 'pageInfo:' + getPageInfo(), iframe, iframeId) + } + debounceFrameEvents(debouncedTrigger, 32, iframeId) + } + + function startPageInfoMonitor() { + function setListener(type, func) { + function sendPageInfo() { + if (settings[id]) { + sendPageInfoToIframe(settings[id].iframe, id) + } else { + stop() + } + } + + ;['scroll', 'resize'].forEach(function(evt) { + log(id, type + evt + ' listener for sendPageInfo') + func(window, evt, sendPageInfo) + }) + } + + function stop() { + setListener('Remove ', removeEventListener) + } + + function start() { + setListener('Add ', addEventListener) + } + + var id = iframeId // Create locally scoped copy of iFrame ID + + start() + + if (settings[id]) { + settings[id].stopPageInfo = stop + } + } + + function stopPageInfoMonitor() { + if (settings[iframeId] && settings[iframeId].stopPageInfo) { + settings[iframeId].stopPageInfo() + delete settings[iframeId].stopPageInfo + } + } + + function checkIFrameExists() { + var retBool = true + + if (null === messageData.iframe) { + warn(iframeId, 'IFrame (' + messageData.id + ') not found') + retBool = false + } + return retBool + } + + function getElementPosition(target) { + var iFramePosition = target.getBoundingClientRect() + + getPagePosition(iframeId) + + return { + x: Math.floor(Number(iFramePosition.left) + Number(pagePosition.x)), + y: Math.floor(Number(iFramePosition.top) + Number(pagePosition.y)) + } + } + + function scrollRequestFromChild(addOffset) { + /* istanbul ignore next */ // Not testable in Karma + function reposition() { + pagePosition = newPosition + scrollTo() + log(iframeId, '--') + } + + function calcOffset() { + return { + x: Number(messageData.width) + offset.x, + y: Number(messageData.height) + offset.y + } + } + + function scrollParent() { + if (window.parentIFrame) { + window.parentIFrame['scrollTo' + (addOffset ? 'Offset' : '')]( + newPosition.x, + newPosition.y + ) + } else { + warn( + iframeId, + 'Unable to scroll to requested position, window.parentIFrame not found' + ) + } + } + + var offset = addOffset + ? getElementPosition(messageData.iframe) + : { x: 0, y: 0 }, + newPosition = calcOffset() + + log( + iframeId, + 'Reposition requested from iFrame (offset x:' + + offset.x + + ' y:' + + offset.y + + ')' + ) + + if (window.top !== window.self) { + scrollParent() + } else { + reposition() + } + } + + function scrollTo() { + if (false !== on('onScroll', pagePosition)) { + setPagePosition(iframeId) + } else { + unsetPagePosition() + } + } + + function findTarget(location) { + function jumpToTarget() { + var jumpPosition = getElementPosition(target) + + log( + iframeId, + 'Moving to in page link (#' + + hash + + ') at x: ' + + jumpPosition.x + + ' y: ' + + jumpPosition.y + ) + pagePosition = { + x: jumpPosition.x, + y: jumpPosition.y + } + + scrollTo() + log(iframeId, '--') + } + + function jumpToParent() { + if (window.parentIFrame) { + window.parentIFrame.moveToAnchor(hash) + } else { + log( + iframeId, + 'In page link #' + + hash + + ' not found and window.parentIFrame not found' + ) + } + } + + var hash = location.split('#')[1] || '', + hashData = decodeURIComponent(hash), + target = + document.getElementById(hashData) || + document.getElementsByName(hashData)[0] + + if (target) { + jumpToTarget() + } else if (window.top !== window.self) { + jumpToParent() + } else { + log(iframeId, 'In page link #' + hash + ' not found') + } + } + + function on(funcName, val) { + return chkEvent(iframeId, funcName, val) + } + + function actionMsg() { + if (settings[iframeId] && settings[iframeId].firstRun) firstRun() + + switch (messageData.type) { + case 'close': + if (settings[iframeId].closeRequeston) + chkEvent(iframeId, 'onCloseRequest', settings[iframeId].iframe) + else closeIFrame(messageData.iframe) + break + + case 'message': + forwardMsgFromIFrame(getMsgBody(6)) + break + + case 'scrollTo': + scrollRequestFromChild(false) + break + + case 'scrollToOffset': + scrollRequestFromChild(true) + break + + case 'pageInfo': + sendPageInfoToIframe( + settings[iframeId] && settings[iframeId].iframe, + iframeId + ) + startPageInfoMonitor() + break + + case 'pageInfoStop': + stopPageInfoMonitor() + break + + case 'inPageLink': + findTarget(getMsgBody(9)) + break + + case 'reset': + resetIFrame(messageData) + break + + case 'init': + resizeIFrame() + on('onInit', messageData.iframe) + break + + default: + resizeIFrame() + } + } + + function hasSettings(iframeId) { + var retBool = true + + if (!settings[iframeId]) { + retBool = false + warn( + messageData.type + + ' No settings for ' + + iframeId + + '. Message was: ' + + msg + ) + } + + return retBool + } + + function iFrameReadyMsgReceived() { + // eslint-disable-next-line no-restricted-syntax, guard-for-in + for (var iframeId in settings) { + trigger( + 'iFrame requested init', + createOutgoingMsg(iframeId), + document.getElementById(iframeId), + iframeId + ) + } + } + + function firstRun() { + if (settings[iframeId]) { + settings[iframeId].firstRun = false + } + } + + var msg = event.data, + messageData = {}, + iframeId = null + + if ('[iFrameResizerChild]Ready' === msg) { + iFrameReadyMsgReceived() + } else if (isMessageForUs()) { + messageData = processMsg() + iframeId = messageData.id + if (settings[iframeId]) { + settings[iframeId].loaded = true + } + + if (!isMessageFromMetaParent() && hasSettings(iframeId)) { + log(iframeId, 'Received: ' + msg) + + if (checkIFrameExists() && isMessageFromIFrame()) { + actionMsg() + } + } + } else { + info(iframeId, 'Ignored: ' + msg) + } + } + + function chkEvent(iframeId, funcName, val) { + var func = null, + retVal = null + + if (settings[iframeId]) { + func = settings[iframeId][funcName] + + if ('function' === typeof func) { + retVal = func(val) + } else { + throw new TypeError( + funcName + ' on iFrame[' + iframeId + '] is not a function' + ) + } + } + + return retVal + } + + function removeIframeListeners(iframe) { + var iframeId = iframe.id + delete settings[iframeId] + } + + function closeIFrame(iframe) { + var iframeId = iframe.id + log(iframeId, 'Removing iFrame: ' + iframeId) + + try { + // Catch race condition error with React + if (iframe.parentNode) { + iframe.parentNode.removeChild(iframe) + } + } catch (error) { + warn(error) + } + + chkEvent(iframeId, 'onClosed', iframeId) + log(iframeId, '--') + removeIframeListeners(iframe) + } + + function getPagePosition(iframeId) { + if (null === pagePosition) { + pagePosition = { + x: + window.pageXOffset !== undefined + ? window.pageXOffset + : document.documentElement.scrollLeft, + y: + window.pageYOffset !== undefined + ? window.pageYOffset + : document.documentElement.scrollTop + } + log( + iframeId, + 'Get page position: ' + pagePosition.x + ',' + pagePosition.y + ) + } + } + + function setPagePosition(iframeId) { + if (null !== pagePosition) { + window.scrollTo(pagePosition.x, pagePosition.y) + log( + iframeId, + 'Set page position: ' + pagePosition.x + ',' + pagePosition.y + ) + unsetPagePosition() + } + } + + function unsetPagePosition() { + pagePosition = null + } + + function resetIFrame(messageData) { + function reset() { + setSize(messageData) + trigger('reset', 'reset', messageData.iframe, messageData.id) + } + + log( + messageData.id, + 'Size reset requested by ' + + ('init' === messageData.type ? 'host page' : 'iFrame') + ) + getPagePosition(messageData.id) + syncResize(reset, messageData, 'reset') + } + + function setSize(messageData) { + function setDimension(dimension) { + if (!messageData.id) { + log('undefined', 'messageData id not set') + return + } + messageData.iframe.style[dimension] = messageData[dimension] + 'px' + log( + messageData.id, + 'IFrame (' + + iframeId + + ') ' + + dimension + + ' set to ' + + messageData[dimension] + + 'px' + ) + } + + function chkZero(dimension) { + // FireFox sets dimension of hidden iFrames to zero. + // So if we detect that set up an event to check for + // when iFrame becomes visible. + + /* istanbul ignore next */ // Not testable in PhantomJS + if (!hiddenCheckEnabled && '0' === messageData[dimension]) { + hiddenCheckEnabled = true + log(iframeId, 'Hidden iFrame detected, creating visibility listener') + fixHiddenIFrames() + } + } + + function processDimension(dimension) { + setDimension(dimension) + chkZero(dimension) + } + + var iframeId = messageData.iframe.id + + if (settings[iframeId]) { + if (settings[iframeId].sizeHeight) { + processDimension('height') + } + if (settings[iframeId].sizeWidth) { + processDimension('width') + } + } + } + + function syncResize(func, messageData, doNotSync) { + /* istanbul ignore if */ // Not testable in PhantomJS + if (doNotSync !== messageData.type && requestAnimationFrame) { + log(messageData.id, 'Requesting animation frame') + requestAnimationFrame(func) + } else { + func() + } + } + + function trigger(calleeMsg, msg, iframe, id, noResponseWarning) { + function postMessageToIFrame() { + var target = settings[id] && settings[id].targetOrigin + log( + id, + '[' + + calleeMsg + + '] Sending msg to iframe[' + + id + + '] (' + + msg + + ') targetOrigin: ' + + target + ) + iframe.contentWindow.postMessage(msgId + msg, target) + } + + function iFrameNotFound() { + warn(id, '[' + calleeMsg + '] IFrame(' + id + ') not found') + } + + function chkAndSend() { + if ( + iframe && + 'contentWindow' in iframe && + null !== iframe.contentWindow + ) { + // Null test for PhantomJS + postMessageToIFrame() + } else { + iFrameNotFound() + } + } + + function warnOnNoResponse() { + function warning() { + if (settings[id] && !settings[id].loaded && !errorShown) { + errorShown = true + warn( + id, + 'IFrame has not responded within ' + + settings[id].warningTimeout / 1000 + + ' seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.' + ) + } + } + + if ( + !!noResponseWarning && + settings[id] && + !!settings[id].warningTimeout + ) { + settings[id].msgTimeout = setTimeout( + warning, + settings[id].warningTimeout + ) + } + } + + var errorShown = false + + id = id || iframe.id + + if (settings[id]) { + chkAndSend() + warnOnNoResponse() + } + } + + function createOutgoingMsg(iframeId) { + return ( + iframeId + + ':' + + settings[iframeId].bodyMarginV1 + + ':' + + settings[iframeId].sizeWidth + + ':' + + settings[iframeId].log + + ':' + + settings[iframeId].interval + + ':' + + settings[iframeId].enablePublicMethods + + ':' + + settings[iframeId].autoResize + + ':' + + settings[iframeId].bodyMargin + + ':' + + settings[iframeId].heightCalculationMethod + + ':' + + settings[iframeId].bodyBackground + + ':' + + settings[iframeId].bodyPadding + + ':' + + settings[iframeId].tolerance + + ':' + + settings[iframeId].inPageLinks + + ':' + + settings[iframeId].resizeFrom + + ':' + + settings[iframeId].widthCalculationMethod + ) + } + + function setupIFrame(iframe, options) { + function setLimits() { + function addStyle(style) { + if ( + Infinity !== settings[iframeId][style] && + 0 !== settings[iframeId][style] + ) { + iframe.style[style] = settings[iframeId][style] + 'px' + log( + iframeId, + 'Set ' + style + ' = ' + settings[iframeId][style] + 'px' + ) + } + } + + function chkMinMax(dimension) { + if ( + settings[iframeId]['min' + dimension] > + settings[iframeId]['max' + dimension] + ) { + throw new Error( + 'Value for min' + + dimension + + ' can not be greater than max' + + dimension + ) + } + } + + chkMinMax('Height') + chkMinMax('Width') + + addStyle('maxHeight') + addStyle('minHeight') + addStyle('maxWidth') + addStyle('minWidth') + } + + function newId() { + var id = (options && options.id) || defaults.id + count++ + if (null !== document.getElementById(id)) { + id += count++ + } + return id + } + + function ensureHasId(iframeId) { + if ('' === iframeId) { + // eslint-disable-next-line no-multi-assign + iframe.id = iframeId = newId() + logEnabled = (options || {}).log + log( + iframeId, + 'Added missing iframe ID: ' + iframeId + ' (' + iframe.src + ')' + ) + } + + return iframeId + } + + function setScrolling() { + log( + iframeId, + 'IFrame scrolling ' + + (settings[iframeId] && settings[iframeId].scrolling + ? 'enabled' + : 'disabled') + + ' for ' + + iframeId + ) + iframe.style.overflow = + false === (settings[iframeId] && settings[iframeId].scrolling) + ? 'hidden' + : 'auto' + switch (settings[iframeId] && settings[iframeId].scrolling) { + case 'omit': + break + + case true: + iframe.scrolling = 'yes' + break + + case false: + iframe.scrolling = 'no' + break + + default: + iframe.scrolling = settings[iframeId] + ? settings[iframeId].scrolling + : 'no' + } + } + + // The V1 iFrame script expects an int, where as in V2 expects a CSS + // string value such as '1px 3em', so if we have an int for V2, set V1=V2 + // and then convert V2 to a string PX value. + function setupBodyMarginValues() { + if ( + 'number' === + typeof (settings[iframeId] && settings[iframeId].bodyMargin) || + '0' === (settings[iframeId] && settings[iframeId].bodyMargin) + ) { + settings[iframeId].bodyMarginV1 = settings[iframeId].bodyMargin + settings[iframeId].bodyMargin = + '' + settings[iframeId].bodyMargin + 'px' + } + } + + function checkReset() { + // Reduce scope of firstRun to function, because IE8's JS execution + // context stack is borked and this value gets externally + // changed midway through running this function!!! + var firstRun = settings[iframeId] && settings[iframeId].firstRun, + resetRequertMethod = + settings[iframeId] && + settings[iframeId].heightCalculationMethod in resetRequiredMethods + + if (!firstRun && resetRequertMethod) { + resetIFrame({ iframe: iframe, height: 0, width: 0, type: 'init' }) + } + } + + function setupIFrameObject() { + if (settings[iframeId]) { + settings[iframeId].iframe.iFrameResizer = { + close: closeIFrame.bind(null, settings[iframeId].iframe), + + removeListeners: removeIframeListeners.bind( + null, + settings[iframeId].iframe + ), + + resize: trigger.bind( + null, + 'Window resize', + 'resize', + settings[iframeId].iframe + ), + + moveToAnchor: function(anchor) { + trigger( + 'Move to anchor', + 'moveToAnchor:' + anchor, + settings[iframeId].iframe, + iframeId + ) + }, + + sendMessage: function(message) { + message = JSON.stringify(message) + trigger( + 'Send Message', + 'message:' + message, + settings[iframeId].iframe, + iframeId + ) + } + } + } + } + + // We have to call trigger twice, as we can not be sure if all + // iframes have completed loading when this code runs. The + // event listener also catches the page changing in the iFrame. + function init(msg) { + function iFrameLoaded() { + trigger('iFrame.onload', msg, iframe, undefined, true) + checkReset() + } + + function createDestroyObserver(MutationObserver) { + if (!iframe.parentNode) { + return + } + + var destroyObserver = new MutationObserver(function(mutations) { + mutations.forEach(function(mutation) { + var removedNodes = Array.prototype.slice.call(mutation.removedNodes) // Transform NodeList into an Array + removedNodes.forEach(function(removedNode) { + if (removedNode === iframe) { + closeIFrame(iframe) + } + }) + }) + }) + destroyObserver.observe(iframe.parentNode, { + childList: true + }) + } + + var MutationObserver = getMutationObserver() + if (MutationObserver) { + createDestroyObserver(MutationObserver) + } + + addEventListener(iframe, 'load', iFrameLoaded) + trigger('init', msg, iframe, undefined, true) + } + + function checkOptions(options) { + if ('object' !== typeof options) { + throw new TypeError('Options is not an object') + } + } + + function copyOptions(options) { + // eslint-disable-next-line no-restricted-syntax + for (var option in defaults) { + if (Object.prototype.hasOwnProperty.call(defaults, option)) { + settings[iframeId][option] = Object.prototype.hasOwnProperty.call( + options, + option + ) + ? options[option] + : defaults[option] + } + } + } + + function getTargetOrigin(remoteHost) { + return '' === remoteHost || 'file://' === remoteHost ? '*' : remoteHost + } + + function depricate(key) { + var splitName = key.split('Callback') + + if (splitName.length === 2) { + var name = + 'on' + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1) + this[name] = this[key] + delete this[key] + warn( + iframeId, + "Deprecated: '" + + key + + "' has been renamed '" + + name + + "'. The old method will be removed in the next major version." + ) + } + } + + function processOptions(options) { + options = options || {} + settings[iframeId] = { + firstRun: true, + iframe: iframe, + remoteHost: iframe.src + .split('/') + .slice(0, 3) + .join('/') + } + + checkOptions(options) + Object.keys(options).forEach(depricate, options) + copyOptions(options) + + if (settings[iframeId]) { + settings[iframeId].targetOrigin = + true === settings[iframeId].checkOrigin + ? getTargetOrigin(settings[iframeId].remoteHost) + : '*' + } + } + + function beenHere() { + return iframeId in settings && 'iFrameResizer' in iframe + } + + var iframeId = ensureHasId(iframe.id) + + if (!beenHere()) { + processOptions(options) + setScrolling() + setLimits() + setupBodyMarginValues() + init(createOutgoingMsg(iframeId)) + setupIFrameObject() + } else { + warn(iframeId, 'Ignored iFrame, already setup.') + } + } + + function debouce(fn, time) { + if (null === timer) { + timer = setTimeout(function() { + timer = null + fn() + }, time) + } + } + + var frameTimer = {} + function debounceFrameEvents(fn, time, frameId) { + if (!frameTimer[frameId]) { + frameTimer[frameId] = setTimeout(function() { + frameTimer[frameId] = null + fn() + }, time) + } + } + + // Not testable in PhantomJS + /* istanbul ignore next */ + + function fixHiddenIFrames() { + function checkIFrames() { + function checkIFrame(settingId) { + function chkDimension(dimension) { + return ( + '0px' === + (settings[settingId] && settings[settingId].iframe.style[dimension]) + ) + } + + function isVisible(el) { + return null !== el.offsetParent + } + + if ( + settings[settingId] && + isVisible(settings[settingId].iframe) && + (chkDimension('height') || chkDimension('width')) + ) { + trigger( + 'Visibility change', + 'resize', + settings[settingId].iframe, + settingId + ) + } + } + + Object.keys(settings).forEach(function(key) { + checkIFrame(settings[key]) + }) + } + + function mutationObserved(mutations) { + log( + 'window', + 'Mutation observed: ' + mutations[0].target + ' ' + mutations[0].type + ) + debouce(checkIFrames, 16) + } + + function createMutationObserver() { + var target = document.querySelector('body'), + config = { + attributes: true, + attributeOldValue: false, + characterData: true, + characterDataOldValue: false, + childList: true, + subtree: true + }, + observer = new MutationObserver(mutationObserved) + + observer.observe(target, config) + } + + var MutationObserver = getMutationObserver() + if (MutationObserver) { + createMutationObserver() + } + } + + function resizeIFrames(event) { + function resize() { + sendTriggerMsg('Window ' + event, 'resize') + } + + log('window', 'Trigger event: ' + event) + debouce(resize, 16) + } + + // Not testable in PhantomJS + /* istanbul ignore next */ + function tabVisible() { + function resize() { + sendTriggerMsg('Tab Visable', 'resize') + } + + if ('hidden' !== document.visibilityState) { + log('document', 'Trigger event: Visiblity change') + debouce(resize, 16) + } + } + + function sendTriggerMsg(eventName, event) { + function isIFrameResizeEnabled(iframeId) { + return ( + settings[iframeId] && + 'parent' === settings[iframeId].resizeFrom && + settings[iframeId].autoResize && + !settings[iframeId].firstRun + ) + } + + Object.keys(settings).forEach(function(iframeId) { + if (isIFrameResizeEnabled(iframeId)) { + trigger(eventName, event, document.getElementById(iframeId), iframeId) + } + }) + } + + function setupEventListeners() { + addEventListener(window, 'message', iFrameListener) + + addEventListener(window, 'resize', function() { + resizeIFrames('resize') + }) + + addEventListener(document, 'visibilitychange', tabVisible) + + addEventListener(document, '-webkit-visibilitychange', tabVisible) + } + + function factory() { + function init(options, element) { + function chkType() { + if (!element.tagName) { + throw new TypeError('Object is not a valid DOM element') + } else if ('IFRAME' !== element.tagName.toUpperCase()) { + throw new TypeError( + 'Expected \ No newline at end of file diff --git a/iframe-resizer-master_old/spec/javascripts/fixtures/iframe600.html b/iframe-resizer-master_old/spec/javascripts/fixtures/iframe600.html new file mode 100755 index 0000000..ebc3500 --- /dev/null +++ b/iframe-resizer-master_old/spec/javascripts/fixtures/iframe600.html @@ -0,0 +1,6 @@ + + +
+ +
+ \ No newline at end of file diff --git a/iframe-resizer-master_old/spec/javascripts/fixtures/iframe600WithId.html b/iframe-resizer-master_old/spec/javascripts/fixtures/iframe600WithId.html new file mode 100755 index 0000000..abd1969 --- /dev/null +++ b/iframe-resizer-master_old/spec/javascripts/fixtures/iframe600WithId.html @@ -0,0 +1,7 @@ + + + +
+ +
+ \ No newline at end of file diff --git a/iframe-resizer-master_old/spec/javascripts/fixtures/twoIFrame600WithId.html b/iframe-resizer-master_old/spec/javascripts/fixtures/twoIFrame600WithId.html new file mode 100755 index 0000000..14de593 --- /dev/null +++ b/iframe-resizer-master_old/spec/javascripts/fixtures/twoIFrame600WithId.html @@ -0,0 +1,8 @@ + + +
+ +
+
+ +
\ No newline at end of file diff --git a/iframe-resizer-master_old/spec/lib/common.js b/iframe-resizer-master_old/spec/lib/common.js new file mode 100755 index 0000000..14ef034 --- /dev/null +++ b/iframe-resizer-master_old/spec/lib/common.js @@ -0,0 +1,67 @@ +'use strict'; + +var LOG = true; + +jasmine.DEFAULT_TIMEOUT_INTERVAL = 4000; +jasmine.getFixtures().fixturesPath = 'base/spec/javascripts/fixtures'; + +function tearDown(iframe) { + if (iframe) setTimeout(iframe.iFrameResizer.close, 1); + window.parentIFrame = undefined; +} + +function loadIFrame(filename) { + loadFixtures(filename); +} + +function getTarget(iframe) { + return iframe.src + .split('/') + .slice(0, 3) + .join('/'); +} + +function mockPostMsgViaHook(testIFrame, id, msg, callback) { + return testIFrame('[iFrameSizer]' + id + ':' + msg, callback); +} + +function mockPostMsg(id, msg) { + var message = '[iFrameSizer]' + id + ':' + msg; + console.log('Mork postMessage: ', message); + window.postMessage(message, '*'); +} + +function mockMsgFromIFrame(iframe, msg) { + mockPostMsg(iframe.id, '0:0:' + msg); +} + +function mockInitFromParent(testIFrame, id, log, callback) { + return mockPostMsgViaHook( + testIFrame, + id, + '8:false:' + log + ':0:true:false:null:max:wheat:null:0:true:child:scroll', + callback + ); +} + +function spyOnPostMessage(target) { + spyOn(target, 'postMessage'); +} + +function spyOnWindowPostMessage() { + spyOnPostMessage(window.parent); + return window.parent.postMessage; +} + +function spyOnIFramePostMessage(iframe) { + spyOnPostMessage(iframe.contentWindow); +} + +function closeChild(window, done) { + window.parentIFrame.close(); + done(); +} + +function strEnd(str, num) { + return str.substr(str.length - num); +} diff --git a/iframe-resizer-master_old/spec/parentSpec.js b/iframe-resizer-master_old/spec/parentSpec.js new file mode 100755 index 0000000..c795fc4 --- /dev/null +++ b/iframe-resizer-master_old/spec/parentSpec.js @@ -0,0 +1,88 @@ +define(['iframeResizer'], function(iFrameResize) { + describe('Parent Page', function() { + describe('default resize', function() { + var iframe + var log = LOG + var testId = 'defaultResize3' + var ready + + beforeEach(function(done) { + loadIFrame('iframe600.html') + iframe = iFrameResize({ + log: log, + id: testId, + onResized: function() { + ready = true + done() + } + })[0] + + mockMsgFromIFrame(iframe, 'foo') + }) + + afterEach(function() { + tearDown(iframe) + }) + + it('receive message', function() { + expect(ready).toBe(true) + }) + }) + + describe('reset Page', function() { + var iframe + var log = LOG + var testId = 'parentPage1' + + beforeEach(function(done) { + loadIFrame('iframe600.html') + iframe = iFrameResize({ + log: log, + id: testId + })[0] + + spyOn(iframe.contentWindow, 'postMessage').and.callFake(done) + mockMsgFromIFrame(iframe, 'reset') + }) + + afterEach(function() { + tearDown(iframe) + }) + + it('receive message', function() { + expect(iframe.contentWindow.postMessage).toHaveBeenCalledWith( + '[iFrameSizer]reset', + 'https://localhost:9876' + ) + }) + }) + + describe('late load msg received', function() { + var iframe + var log = LOG + var testId = 'parentPage2' + + beforeEach(function(done) { + loadIFrame('iframe600.html') + iframe = iFrameResize({ + log: log, + id: testId + })[0] + + spyOn(iframe.contentWindow, 'postMessage').and.callFake(done) + window.postMessage('[iFrameResizerChild]Ready', '*') + }) + + afterEach(function() { + tearDown(iframe) + }) + + it('receive message', function() { + expect(iframe.contentWindow.postMessage).toHaveBeenCalledWith( + '[iFrameSizer]parentPage2:8:false:true:32:true:true:null:bodyOffset:null:null:0:false:parent:scroll', + 'https://localhost:9876' + ) + }) + }) + }) +}) diff --git a/iframe-resizer-master_old/spec/resources/djb.jpg b/iframe-resizer-master_old/spec/resources/djb.jpg new file mode 100755 index 0000000..5b4d98f Binary files /dev/null and b/iframe-resizer-master_old/spec/resources/djb.jpg differ diff --git a/iframe-resizer-master_old/spec/resources/frame.content.html b/iframe-resizer-master_old/spec/resources/frame.content.html new file mode 100755 index 0000000..b97f4da --- /dev/null +++ b/iframe-resizer-master_old/spec/resources/frame.content.html @@ -0,0 +1,259 @@ + + + + + + + iFrame message passing test + + + + + + + iFrame + +

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+ + + + + + + + diff --git a/iframe-resizer-master_old/spec/resources/frame.lateload.html b/iframe-resizer-master_old/spec/resources/frame.lateload.html new file mode 100755 index 0000000..b5732cb --- /dev/null +++ b/iframe-resizer-master_old/spec/resources/frame.lateload.html @@ -0,0 +1,47 @@ + + + + + + + iFrame message passing test + + + + + + + +

Late load JS test

+

Load JS with require after load event has fired.

+
+
+ + + + + + + \ No newline at end of file diff --git a/iframe-resizer-master_old/spec/resources/frame.nested.html b/iframe-resizer-master_old/spec/resources/frame.nested.html new file mode 100755 index 0000000..6869281 --- /dev/null +++ b/iframe-resizer-master_old/spec/resources/frame.nested.html @@ -0,0 +1,43 @@ + + + + + + iFrame message passing test + + + + + + + +

Nested iFrame

+

Resize window or click one of the links in the nested iFrame to watch it resize.

+
+ +
+

+

+ + + + + + + + + + diff --git a/iframe-resizer-master_old/spec/scrollSpec.js b/iframe-resizer-master_old/spec/scrollSpec.js new file mode 100755 index 0000000..dbe0a32 --- /dev/null +++ b/iframe-resizer-master_old/spec/scrollSpec.js @@ -0,0 +1,48 @@ +define(['iframeResizer'], function(iFrameResize) { + describe('Scroll Page', function() { + var iframe + var log = LOG + + beforeEach(function() { + loadIFrame('iframe600.html') + }) + + afterEach(function() { + tearDown(iframe) + }) + + it('mock incoming message', function(done) { + iframe = iFrameResize({ + log: log, + id: 'scroll1' + })[0] + + window.parentIFrame = { + scrollTo: function(x, y) { + expect(x).toBe(0) + expect(y).toBe(0) + done() + } + } + + mockMsgFromIFrame(iframe, 'scrollTo') + }) + + it('mock incoming message', function(done) { + iframe = iFrameResize({ + log: log, + id: 'scroll2' + })[0] + + window.parentIFrame = { + scrollToOffset: function(x, y) { + expect(x).toBe(8) + expect(y).toBe(8) + done() + } + } + + mockMsgFromIFrame(iframe, 'scrollToOffset') + }) + }) +}) diff --git a/iframe-resizer-master_old/spec/sendMessageSpec.js b/iframe-resizer-master_old/spec/sendMessageSpec.js new file mode 100755 index 0000000..830ed8c --- /dev/null +++ b/iframe-resizer-master_old/spec/sendMessageSpec.js @@ -0,0 +1,59 @@ +define(['iframeResizer'], function(iFrameResize) { + describe('Send Message from Host Page', function() { + var iframe + var log = LOG + + beforeEach(function() { + loadIFrame('iframe600.html') + }) + + afterEach(function() { + tearDown(iframe) + }) + + it('send message to iframe', function(done) { + var iframe1 = iFrameResize({ + log: log, + id: 'sendMessage1' + })[0] + + spyOnIFramePostMessage(iframe1) + setTimeout(function() { + iframe1.iFrameResizer.sendMessage('chkSendMsg:test') + expect(iframe1.contentWindow.postMessage).toHaveBeenCalledWith( + '[iFrameSizer]message:"chkSendMsg:test"', + getTarget(iframe1) + ) + tearDown(iframe1) + done() + }, 100) + }) + + it('mock incoming message', function(done) { + iframe = iFrameResize({ + log: log, + id: 'sendMessage2', + onMessage: function(messageData) { + expect(messageData.message).toBe('test:test') + done() + } + })[0] + + mockMsgFromIFrame(iframe, 'message:"test:test"') + }) + + it('send message and get response', function(done) { + iframe = iFrameResize({ + log: log, + id: 'sendMessage3', + onInit: function(iframe) { + iframe.iFrameResizer.sendMessage('chkSendMsg') + }, + onMessage: function(messageData) { + expect(messageData.message).toBe('message: test string') + done() + } + })[0] + }) + }) +}) diff --git a/iframe-resizer-master_old/spec/support/jasmine.json b/iframe-resizer-master_old/spec/support/jasmine.json new file mode 100755 index 0000000..7f62f96 --- /dev/null +++ b/iframe-resizer-master_old/spec/support/jasmine.json @@ -0,0 +1,5 @@ +{ + "spec_dir": "spec", + "spec_files": ["**/*[sS]pec.js"], + "helpers": ["helpers/**/*.js"] +} diff --git a/iframe-resizer-master_old/src/iframeResizer.contentWindow.js b/iframe-resizer-master_old/src/iframeResizer.contentWindow.js new file mode 100755 index 0000000..ea735d4 --- /dev/null +++ b/iframe-resizer-master_old/src/iframeResizer.contentWindow.js @@ -0,0 +1,1305 @@ +/* + * File: iframeResizer.contentWindow.js + * Desc: Include this file in any page being loaded into an iframe + * to force the iframe to resize to the content size. + * Requires: iframeResizer.js on host page. + * Doc: https://github.com/davidjbradshaw/iframe-resizer + * Author: David J. Bradshaw - dave@bradshaw.net + * + */ + +// eslint-disable-next-line sonarjs/cognitive-complexity, no-shadow-restricted-names +;(function(undefined) { + if (typeof window === 'undefined') return // don't run for server side render + + var autoResize = true, + base = 10, + bodyBackground = '', + bodyMargin = 0, + bodyMarginStr = '', + bodyObserver = null, + bodyPadding = '', + calculateWidth = false, + doubleEventList = { resize: 1, click: 1 }, + eventCancelTimer = 128, + firstRun = true, + height = 1, + heightCalcModeDefault = 'bodyOffset', + heightCalcMode = heightCalcModeDefault, + initLock = true, + initMsg = '', + inPageLinks = {}, + interval = 32, + intervalTimer = null, + logging = false, + msgID = '[iFrameSizer]', // Must match host page msg ID + msgIdLen = msgID.length, + myID = '', + resetRequiredMethods = { + max: 1, + min: 1, + bodyScroll: 1, + documentElementScroll: 1 + }, + resizeFrom = 'child', + sendPermit = true, + target = window.parent, + targetOriginDefault = '*', + tolerance = 0, + triggerLocked = false, + triggerLockedTimer = null, + throttledTimer = 16, + width = 1, + widthCalcModeDefault = 'scroll', + widthCalcMode = widthCalcModeDefault, + win = window, + onMessage = function() { + warn('onMessage function not defined') + }, + onReady = function() {}, + onPageInfo = function() {}, + customCalcMethods = { + height: function() { + warn('Custom height calculation function not defined') + return document.documentElement.offsetHeight + }, + width: function() { + warn('Custom width calculation function not defined') + return document.body.scrollWidth + } + }, + eventHandlersByName = {}, + passiveSupported = false + + function noop() {} + + try { + var options = Object.create( + {}, + { + passive: { + get: function() { + passiveSupported = true + } + } + } + ) + window.addEventListener('test', noop, options) + window.removeEventListener('test', noop, options) + } catch (error) { + /* */ + } + + function addEventListener(el, evt, func, options) { + el.addEventListener(evt, func, passiveSupported ? options || {} : false) + } + + function removeEventListener(el, evt, func) { + el.removeEventListener(evt, func, false) + } + + function capitalizeFirstLetter(string) { + return string.charAt(0).toUpperCase() + string.slice(1) + } + + // Based on underscore.js + function throttle(func) { + var context, + args, + result, + timeout = null, + previous = 0, + later = function() { + previous = getNow() + timeout = null + result = func.apply(context, args) + if (!timeout) { + // eslint-disable-next-line no-multi-assign + context = args = null + } + } + + return function() { + var now = getNow() + + if (!previous) { + previous = now + } + + var remaining = throttledTimer - (now - previous) + + context = this + args = arguments + + if (remaining <= 0 || remaining > throttledTimer) { + if (timeout) { + clearTimeout(timeout) + timeout = null + } + + previous = now + result = func.apply(context, args) + + if (!timeout) { + // eslint-disable-next-line no-multi-assign + context = args = null + } + } else if (!timeout) { + timeout = setTimeout(later, remaining) + } + + return result + } + } + + var getNow = + Date.now || + function() { + /* istanbul ignore next */ // Not testable in PhantonJS + return new Date().getTime() + } + + function formatLogMsg(msg) { + return msgID + '[' + myID + '] ' + msg + } + + function log(msg) { + if (logging && 'object' === typeof window.console) { + // eslint-disable-next-line no-console + console.log(formatLogMsg(msg)) + } + } + + function warn(msg) { + if ('object' === typeof window.console) { + // eslint-disable-next-line no-console + console.warn(formatLogMsg(msg)) + } + } + + function init() { + readDataFromParent() + log('Initialising iFrame (' + location.href + ')') + readDataFromPage() + setMargin() + setBodyStyle('background', bodyBackground) + setBodyStyle('padding', bodyPadding) + injectClearFixIntoBodyElement() + checkHeightMode() + checkWidthMode() + stopInfiniteResizingOfIFrame() + setupPublicMethods() + startEventListeners() + inPageLinks = setupInPageLinks() + sendSize('init', 'Init message from host page') + onReady() + } + + function readDataFromParent() { + function strBool(str) { + return 'true' === str + } + + var data = initMsg.substr(msgIdLen).split(':') + + myID = data[0] + bodyMargin = undefined !== data[1] ? Number(data[1]) : bodyMargin // For V1 compatibility + calculateWidth = undefined !== data[2] ? strBool(data[2]) : calculateWidth + logging = undefined !== data[3] ? strBool(data[3]) : logging + interval = undefined !== data[4] ? Number(data[4]) : interval + autoResize = undefined !== data[6] ? strBool(data[6]) : autoResize + bodyMarginStr = data[7] + heightCalcMode = undefined !== data[8] ? data[8] : heightCalcMode + bodyBackground = data[9] + bodyPadding = data[10] + tolerance = undefined !== data[11] ? Number(data[11]) : tolerance + inPageLinks.enable = undefined !== data[12] ? strBool(data[12]) : false + resizeFrom = undefined !== data[13] ? data[13] : resizeFrom + widthCalcMode = undefined !== data[14] ? data[14] : widthCalcMode + } + + function depricate(key) { + var splitName = key.split('Callback') + + if (splitName.length === 2) { + var name = + 'on' + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1) + this[name] = this[key] + delete this[key] + warn( + "Deprecated: '" + + key + + "' has been renamed '" + + name + + "'. The old method will be removed in the next major version." + ) + } + } + + function readDataFromPage() { + function readData() { + var data = window.iFrameResizer + + log('Reading data from page: ' + JSON.stringify(data)) + Object.keys(data).forEach(depricate, data) + + onMessage = 'onMessage' in data ? data.onMessage : onMessage + onReady = 'onReady' in data ? data.onReady : onReady + targetOriginDefault = + 'targetOrigin' in data ? data.targetOrigin : targetOriginDefault + heightCalcMode = + 'heightCalculationMethod' in data + ? data.heightCalculationMethod + : heightCalcMode + widthCalcMode = + 'widthCalculationMethod' in data + ? data.widthCalculationMethod + : widthCalcMode + } + + function setupCustomCalcMethods(calcMode, calcFunc) { + if ('function' === typeof calcMode) { + log('Setup custom ' + calcFunc + 'CalcMethod') + customCalcMethods[calcFunc] = calcMode + calcMode = 'custom' + } + + return calcMode + } + + if ( + 'iFrameResizer' in window && + Object === window.iFrameResizer.constructor + ) { + readData() + heightCalcMode = setupCustomCalcMethods(heightCalcMode, 'height') + widthCalcMode = setupCustomCalcMethods(widthCalcMode, 'width') + } + + log('TargetOrigin for parent set to: ' + targetOriginDefault) + } + + function chkCSS(attr, value) { + if (-1 !== value.indexOf('-')) { + warn('Negative CSS value ignored for ' + attr) + value = '' + } + return value + } + + function setBodyStyle(attr, value) { + if (undefined !== value && '' !== value && 'null' !== value) { + document.body.style[attr] = value + log('Body ' + attr + ' set to "' + value + '"') + } + } + + function setMargin() { + // If called via V1 script, convert bodyMargin from int to str + if (undefined === bodyMarginStr) { + bodyMarginStr = bodyMargin + 'px' + } + + setBodyStyle('margin', chkCSS('margin', bodyMarginStr)) + } + + function stopInfiniteResizingOfIFrame() { + document.documentElement.style.height = '' + document.body.style.height = '' + log('HTML & body height set to "auto"') + } + + function manageTriggerEvent(options) { + var listener = { + add: function(eventName) { + function handleEvent() { + sendSize(options.eventName, options.eventType) + } + + eventHandlersByName[eventName] = handleEvent + + addEventListener(window, eventName, handleEvent, { passive: true }) + }, + remove: function(eventName) { + var handleEvent = eventHandlersByName[eventName] + delete eventHandlersByName[eventName] + + removeEventListener(window, eventName, handleEvent) + } + } + + if (options.eventNames && Array.prototype.map) { + options.eventName = options.eventNames[0] + options.eventNames.map(listener[options.method]) + } else { + listener[options.method](options.eventName) + } + + log( + capitalizeFirstLetter(options.method) + + ' event listener: ' + + options.eventType + ) + } + + function manageEventListeners(method) { + manageTriggerEvent({ + method: method, + eventType: 'Animation Start', + eventNames: ['animationstart', 'webkitAnimationStart'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Animation Iteration', + eventNames: ['animationiteration', 'webkitAnimationIteration'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Animation End', + eventNames: ['animationend', 'webkitAnimationEnd'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Input', + eventName: 'input' + }) + manageTriggerEvent({ + method: method, + eventType: 'Mouse Up', + eventName: 'mouseup' + }) + manageTriggerEvent({ + method: method, + eventType: 'Mouse Down', + eventName: 'mousedown' + }) + manageTriggerEvent({ + method: method, + eventType: 'Orientation Change', + eventName: 'orientationchange' + }) + manageTriggerEvent({ + method: method, + eventType: 'Print', + eventName: ['afterprint', 'beforeprint'] + }) + manageTriggerEvent({ + method: method, + eventType: 'Ready State Change', + eventName: 'readystatechange' + }) + manageTriggerEvent({ + method: method, + eventType: 'Touch Start', + eventName: 'touchstart' + }) + manageTriggerEvent({ + method: method, + eventType: 'Touch End', + eventName: 'touchend' + }) + manageTriggerEvent({ + method: method, + eventType: 'Touch Cancel', + eventName: 'touchcancel' + }) + manageTriggerEvent({ + method: method, + eventType: 'Transition Start', + eventNames: [ + 'transitionstart', + 'webkitTransitionStart', + 'MSTransitionStart', + 'oTransitionStart', + 'otransitionstart' + ] + }) + manageTriggerEvent({ + method: method, + eventType: 'Transition Iteration', + eventNames: [ + 'transitioniteration', + 'webkitTransitionIteration', + 'MSTransitionIteration', + 'oTransitionIteration', + 'otransitioniteration' + ] + }) + manageTriggerEvent({ + method: method, + eventType: 'Transition End', + eventNames: [ + 'transitionend', + 'webkitTransitionEnd', + 'MSTransitionEnd', + 'oTransitionEnd', + 'otransitionend' + ] + }) + if ('child' === resizeFrom) { + manageTriggerEvent({ + method: method, + eventType: 'IFrame Resized', + eventName: 'resize' + }) + } + } + + function checkCalcMode(calcMode, calcModeDefault, modes, type) { + if (calcModeDefault !== calcMode) { + if (!(calcMode in modes)) { + warn( + calcMode + ' is not a valid option for ' + type + 'CalculationMethod.' + ) + calcMode = calcModeDefault + } + log(type + ' calculation method set to "' + calcMode + '"') + } + + return calcMode + } + + function checkHeightMode() { + heightCalcMode = checkCalcMode( + heightCalcMode, + heightCalcModeDefault, + getHeight, + 'height' + ) + } + + function checkWidthMode() { + widthCalcMode = checkCalcMode( + widthCalcMode, + widthCalcModeDefault, + getWidth, + 'width' + ) + } + + function startEventListeners() { + if (true === autoResize) { + manageEventListeners('add') + setupMutationObserver() + } else { + log('Auto Resize disabled') + } + } + + function stopMsgsToParent() { + log('Disable outgoing messages') + sendPermit = false + } + + function removeMsgListener() { + log('Remove event listener: Message') + removeEventListener(window, 'message', receiver) + } + + function disconnectMutationObserver() { + if (null !== bodyObserver) { + /* istanbul ignore next */ // Not testable in PhantonJS + bodyObserver.disconnect() + } + } + + function stopEventListeners() { + manageEventListeners('remove') + disconnectMutationObserver() + clearInterval(intervalTimer) + } + + function teardown() { + stopMsgsToParent() + removeMsgListener() + if (true === autoResize) stopEventListeners() + } + + function injectClearFixIntoBodyElement() { + var clearFix = document.createElement('div') + clearFix.style.clear = 'both' + // Guard against the following having been globally redefined in CSS. + clearFix.style.display = 'block' + clearFix.style.height = '0' + document.body.appendChild(clearFix) + } + + function setupInPageLinks() { + function getPagePosition() { + return { + x: + window.pageXOffset !== undefined + ? window.pageXOffset + : document.documentElement.scrollLeft, + y: + window.pageYOffset !== undefined + ? window.pageYOffset + : document.documentElement.scrollTop + } + } + + function getElementPosition(el) { + var elPosition = el.getBoundingClientRect(), + pagePosition = getPagePosition() + + return { + x: parseInt(elPosition.left, 10) + parseInt(pagePosition.x, 10), + y: parseInt(elPosition.top, 10) + parseInt(pagePosition.y, 10) + } + } + + function findTarget(location) { + function jumpToTarget(target) { + var jumpPosition = getElementPosition(target) + + log( + 'Moving to in page link (#' + + hash + + ') at x: ' + + jumpPosition.x + + ' y: ' + + jumpPosition.y + ) + sendMsg(jumpPosition.y, jumpPosition.x, 'scrollToOffset') // X&Y reversed at sendMsg uses height/width + } + + var hash = location.split('#')[1] || location, // Remove # if present + hashData = decodeURIComponent(hash), + target = + document.getElementById(hashData) || + document.getElementsByName(hashData)[0] + + if (undefined !== target) { + jumpToTarget(target) + } else { + log( + 'In page link (#' + + hash + + ') not found in iFrame, so sending to parent' + ) + sendMsg(0, 0, 'inPageLink', '#' + hash) + } + } + + function checkLocationHash() { + if ('' !== location.hash && '#' !== location.hash) { + findTarget(location.href) + } + } + + function bindAnchors() { + function setupLink(el) { + function linkClicked(e) { + e.preventDefault() + + /* jshint validthis:true */ + findTarget(this.getAttribute('href')) + } + + if ('#' !== el.getAttribute('href')) { + addEventListener(el, 'click', linkClicked) + } + } + + Array.prototype.forEach.call( + document.querySelectorAll('a[href^="#"]'), + setupLink + ) + } + + function bindLocationHash() { + addEventListener(window, 'hashchange', checkLocationHash) + } + + function initCheck() { + // Check if page loaded with location hash after init resize + setTimeout(checkLocationHash, eventCancelTimer) + } + + function enableInPageLinks() { + /* istanbul ignore else */ // Not testable in phantonJS + if (Array.prototype.forEach && document.querySelectorAll) { + log('Setting up location.hash handlers') + bindAnchors() + bindLocationHash() + initCheck() + } else { + warn( + 'In page linking not fully supported in this browser! (See README.md for IE8 workaround)' + ) + } + } + + if (inPageLinks.enable) { + enableInPageLinks() + } else { + log('In page linking not enabled') + } + + return { + findTarget: findTarget + } + } + + function setupPublicMethods() { + log('Enable public methods') + + win.parentIFrame = { + autoResize: function autoResizeF(resize) { + if (true === resize && false === autoResize) { + autoResize = true + startEventListeners() + } else if (false === resize && true === autoResize) { + autoResize = false + stopEventListeners() + } + + return autoResize + }, + + close: function closeF() { + sendMsg(0, 0, 'close') + teardown() + }, + + getId: function getIdF() { + return myID + }, + + getPageInfo: function getPageInfoF(callback) { + if ('function' === typeof callback) { + onPageInfo = callback + sendMsg(0, 0, 'pageInfo') + } else { + onPageInfo = function() {} + sendMsg(0, 0, 'pageInfoStop') + } + }, + + moveToAnchor: function moveToAnchorF(hash) { + inPageLinks.findTarget(hash) + }, + + reset: function resetF() { + resetIFrame('parentIFrame.reset') + }, + + scrollTo: function scrollToF(x, y) { + sendMsg(y, x, 'scrollTo') // X&Y reversed at sendMsg uses height/width + }, + + scrollToOffset: function scrollToF(x, y) { + sendMsg(y, x, 'scrollToOffset') // X&Y reversed at sendMsg uses height/width + }, + + sendMessage: function sendMessageF(msg, targetOrigin) { + sendMsg(0, 0, 'message', JSON.stringify(msg), targetOrigin) + }, + + setHeightCalculationMethod: function setHeightCalculationMethodF( + heightCalculationMethod + ) { + heightCalcMode = heightCalculationMethod + checkHeightMode() + }, + + setWidthCalculationMethod: function setWidthCalculationMethodF( + widthCalculationMethod + ) { + widthCalcMode = widthCalculationMethod + checkWidthMode() + }, + + setTargetOrigin: function setTargetOriginF(targetOrigin) { + log('Set targetOrigin: ' + targetOrigin) + targetOriginDefault = targetOrigin + }, + + size: function sizeF(customHeight, customWidth) { + var valString = + '' + (customHeight || '') + (customWidth ? ',' + customWidth : '') + sendSize( + 'size', + 'parentIFrame.size(' + valString + ')', + customHeight, + customWidth + ) + } + } + } + + function initInterval() { + if (0 !== interval) { + log('setInterval: ' + interval + 'ms') + intervalTimer = setInterval(function() { + sendSize('interval', 'setInterval: ' + interval) + }, Math.abs(interval)) + } + } + + // Not testable in PhantomJS + /* istanbul ignore next */ + function setupBodyMutationObserver() { + function addImageLoadListners(mutation) { + function addImageLoadListener(element) { + if (false === element.complete) { + log('Attach listeners to ' + element.src) + element.addEventListener('load', imageLoaded, false) + element.addEventListener('error', imageError, false) + elements.push(element) + } + } + + if (mutation.type === 'attributes' && mutation.attributeName === 'src') { + addImageLoadListener(mutation.target) + } else if (mutation.type === 'childList') { + Array.prototype.forEach.call( + mutation.target.querySelectorAll('img'), + addImageLoadListener + ) + } + } + + function removeFromArray(element) { + elements.splice(elements.indexOf(element), 1) + } + + function removeImageLoadListener(element) { + log('Remove listeners from ' + element.src) + element.removeEventListener('load', imageLoaded, false) + element.removeEventListener('error', imageError, false) + removeFromArray(element) + } + + function imageEventTriggered(event, type, typeDesc) { + removeImageLoadListener(event.target) + sendSize(type, typeDesc + ': ' + event.target.src, undefined, undefined) + } + + function imageLoaded(event) { + imageEventTriggered(event, 'imageLoad', 'Image loaded') + } + + function imageError(event) { + imageEventTriggered(event, 'imageLoadFailed', 'Image load failed') + } + + function mutationObserved(mutations) { + sendSize( + 'mutationObserver', + 'mutationObserver: ' + mutations[0].target + ' ' + mutations[0].type + ) + + // Deal with WebKit / Blink asyncing image loading when tags are injected into the page + mutations.forEach(addImageLoadListners) + } + + function createMutationObserver() { + var target = document.querySelector('body'), + config = { + attributes: true, + attributeOldValue: false, + characterData: true, + characterDataOldValue: false, + childList: true, + subtree: true + } + + observer = new MutationObserver(mutationObserved) + + log('Create body MutationObserver') + observer.observe(target, config) + + return observer + } + + var elements = [], + MutationObserver = + window.MutationObserver || window.WebKitMutationObserver, + observer = createMutationObserver() + + return { + disconnect: function() { + if ('disconnect' in observer) { + log('Disconnect body MutationObserver') + observer.disconnect() + elements.forEach(removeImageLoadListener) + } + } + } + } + + function setupMutationObserver() { + var forceIntervalTimer = 0 > interval + + // Not testable in PhantomJS + /* istanbul ignore if */ if ( + window.MutationObserver || + window.WebKitMutationObserver + ) { + if (forceIntervalTimer) { + initInterval() + } else { + bodyObserver = setupBodyMutationObserver() + } + } else { + log('MutationObserver not supported in this browser!') + initInterval() + } + } + + // document.documentElement.offsetHeight is not reliable, so + // we have to jump through hoops to get a better value. + function getComputedStyle(prop, el) { + var retVal = 0 + el = el || document.body // Not testable in phantonJS + + retVal = document.defaultView.getComputedStyle(el, null) + retVal = null !== retVal ? retVal[prop] : 0 + + return parseInt(retVal, base) + } + + function chkEventThottle(timer) { + if (timer > throttledTimer / 2) { + throttledTimer = 2 * timer + log('Event throttle increased to ' + throttledTimer + 'ms') + } + } + + // Idea from https://github.com/guardian/iframe-messenger + function getMaxElement(side, elements) { + var elementsLength = elements.length, + elVal = 0, + maxVal = 0, + Side = capitalizeFirstLetter(side), + timer = getNow() + + for (var i = 0; i < elementsLength; i++) { + elVal = + elements[i].getBoundingClientRect()[side] + + getComputedStyle('margin' + Side, elements[i]) + if (elVal > maxVal) { + maxVal = elVal + } + } + + timer = getNow() - timer + + log('Parsed ' + elementsLength + ' HTML elements') + log('Element position calculated in ' + timer + 'ms') + + chkEventThottle(timer) + + return maxVal + } + + function getAllMeasurements(dimention) { + return [ + dimention.bodyOffset(), + dimention.bodyScroll(), + dimention.documentElementOffset(), + dimention.documentElementScroll() + ] + } + + function getTaggedElements(side, tag) { + function noTaggedElementsFound() { + warn('No tagged elements (' + tag + ') found on page') + return document.querySelectorAll('body *') + } + + var elements = document.querySelectorAll('[' + tag + ']') + + if (0 === elements.length) noTaggedElementsFound() + + return getMaxElement(side, elements) + } + + function getAllElements() { + return document.querySelectorAll('body *') + } + + var getHeight = { + bodyOffset: function getBodyOffsetHeight() { + return ( + document.body.offsetHeight + + getComputedStyle('marginTop') + + getComputedStyle('marginBottom') + ) + }, + + offset: function() { + return getHeight.bodyOffset() // Backwards compatability + }, + + bodyScroll: function getBodyScrollHeight() { + return document.body.scrollHeight + }, + + custom: function getCustomWidth() { + return customCalcMethods.height() + }, + + documentElementOffset: function getDEOffsetHeight() { + return document.documentElement.offsetHeight + }, + + documentElementScroll: function getDEScrollHeight() { + return document.documentElement.scrollHeight + }, + + max: function getMaxHeight() { + return Math.max.apply(null, getAllMeasurements(getHeight)) + }, + + min: function getMinHeight() { + return Math.min.apply(null, getAllMeasurements(getHeight)) + }, + + grow: function growHeight() { + return getHeight.max() // Run max without the forced downsizing + }, + + lowestElement: function getBestHeight() { + return Math.max( + getHeight.bodyOffset() || getHeight.documentElementOffset(), + getMaxElement('bottom', getAllElements()) + ) + }, + + taggedElement: function getTaggedElementsHeight() { + return getTaggedElements('bottom', 'data-iframe-height') + } + }, + getWidth = { + bodyScroll: function getBodyScrollWidth() { + return document.body.scrollWidth + }, + + bodyOffset: function getBodyOffsetWidth() { + return document.body.offsetWidth + }, + + custom: function getCustomWidth() { + return customCalcMethods.width() + }, + + documentElementScroll: function getDEScrollWidth() { + return document.documentElement.scrollWidth + }, + + documentElementOffset: function getDEOffsetWidth() { + return document.documentElement.offsetWidth + }, + + scroll: function getMaxWidth() { + return Math.max(getWidth.bodyScroll(), getWidth.documentElementScroll()) + }, + + max: function getMaxWidth() { + return Math.max.apply(null, getAllMeasurements(getWidth)) + }, + + min: function getMinWidth() { + return Math.min.apply(null, getAllMeasurements(getWidth)) + }, + + rightMostElement: function rightMostElement() { + return getMaxElement('right', getAllElements()) + }, + + taggedElement: function getTaggedElementsWidth() { + return getTaggedElements('right', 'data-iframe-width') + } + } + + function sizeIFrame( + triggerEvent, + triggerEventDesc, + customHeight, + customWidth + ) { + function resizeIFrame() { + height = currentHeight + width = currentWidth + + sendMsg(height, width, triggerEvent) + } + + function isSizeChangeDetected() { + function checkTolarance(a, b) { + var retVal = Math.abs(a - b) <= tolerance + return !retVal + } + + currentHeight = + undefined !== customHeight ? customHeight : getHeight[heightCalcMode]() + currentWidth = + undefined !== customWidth ? customWidth : getWidth[widthCalcMode]() + + return ( + checkTolarance(height, currentHeight) || + (calculateWidth && checkTolarance(width, currentWidth)) + ) + } + + function isForceResizableEvent() { + return !(triggerEvent in { init: 1, interval: 1, size: 1 }) + } + + function isForceResizableCalcMode() { + return ( + heightCalcMode in resetRequiredMethods || + (calculateWidth && widthCalcMode in resetRequiredMethods) + ) + } + + function logIgnored() { + log('No change in size detected') + } + + function checkDownSizing() { + if (isForceResizableEvent() && isForceResizableCalcMode()) { + resetIFrame(triggerEventDesc) + } else if (!(triggerEvent in { interval: 1 })) { + logIgnored() + } + } + + var currentHeight, currentWidth + + if (isSizeChangeDetected() || 'init' === triggerEvent) { + lockTrigger() + resizeIFrame() + } else { + checkDownSizing() + } + } + + var sizeIFrameThrottled = throttle(sizeIFrame) + + function sendSize(triggerEvent, triggerEventDesc, customHeight, customWidth) { + function recordTrigger() { + if (!(triggerEvent in { reset: 1, resetPage: 1, init: 1 })) { + log('Trigger event: ' + triggerEventDesc) + } + } + + function isDoubleFiredEvent() { + return triggerLocked && triggerEvent in doubleEventList + } + + if (!isDoubleFiredEvent()) { + recordTrigger() + if (triggerEvent === 'init') { + sizeIFrame(triggerEvent, triggerEventDesc, customHeight, customWidth) + } else { + sizeIFrameThrottled( + triggerEvent, + triggerEventDesc, + customHeight, + customWidth + ) + } + } else { + log('Trigger event cancelled: ' + triggerEvent) + } + } + + function lockTrigger() { + if (!triggerLocked) { + triggerLocked = true + log('Trigger event lock on') + } + clearTimeout(triggerLockedTimer) + triggerLockedTimer = setTimeout(function() { + triggerLocked = false + log('Trigger event lock off') + log('--') + }, eventCancelTimer) + } + + function triggerReset(triggerEvent) { + height = getHeight[heightCalcMode]() + width = getWidth[widthCalcMode]() + + sendMsg(height, width, triggerEvent) + } + + function resetIFrame(triggerEventDesc) { + var hcm = heightCalcMode + heightCalcMode = heightCalcModeDefault + + log('Reset trigger event: ' + triggerEventDesc) + lockTrigger() + triggerReset('reset') + + heightCalcMode = hcm + } + + function sendMsg(height, width, triggerEvent, msg, targetOrigin) { + function setTargetOrigin() { + if (undefined === targetOrigin) { + targetOrigin = targetOriginDefault + } else { + log('Message targetOrigin: ' + targetOrigin) + } + } + + function sendToParent() { + var size = height + ':' + width, + message = + myID + + ':' + + size + + ':' + + triggerEvent + + (undefined !== msg ? ':' + msg : '') + + log('Sending message to host page (' + message + ')') + target.postMessage(msgID + message, targetOrigin) + } + + if (true === sendPermit) { + setTargetOrigin() + sendToParent() + } + } + + function receiver(event) { + var processRequestFromParent = { + init: function initFromParent() { + initMsg = event.data + target = event.source + + init() + firstRun = false + setTimeout(function() { + initLock = false + }, eventCancelTimer) + }, + + reset: function resetFromParent() { + if (!initLock) { + log('Page size reset by host page') + triggerReset('resetPage') + } else { + log('Page reset ignored by init') + } + }, + + resize: function resizeFromParent() { + sendSize('resizeParent', 'Parent window requested size check') + }, + + moveToAnchor: function moveToAnchorF() { + inPageLinks.findTarget(getData()) + }, + inPageLink: function inPageLinkF() { + this.moveToAnchor() + }, // Backward compatability + + pageInfo: function pageInfoFromParent() { + var msgBody = getData() + log('PageInfoFromParent called from parent: ' + msgBody) + onPageInfo(JSON.parse(msgBody)) + log(' --') + }, + + message: function messageFromParent() { + var msgBody = getData() + + log('onMessage called from parent: ' + msgBody) + // eslint-disable-next-line sonarjs/no-extra-arguments + onMessage(JSON.parse(msgBody)) + log(' --') + } + } + + function isMessageForUs() { + return msgID === ('' + event.data).substr(0, msgIdLen) // ''+ Protects against non-string messages + } + + function getMessageType() { + return event.data.split(']')[1].split(':')[0] + } + + function getData() { + return event.data.substr(event.data.indexOf(':') + 1) + } + + function isMiddleTier() { + return ( + (!(typeof module !== 'undefined' && module.exports) && + 'iFrameResize' in window) || + ('jQuery' in window && 'iFrameResize' in window.jQuery.prototype) + ) + } + + function isInitMsg() { + // Test if this message is from a child below us. This is an ugly test, however, updating + // the message format would break backwards compatibity. + return event.data.split(':')[2] in { true: 1, false: 1 } + } + + function callFromParent() { + var messageType = getMessageType() + + if (messageType in processRequestFromParent) { + processRequestFromParent[messageType]() + } else if (!isMiddleTier() && !isInitMsg()) { + warn('Unexpected message (' + event.data + ')') + } + } + + function processMessage() { + if (false === firstRun) { + callFromParent() + } else if (isInitMsg()) { + processRequestFromParent.init() + } else { + log( + 'Ignored message of type "' + + getMessageType() + + '". Received before initialization.' + ) + } + } + + if (isMessageForUs()) { + processMessage() + } + } + + // Normally the parent kicks things off when it detects the iFrame has loaded. + // If this script is async-loaded, then tell parent page to retry init. + function chkLateLoaded() { + if ('loading' !== document.readyState) { + window.parent.postMessage('[iFrameResizerChild]Ready', '*') + } + } + + addEventListener(window, 'message', receiver) + addEventListener(window, 'readystatechange', chkLateLoaded) + chkLateLoaded() + + // TEST CODE START // + + // Create test hooks + + function mockMsgListener(msgObject) { + receiver(msgObject) + return win + } + + win = {} + + removeEventListener(window, 'message', receiver) + + define([], function() { + return mockMsgListener + }) + + // TEST CODE END // +})() diff --git a/iframe-resizer-master_old/src/iframeResizer.js b/iframe-resizer-master_old/src/iframeResizer.js new file mode 100755 index 0000000..4971355 --- /dev/null +++ b/iframe-resizer-master_old/src/iframeResizer.js @@ -0,0 +1,1346 @@ +/* + * File: iframeResizer.js + * Desc: Force iframes to size to content. + * Requires: iframeResizer.contentWindow.js to be loaded into the target frame. + * Doc: https://github.com/davidjbradshaw/iframe-resizer + * Author: David J. Bradshaw - dave@bradshaw.net + * Contributor: Jure Mav - jure.mav@gmail.com + * Contributor: Reed Dadoune - reed@dadoune.com + */ + +// eslint-disable-next-line sonarjs/cognitive-complexity, no-shadow-restricted-names +;(function(undefined) { + if (typeof window === 'undefined') return // don't run for server side render + + var count = 0, + logEnabled = false, + hiddenCheckEnabled = false, + msgHeader = 'message', + msgHeaderLen = msgHeader.length, + msgId = '[iFrameSizer]', // Must match iframe msg ID + msgIdLen = msgId.length, + pagePosition = null, + requestAnimationFrame = window.requestAnimationFrame, + resetRequiredMethods = { + max: 1, + scroll: 1, + bodyScroll: 1, + documentElementScroll: 1 + }, + settings = {}, + timer = null, + defaults = { + autoResize: true, + bodyBackground: null, + bodyMargin: null, + bodyMarginV1: 8, + bodyPadding: null, + checkOrigin: true, + inPageLinks: false, + enablePublicMethods: true, + heightCalculationMethod: 'bodyOffset', + id: 'iFrameResizer', + interval: 32, + log: false, + maxHeight: Infinity, + maxWidth: Infinity, + minHeight: 0, + minWidth: 0, + resizeFrom: 'parent', + scrolling: false, + sizeHeight: true, + sizeWidth: false, + warningTimeout: 5000, + tolerance: 0, + widthCalculationMethod: 'scroll', + onClosed: function() {}, + onInit: function() {}, + onMessage: function() { + warn('onMessage function not defined') + }, + onResized: function() {}, + onScroll: function() { + return true + } + } + + function getMutationObserver() { + return ( + window.MutationObserver || + window.WebKitMutationObserver || + window.MozMutationObserver + ) + } + + function addEventListener(el, evt, func) { + el.addEventListener(evt, func, false) + } + + function removeEventListener(el, evt, func) { + el.removeEventListener(evt, func, false) + } + + function setupRequestAnimationFrame() { + var vendors = ['moz', 'webkit', 'o', 'ms'] + var x + + // Remove vendor prefixing if prefixed and break early if not + for (x = 0; x < vendors.length && !requestAnimationFrame; x += 1) { + requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'] + } + + if (!requestAnimationFrame) { + log('setup', 'RequestAnimationFrame not supported') + } + } + + function getMyID(iframeId) { + var retStr = 'Host page: ' + iframeId + + if (window.top !== window.self) { + if (window.parentIFrame && window.parentIFrame.getId) { + retStr = window.parentIFrame.getId() + ': ' + iframeId + } else { + retStr = 'Nested host page: ' + iframeId + } + } + + return retStr + } + + function formatLogHeader(iframeId) { + return msgId + '[' + getMyID(iframeId) + ']' + } + + function isLogEnabled(iframeId) { + return settings[iframeId] ? settings[iframeId].log : logEnabled + } + + function log(iframeId, msg) { + output('log', iframeId, msg, isLogEnabled(iframeId)) + } + + function info(iframeId, msg) { + output('info', iframeId, msg, isLogEnabled(iframeId)) + } + + function warn(iframeId, msg) { + output('warn', iframeId, msg, true) + } + + function output(type, iframeId, msg, enabled) { + if (true === enabled && 'object' === typeof window.console) { + // eslint-disable-next-line no-console + console[type](formatLogHeader(iframeId), msg) + } + } + + function iFrameListener(event) { + function resizeIFrame() { + function resize() { + setSize(messageData) + setPagePosition(iframeId) + on('onResized', messageData) + } + + ensureInRange('Height') + ensureInRange('Width') + + syncResize(resize, messageData, 'init') + } + + function processMsg() { + var data = msg.substr(msgIdLen).split(':') + + return { + iframe: settings[data[0]] && settings[data[0]].iframe, + id: data[0], + height: data[1], + width: data[2], + type: data[3] + } + } + + function ensureInRange(Dimension) { + var max = Number(settings[iframeId]['max' + Dimension]), + min = Number(settings[iframeId]['min' + Dimension]), + dimension = Dimension.toLowerCase(), + size = Number(messageData[dimension]) + + log(iframeId, 'Checking ' + dimension + ' is in range ' + min + '-' + max) + + if (size < min) { + size = min + log(iframeId, 'Set ' + dimension + ' to min value') + } + + if (size > max) { + size = max + log(iframeId, 'Set ' + dimension + ' to max value') + } + + messageData[dimension] = '' + size + } + + function isMessageFromIFrame() { + function checkAllowedOrigin() { + function checkList() { + var i = 0, + retCode = false + + log( + iframeId, + 'Checking connection is from allowed list of origins: ' + + checkOrigin + ) + + for (; i < checkOrigin.length; i++) { + if (checkOrigin[i] === origin) { + retCode = true + break + } + } + return retCode + } + + function checkSingle() { + var remoteHost = settings[iframeId] && settings[iframeId].remoteHost + log(iframeId, 'Checking connection is from: ' + remoteHost) + return origin === remoteHost + } + + return checkOrigin.constructor === Array ? checkList() : checkSingle() + } + + var origin = event.origin, + checkOrigin = settings[iframeId] && settings[iframeId].checkOrigin + + if (checkOrigin && '' + origin !== 'null' && !checkAllowedOrigin()) { + throw new Error( + 'Unexpected message received from: ' + + origin + + ' for ' + + messageData.iframe.id + + '. Message was: ' + + event.data + + '. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.' + ) + } + + return true + } + + function isMessageForUs() { + return ( + msgId === ('' + msg).substr(0, msgIdLen) && + msg.substr(msgIdLen).split(':')[0] in settings + ) // ''+Protects against non-string msg + } + + function isMessageFromMetaParent() { + // Test if this message is from a parent above us. This is an ugly test, however, updating + // the message format would break backwards compatibity. + var retCode = messageData.type in { true: 1, false: 1, undefined: 1 } + + if (retCode) { + log(iframeId, 'Ignoring init message from meta parent page') + } + + return retCode + } + + function getMsgBody(offset) { + return msg.substr(msg.indexOf(':') + msgHeaderLen + offset) + } + + function forwardMsgFromIFrame(msgBody) { + log( + iframeId, + 'onMessage passed: {iframe: ' + + messageData.iframe.id + + ', message: ' + + msgBody + + '}' + ) + on('onMessage', { + iframe: messageData.iframe, + message: JSON.parse(msgBody) + }) + log(iframeId, '--') + } + + function getPageInfo() { + var bodyPosition = document.body.getBoundingClientRect(), + iFramePosition = messageData.iframe.getBoundingClientRect() + + return JSON.stringify({ + iframeHeight: iFramePosition.height, + iframeWidth: iFramePosition.width, + clientHeight: Math.max( + document.documentElement.clientHeight, + window.innerHeight || 0 + ), + clientWidth: Math.max( + document.documentElement.clientWidth, + window.innerWidth || 0 + ), + offsetTop: parseInt(iFramePosition.top - bodyPosition.top, 10), + offsetLeft: parseInt(iFramePosition.left - bodyPosition.left, 10), + scrollTop: window.pageYOffset, + scrollLeft: window.pageXOffset, + documentHeight: document.documentElement.clientHeight, + documentWidth: document.documentElement.clientWidth, + windowHeight: window.innerHeight, + windowWidth: window.innerWidth + }) + } + + function sendPageInfoToIframe(iframe, iframeId) { + function debouncedTrigger() { + trigger('Send Page Info', 'pageInfo:' + getPageInfo(), iframe, iframeId) + } + debounceFrameEvents(debouncedTrigger, 32, iframeId) + } + + function startPageInfoMonitor() { + function setListener(type, func) { + function sendPageInfo() { + if (settings[id]) { + sendPageInfoToIframe(settings[id].iframe, id) + } else { + stop() + } + } + + ;['scroll', 'resize'].forEach(function(evt) { + log(id, type + evt + ' listener for sendPageInfo') + func(window, evt, sendPageInfo) + }) + } + + function stop() { + setListener('Remove ', removeEventListener) + } + + function start() { + setListener('Add ', addEventListener) + } + + var id = iframeId // Create locally scoped copy of iFrame ID + + start() + + if (settings[id]) { + settings[id].stopPageInfo = stop + } + } + + function stopPageInfoMonitor() { + if (settings[iframeId] && settings[iframeId].stopPageInfo) { + settings[iframeId].stopPageInfo() + delete settings[iframeId].stopPageInfo + } + } + + function checkIFrameExists() { + var retBool = true + + if (null === messageData.iframe) { + warn(iframeId, 'IFrame (' + messageData.id + ') not found') + retBool = false + } + return retBool + } + + function getElementPosition(target) { + var iFramePosition = target.getBoundingClientRect() + + getPagePosition(iframeId) + + return { + x: Math.floor(Number(iFramePosition.left) + Number(pagePosition.x)), + y: Math.floor(Number(iFramePosition.top) + Number(pagePosition.y)) + } + } + + function scrollRequestFromChild(addOffset) { + /* istanbul ignore next */ // Not testable in Karma + function reposition() { + pagePosition = newPosition + scrollTo() + log(iframeId, '--') + } + + function calcOffset() { + return { + x: Number(messageData.width) + offset.x, + y: Number(messageData.height) + offset.y + } + } + + function scrollParent() { + if (window.parentIFrame) { + window.parentIFrame['scrollTo' + (addOffset ? 'Offset' : '')]( + newPosition.x, + newPosition.y + ) + } else { + warn( + iframeId, + 'Unable to scroll to requested position, window.parentIFrame not found' + ) + } + } + + var offset = addOffset + ? getElementPosition(messageData.iframe) + : { x: 0, y: 0 }, + newPosition = calcOffset() + + log( + iframeId, + 'Reposition requested from iFrame (offset x:' + + offset.x + + ' y:' + + offset.y + + ')' + ) + + if (window.top !== window.self) { + scrollParent() + } else { + reposition() + } + } + + function scrollTo() { + if (false !== on('onScroll', pagePosition)) { + setPagePosition(iframeId) + } else { + unsetPagePosition() + } + } + + function findTarget(location) { + function jumpToTarget() { + var jumpPosition = getElementPosition(target) + + log( + iframeId, + 'Moving to in page link (#' + + hash + + ') at x: ' + + jumpPosition.x + + ' y: ' + + jumpPosition.y + ) + pagePosition = { + x: jumpPosition.x, + y: jumpPosition.y + } + + scrollTo() + log(iframeId, '--') + } + + function jumpToParent() { + if (window.parentIFrame) { + window.parentIFrame.moveToAnchor(hash) + } else { + log( + iframeId, + 'In page link #' + + hash + + ' not found and window.parentIFrame not found' + ) + } + } + + var hash = location.split('#')[1] || '', + hashData = decodeURIComponent(hash), + target = + document.getElementById(hashData) || + document.getElementsByName(hashData)[0] + + if (target) { + jumpToTarget() + } else if (window.top !== window.self) { + jumpToParent() + } else { + log(iframeId, 'In page link #' + hash + ' not found') + } + } + + function on(funcName, val) { + return chkEvent(iframeId, funcName, val) + } + + function actionMsg() { + if (settings[iframeId] && settings[iframeId].firstRun) firstRun() + + switch (messageData.type) { + case 'close': + if (settings[iframeId].closeRequeston) + chkEvent(iframeId, 'onCloseRequest', settings[iframeId].iframe) + else closeIFrame(messageData.iframe) + break + + case 'message': + forwardMsgFromIFrame(getMsgBody(6)) + break + + case 'scrollTo': + scrollRequestFromChild(false) + break + + case 'scrollToOffset': + scrollRequestFromChild(true) + break + + case 'pageInfo': + sendPageInfoToIframe( + settings[iframeId] && settings[iframeId].iframe, + iframeId + ) + startPageInfoMonitor() + break + + case 'pageInfoStop': + stopPageInfoMonitor() + break + + case 'inPageLink': + findTarget(getMsgBody(9)) + break + + case 'reset': + resetIFrame(messageData) + break + + case 'init': + resizeIFrame() + on('onInit', messageData.iframe) + break + + default: + resizeIFrame() + } + } + + function hasSettings(iframeId) { + var retBool = true + + if (!settings[iframeId]) { + retBool = false + warn( + messageData.type + + ' No settings for ' + + iframeId + + '. Message was: ' + + msg + ) + } + + return retBool + } + + function iFrameReadyMsgReceived() { + // eslint-disable-next-line no-restricted-syntax, guard-for-in + for (var iframeId in settings) { + trigger( + 'iFrame requested init', + createOutgoingMsg(iframeId), + document.getElementById(iframeId), + iframeId + ) + } + } + + function firstRun() { + if (settings[iframeId]) { + settings[iframeId].firstRun = false + } + } + + var msg = event.data, + messageData = {}, + iframeId = null + + if ('[iFrameResizerChild]Ready' === msg) { + iFrameReadyMsgReceived() + } else if (isMessageForUs()) { + messageData = processMsg() + iframeId = messageData.id + if (settings[iframeId]) { + settings[iframeId].loaded = true + } + + if (!isMessageFromMetaParent() && hasSettings(iframeId)) { + log(iframeId, 'Received: ' + msg) + + if (checkIFrameExists() && isMessageFromIFrame()) { + actionMsg() + } + } + } else { + info(iframeId, 'Ignored: ' + msg) + } + } + + function chkEvent(iframeId, funcName, val) { + var func = null, + retVal = null + + if (settings[iframeId]) { + func = settings[iframeId][funcName] + + if ('function' === typeof func) { + retVal = func(val) + } else { + throw new TypeError( + funcName + ' on iFrame[' + iframeId + '] is not a function' + ) + } + } + + return retVal + } + + function removeIframeListeners(iframe) { + var iframeId = iframe.id + delete settings[iframeId] + } + + function closeIFrame(iframe) { + var iframeId = iframe.id + log(iframeId, 'Removing iFrame: ' + iframeId) + + try { + // Catch race condition error with React + if (iframe.parentNode) { + iframe.parentNode.removeChild(iframe) + } + } catch (error) { + warn(error) + } + + chkEvent(iframeId, 'onClosed', iframeId) + log(iframeId, '--') + removeIframeListeners(iframe) + } + + function getPagePosition(iframeId) { + if (null === pagePosition) { + pagePosition = { + x: + window.pageXOffset !== undefined + ? window.pageXOffset + : document.documentElement.scrollLeft, + y: + window.pageYOffset !== undefined + ? window.pageYOffset + : document.documentElement.scrollTop + } + log( + iframeId, + 'Get page position: ' + pagePosition.x + ',' + pagePosition.y + ) + } + } + + function setPagePosition(iframeId) { + if (null !== pagePosition) { + window.scrollTo(pagePosition.x, pagePosition.y) + log( + iframeId, + 'Set page position: ' + pagePosition.x + ',' + pagePosition.y + ) + unsetPagePosition() + } + } + + function unsetPagePosition() { + pagePosition = null + } + + function resetIFrame(messageData) { + function reset() { + setSize(messageData) + trigger('reset', 'reset', messageData.iframe, messageData.id) + } + + log( + messageData.id, + 'Size reset requested by ' + + ('init' === messageData.type ? 'host page' : 'iFrame') + ) + getPagePosition(messageData.id) + syncResize(reset, messageData, 'reset') + } + + function setSize(messageData) { + function setDimension(dimension) { + if (!messageData.id) { + log('undefined', 'messageData id not set') + return + } + messageData.iframe.style[dimension] = messageData[dimension] + 'px' + log( + messageData.id, + 'IFrame (' + + iframeId + + ') ' + + dimension + + ' set to ' + + messageData[dimension] + + 'px' + ) + } + + function chkZero(dimension) { + // FireFox sets dimension of hidden iFrames to zero. + // So if we detect that set up an event to check for + // when iFrame becomes visible. + + /* istanbul ignore next */ // Not testable in PhantomJS + if (!hiddenCheckEnabled && '0' === messageData[dimension]) { + hiddenCheckEnabled = true + log(iframeId, 'Hidden iFrame detected, creating visibility listener') + fixHiddenIFrames() + } + } + + function processDimension(dimension) { + setDimension(dimension) + chkZero(dimension) + } + + var iframeId = messageData.iframe.id + + if (settings[iframeId]) { + if (settings[iframeId].sizeHeight) { + processDimension('height') + } + if (settings[iframeId].sizeWidth) { + processDimension('width') + } + } + } + + function syncResize(func, messageData, doNotSync) { + /* istanbul ignore if */ // Not testable in PhantomJS + if (doNotSync !== messageData.type && requestAnimationFrame) { + log(messageData.id, 'Requesting animation frame') + requestAnimationFrame(func) + } else { + func() + } + } + + function trigger(calleeMsg, msg, iframe, id, noResponseWarning) { + function postMessageToIFrame() { + var target = settings[id] && settings[id].targetOrigin + log( + id, + '[' + + calleeMsg + + '] Sending msg to iframe[' + + id + + '] (' + + msg + + ') targetOrigin: ' + + target + ) + iframe.contentWindow.postMessage(msgId + msg, target) + } + + function iFrameNotFound() { + warn(id, '[' + calleeMsg + '] IFrame(' + id + ') not found') + } + + function chkAndSend() { + if ( + iframe && + 'contentWindow' in iframe && + null !== iframe.contentWindow + ) { + // Null test for PhantomJS + postMessageToIFrame() + } else { + iFrameNotFound() + } + } + + function warnOnNoResponse() { + function warning() { + if (settings[id] && !settings[id].loaded && !errorShown) { + errorShown = true + warn( + id, + 'IFrame has not responded within ' + + settings[id].warningTimeout / 1000 + + ' seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.' + ) + } + } + + if ( + !!noResponseWarning && + settings[id] && + !!settings[id].warningTimeout + ) { + settings[id].msgTimeout = setTimeout( + warning, + settings[id].warningTimeout + ) + } + } + + var errorShown = false + + id = id || iframe.id + + if (settings[id]) { + chkAndSend() + warnOnNoResponse() + } + } + + function createOutgoingMsg(iframeId) { + return ( + iframeId + + ':' + + settings[iframeId].bodyMarginV1 + + ':' + + settings[iframeId].sizeWidth + + ':' + + settings[iframeId].log + + ':' + + settings[iframeId].interval + + ':' + + settings[iframeId].enablePublicMethods + + ':' + + settings[iframeId].autoResize + + ':' + + settings[iframeId].bodyMargin + + ':' + + settings[iframeId].heightCalculationMethod + + ':' + + settings[iframeId].bodyBackground + + ':' + + settings[iframeId].bodyPadding + + ':' + + settings[iframeId].tolerance + + ':' + + settings[iframeId].inPageLinks + + ':' + + settings[iframeId].resizeFrom + + ':' + + settings[iframeId].widthCalculationMethod + ) + } + + function setupIFrame(iframe, options) { + function setLimits() { + function addStyle(style) { + if ( + Infinity !== settings[iframeId][style] && + 0 !== settings[iframeId][style] + ) { + iframe.style[style] = settings[iframeId][style] + 'px' + log( + iframeId, + 'Set ' + style + ' = ' + settings[iframeId][style] + 'px' + ) + } + } + + function chkMinMax(dimension) { + if ( + settings[iframeId]['min' + dimension] > + settings[iframeId]['max' + dimension] + ) { + throw new Error( + 'Value for min' + + dimension + + ' can not be greater than max' + + dimension + ) + } + } + + chkMinMax('Height') + chkMinMax('Width') + + addStyle('maxHeight') + addStyle('minHeight') + addStyle('maxWidth') + addStyle('minWidth') + } + + function newId() { + var id = (options && options.id) || defaults.id + count++ + if (null !== document.getElementById(id)) { + id += count++ + } + return id + } + + function ensureHasId(iframeId) { + if ('' === iframeId) { + // eslint-disable-next-line no-multi-assign + iframe.id = iframeId = newId() + logEnabled = (options || {}).log + log( + iframeId, + 'Added missing iframe ID: ' + iframeId + ' (' + iframe.src + ')' + ) + } + + return iframeId + } + + function setScrolling() { + log( + iframeId, + 'IFrame scrolling ' + + (settings[iframeId] && settings[iframeId].scrolling + ? 'enabled' + : 'disabled') + + ' for ' + + iframeId + ) + iframe.style.overflow = + false === (settings[iframeId] && settings[iframeId].scrolling) + ? 'hidden' + : 'auto' + switch (settings[iframeId] && settings[iframeId].scrolling) { + case 'omit': + break + + case true: + iframe.scrolling = 'yes' + break + + case false: + iframe.scrolling = 'no' + break + + default: + iframe.scrolling = settings[iframeId] + ? settings[iframeId].scrolling + : 'no' + } + } + + // The V1 iFrame script expects an int, where as in V2 expects a CSS + // string value such as '1px 3em', so if we have an int for V2, set V1=V2 + // and then convert V2 to a string PX value. + function setupBodyMarginValues() { + if ( + 'number' === + typeof (settings[iframeId] && settings[iframeId].bodyMargin) || + '0' === (settings[iframeId] && settings[iframeId].bodyMargin) + ) { + settings[iframeId].bodyMarginV1 = settings[iframeId].bodyMargin + settings[iframeId].bodyMargin = + '' + settings[iframeId].bodyMargin + 'px' + } + } + + function checkReset() { + // Reduce scope of firstRun to function, because IE8's JS execution + // context stack is borked and this value gets externally + // changed midway through running this function!!! + var firstRun = settings[iframeId] && settings[iframeId].firstRun, + resetRequertMethod = + settings[iframeId] && + settings[iframeId].heightCalculationMethod in resetRequiredMethods + + if (!firstRun && resetRequertMethod) { + resetIFrame({ iframe: iframe, height: 0, width: 0, type: 'init' }) + } + } + + function setupIFrameObject() { + if (settings[iframeId]) { + settings[iframeId].iframe.iFrameResizer = { + close: closeIFrame.bind(null, settings[iframeId].iframe), + + removeListeners: removeIframeListeners.bind( + null, + settings[iframeId].iframe + ), + + resize: trigger.bind( + null, + 'Window resize', + 'resize', + settings[iframeId].iframe + ), + + moveToAnchor: function(anchor) { + trigger( + 'Move to anchor', + 'moveToAnchor:' + anchor, + settings[iframeId].iframe, + iframeId + ) + }, + + sendMessage: function(message) { + message = JSON.stringify(message) + trigger( + 'Send Message', + 'message:' + message, + settings[iframeId].iframe, + iframeId + ) + } + } + } + } + + // We have to call trigger twice, as we can not be sure if all + // iframes have completed loading when this code runs. The + // event listener also catches the page changing in the iFrame. + function init(msg) { + function iFrameLoaded() { + trigger('iFrame.onload', msg, iframe, undefined, true) + checkReset() + } + + function createDestroyObserver(MutationObserver) { + if (!iframe.parentNode) { + return + } + + var destroyObserver = new MutationObserver(function(mutations) { + mutations.forEach(function(mutation) { + var removedNodes = Array.prototype.slice.call(mutation.removedNodes) // Transform NodeList into an Array + removedNodes.forEach(function(removedNode) { + if (removedNode === iframe) { + closeIFrame(iframe) + } + }) + }) + }) + destroyObserver.observe(iframe.parentNode, { + childList: true + }) + } + + var MutationObserver = getMutationObserver() + if (MutationObserver) { + createDestroyObserver(MutationObserver) + } + + addEventListener(iframe, 'load', iFrameLoaded) + trigger('init', msg, iframe, undefined, true) + } + + function checkOptions(options) { + if ('object' !== typeof options) { + throw new TypeError('Options is not an object') + } + } + + function copyOptions(options) { + // eslint-disable-next-line no-restricted-syntax + for (var option in defaults) { + if (Object.prototype.hasOwnProperty.call(defaults, option)) { + settings[iframeId][option] = Object.prototype.hasOwnProperty.call( + options, + option + ) + ? options[option] + : defaults[option] + } + } + } + + function getTargetOrigin(remoteHost) { + return '' === remoteHost || 'file://' === remoteHost ? '*' : remoteHost + } + + function depricate(key) { + var splitName = key.split('Callback') + + if (splitName.length === 2) { + var name = + 'on' + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1) + this[name] = this[key] + delete this[key] + warn( + iframeId, + "Deprecated: '" + + key + + "' has been renamed '" + + name + + "'. The old method will be removed in the next major version." + ) + } + } + + function processOptions(options) { + options = options || {} + settings[iframeId] = { + firstRun: true, + iframe: iframe, + remoteHost: iframe.src + .split('/') + .slice(0, 3) + .join('/') + } + + checkOptions(options) + Object.keys(options).forEach(depricate, options) + copyOptions(options) + + if (settings[iframeId]) { + settings[iframeId].targetOrigin = + true === settings[iframeId].checkOrigin + ? getTargetOrigin(settings[iframeId].remoteHost) + : '*' + } + } + + function beenHere() { + return iframeId in settings && 'iFrameResizer' in iframe + } + + var iframeId = ensureHasId(iframe.id) + + if (!beenHere()) { + processOptions(options) + setScrolling() + setLimits() + setupBodyMarginValues() + init(createOutgoingMsg(iframeId)) + setupIFrameObject() + } else { + warn(iframeId, 'Ignored iFrame, already setup.') + } + } + + function debouce(fn, time) { + if (null === timer) { + timer = setTimeout(function() { + timer = null + fn() + }, time) + } + } + + var frameTimer = {} + function debounceFrameEvents(fn, time, frameId) { + if (!frameTimer[frameId]) { + frameTimer[frameId] = setTimeout(function() { + frameTimer[frameId] = null + fn() + }, time) + } + } + + // Not testable in PhantomJS + /* istanbul ignore next */ + + function fixHiddenIFrames() { + function checkIFrames() { + function checkIFrame(settingId) { + function chkDimension(dimension) { + return ( + '0px' === + (settings[settingId] && settings[settingId].iframe.style[dimension]) + ) + } + + function isVisible(el) { + return null !== el.offsetParent + } + + if ( + settings[settingId] && + isVisible(settings[settingId].iframe) && + (chkDimension('height') || chkDimension('width')) + ) { + trigger( + 'Visibility change', + 'resize', + settings[settingId].iframe, + settingId + ) + } + } + + Object.keys(settings).forEach(function(key) { + checkIFrame(settings[key]) + }) + } + + function mutationObserved(mutations) { + log( + 'window', + 'Mutation observed: ' + mutations[0].target + ' ' + mutations[0].type + ) + debouce(checkIFrames, 16) + } + + function createMutationObserver() { + var target = document.querySelector('body'), + config = { + attributes: true, + attributeOldValue: false, + characterData: true, + characterDataOldValue: false, + childList: true, + subtree: true + }, + observer = new MutationObserver(mutationObserved) + + observer.observe(target, config) + } + + var MutationObserver = getMutationObserver() + if (MutationObserver) { + createMutationObserver() + } + } + + function resizeIFrames(event) { + function resize() { + sendTriggerMsg('Window ' + event, 'resize') + } + + log('window', 'Trigger event: ' + event) + debouce(resize, 16) + } + + // Not testable in PhantomJS + /* istanbul ignore next */ + function tabVisible() { + function resize() { + sendTriggerMsg('Tab Visable', 'resize') + } + + if ('hidden' !== document.visibilityState) { + log('document', 'Trigger event: Visiblity change') + debouce(resize, 16) + } + } + + function sendTriggerMsg(eventName, event) { + function isIFrameResizeEnabled(iframeId) { + return ( + settings[iframeId] && + 'parent' === settings[iframeId].resizeFrom && + settings[iframeId].autoResize && + !settings[iframeId].firstRun + ) + } + + Object.keys(settings).forEach(function(iframeId) { + if (isIFrameResizeEnabled(iframeId)) { + trigger(eventName, event, document.getElementById(iframeId), iframeId) + } + }) + } + + function setupEventListeners() { + addEventListener(window, 'message', iFrameListener) + + addEventListener(window, 'resize', function() { + resizeIFrames('resize') + }) + + addEventListener(document, 'visibilitychange', tabVisible) + + addEventListener(document, '-webkit-visibilitychange', tabVisible) + } + + function factory() { + function init(options, element) { + function chkType() { + if (!element.tagName) { + throw new TypeError('Object is not a valid DOM element') + } else if ('IFRAME' !== element.tagName.toUpperCase()) { + throw new TypeError( + 'Expected + + + + + + + + + diff --git a/iframe-resizer-master_old/test/_init_once.html b/iframe-resizer-master_old/test/_init_once.html new file mode 100755 index 0000000..25f7bba --- /dev/null +++ b/iframe-resizer-master_old/test/_init_once.html @@ -0,0 +1,52 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + diff --git a/iframe-resizer-master_old/test/_init_once_async.html b/iframe-resizer-master_old/test/_init_once_async.html new file mode 100755 index 0000000..dbf1fd6 --- /dev/null +++ b/iframe-resizer-master_old/test/_init_once_async.html @@ -0,0 +1,73 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + diff --git a/iframe-resizer-master_old/test/background.html b/iframe-resizer-master_old/test/background.html new file mode 100755 index 0000000..9b1e4fd --- /dev/null +++ b/iframe-resizer-master_old/test/background.html @@ -0,0 +1,47 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master_old/test/changePage.html b/iframe-resizer-master_old/test/changePage.html new file mode 100755 index 0000000..8e1074b --- /dev/null +++ b/iframe-resizer-master_old/test/changePage.html @@ -0,0 +1,55 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master_old/test/close.html b/iframe-resizer-master_old/test/close.html new file mode 100755 index 0000000..73b389e --- /dev/null +++ b/iframe-resizer-master_old/test/close.html @@ -0,0 +1,44 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master_old/test/getId.html b/iframe-resizer-master_old/test/getId.html new file mode 100755 index 0000000..a88322a --- /dev/null +++ b/iframe-resizer-master_old/test/getId.html @@ -0,0 +1,48 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master_old/test/interval.html b/iframe-resizer-master_old/test/interval.html new file mode 100755 index 0000000..b0d0589 --- /dev/null +++ b/iframe-resizer-master_old/test/interval.html @@ -0,0 +1,59 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master_old/test/jqueryNoConflict.html b/iframe-resizer-master_old/test/jqueryNoConflict.html new file mode 100755 index 0000000..8e3f6df --- /dev/null +++ b/iframe-resizer-master_old/test/jqueryNoConflict.html @@ -0,0 +1,49 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + diff --git a/iframe-resizer-master_old/test/lateImageLoad.html b/iframe-resizer-master_old/test/lateImageLoad.html new file mode 100755 index 0000000..2ca9a76 --- /dev/null +++ b/iframe-resizer-master_old/test/lateImageLoad.html @@ -0,0 +1,92 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master_old/test/margin.html b/iframe-resizer-master_old/test/margin.html new file mode 100755 index 0000000..ad18fb4 --- /dev/null +++ b/iframe-resizer-master_old/test/margin.html @@ -0,0 +1,67 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master_old/test/mutationObserver.html b/iframe-resizer-master_old/test/mutationObserver.html new file mode 100755 index 0000000..a0d6cec --- /dev/null +++ b/iframe-resizer-master_old/test/mutationObserver.html @@ -0,0 +1,74 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + diff --git a/iframe-resizer-master_old/test/nested.html b/iframe-resizer-master_old/test/nested.html new file mode 100755 index 0000000..5173c80 --- /dev/null +++ b/iframe-resizer-master_old/test/nested.html @@ -0,0 +1,46 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master_old/test/removeIFrame.html b/iframe-resizer-master_old/test/removeIFrame.html new file mode 100755 index 0000000..ade5f18 --- /dev/null +++ b/iframe-resizer-master_old/test/removeIFrame.html @@ -0,0 +1,105 @@ + + + + + QUnit LoadHide + + + + +
+
+
+
+ +
+
+ + + + + + + diff --git a/iframe-resizer-master_old/test/resize.contentWidth.html b/iframe-resizer-master_old/test/resize.contentWidth.html new file mode 100755 index 0000000..405c236 --- /dev/null +++ b/iframe-resizer-master_old/test/resize.contentWidth.html @@ -0,0 +1,51 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master_old/test/resize.width.html b/iframe-resizer-master_old/test/resize.width.html new file mode 100755 index 0000000..d3dd5f3 --- /dev/null +++ b/iframe-resizer-master_old/test/resize.width.html @@ -0,0 +1,82 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + diff --git a/iframe-resizer-master_old/test/resources/djb.jpg b/iframe-resizer-master_old/test/resources/djb.jpg new file mode 100755 index 0000000..5b4d98f Binary files /dev/null and b/iframe-resizer-master_old/test/resources/djb.jpg differ diff --git a/iframe-resizer-master_old/test/resources/frame.content.html b/iframe-resizer-master_old/test/resources/frame.content.html new file mode 100755 index 0000000..64f1d66 --- /dev/null +++ b/iframe-resizer-master_old/test/resources/frame.content.html @@ -0,0 +1,270 @@ + + + + + + iFrame message passing test + + + + + + + + iFrame + +
Some content to be replaced
+ +

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna + aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint + occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will + give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the + master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but + because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. + Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because + occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial + example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who + has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who + avoids a pain that produces no resultant pleasure? +

+

+ On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the + charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound + to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as + saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free + hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, + every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty + or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. + The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure + other greater pleasures, or else he endures pains to avoid worse pains. +

+ + + + + + + + + diff --git a/iframe-resizer-master_old/test/resources/frame.lateload.html b/iframe-resizer-master_old/test/resources/frame.lateload.html new file mode 100755 index 0000000..84b73b7 --- /dev/null +++ b/iframe-resizer-master_old/test/resources/frame.lateload.html @@ -0,0 +1,46 @@ + + + + + + iFrame message passing test + + + + + + + +

Late load JS test

+

Load JS with require after load event has fired.

+
+
+ + + + + + + \ No newline at end of file diff --git a/iframe-resizer-master_old/test/resources/frame.nested.html b/iframe-resizer-master_old/test/resources/frame.nested.html new file mode 100755 index 0000000..e50d636 --- /dev/null +++ b/iframe-resizer-master_old/test/resources/frame.nested.html @@ -0,0 +1,45 @@ + + + + + + + + iFrame message passing test + + + + + + + +

Nested iFrame

+

Resize window or click one of the links in the nested iFrame to watch it resize.

+
+ +
+

+

+ + + + + + + + + + diff --git a/iframe-resizer-master_old/test/resources/jquery.js b/iframe-resizer-master_old/test/resources/jquery.js new file mode 100755 index 0000000..b091807 --- /dev/null +++ b/iframe-resizer-master_old/test/resources/jquery.js @@ -0,0 +1,6 @@ +/*! jQuery v2.0.3 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license +//@ sourceMappingURL=jquery-2.0.3.min.map +*/ +(function(e,undefined){var t,n,r=typeof undefined,i=e.location,o=e.document,s=o.documentElement,a=e.jQuery,u=e.$,l={},c=[],p="2.0.3",f=c.concat,h=c.push,d=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,x=function(e,n){return new x.fn.init(e,n,t)},b=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^-ms-/,N=/-([\da-z])/gi,E=function(e,t){return t.toUpperCase()},S=function(){o.removeEventListener("DOMContentLoaded",S,!1),e.removeEventListener("load",S,!1),x.ready()};x.fn=x.prototype={jquery:p,constructor:x,init:function(e,t,n){var r,i;if(!e)return this;if("string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:T.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),C.test(r[1])&&x.isPlainObject(t))for(r in t)x.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=o.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?n.ready(e):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return d.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},a=2),"object"==typeof s||x.isFunction(s)||(s={}),u===a&&(s=this,--a);u>a;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(l&&r&&(x.isPlainObject(r)||(i=x.isArray(r)))?(i?(i=!1,o=n&&x.isArray(n)?n:[]):o=n&&x.isPlainObject(n)?n:{},s[t]=x.extend(l,o,r)):r!==undefined&&(s[t]=r));return s},x.extend({expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=a),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){(e===!0?--x.readyWait:x.isReady)||(x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(o,[x]),x.fn.trigger&&x(o).trigger("ready").off("ready")))},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(r){t=undefined}return(!t||t.getElementsByTagName("parsererror").length)&&x.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){var t,n=eval;e=x.trim(e),e&&(1===e.indexOf("use strict")?(t=o.createElement("script"),t.text=e,o.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(k,"ms-").replace(N,E)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,s=j(e);if(n){if(s){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(s){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:function(e){return null==e?"":v.call(e)},makeArray:function(e,t){var n=t||[];return null!=e&&(j(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:g.call(t,e,n)},merge:function(e,t){var n=t.length,r=e.length,i=0;if("number"==typeof n)for(;n>i;i++)e[r++]=t[i];else while(t[i]!==undefined)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){var r,i=[],o=0,s=e.length;for(n=!!n;s>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,s=j(e),a=[];if(s)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(a[a.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(a[a.length]=r);return f.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),x.isFunction(e)?(r=d.call(arguments,2),i=function(){return e.apply(t||this,r.concat(d.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):undefined},access:function(e,t,n,r,i,o,s){var a=0,u=e.length,l=null==n;if("object"===x.type(n)){i=!0;for(a in n)x.access(e,t,a,n[a],!0,o,s)}else if(r!==undefined&&(i=!0,x.isFunction(r)||(s=!0),l&&(s?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(x(e),n)})),t))for(;u>a;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:l?t.call(e):u?t(e[0],n):o},now:Date.now,swap:function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i}}),x.ready.promise=function(t){return n||(n=x.Deferred(),"complete"===o.readyState?setTimeout(x.ready):(o.addEventListener("DOMContentLoaded",S,!1),e.addEventListener("load",S,!1))),n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function j(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}t=x(o),function(e,undefined){var t,n,r,i,o,s,a,u,l,c,p,f,h,d,g,m,y,v="sizzle"+-new Date,b=e.document,w=0,T=0,C=st(),k=st(),N=st(),E=!1,S=function(e,t){return e===t?(E=!0,0):0},j=typeof undefined,D=1<<31,A={}.hasOwnProperty,L=[],q=L.pop,H=L.push,O=L.push,F=L.slice,P=L.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",W="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",$=W.replace("w","w#"),B="\\["+M+"*("+W+")"+M+"*(?:([*^$|!~]?=)"+M+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+$+")|)|)"+M+"*\\]",I=":("+W+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+B.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=RegExp("^"+M+"*,"+M+"*"),X=RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=RegExp(M+"*[+~]"),Y=RegExp("="+M+"*([^\\]'\"]*)"+M+"*\\]","g"),V=RegExp(I),G=RegExp("^"+$+"$"),J={ID:RegExp("^#("+W+")"),CLASS:RegExp("^\\.("+W+")"),TAG:RegExp("^("+W.replace("w","w*")+")"),ATTR:RegExp("^"+B),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:RegExp("^(?:"+R+")$","i"),needsContext:RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Q=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/^(?:input|select|textarea|button)$/i,et=/^h\d$/i,tt=/'|\\/g,nt=RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),rt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{O.apply(L=F.call(b.childNodes),b.childNodes),L[b.childNodes.length].nodeType}catch(it){O={apply:L.length?function(e,t){H.apply(e,F.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function ot(e,t,r,i){var o,s,a,u,l,f,g,m,x,w;if((t?t.ownerDocument||t:b)!==p&&c(t),t=t||p,r=r||[],!e||"string"!=typeof e)return r;if(1!==(u=t.nodeType)&&9!==u)return[];if(h&&!i){if(o=K.exec(e))if(a=o[1]){if(9===u){if(s=t.getElementById(a),!s||!s.parentNode)return r;if(s.id===a)return r.push(s),r}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(a))&&y(t,s)&&s.id===a)return r.push(s),r}else{if(o[2])return O.apply(r,t.getElementsByTagName(e)),r;if((a=o[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&(!d||!d.test(e))){if(m=g=v,x=t,w=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){f=gt(e),(g=t.getAttribute("id"))?m=g.replace(tt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",l=f.length;while(l--)f[l]=m+mt(f[l]);x=U.test(e)&&t.parentNode||t,w=f.join(",")}if(w)try{return O.apply(r,x.querySelectorAll(w)),r}catch(T){}finally{g||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,r,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>i.cacheLength&&delete t[e.shift()],t[n]=r}return t}function at(e){return e[v]=!0,e}function ut(e){var t=p.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function lt(e,t){var n=e.split("|"),r=e.length;while(r--)i.attrHandle[n[r]]=t}function ct(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function pt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return at(function(t){return t=+t,at(function(n,r){var i,o=e([],n.length,t),s=o.length;while(s--)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}s=ot.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},n=ot.support={},c=ot.setDocument=function(e){var t=e?e.ownerDocument||e:b,r=t.defaultView;return t!==p&&9===t.nodeType&&t.documentElement?(p=t,f=t.documentElement,h=!s(t),r&&r.attachEvent&&r!==r.top&&r.attachEvent("onbeforeunload",function(){c()}),n.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ut(function(e){return e.appendChild(t.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=ut(function(e){return e.innerHTML="
",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),n.getById=ut(function(e){return f.appendChild(e).id=v,!t.getElementsByName||!t.getElementsByName(v).length}),n.getById?(i.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){return e.getAttribute("id")===t}}):(delete i.find.ID,i.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=n.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==j?t.getElementsByTagName(e):undefined}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==j&&h?t.getElementsByClassName(e):undefined},g=[],d=[],(n.qsa=Q.test(t.querySelectorAll))&&(ut(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll(":checked").length||d.push(":checked")}),ut(function(e){var n=t.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&d.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||d.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),d.push(",.*:")})),(n.matchesSelector=Q.test(m=f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ut(function(e){n.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),g.push("!=",I)}),d=d.length&&RegExp(d.join("|")),g=g.length&&RegExp(g.join("|")),y=Q.test(f.contains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},S=f.compareDocumentPosition?function(e,r){if(e===r)return E=!0,0;var i=r.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(r);return i?1&i||!n.sortDetached&&r.compareDocumentPosition(e)===i?e===t||y(b,e)?-1:r===t||y(b,r)?1:l?P.call(l,e)-P.call(l,r):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,n){var r,i=0,o=e.parentNode,s=n.parentNode,a=[e],u=[n];if(e===n)return E=!0,0;if(!o||!s)return e===t?-1:n===t?1:o?-1:s?1:l?P.call(l,e)-P.call(l,n):0;if(o===s)return ct(e,n);r=e;while(r=r.parentNode)a.unshift(r);r=n;while(r=r.parentNode)u.unshift(r);while(a[i]===u[i])i++;return i?ct(a[i],u[i]):a[i]===b?-1:u[i]===b?1:0},t):p},ot.matches=function(e,t){return ot(e,null,null,t)},ot.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&c(e),t=t.replace(Y,"='$1']"),!(!n.matchesSelector||!h||g&&g.test(t)||d&&d.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return ot(t,p,null,[e]).length>0},ot.contains=function(e,t){return(e.ownerDocument||e)!==p&&c(e),y(e,t)},ot.attr=function(e,t){(e.ownerDocument||e)!==p&&c(e);var r=i.attrHandle[t.toLowerCase()],o=r&&A.call(i.attrHandle,t.toLowerCase())?r(e,t,!h):undefined;return o===undefined?n.attributes||!h?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null:o},ot.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},ot.uniqueSort=function(e){var t,r=[],i=0,o=0;if(E=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(S),E){while(t=e[o++])t===e[o]&&(i=r.push(o));while(i--)e.splice(r[i],1)}return e},o=ot.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},i=ot.selectors={cacheLength:50,createPseudo:at,match:J,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(nt,rt),e[3]=(e[4]||e[5]||"").replace(nt,rt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ot.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ot.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return J.CHILD.test(e[0])?null:(e[3]&&e[4]!==undefined?e[2]=e[4]:n&&V.test(n)&&(t=gt(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(nt,rt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ot.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,p,f,h,d,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,y=a&&t.nodeName.toLowerCase(),x=!u&&!a;if(m){if(o){while(g){p=t;while(p=p[g])if(a?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&x){c=m[v]||(m[v]={}),l=c[e]||[],h=l[0]===w&&l[1],f=l[0]===w&&l[2],p=h&&m.childNodes[h];while(p=++h&&p&&p[g]||(f=h=0)||d.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[w,h,f];break}}else if(x&&(l=(t[v]||(t[v]={}))[e])&&l[0]===w)f=l[1];else while(p=++h&&p&&p[g]||(f=h=0)||d.pop())if((a?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(x&&((p[v]||(p[v]={}))[e]=[w,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ot.error("unsupported pseudo: "+e);return r[v]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?at(function(e,n){var i,o=r(e,t),s=o.length;while(s--)i=P.call(e,o[s]),e[i]=!(n[i]=o[s])}):function(e){return r(e,0,n)}):r}},pseudos:{not:at(function(e){var t=[],n=[],r=a(e.replace(z,"$1"));return r[v]?at(function(e,t,n,i){var o,s=r(e,null,i,[]),a=e.length;while(a--)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:at(function(e){return function(t){return ot(e,t).length>0}}),contains:at(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:at(function(e){return G.test(e||"")||ot.error("unsupported lang: "+e),e=e.replace(nt,rt).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return et.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},i.pseudos.nth=i.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=pt(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=ft(t);function dt(){}dt.prototype=i.filters=i.pseudos,i.setFilters=new dt;function gt(e,t){var n,r,o,s,a,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);a=e,u=[],l=i.preFilter;while(a){(!n||(r=_.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=X.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(z," ")}),a=a.slice(n.length));for(s in i.filter)!(r=J[s].exec(a))||l[s]&&!(r=l[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ot.error(e):k(e,u).slice(0)}function mt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function yt(e,t,n){var i=t.dir,o=n&&"parentNode"===i,s=T++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,a){var u,l,c,p=w+" "+s;if(a){while(t=t[i])if((1===t.nodeType||o)&&e(t,n,a))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[v]||(t[v]={}),(l=c[i])&&l[0]===p){if((u=l[1])===!0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,a)||r,l[1]===!0)return!0}}function vt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,s=[],a=0,u=e.length,l=null!=t;for(;u>a;a++)(o=e[a])&&(!n||n(o,r,i))&&(s.push(o),l&&t.push(a));return s}function bt(e,t,n,r,i,o){return r&&!r[v]&&(r=bt(r)),i&&!i[v]&&(i=bt(i,o)),at(function(o,s,a,u){var l,c,p,f=[],h=[],d=s.length,g=o||Ct(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?g:xt(g,f,e,a,u),y=n?i||(o?e:d||r)?[]:s:m;if(n&&n(m,y,a,u),r){l=xt(y,h),r(l,[],a,u),c=l.length;while(c--)(p=l[c])&&(y[h[c]]=!(m[h[c]]=p))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&&l.push(m[c]=p);i(null,y=[],l,u)}c=y.length;while(c--)(p=y[c])&&(l=i?P.call(o,p):f[c])>-1&&(o[l]=!(s[l]=p))}}else y=xt(y===s?y.splice(d,y.length):y),i?i(null,s,y,u):O.apply(s,y)})}function wt(e){var t,n,r,o=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,c=yt(function(e){return e===t},a,!0),p=yt(function(e){return P.call(t,e)>-1},a,!0),f=[function(e,n,r){return!s&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;o>l;l++)if(n=i.relative[e[l].type])f=[yt(vt(f),n)];else{if(n=i.filter[e[l].type].apply(null,e[l].matches),n[v]){for(r=++l;o>r;r++)if(i.relative[e[r].type])break;return bt(l>1&&vt(f),l>1&&mt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&wt(e.slice(l,r)),o>r&&wt(e=e.slice(r)),o>r&&mt(e))}f.push(n)}return vt(f)}function Tt(e,t){var n=0,o=t.length>0,s=e.length>0,a=function(a,l,c,f,h){var d,g,m,y=[],v=0,x="0",b=a&&[],T=null!=h,C=u,k=a||s&&i.find.TAG("*",h&&l.parentNode||l),N=w+=null==C?1:Math.random()||.1;for(T&&(u=l!==p&&l,r=n);null!=(d=k[x]);x++){if(s&&d){g=0;while(m=e[g++])if(m(d,l,c)){f.push(d);break}T&&(w=N,r=++n)}o&&((d=!m&&d)&&v--,a&&b.push(d))}if(v+=x,o&&x!==v){g=0;while(m=t[g++])m(b,y,l,c);if(a){if(v>0)while(x--)b[x]||y[x]||(y[x]=q.call(f));y=xt(y)}O.apply(f,y),T&&!a&&y.length>0&&v+t.length>1&&ot.uniqueSort(f)}return T&&(w=N,u=C),b};return o?at(a):a}a=ot.compile=function(e,t){var n,r=[],i=[],o=N[e+" "];if(!o){t||(t=gt(e)),n=t.length;while(n--)o=wt(t[n]),o[v]?r.push(o):i.push(o);o=N(e,Tt(i,r))}return o};function Ct(e,t,n){var r=0,i=t.length;for(;i>r;r++)ot(e,t[r],n);return n}function kt(e,t,r,o){var s,u,l,c,p,f=gt(e);if(!o&&1===f.length){if(u=f[0]=f[0].slice(0),u.length>2&&"ID"===(l=u[0]).type&&n.getById&&9===t.nodeType&&h&&i.relative[u[1].type]){if(t=(i.find.ID(l.matches[0].replace(nt,rt),t)||[])[0],!t)return r;e=e.slice(u.shift().value.length)}s=J.needsContext.test(e)?0:u.length;while(s--){if(l=u[s],i.relative[c=l.type])break;if((p=i.find[c])&&(o=p(l.matches[0].replace(nt,rt),U.test(u[0].type)&&t.parentNode||t))){if(u.splice(s,1),e=o.length&&mt(u),!e)return O.apply(r,o),r;break}}}return a(e,f)(o,t,!h,r,U.test(e)),r}n.sortStable=v.split("").sort(S).join("")===v,n.detectDuplicates=E,c(),n.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),ut(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||lt("type|href|height|width",function(e,t,n){return n?undefined:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ut(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||lt("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?undefined:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||lt(R,function(e,t,n){var r;return n?undefined:(r=e.getAttributeNode(t))&&r.specified?r.value:e[t]===!0?t.toLowerCase():null}),x.find=ot,x.expr=ot.selectors,x.expr[":"]=x.expr.pseudos,x.unique=ot.uniqueSort,x.text=ot.getText,x.isXMLDoc=ot.isXML,x.contains=ot.contains}(e);var D={};function A(e){var t=D[e]={};return x.each(e.match(w)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?D[e]||A(e):x.extend({},e);var t,n,r,i,o,s,a=[],u=!e.once&&[],l=function(p){for(t=e.memory&&p,n=!0,s=i||0,i=0,o=a.length,r=!0;a&&o>s;s++)if(a[s].apply(p[0],p[1])===!1&&e.stopOnFalse){t=!1;break}r=!1,a&&(u?u.length&&l(u.shift()):t?a=[]:c.disable())},c={add:function(){if(a){var n=a.length;(function s(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==r&&s(n)})})(arguments),r?o=a.length:t&&(i=n,l(t))}return this},remove:function(){return a&&x.each(arguments,function(e,t){var n;while((n=x.inArray(t,a,n))>-1)a.splice(n,1),r&&(o>=n&&o--,s>=n&&s--)}),this},has:function(e){return e?x.inArray(e,a)>-1:!(!a||!a.length)},empty:function(){return a=[],o=0,this},disable:function(){return a=u=t=undefined,this},disabled:function(){return!a},lock:function(){return u=undefined,t||c.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!a||n&&!u||(t=t||[],t=[e,t.slice?t.slice():t],r?u.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var s=o[0],a=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=d.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),s=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?d.call(arguments):r,n===a?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},a,u,l;if(r>1)for(a=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(s(t,l,n)).fail(o.reject).progress(s(t,u,a)):--i;return i||o.resolveWith(l,n),o.promise()}}),x.support=function(t){var n=o.createElement("input"),r=o.createDocumentFragment(),i=o.createElement("div"),s=o.createElement("select"),a=s.appendChild(o.createElement("option"));return n.type?(n.type="checkbox",t.checkOn=""!==n.value,t.optSelected=a.selected,t.reliableMarginRight=!0,t.boxSizingReliable=!0,t.pixelPosition=!1,n.checked=!0,t.noCloneChecked=n.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!a.disabled,n=o.createElement("input"),n.value="t",n.type="radio",t.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),r.appendChild(n),t.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,t.focusinBubbles="onfocusin"in e,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===i.style.backgroundClip,x(function(){var n,r,s="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",a=o.getElementsByTagName("body")[0];a&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(n).appendChild(i),i.innerHTML="",i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",x.swap(a,null!=a.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===i.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(i,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(i,null)||{width:"4px"}).width,r=i.appendChild(o.createElement("div")),r.style.cssText=i.style.cssText=s,r.style.marginRight=r.style.width="0",i.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),a.removeChild(n))}),t):t}({});var L,q,H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,O=/([A-Z])/g;function F(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=x.expando+Math.random()}F.uid=1,F.accepts=function(e){return e.nodeType?1===e.nodeType||9===e.nodeType:!0},F.prototype={key:function(e){if(!F.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=F.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,x.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(x.isEmptyObject(o))x.extend(this.cache[i],t);else for(r in t)o[r]=t[r];return o},get:function(e,t){var n=this.cache[this.key(e)];return t===undefined?n:n[t]},access:function(e,t,n){var r;return t===undefined||t&&"string"==typeof t&&n===undefined?(r=this.get(e,t),r!==undefined?r:this.get(e,x.camelCase(t))):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,r,i,o=this.key(e),s=this.cache[o];if(t===undefined)this.cache[o]={};else{x.isArray(t)?r=t.concat(t.map(x.camelCase)):(i=x.camelCase(t),t in s?r=[t,i]:(r=i,r=r in s?[r]:r.match(w)||[])),n=r.length;while(n--)delete s[r[n]]}},hasData:function(e){return!x.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}},L=new F,q=new F,x.extend({acceptData:F.accepts,hasData:function(e){return L.hasData(e)||q.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return q.access(e,t,n)},_removeData:function(e,t){q.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,r,i=this[0],o=0,s=null;if(e===undefined){if(this.length&&(s=L.get(i),1===i.nodeType&&!q.get(i,"hasDataAttrs"))){for(n=i.attributes;n.length>o;o++)r=n[o].name,0===r.indexOf("data-")&&(r=x.camelCase(r.slice(5)),P(i,r,s[r]));q.set(i,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each(function(){L.set(this,e)}):x.access(this,function(t){var n,r=x.camelCase(e);if(i&&t===undefined){if(n=L.get(i,e),n!==undefined)return n;if(n=L.get(i,r),n!==undefined)return n;if(n=P(i,r,undefined),n!==undefined)return n}else this.each(function(){var n=L.get(this,r);L.set(this,r,t),-1!==e.indexOf("-")&&n!==undefined&&L.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){L.remove(this,e)})}});function P(e,t,n){var r;if(n===undefined&&1===e.nodeType)if(r="data-"+t.replace(O,"-$1").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:H.test(n)?JSON.parse(n):n}catch(i){}L.set(e,t,n)}else n=undefined;return n}x.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=q.get(e,t),n&&(!r||x.isArray(n)?r=q.access(e,t,x.makeArray(n)):r.push(n)),r||[]):undefined},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),s=function(){x.dequeue(e,t) +};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return q.get(e,n)||q.access(e,n,{empty:x.Callbacks("once memory").add(function(){q.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),n>arguments.length?x.queue(this[0],e):t===undefined?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=undefined),e=e||"fx";while(s--)n=q.get(o[s],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var R,M,W=/[\t\r\n\f]/g,$=/\r/g,B=/^(?:input|select|textarea|button)$/i;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})},addClass:function(e){var t,n,r,i,o,s=0,a=this.length,u="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,s=0,a=this.length,u=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,i=0,o=x(this),s=e.match(w)||[];while(t=s[i++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===r||"boolean"===n)&&(this.className&&q.set(this,"__className__",this.className),this.className=this.className||e===!1?"":q.get(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(W," ").indexOf(t)>=0)return!0;return!1},val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=x.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,x(this).val()):e,null==i?i="":"number"==typeof i?i+="":x.isArray(i)&&(i=x.map(i,function(e){return null==e?"":e+""})),t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,i,"value")!==undefined||(this.value=i))});if(i)return t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(i,"value"))!==undefined?n:(n=i.value,"string"==typeof n?n.replace($,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,s=o?null:[],a=o?i+1:r.length,u=0>i?a:o?i:0;for(;a>u;u++)if(n=r[u],!(!n.selected&&u!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),s=i.length;while(s--)r=i[s],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,t,n){var i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===r?x.prop(e,t,n):(1===s&&x.isXMLDoc(e)||(t=t.toLowerCase(),i=x.attrHooks[t]||(x.expr.match.bool.test(t)?M:R)),n===undefined?i&&"get"in i&&null!==(o=i.get(e,t))?o:(o=x.find.attr(e,t),null==o?undefined:o):null!==n?i&&"set"in i&&(o=i.set(e,n,t))!==undefined?o:(e.setAttribute(t,n+""),n):(x.removeAttr(e,t),undefined))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return o=1!==s||!x.isXMLDoc(e),o&&(t=x.propFix[t]||t,i=x.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||B.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),M={set:function(e,t,n){return t===!1?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=x.expr.attrHandle[t]||x.find.attr;x.expr.attrHandle[t]=function(e,t,r){var i=x.expr.attrHandle[t],o=r?undefined:(x.expr.attrHandle[t]=undefined)!=n(e,t,r)?t.toLowerCase():null;return x.expr.attrHandle[t]=i,o}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){return x.isArray(t)?e.checked=x.inArray(x(e).val(),t)>=0:undefined}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var I=/^key/,z=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;function U(){return!0}function Y(){return!1}function V(){try{return o.activeElement}catch(e){}}x.event={global:{},add:function(e,t,n,i,o){var s,a,u,l,c,p,f,h,d,g,m,y=q.get(e);if(y){n.handler&&(s=n,n=s.handler,o=s.selector),n.guid||(n.guid=x.guid++),(l=y.events)||(l=y.events={}),(a=y.handle)||(a=y.handle=function(e){return typeof x===r||e&&x.event.triggered===e.type?undefined:x.event.dispatch.apply(a.elem,arguments)},a.elem=e),t=(t||"").match(w)||[""],c=t.length;while(c--)u=X.exec(t[c])||[],d=m=u[1],g=(u[2]||"").split(".").sort(),d&&(f=x.event.special[d]||{},d=(o?f.delegateType:f.bindType)||d,f=x.event.special[d]||{},p=x.extend({type:d,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:g.join(".")},s),(h=l[d])||(h=l[d]=[],h.delegateCount=0,f.setup&&f.setup.call(e,i,g,a)!==!1||e.addEventListener&&e.addEventListener(d,a,!1)),f.add&&(f.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,p):h.push(p),x.event.global[d]=!0);e=null}},remove:function(e,t,n,r,i){var o,s,a,u,l,c,p,f,h,d,g,m=q.hasData(e)&&q.get(e);if(m&&(u=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(a=X.exec(t[l])||[],h=g=a[1],d=(a[2]||"").split(".").sort(),h){p=x.event.special[h]||{},h=(r?p.delegateType:p.bindType)||h,f=u[h]||[],a=a[2]&&RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;while(o--)c=f[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,p.remove&&p.remove.call(e,c));s&&!f.length&&(p.teardown&&p.teardown.call(e,d,m.handle)!==!1||x.removeEvent(e,h,m.handle),delete u[h])}else for(h in u)x.event.remove(e,h+t[l],n,r,!0);x.isEmptyObject(u)&&(delete m.handle,q.remove(e,"events"))}},trigger:function(t,n,r,i){var s,a,u,l,c,p,f,h=[r||o],d=y.call(t,"type")?t.type:t,g=y.call(t,"namespace")?t.namespace.split("."):[];if(a=u=r=r||o,3!==r.nodeType&&8!==r.nodeType&&!_.test(d+x.event.triggered)&&(d.indexOf(".")>=0&&(g=d.split("."),d=g.shift(),g.sort()),c=0>d.indexOf(":")&&"on"+d,t=t[x.expando]?t:new x.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.namespace_re=t.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=r),n=null==n?[t]:x.makeArray(n,[t]),f=x.event.special[d]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!x.isWindow(r)){for(l=f.delegateType||d,_.test(l+d)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||o)&&h.push(u.defaultView||u.parentWindow||e)}s=0;while((a=h[s++])&&!t.isPropagationStopped())t.type=s>1?l:f.bindType||d,p=(q.get(a,"events")||{})[t.type]&&q.get(a,"handle"),p&&p.apply(a,n),p=c&&a[c],p&&x.acceptData(a)&&p.apply&&p.apply(a,n)===!1&&t.preventDefault();return t.type=d,i||t.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),n)!==!1||!x.acceptData(r)||c&&x.isFunction(r[d])&&!x.isWindow(r)&&(u=r[c],u&&(r[c]=null),x.event.triggered=d,r[d](),x.event.triggered=undefined,u&&(r[c]=u)),t.result}},dispatch:function(e){e=x.event.fix(e);var t,n,r,i,o,s=[],a=d.call(arguments),u=(q.get(this,"events")||{})[e.type]||[],l=x.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),t=0;while((i=s[t++])&&!e.isPropagationStopped()){e.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(o.namespace))&&(e.handleObj=o,e.data=o.data,r=((x.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a),r!==undefined&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,s=[],a=t.delegateCount,u=e.target;if(a&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==e.type){for(r=[],n=0;a>n;n++)o=t[n],i=o.selector+" ",r[i]===undefined&&(r[i]=o.needsContext?x(i,this).index(u)>=0:x.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return t.length>a&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,s=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||o,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||s===undefined||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,s=e,a=this.fixHooks[i];a||(this.fixHooks[i]=a=z.test(i)?this.mouseHooks:I.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new x.Event(s),t=r.length;while(t--)n=r[t],e[n]=s[n];return e.target||(e.target=o),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,s):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==V()&&this.focus?(this.focus(),!1):undefined},delegateType:"focusin"},blur:{trigger:function(){return this===V()&&this.blur?(this.blur(),!1):undefined},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&x.nodeName(this,"input")?(this.click(),!1):undefined},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},x.Event=function(e,t){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.getPreventDefault&&e.getPreventDefault()?U:Y):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,undefined):new x.Event(e,t)},x.Event.prototype={isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=U,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=U,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=U,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,t,n,r,i){var o,s;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=undefined);for(s in e)this.on(s,t,n,e[s],i);return this}if(null==n&&null==r?(r=t,n=t=undefined):null==r&&("string"==typeof t?(r=n,n=undefined):(r=n,n=t,t=undefined)),r===!1)r=Y;else if(!r)return this;return 1===i&&(o=r,r=function(e){return x().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=x.guid++)),this.each(function(){x.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=undefined),n===!1&&(n=Y),this.each(function(){x.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?x.event.trigger(e,t,n,!0):undefined}});var G=/^.[^:#\[\.,]*$/,J=/^(?:parents|prev(?:Until|All))/,Q=x.expr.match.needsContext,K={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){var e=0;for(;n>e;e++)if(x.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(et(this,e||[],!0))},filter:function(e){return this.pushStack(et(this,e||[],!1))},is:function(e){return!!et(this,"string"==typeof e&&Q.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],s=Q.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(s?s.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?g.call(x(e),this[0]):g.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function Z(e,t){while((e=e[t])&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return Z(e,"nextSibling")},prev:function(e){return Z(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return e.contentDocument||x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(K[e]||x.unique(i),J.test(e)&&i.reverse()),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,t,n){var r=[],i=n!==undefined;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&x(e).is(n))break;r.push(e)}return r},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function et(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(G.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return g.call(t,e)>=0!==n})}var tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,nt=/<([\w:]+)/,rt=/<|&#?\w+;/,it=/<(?:script|style|link)/i,ot=/^(?:checkbox|radio)$/i,st=/checked\s*(?:[^=]|=\s*.checked.)/i,at=/^$|\/(?:java|ecma)script/i,ut=/^true\/(.*)/,lt=/^\s*\s*$/g,ct={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ct.optgroup=ct.option,ct.tbody=ct.tfoot=ct.colgroup=ct.caption=ct.thead,ct.th=ct.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===undefined?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(mt(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&dt(mt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(mt(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!it.test(e)&&!ct[(nt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(tt,"<$1>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(x.cleanData(mt(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=f.apply([],e);var r,i,o,s,a,u,l=0,c=this.length,p=this,h=c-1,d=e[0],g=x.isFunction(d);if(g||!(1>=c||"string"!=typeof d||x.support.checkClone)&&st.test(d))return this.each(function(r){var i=p.eq(r);g&&(e[0]=d.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(r=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(o=x.map(mt(r,"script"),ft),s=o.length;c>l;l++)a=r,l!==h&&(a=x.clone(a,!0,!0),s&&x.merge(o,mt(a,"script"))),t.call(this[l],a,l);if(s)for(u=o[o.length-1].ownerDocument,x.map(o,ht),l=0;s>l;l++)a=o[l],at.test(a.type||"")&&!q.access(a,"globalEval")&&x.contains(u,a)&&(a.src?x._evalUrl(a.src):x.globalEval(a.textContent.replace(lt,"")))}return this}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=[],i=x(e),o=i.length-1,s=0;for(;o>=s;s++)n=s===o?this:this.clone(!0),x(i[s])[t](n),h.apply(r,n.get());return this.pushStack(r)}}),x.extend({clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=x.contains(e.ownerDocument,e);if(!(x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(s=mt(a),o=mt(e),r=0,i=o.length;i>r;r++)yt(o[r],s[r]);if(t)if(n)for(o=o||mt(e),s=s||mt(a),r=0,i=o.length;i>r;r++)gt(o[r],s[r]);else gt(e,a);return s=mt(a,"script"),s.length>0&&dt(s,!u&&mt(e,"script")),a},buildFragment:function(e,t,n,r){var i,o,s,a,u,l,c=0,p=e.length,f=t.createDocumentFragment(),h=[];for(;p>c;c++)if(i=e[c],i||0===i)if("object"===x.type(i))x.merge(h,i.nodeType?[i]:i);else if(rt.test(i)){o=o||f.appendChild(t.createElement("div")),s=(nt.exec(i)||["",""])[1].toLowerCase(),a=ct[s]||ct._default,o.innerHTML=a[1]+i.replace(tt,"<$1>")+a[2],l=a[0];while(l--)o=o.lastChild;x.merge(h,o.childNodes),o=f.firstChild,o.textContent=""}else h.push(t.createTextNode(i));f.textContent="",c=0;while(i=h[c++])if((!r||-1===x.inArray(i,r))&&(u=x.contains(i.ownerDocument,i),o=mt(f.appendChild(i),"script"),u&&dt(o),n)){l=0;while(i=o[l++])at.test(i.type||"")&&n.push(i)}return f},cleanData:function(e){var t,n,r,i,o,s,a=x.event.special,u=0;for(;(n=e[u])!==undefined;u++){if(F.accepts(n)&&(o=n[q.expando],o&&(t=q.cache[o]))){if(r=Object.keys(t.events||{}),r.length)for(s=0;(i=r[s])!==undefined;s++)a[i]?x.event.remove(n,i):x.removeEvent(n,i,t.handle);q.cache[o]&&delete q.cache[o]}delete L.cache[n[L.expando]]}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}});function pt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ft(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ht(e){var t=ut.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function dt(e,t){var n=e.length,r=0;for(;n>r;r++)q.set(e[r],"globalEval",!t||q.get(t[r],"globalEval"))}function gt(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(q.hasData(e)&&(o=q.access(e),s=q.set(t,o),l=o.events)){delete s.handle,s.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)x.event.add(t,i,l[i][n])}L.hasData(e)&&(a=L.access(e),u=x.extend({},a),L.set(t,u))}}function mt(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return t===undefined||t&&x.nodeName(e,t)?x.merge([e],n):n}function yt(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ot.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}x.fn.extend({wrapAll:function(e){var t;return x.isFunction(e)?this.each(function(t){x(this).wrapAll(e.call(this,t))}):(this[0]&&(t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var vt,xt,bt=/^(none|table(?!-c[ea]).+)/,wt=/^margin/,Tt=RegExp("^("+b+")(.*)$","i"),Ct=RegExp("^("+b+")(?!px)[a-z%]+$","i"),kt=RegExp("^([+-])=("+b+")","i"),Nt={BODY:"block"},Et={position:"absolute",visibility:"hidden",display:"block"},St={letterSpacing:0,fontWeight:400},jt=["Top","Right","Bottom","Left"],Dt=["Webkit","O","Moz","ms"];function At(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Dt.length;while(i--)if(t=Dt[i]+n,t in e)return t;return r}function Lt(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function qt(t){return e.getComputedStyle(t,null)}function Ht(e,t){var n,r,i,o=[],s=0,a=e.length;for(;a>s;s++)r=e[s],r.style&&(o[s]=q.get(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&Lt(r)&&(o[s]=q.access(r,"olddisplay",Rt(r.nodeName)))):o[s]||(i=Lt(r),(n&&"none"!==n||!i)&&q.set(r,"olddisplay",i?n:x.css(r,"display"))));for(s=0;a>s;s++)r=e[s],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none"));return e}x.fn.extend({css:function(e,t){return x.access(this,function(e,t,n){var r,i,o={},s=0;if(x.isArray(t)){for(r=qt(e),i=t.length;i>s;s++)o[t[s]]=x.css(e,t[s],!1,r);return o}return n!==undefined?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)},show:function(){return Ht(this,!0)},hide:function(){return Ht(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Lt(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=vt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=x.camelCase(t),u=e.style;return t=x.cssProps[a]||(x.cssProps[a]=At(u,a)),s=x.cssHooks[t]||x.cssHooks[a],n===undefined?s&&"get"in s&&(i=s.get(e,!1,r))!==undefined?i:u[t]:(o=typeof n,"string"===o&&(i=kt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(x.css(e,t)),o="number"),null==n||"number"===o&&isNaN(n)||("number"!==o||x.cssNumber[a]||(n+="px"),x.support.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&(n=s.set(e,n,r))===undefined||(u[t]=n)),undefined)}},css:function(e,t,n,r){var i,o,s,a=x.camelCase(t);return t=x.cssProps[a]||(x.cssProps[a]=At(e.style,a)),s=x.cssHooks[t]||x.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),i===undefined&&(i=vt(e,t,r)),"normal"===i&&t in St&&(i=St[t]),""===n||n?(o=parseFloat(i),n===!0||x.isNumeric(o)?o||0:i):i}}),vt=function(e,t,n){var r,i,o,s=n||qt(e),a=s?s.getPropertyValue(t)||s[t]:undefined,u=e.style;return s&&(""!==a||x.contains(e.ownerDocument,e)||(a=x.style(e,t)),Ct.test(a)&&wt.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=s.width,u.width=r,u.minWidth=i,u.maxWidth=o)),a};function Ot(e,t,n){var r=Tt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function Ft(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;for(;4>o;o+=2)"margin"===n&&(s+=x.css(e,n+jt[o],!0,i)),r?("content"===n&&(s-=x.css(e,"padding"+jt[o],!0,i)),"margin"!==n&&(s-=x.css(e,"border"+jt[o]+"Width",!0,i))):(s+=x.css(e,"padding"+jt[o],!0,i),"padding"!==n&&(s+=x.css(e,"border"+jt[o]+"Width",!0,i)));return s}function Pt(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=qt(e),s=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=vt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Ct.test(i))return i;r=s&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+Ft(e,t,n||(s?"border":"content"),r,o)+"px"}function Rt(e){var t=o,n=Nt[e];return n||(n=Mt(e,t),"none"!==n&&n||(xt=(xt||x(" + + + + + + + + diff --git a/iframe-resizer-master_old/test/sendMessage.html b/iframe-resizer-master_old/test/sendMessage.html new file mode 100755 index 0000000..d143354 --- /dev/null +++ b/iframe-resizer-master_old/test/sendMessage.html @@ -0,0 +1,65 @@ + + + + + QUnit LoadHide + + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master_old/test/setHeightCalculationMethod.html b/iframe-resizer-master_old/test/setHeightCalculationMethod.html new file mode 100755 index 0000000..aa0586b --- /dev/null +++ b/iframe-resizer-master_old/test/setHeightCalculationMethod.html @@ -0,0 +1,48 @@ + + + + + QUnit LoadHide + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master_old/test/size.html b/iframe-resizer-master_old/test/size.html new file mode 100755 index 0000000..9310f5a --- /dev/null +++ b/iframe-resizer-master_old/test/size.html @@ -0,0 +1,74 @@ + + + + + QUnit LoadHide + + + +
+
+
+ +
+
+ + + + + + + + diff --git a/iframe-resizer-master_old/test/v1.html b/iframe-resizer-master_old/test/v1.html new file mode 100755 index 0000000..30cdfa8 --- /dev/null +++ b/iframe-resizer-master_old/test/v1.html @@ -0,0 +1,203 @@ + + + + + QUnit LoadHide + + + +
+
+
+ +
+
+ + + + + + diff --git a/index.php b/index.php new file mode 100755 index 0000000..f05dd21 --- /dev/null +++ b/index.php @@ -0,0 +1,330 @@ +assign('index_error', 1); + + if ($errorno == 1) { + $smarty->assign('index_error_text', "Es müssen alle Felder ausgefüllt werden"); + } + + if ($errorno == 3) { + $smarty->assign('index_error_text', "Der Benutzername oder das Passwort ist nicht korrekt
Stellen Sie sicher, dass Ihr Benutzerkonto in der Hochschule aktiv ist."); + } + + if ($errorno == 4) { + $smarty->assign('index_error_text', "Der Benutzer ist nicht für das System freigegeben!
Bitte wenden Sie sich an den Administrator ($global_service_admin)"); + } + + if ($errorno == 5) { + $smarty->assign('index_error_text', "Der Benutzer ist im System nicht vorhanden!
Bitte wenden Sie sich an den Administrator."); + } + + # Daten aufbereiten bei Fehler + if (isset($_SESSION["global_username"])) { + $smarty->assign('index_user', $_SESSION["global_username"]); + } + } + + +} + +if ($action == 'anmeld') { + // Variablen setzen, damit sie nicht mit ISSET geprüft werden müssen. Standardeinstellungen sind so, dass kein Login möglich wäre + $anzahl = 0; + $anzahl_db = 0; + $login = 1; + $login_db = 1; + + $username = strtolower($_POST["user"]); //remove case sensitivity on the username + + # AcitveDirectory oder OPEN LDAP + if($global_ldap_art == 1){ + $password=utf8_decode($_POST["password"]); + } + if($global_ldap_art == 2){ + $password=$_POST["password"]; + } + + if ($_POST["user"] != "") { + $_SESSION["global_username"] = $username; + } + + if ($username == "" OR $password == "") { + echo ""; + } else { + + $db = dbconnect(); + $query_server = $db->query("SELECT wert1 ip, wert2 port FROM dep_parameter WHERE pid='3'"); + $row_server = $query_server->fetch_array(); + + /* + + ################################ + ## Prüfe studnet ob Treffer + ################################ + # bind wird benötigt, sonst werden die Umlaute bei Namen nicht richtig angezeigt ?!!? + + $ds=@ldap_connect("141.10.144.37", "389"); + ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); + $r=@ldap_bind($ds, $row_ldapuser['wert1'], $row_ldapuser['wert2']); + $_ldap_dn = "ou=ouStudnet,dc=studnet,dc=hs-ludwigsburg,dc=de"; + $sr=@ldap_search($ds, $_ldap_dn, "samaccountname=$username"); + $info = @ldap_get_entries($ds, $sr); + $anzahl = ldap_count_entries($ds,$sr); + $vorname = $info[0]['givenname'][0]; + $nachname = $info[0]['sn'][0]; + $mail = $info[0]['mail'][0]; + $first = ldap_first_entry($ds,$sr); + $distinguishedName = ldap_get_dn($ds,$first); + $result_jg = $db->query("SELECT ag, jahrgang FROM kurs.stud WHERE lower(uid)='$username'"); + $row_jg = $result_jg->fetch_array(); + ################################ + + + ### Wenn binden fehlschlägt, also Passwort falsch + ##!!!!! IM STUDNET MIT DEM USERNAMEN BINDEN, IM HSNET MIT DEM DISTINGUISHEDNAME !!!!!!################# + #if ($bind = @ldap_bind($ds, $username, $password) AND $anzahl > 0){ + if ($bind = ldap_bind($ds, $distinguishedName, $password) AND $anzahl > 0){ + # Bind funktioniert + #echo "studnet: Bind funktioniert: $anzahl
"; + $login = "0"; + $login_ad = "studnet"; + }else{ + # Bind funktioniert nicht + #echo "studnet: Bind funktioniert nicht: $anzahl
"; + $login = "1"; + ldap_close($ds); + } + #exit; + + ######## + # INFO hsnet: Würde man nur $_ldap_dn = "dc=hsnet,dc=hs-ludwigsburg,dc=de"; angeben ohne OU=OUHochschunetzwerk oä., würde php beim search nichts mehr finden und alle Passwörter akzeptieren + ######## + + */ + ################################ + ## Prüfe OUHochschulnetzwerk ob Treffer, wenn studnet nicht funktioniert + ################################ + // if($login == "1" and $anzahl == "0"){ + + $ds = @ldap_connect($global_ldap_serverhsnet, $global_ldap_porthsnet); + if ($ds) { + # bind wird benötigt, sonst werden die Umlaute bei Namen nicht richtig angezeigt ?!!? + $r = @ldap_bind($ds, $global_ldap_user, $global_ldap_pwd); + $_ldap_dn = "ou=OUHochschulnetzwerk,dc=hsnet,dc=hs-ludwigsburg,dc=de"; + $sr = @ldap_search($ds, $_ldap_dn, "samaccountname=$username"); + + $info = @ldap_get_entries($ds, $sr); + + $anzahl = ldap_count_entries($ds, $sr); + $vorname = $info[0]['givenname'][0]; + $nachname = $info[0]['sn'][0]; + $mail = $info[0]['mail'][0]; + $first = ldap_first_entry($ds, $sr); + $distinguishedName = @ldap_get_dn($ds, $first); + ################################ + + # Bind geht im hsnet nur über den DN "CN=Schwarz\, Alexander, OU=Externe Benutzer, ou=OUHochschulnetzwerk,dc=hsnet,dc=hs-ludwigsburg,dc=de" + ##!!!!! IM STUDNET MIT DEM USERNAMEN BINDEN, IM HSNET MIT DEM DISTINGUISHEDNAME !!!!!!################# + if ($bind = @ldap_bind($ds, $distinguishedName, $password) AND $anzahl > 0) { + #echo "hsnet: Bind funktioniert: $anzahl |$distinguishedName|
"; + $login = "0"; + $login_ad = "hsnet"; + } else { + # Bind funktioniert nicht + $login = "1"; + ldap_close($ds); + #echo "hsnet: Bind funktioniert nicht: $anzahl
"; + } + } + // } + + + ################################ + ## Prüfe OURechenzentrum ob Treffer, wenn OUHochschulnetzwerk nicht funktioniert + ################################ + if ($login == "1" and $anzahl == 0) { + + $ds = @ldap_connect($global_ldap_serverhsnet, $global_ldap_porthsnet); + if ($ds) { + # bind wird benötigt, sonst werden die Umlaute bei Namen nicht richtig angezeigt ?!!? + $r = @ldap_bind($ds, $global_ldap_user, $global_ldap_pwd); + $_ldap_dn = "ou=OURechenzentrum,dc=hsnet,dc=hs-ludwigsburg,dc=de"; + $sr = @ldap_search($ds, $_ldap_dn, "samaccountname=$username"); + $info = @ldap_get_entries($ds, $sr); + $anzahl = ldap_count_entries($ds, $sr); + $vorname = $info[0]['givenname'][0]; + $nachname = $info[0]['sn'][0]; + $mail = $info[0]['mail'][0]; + $first = ldap_first_entry($ds, $sr); + $distinguishedName = @ldap_get_dn($ds, $first); + ################################ + + # Bind geht im hsnet nur über den DN "CN=Schwarz\, Alexander, OU=Externe Benutzer, ou=OUHochschulnetzwerk,dc=hsnet,dc=hs-ludwigsburg,dc=de" + ##!!!!! IM STUDNET MIT DEM USERNAMEN BINDEN, IM HSNET MIT DEM DISTINGUISHEDNAME !!!!!!################# + if ($bind = @ldap_bind($ds, $distinguishedName, $password) AND $anzahl > 0) { + #echo "RZ: Bind funktioniert: $anzahl
"; + $login = "0"; + $login_ad = "hsnet"; + } else { + # Bind funktioniert nicht + #echo "RZ: Bind funktioniert nicht: $anzahl
"; + $login = "1"; + ldap_close($ds); + } + } + } + + /* + echo "
+ distinguishedName = $distinguishedName
+ anzahl_hs $anzahl
+ Username $username, $vorname, $nachname, $mail
+ account: $username, $password
+ login $login
+ exit; + */ + + $db = dbconnect(); + $result = $db->query("SELECT imtuid, uid, passwort FROM dep_user WHERE lower(uid)='$username'"); + $row = $result->fetch_array(); + + $resultanz = $db->query("SELECT count(*) Anz FROM dep_user WHERE lower(uid)='$username'"); + $rowanz = $resultanz->fetch_array(); + $anzahl_db = $rowanz['Anz']; + + # Login geht nicht über LDAP, aber vielleicht über DB + if ($login == "1" and $anzahl == 0) { + if ($anzahl_db > 0) { + # Userkennung gibt es + + if (md5($password) == $row['passwort']) { + # Passwort richtig + $login_db = "0"; + } else { + # Passwort falsch + $login_db = "1"; + } + } else { + # Userkennung gibt es nicht + $login_db = "1"; + $anzahl_db = 0; + } + } + + + /* Loginmatrix mit Reihenfolge + Sort LDAP vorhanden Datenbank vorhanden PW LDAP richtig PW DB richtig Aktivität + 6 Nein Ja obs Nein Fehlermeldung PW falsch + anzahl==0 anzahl_db>0 login == 1 login_db == 1 + + 2 Nein Ja obs Ja Login + anzahl==0 anzahl_db>0 login == 1 login_db == 0 + + 4 Nein Nein obs obs Registrierung + anzahl==0 anzahl_db==0 login == 1 - + + 5 Ja obs Nein obs Fehlermeldung PW falsch + anzahl > 0 - login == 1 - + + 3 Ja Nein Ja obs Registrierung + anzahl > 0 anzahl_db==0 login == 0 - + + 1 Ja Ja Ja obs Login + anzahl > 0 anzahl_db>0 login == 0 - + */ + + + + + # Sort 1 + if ($anzahl > 0 AND $anzahl_db > 0 AND $login == 0) { + # Login über LDAP erfolgreich und Person in DB --> Login + $db = dbconnect(); + $datum = date("Y-m-d H:i:s"); + $ip = getenv("REMOTE_ADDR"); + $agent = getenv("HTTP_USER_AGENT"); + $user_admin = $row['imtuid']; + $_SESSION["global_uid"] = $user_admin; + $_SESSION["global_username"] = $row['uid']; + $result_1 = $db->query("INSERT INTO dep_userlog (Datum, IP, user_agent, imtuid) VALUES ('$datum', '$ip', '$agent', '$user_admin')"); + $sql = $db->query("UPDATE dep_user + SET mail_inaktiv='0000-00-00 00:00:00' + ,vorname = '$vorname' + ,nachname = '$nachname' + ,mail = '$mail' + WHERE imtuid='$user_admin'"); + echo ""; + exit; + } + + # Sort 2 + if ($anzahl == 0 AND $anzahl_db > 0 AND $login == 1 AND $login_db == 0) { + # Person in LDAP nicht vorhanden aber Login über Datenbank erfolgreich --> Login + $user_admin = $row['imtuid']; + $_SESSION["global_uid"] = $user_admin; + $_SESSION["global_username"] = $row['uid']; + $result_1 = $db->query("INSERT INTO dep_userlog (Datum, IP, user_agent, imtuid) VALUES ('$datum', '$ip', '$agent', '$user_admin')"); + echo ""; + exit; + } + + + # Sort 3 + if ($anzahl > 0 AND $anzahl_db == 0 AND $login == 0) { + # Login über LDAP erfolgreich aber Person nicht in DB --> Registrierung ohne Bestätigungsmail + + // Frage ist, ob man eine Bestätigungsmail erhält, oder ob der Admin freigibt, welcher Doz zugelassen ist. Geht nur, wenn alle im LDAP sind bzw. wenn Admin Doz manuell anlegt + + echo ""; + exit; + } + + + # Sort 4 + if ($anzahl == 0 AND $anzahl_db == 0 AND $login == 1) { + # Person in LDAP und DB nicht vorhanden --> Registrierung über Admin + + // Frage ist, ob man eine Bestätigungsmail erhält, oder ob der Admin freigibt, welcher Doz zugelassen ist. Geht nur, wenn alle im LDAP sind bzw. wenn Admin Doz manuell anlegt + + echo ""; + exit; + } + + # Sort 5 + if ($anzahl > 0 AND $login == 1) { + # Person in LDAP vorhanden aber Passwort falsch --> Fehlermeldung PW LDAP falsch + echo ""; + exit; + } + + # Sort 6 + if ($anzahl == 0 AND $anzahl_db > 0 AND $login == 1 AND $login_db == 1) { + # Person in LDAP nicht vorhanden aber in DB, dort aber Passwort falsch --> Fehlermeldung PW DB falsch + + echo ""; + exit; + } + + mysqli_close($db); + + } //if ($username == "" OR $password == "") { +} + +$smarty->assign('action', "$action"); +$smarty->display("$template/$templatename"); +?> diff --git a/index_ad.php b/index_ad.php new file mode 100755 index 0000000..02a00d8 --- /dev/null +++ b/index_ad.php @@ -0,0 +1,279 @@ +assign('index_error', $_GET[error]); + + # Daten aufbereiten bei Fehler + if(isset($_SESSION["global_domain"])){ + $smarty->assign('index_domain', $_SESSION["global_domain"]); + }else{ + # defaultwert festlegen + $smarty->assign('index_domain', "hsnet"); + } + + if(isset($_SESSION["global_username"])){ + $smarty->assign('index_user', $_SESSION["global_username"]); + } + + + +} + +if($action == 'anmeld'){ + $username=strtoupper($_POST["user"]); //remove case sensitivity on the username + $password=$_POST["password"]; + $domain=$_POST["domain"]; + + if($_POST["domain"] != ""){ + $_SESSION["global_domain"]=$domain; + } + + if($_POST["user"] != ""){ + $_SESSION["global_username"]=$username; + } + + if($username == "" OR $password == ""){ + echo ""; + }else{ + + # muss gesetzte werden nachdem die Session global_domain definiert wurde + require_once("class_idee.php"); + + + + try { + $idee = new idee(); + } + catch (adLDAPException $e) { + echo $e; exit(); + } + + //authenticate the user + #$adldap -> set_domain_controllers(array("$ipdc")); + if ($idee -> authenticate($username,$password)){ + //establish your session and redirect + + $db = dbconnect(); + + + $objectsid = $idee -> username2osid($_SESSION["global_username"]); + + $result_imt = $db->query("SELECT uid FROM dep_user WHERE objectsid='$objectsid' AND accountname=upper('$_SESSION[global_username]') LIMIT 1"); + $row_imt = $result_imt->fetch_array(); + + if($row_imt[uid] == ""){ + $result_1 = $db->query("INSERT INTO dep_user (objectsid, accountname) VALUES ('$objectsid', '$_SESSION[global_username]')"); + $uid = $db->insert_id; + }else{ + $uid = $row_imt[uid]; + } + $_SESSION["global_uid"] = $uid; + + $datum=date("Y-m-d H:i:s"); + $ip=getenv("REMOTE_ADDR"); + $agent=getenv("HTTP_USER_AGENT"); + $user= $row[dtuid]; + $_SESSION["user"] = $row[dtuid]; + $result_1 = $db->query("INSERT INTO dep_userlog (Datum, IP, user_agent, uid) VALUES ('$datum', '$ip', '$agent', '$_SESSION[global_uid]')"); + + $redir="Location: indexframe.php"; + header($redir); + }else{ + echo ""; + } + + } + + + + /* + + $db = dbconnect(); + $result = $db->query("SELECT dtuid, uid, passwort FROM dt_user WHERE inaktiv != 'J' AND UPPER(uid)=UPPER('$_POST[user]')"); + $row = $result->fetch_array(); + + + // Anzahl der IPs im Monat + $result1 = $db->query("SELECT count(distinct left( ip, locate( '.', ip, 5 ) -1 )) ips_monat + FROM dt_userlog + WHERE dtuid ='$row[dtuid]' + AND DATE_SUB(NOW(), INTERVAL 1 MONTH) < Datum + "); + $row1 = $result1->fetch_array(); + + + // Wenn expiredate überschritten, dann 1 + $result2 = $db->query("SELECT 1 + FROM dt_user + WHERE pw_expire < now() + AND dtuid = '$row[dtuid]' + "); + $row2 = $result2->fetch_array(); + + + + // Leere Textfelder + if (empty($_POST['user']) or empty($_POST['passwort'])){ + $smarty->assign('index_noinput', "1"); + } + // Benutzer nicht im System + elseif (strtoupper($_POST['user']) != strtoupper($row[uid])) { + $smarty->assign('index_nouser', "1"); + } + // Passwort falsch + elseif (md5($_POST['passwort']) != $row[passwort]){ //verschlüsseltes Passwort überprüfen + # Session-Cookies werden bereits gesetzt, falls sich jemand ein passwort zusenden lässt. + $_SESSION["user"] = $row[dtuid]; + $smarty->assign('index_passwrong', "1"); + } + // Passwortwechsel notwendig + elseif(($row1[ips_monat] > 2 AND $row2[0] == 1) OR $row[uid] == $_POST['passwort']){ //Wenn mehr als 2 unterschiedliche Provider innerhalb eines Monats und Maximaldauer des Passworts abgelaufen, dann ändern + $db = dbconnect(); + $datum=date("Y-m-d H:i:s"); + $ip=getenv("REMOTE_ADDR"); + $agent=getenv("HTTP_USER_AGENT"); + $user= $row[dtuid]; + $_SESSION["user"] = $row[dtuid]; + + $result_dt = $db->query("SELECT dtid FROM dt_user_tankstelle WHERE dtuid='$user' LIMIT 1"); + $row_dt = $result_dt->fetch_array(); + $_SESSION["dtid"] = $row_dt[dtid]; + + $result_1 = $db->query("INSERT INTO dt_userlog (Datum, IP, user_agent, dtuid) VALUES ('$datum', '$ip', '$agent', '$user')"); + $sql = $db->query ("UPDATE dt_user SET mail_inaktiv='0000-00-00 00:00:00' WHERE dtuid='$user'"); + $smarty->assign('index_passswitch', "1"); + }else{ + $db = dbconnect(); + $datum=date("Y-m-d H:i:s"); + $ip=getenv("REMOTE_ADDR"); + $agent=getenv("HTTP_USER_AGENT"); + $user= $row[dtuid]; + $_SESSION["user"] = $row[dtuid]; + + $result_dt = $db->query("SELECT dtid FROM dt_user_tankstelle WHERE dtuid='$user' LIMIT 1"); + $row_dt = $result_dt->fetch_array(); + $_SESSION["dtid"] = $row_dt[dtid]; + + $result_1 = $db->query("INSERT INTO dt_userlog (Datum, IP, user_agent, dtuid) VALUES ('$datum', '$ip', '$agent', '$user')"); + $sql = $db->query ("UPDATE dt_user SET mail_inaktiv='0000-00-00 00:00:00' WHERE dtuid='$user'"); $smarty->assign('index_login', "1"); + } + mysqli_close($db); + */ +} + + +if($action == 'pass_gen'){ + + $dtuid = $_SESSION["user"]; + + $pool = "qwertzupasdfghkyxcvbnm"; + $pool .= "23456789"; + $pool .= "WERTZUPLKJHGFDSAYXCVBNM"; + + srand ((double)microtime()*1000000); + for($index = 0; $index < 7; $index++) + { + $pass_word .= substr($pool,(rand()%(strlen ($pool))), 1); + } + + $new_pw_md5=md5($pass_word); + + $db = dbconnect(); + $result = $db->query("SELECT distinct DATE_ADD(NOW(), INTERVAL 1 MONTH) exp_date + FROM dt_user + WHERE dtuid ='$dtuid' + "); + $row = $result->fetch_array(); + + $sql = $db->query ("UPDATE dt_user SET passwort='$new_pw_md5', pw_expire='$row[exp_date]' WHERE dtuid='$dtuid'"); + + $result2 = $db->query("SELECT uid, vorname, nachname, mail FROM dt_user WHERE dtuid='$dtuid'"); + $row2 = $result2->fetch_array(); + + $empfaenger = "$row2[mail]"; + $betreff = "RefillDB: Passwort zurückgesetzt"; + $text = " + + + Passwort zurückgesetzt + + + + Guten Tag $row2[vorname] $row2[nachname]!

+ Sie haben Ihr Passwort innerhalb der RefillDB zurückgesetzt!
+ Nachfolgend finden Sie Ihre neuen Zugangsdaten: +
+
+ + + + + + + + + +
+ + Benutzerkennung: + + + + $row2[uid] + +
+ + Passwort: + + + + $pass_word + +
+
+ Bitte beachten Sie, dass zwischen Groß- und
+ Kleinschreibung unterschieden wird. +

+ Link zu Leitgedanken-Online: RefillDB +

+ Diese Mail wurde automatisch generiert!
+ Antworten Sie daher nicht auf diese Mail.
+
+ Vielen Dank! + + "; + + + $headers = "MIME-Version: 1.0\n"; + $headers .= "Content-type: text/html; charset=utf-8\n"; + $headers .= "From: RefillDB <$row2[mail]>\n"; + + $return = @mail($empfaenger, $betreff, $text, $headers); + + if($return){ + $smarty->assign('index_mailpass', "1"); + $mailadresse = $row2[mail]; + $smarty->assign('index_mailadr', "$mailadresse"); + }else{ + $smarty->assign('index_nomailpass', "1"); + } +} + + +$smarty->assign('action', "$action"); + + +$smarty->display("$template/$templatename"); +?> \ No newline at end of file diff --git a/index_db.php b/index_db.php new file mode 100755 index 0000000..251da15 --- /dev/null +++ b/index_db.php @@ -0,0 +1,101 @@ +assign('index_error', 1); + + if($errorno == 1){ + $smarty->assign('index_error_text', "Es müssen alle Felder ausgefüllt werden"); + } + + if($errorno == 2){ + $smarty->assign('index_error_text', "Ber Benutzername ist im System nicht vorhanden"); + } + + if($errorno == 3){ + $smarty->assign('index_error_text', "Ber Benutzername oder das Passwort ist nicht korrekt
Sie können hier ein neues Passwort beantragen"); + } + + # Daten aufbereiten bei Fehler + if(isset($_SESSION["global_username"])){ + $smarty->assign('index_user', $_SESSION["global_username"]); + } + } + + +} + +if($action == 'anmeld'){ + $username=strtoupper($_POST["user"]); //remove case sensitivity on the username + $password=$_POST["password"]; + + if($_POST["user"] != ""){ + $_SESSION["global_username"]=$username; + } + + if($username == "" OR $password == ""){ + echo ""; + }else{ + + + $db = dbconnect(); + $result = $db->query("SELECT imtuid, uid, passwort FROM dep_user WHERE aktiv = '1' AND UPPER(uid)='$username'"); + $row = $result->fetch_array(); + + + // Wenn expiredate überschritten, dann 1 + $result2 = $db->query("SELECT 1 + FROM dep_user + WHERE pw_expire < now() + AND uid = '$row[user]' + "); + $row2 = $result2->fetch_array(); + + + + + if ($username != strtoupper($row[uid])) { + echo ""; + } + // Passwort falsch + elseif (md5($password) != $row[passwort]){ //verschlüsseltes Passwort überprüfen + # Cookies werden bereits gesetzt, falls sich jemand ein passwort zusenden lässt. + $_SESSION["global_uid"] = $row[imtuid]; + $_SESSION["global_username"] = $row[uid]; + echo ""; + }else{ + $db = dbconnect(); + $datum=date("Y-m-d H:i:s"); + $ip=getenv("REMOTE_ADDR"); + $agent=getenv("HTTP_USER_AGENT"); + $user_admin = $row[imtuid]; + $_SESSION["global_uid"] = $user_admin; + $_SESSION["global_username"] = $row[uid]; + $result_1 = $db->query("INSERT INTO dep_userlog (Datum, IP, user_agent, imtuid) VALUES ('$datum', '$ip', '$agent', '$user_admin')"); + $sql = $db->query ("UPDATE dep_user SET mail_inaktiv='0000-00-00 00:00:00' WHERE imtuid='$user_admin'"); + $smarty->assign('index_login', "1"); + } + mysqli_close(); + + } + +} + +$smarty->assign('action', "$action"); +$smarty->display("$template/$templatename"); +?> \ No newline at end of file diff --git a/index_ldap.php b/index_ldap.php new file mode 100755 index 0000000..1eab631 --- /dev/null +++ b/index_ldap.php @@ -0,0 +1,400 @@ +assign('index_error', 1); + + if($errorno == 1){ + $smarty->assign('index_error_text', "Es müssen alle Felder ausgefüllt werden"); + } + + # Bei LDAP wird eine Registrierung automatisch durchgeführt + #if($errorno == 2){ + # $smarty->assign('index_error_text', "Ber Benutzername ist im System nicht vorhanden"); + #} + + if($errorno == 3){ + $smarty->assign('index_error_text', "Ber Benutzername oder das Passwort ist nicht korrekt
Stellen Sie sicher, dass Ihr Benutzerkonto in der Hochschule aktiv ist."); + } + + # Daten aufbereiten bei Fehler + if(isset($_SESSION["global_username"])){ + $smarty->assign('index_user', $_SESSION["global_username"]); + } + } + + +} + +if($action == 'anmeld'){ + $username=strtolower($_POST["user"]); //remove case sensitivity on the username + $password=$_POST["password"]; + + if($_POST["user"] != ""){ + $_SESSION["global_username"]=$username; + } + if($username == "" OR $password == ""){ + echo ""; + }else{ + + $db = dbconnect(); + $query_ldapuser = $db->query("SELECT wert1, wert2 FROM dep_parameter WHERE pid='2'"); + $row_ldapuser = $query_ldapuser->fetch_array(); + + + + ################################ + ## Prüfe studnet ob Treffer + ################################ + # bind wird benötigt, sonst werden die Umlaute bei Namen nicht richtig angezeigt ?!!? + + $ds=@ldap_connect("141.10.144.37", "389"); + ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); + + $r=@ldap_bind($ds, $row_ldapuser['wert1'], $row_ldapuser['wert2']); + $_ldap_dn = "ou=ouStudnet,dc=studnet,dc=hs-ludwigsburg,dc=de"; + $sr=@ldap_search($ds, $_ldap_dn, "samaccountname=$username"); + $info = @ldap_get_entries($ds, $sr); + $anzahl = ldap_count_entries($ds,$sr); + $vorname = $info[0]['givenname'][0]; + $nachname = $info[0]['sn'][0]; + $mail = $info[0]['mail'][0]; + $first = ldap_first_entry($ds,$sr); + $distinguishedName = ldap_get_dn($ds,$first); + $result_jg = $db->query("SELECT ag, jahrgang FROM kurs.stud WHERE lower(uid)='$username'"); + $row_jg = $result_jg->fetch_array(); + ################################ + + + ### Wenn binden fehlschlägt, also Passwort falsch + ##!!!!! IM STUDNET MIT DEM USERNAMEN BINDEN, IM HSNET MIT DEM DISTINGUISHEDNAME !!!!!!################# + #if ($bind = @ldap_bind($ds, $username, $password) AND $anzahl > 0){ + if ($bind = ldap_bind($ds, $distinguishedName, $password) AND $anzahl > 0){ + # Bind funktioniert +#echo "studnet: Bind funktioniert: $anzahl
"; + $login = "0"; + $login_ad = "studnet"; + }else{ + # Bind funktioniert nicht +#echo "studnet: Bind funktioniert nicht: $anzahl
"; + $login = "1"; + ldap_close($ds); + } +#exit; + + ######## + # INFO hsnet: Würde man nur $_ldap_dn = "dc=hsnet,dc=hs-ludwigsburg,dc=de"; angeben ohne OU=OUHochschunetzwerk oä., würde php beim search nichts mehr finden und alle Passwörter akzeptieren + ######## + + + ################################ + ## Prüfe OUHochschulnetzwerk ob Treffer, wenn studnet nicht funktioniert + ################################ + if($login == "1" and $anzahl == "0"){ + + $ds=@ldap_connect("141.10.128.31", "389"); + ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); + + # bind wird benötigt, sonst werden die Umlaute bei Namen nicht richtig angezeigt ?!!? + $r=@ldap_bind($ds, $row_ldapuser['wert1'], $row_ldapuser['wert2']); + $_ldap_dn = "ou=OUHochschulnetzwerk,dc=hsnet,dc=hs-ludwigsburg,dc=de"; + $sr=@ldap_search($ds, $_ldap_dn, "samaccountname=$username"); + $info = @ldap_get_entries($ds, $sr); + $anzahl = ldap_count_entries($ds,$sr); + $vorname = $info[0]['givenname'][0]; + $nachname = $info[0]['sn'][0]; + $mail = $info[0]['mail'][0]; + $first = ldap_first_entry($ds,$sr); + $distinguishedName = ldap_get_dn($ds,$first); + ################################ + + # Bind geht im hsnet nur über den DN "CN=Schwarz\, Alexander, OU=Externe Benutzer, ou=OUHochschulnetzwerk,dc=hsnet,dc=hs-ludwigsburg,dc=de" + ##!!!!! IM STUDNET MIT DEM USERNAMEN BINDEN, IM HSNET MIT DEM DISTINGUISHEDNAME !!!!!!################# + if ($bind = ldap_bind($ds, $distinguishedName, $password) AND $anzahl > 0){ +#echo "hsnet: Bind funktioniert: $anzahl |$distinguishedName|
"; + $login = "0"; + $login_ad = "hsnet"; + }else{ + # Bind funktioniert nicht + $login= "1"; + ldap_close($ds); +#echo "hsnet: Bind funktioniert nicht: $anzahl
"; + } + + } + + + + ################################ + ## Prüfe OURechenzentrum ob Treffer, wenn studnet nicht funktioniert + ################################ + if($login == "1" and $anzahl == 0){ + + $ds=@ldap_connect("141.10.128.31", "389"); + ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); + + # bind wird benötigt, sonst werden die Umlaute bei Namen nicht richtig angezeigt ?!!? + $r=@ldap_bind($ds, $row_ldapuser['wert1'], $row_ldapuser['wert2']); + $_ldap_dn = "ou=OURechenzentrum,dc=hsnet,dc=hs-ludwigsburg,dc=de"; + $sr=@ldap_search($ds, $_ldap_dn, "samaccountname=$username"); + $info = @ldap_get_entries($ds, $sr); + $anzahl = ldap_count_entries($ds,$sr); + $vorname = $info[0]['givenname'][0]; + $nachname = $info[0]['sn'][0]; + $mail = $info[0]['mail'][0]; + $first = ldap_first_entry($ds,$sr); + $distinguishedName = ldap_get_dn($ds,$first); + ################################ + + # Bind geht im hsnet nur über den DN "CN=Schwarz\, Alexander, OU=Externe Benutzer, ou=OUHochschulnetzwerk,dc=hsnet,dc=hs-ludwigsburg,dc=de" + ##!!!!! IM STUDNET MIT DEM USERNAMEN BINDEN, IM HSNET MIT DEM DISTINGUISHEDNAME !!!!!!################# + if ($bind = ldap_bind($ds, $distinguishedName, $password) AND $anzahl > 0){ +#echo "RZ: Bind funktioniert: $anzahl
"; + $login = "0"; + $login_ad = "hsnet"; + }else{ + # Bind funktioniert nicht +#echo "RZ: Bind funktioniert nicht: $anzahl
"; + $login= "1"; + ldap_close($ds); + } + } + +/* + echo "
+ distinguishedName = $distinguishedName
+ anzahl_hs $anzahl
+ Username $username, $vorname, $nachname, $mail
+ account: $username, $password
+ login $login
+ exit; +*/ + $db = dbconnect(); + $result = $db->query("SELECT imtuid, uid, passwort FROM dep_user WHERE lower(uid)='$username'"); + $row = $result->fetch_array(); + + + // Wenn expiredate überschritten, dann 1 + #$result2 = $db->query("SELECT 1 + # FROM dep_user + # WHERE pw_expire < now() + # AND uid = '$row[user]' + # "); + #$row2 = $result2->fetch_array(); + + + + + # Wenn es den Benutzer nicht gibt, wird bei LDAP automatisch registriert + #if ($username != strtoupper($row[uid])) { + # echo ""; + #} + + // Passwort falsch + if ($login == "1"){ //Ging in studnet und hsnet der Login schief + # Cookies werden bereits gesetzt, falls sich jemand ein passwort zusenden lässt. + #$_SESSION["global_uid"] = $row[imtuid]; + #$_SESSION["global_username"] = $row[uid]; + ## => Bei LDAP nicht möglich! Nur Fehler ausgeben + echo ""; + } + + if ($login == "0" AND $anzahl > 0){ +# echo "geht -> weiter"; +# exit; + ## Login hat entweder im studnet oder im hsnet funktioniert. + ## Prüfen, ob es den Benutzer bereits gibt, sonst Registrierung durchführen + + $db = dbconnect(); + $resultanz = $db->query("SELECT count(*) Anz FROM dep_user WHERE lower(uid)='$username'"); + $rowanz = $resultanz->fetch_array(); + + if($rowanz['Anz'] > 0){ + # Benutzer ist bereits registriert + $db = dbconnect(); + $datum=date("Y-m-d H:i:s"); + $ip=getenv("REMOTE_ADDR"); + $agent=getenv("HTTP_USER_AGENT"); + $user_admin = $row['imtuid']; + $_SESSION["global_uid"] = $user_admin; + $_SESSION["global_username"] = $row['uid']; + $result_1 = $db->query("INSERT INTO dep_userlog (Datum, IP, user_agent, imtuid) VALUES ('$datum', '$ip', '$agent', '$user_admin')"); + $sql = $db->query ("UPDATE dep_user SET mail_inaktiv='0000-00-00 00:00:00' WHERE imtuid='$user_admin'"); + $smarty->assign('index_login', "1"); + }else{ +# echo "geht -> Register"; +# exit; + ## Registrierung durchführen + $_SESSION["register_vorname"] = "$vorname"; + $_SESSION["register_nachname"] = "$nachname"; + $_SESSION["register_mail"] = "$mail"; + + + + #$smarty->assign('register_ad', "$login_ad"); + + $_SESSION["register_ad"] = "$login_ad"; + if($login_ad == "studnet"){ + $_SESSION["register_ag"] = "$row_jg[ag]"; + $_SESSION["register_jahrgang"] = "$row_jg[jahrgang]"; + } + echo ""; + + + + + } + } + mysqli_close($db); + + } + +} +if($action == 'register'){ + + if(isset($_GET[error])){ + + $errorno = $_GET['error']; + $smarty->assign('index_error', 1); + + if($errorno == 4){ + # Daten aufbereiten bei Fehler Beziehung zur Hochschule hsnet + if(isset($_SESSION["register_fakultaet"])){ + $smarty->assign('register_fakultaet', $_SESSION["register_fakultaet"]); + } + $smarty->assign('register_error_text', "Es muss das Feld Beziehung zur Hochschule ausgefüllt werden."); + } + + if($errorno == 5){ + # Daten aufbereiten bei Fehler AG studnet + if(isset($_SESSION["register_jahrgang"])){ + $smarty->assign('register_jahrgang', $_SESSION["register_jahrgang"]); + } + $smarty->assign('register_error_text', "Es muss das Feld AG ausgefüllt werden."); + } + + if($errorno == 6){ + # Daten aufbereiten bei Fehler Jahrgang hsnet + if(isset($_SESSION["register_ag"])){ + $smarty->assign('register_ag', $_SESSION["register_ag"]); + } + $smarty->assign('register_error_text', "Es muss das Feld Jahrgang ausgefüllt werden."); + } + + + } + $db = dbconnect(); + $smarty->assign('register_ag', $_SESSION["register_ag"]); + $smarty->assign('register_adir', $_SESSION["register_ad"]); + + $query = "SELECT distinct jahrgang + FROM kurs.stud + WHERE jahrgang <= substr(date_format(now(), '%Y'),3,2) + ORDER BY jahrgang desc + LIMIT 4"; + $result = $db->query ($query) + or die ("Cannot execute query1"); + + $table_data = array(); + + while ($row = $result->fetch_array()){ + if($row['jahrgang'] == $_SESSION["register_jahrgang"]){ + $select = 1; + }else{ + $select = 0; + } + + array_push($table_data, array( + 'select' => $select, + 'jahrgang' => $row['jahrgang'] + ) + ); + } + + $smarty->assign('table_data', $table_data); +} + +if($action == 'register2'){ + $art = $_GET['art']; + + $username = $_SESSION["global_username"]; + $vorname = $_SESSION["register_vorname"]; + $nachname = $_SESSION["register_nachname"]; + $mail = $_SESSION["register_mail"]; + + if($art == 'hsnet'){ + $register_beziehung = $_POST['register_beziehung']; + + if ($register_beziehung == ""){ //Fehler, falls Pflichtfeld Beziehung zur Hochschule nicht gefüllt wurde + echo ""; + $_SESSION["register_fakultaet"] = $_POST['register_fakultaet']; + exit; + } + + $register_fakultaet = $_POST['register_fakultaet']; + $db = dbconnect(); + $datum=date("Y-m-d H:i:s"); + $result_1 = $db->query("INSERT INTO dep_user (vorname, nachname, mail, beziehung, fakultaet, uid, aktiv, erstell_dat) + VALUES ('$vorname', '$nachname', '$mail', '$register_beziehung', '$register_fakultaet', '$username', 1, '$datum')"); + + } + + if($art == 'studnet'){ + $ag = $_POST['ag']; + $jahrgang = $_POST['jahrgang']; + + if ($ag == ""){ //Fehler, falls Pflichtfeld Beziehung zur Hochschule nicht gefüllt wurde + echo ""; + $_SESSION["register_jahrgang"] = $jahrgang; + exit; + } + + if ($jahrgang == ""){ //Fehler, falls Pflichtfeld Beziehung zur Hochschule nicht gefüllt wurde + echo ""; + $_SESSION["register_ag"] = $ag; + exit; + } + + $db = dbconnect(); + $datum=date("Y-m-d H:i:s"); + $result_1 = $db->query("INSERT INTO dep_user (vorname, nachname, mail, beziehung, ag, jahrgang, uid, aktiv, erstell_dat) + VALUES ('$vorname', '$nachname', '$mail', 'S', '$ag', '$jahrgang', '$username', 1, '$datum')"); + } + + $db = dbconnect(); + $result_jg = $db->query("SELECT ag, jahrgang FROM kurs.stud WHERE lower(uid)='$username'"); + $row_jg = $result_jg->fetch_array(); + + $result = $db->query("SELECT imtuid FROM dep_user WHERE lower(uid)='$username'"); + $row = $result->fetch_array(); + + $datum=date("Y-m-d H:i:s"); + $ip=getenv("REMOTE_ADDR"); + $agent=getenv("HTTP_USER_AGENT"); + $user_admin = $row['imtuid']; + $_SESSION["global_uid"] = $user_admin; + $_SESSION["global_username"] = $row['uid']; + $result_1 = $db->query("INSERT INTO dep_userlog (Datum, IP, user_agent, imtuid) VALUES ('$datum', '$ip', '$agent', '$user_admin')"); + $sql = $db->query ("UPDATE dep_user SET mail_inaktiv='0000-00-00 00:00:00' WHERE imtuid='$user_admin'"); + $smarty->assign('index_login', "1"); +} + +$smarty->assign('action', "$action"); +$smarty->display("$template/$templatename"); +?> \ No newline at end of file diff --git a/indexframe.php b/indexframe.php new file mode 100755 index 0000000..1d3bc7e --- /dev/null +++ b/indexframe.php @@ -0,0 +1,9 @@ +display("$template/$templatename"); +?> \ No newline at end of file diff --git a/insert_modul_master.sql b/insert_modul_master.sql new file mode 100755 index 0000000..ac8fdbb --- /dev/null +++ b/insert_modul_master.sql @@ -0,0 +1,89 @@ +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Modul 1: Selbstmanagement, Fhrung und Ethik',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '1.1: Selbstmanagement',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '1.2: Fhrungskonzepte einschlielich Gender-Mainstreaming',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '1.3: Ethik und nachhaltige Entwicklung',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Modul 2: Kommunikation',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '2.1: Public Relations - Externe und interne Kommunikation',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '2.2: Gesprchs- und Verhandlungsfhrung',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Modul 3: Organisations- und Informationsmanagement',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '3.1: Organisationsmanagement',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '3.2: Organisationsentwicklung/Change-Management',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '3.3: Informationsmanagement/E-Government',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Modul 4: Personalmanagement inkl. Arbeitsrecht und Diversity Management',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '4.1: Personalmanagement inkl. Diversity Management',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '4.2: Arbeits- und Beamtenrecht',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Modul 5: ffentliche Betriebswirtschaftslehre und Beteiligungsmanagement',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '5.1: Betriebswirtschaftliche Steuerung der Verwaltung',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '5.2: Kommunales Investitions- und Finanzmanagement',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '5.3: Beteiligungsmanagement - Kommunale Betriebe und Beteiligungen',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Modul 6: Kommunalpolitik und Partizipation',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '6.1: Kommunalpolitik und Partizipation auf kommunaler und staatlicher Ebene',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '6.2: Kommunalpolitiken im Mehrebenensystem',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Modul 7: ffentliches und Privatrecht, inklusive Prozessrecht',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '7.1: Verfassungs- und europarechtliche Problemfelder fr Fhrungskrfte',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '7.2: Verwaltungs- und privatrechtliche Problemfelder fr Fhrungskrfte',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '7.3: Prozessrecht einschlielich moderner prozessvermeidender Strategien (Mediation)',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Modul 8: Politisch-administrative Systeme und ffentliche Finanzpolitik ',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '8.1: Politisch-administrative Systeme und ihre Akteur',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, '8.2: ffentliche Finanzpolitik, konomische Analyse des Staates',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Modul 9: IPV',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Modul 10: Master Kolloquium',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Methoden-Propdeutikum I',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Methoden-Propdeutikum II',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Methoden-Propdeutikum III',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Methoden-Propdeutikum IV',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Zusatzangebot "Optimierung von wissenschaftlichen Arbeiten I" ',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Zusatzangebot "Optimierung von wissenschaftlichen Arbeiten II" ',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (5, 'Zusatzangebot "Prsentationstraining" ',0); + +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'Modul 1: Europarecht',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '1.1: Institutionelles und materielles Europarecht, Schwerpunkt: Europisches Wirtschaftsrecht',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '1.2: Europisches Gesetzgebungsverfahren in Planspieltechnik',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'Modul 2: Die historische und politische Dimension der europischen Integration',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '2.1: Historische Entwicklung und Modelle der europischen Integration',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '2.2: Regieren im europischen Mehrebenensystem',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'Modul 3: Steuerrechtliche und konomische Aspekte der WWU',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '3.1: Steuerrechtliche Aspekte der Wirtschafts- und Whrungsunion',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '3.2: konomische Dimensionen der europischen Integration',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'Modul 4: Interkulturelle Kommunikation in Europa',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '4.1: Basistraining interkultureller Kommunikation',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '4.2: Cross-Cultural Training und interkulturelle Vorbereitung auf das Auslandspraktikum',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'Modul 5: Politikfelder der EU unter rechts-, wirtschafts- und sozialpolitischen Aspekten',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '5.1: Einfhrung und Synthese',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '5.2: European Public Policies',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '5.3: Regional- und Strukturpolitik der EU und europische Frderprogramme',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '5.4: Politik der Inneren Sicherheit in Europa',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '5.5: EU-Umweltpolitik und europisches Umweltrecht',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '5.6: Sozialpolitik und Sozialrecht in der EU; Industrial Relations - Europisches Arbeitsrecht',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '5.7: Grundzge des Europischen Privatrechts',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'Modul 6: Vergleich von europischen Verwaltungssystemen unter rechtlichen, politischen und kulturellen Aspekten',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '6.1: Einfhrung und Synthese',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '6.2: Europische Staats- und Verwaltungstraditionen und Verwaltungskulturen',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '6.3: Interessenvertretung von Kommunen, Regionen und Bundeslndern in Europa',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '6.4: Verwaltungsstrukturen und -kulturen in europischen Institutionen (Inkl. Exkursionen)',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '6.5: Europisches Verwaltungsrecht und Europisierung des nationalen Verwaltungsrechts',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '6.6: Droit compar des administrations (optional bei sehr guten Franzsischkenntnissen)',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'Modul 7: Verwaltungsmanagement der EU',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '7.1: Einfhrung und Synthese',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '7.2: Europisches Informationsmanagement',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '7.3: Management von internationalen Projekten und interkulturelle Konfliktklrung',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '7.4: Management von Komplexitt: EU-Simulation im Europischen Parlament',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '7.5: Reform of Public Administration in Europe',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '7.6: Networking und Benchmarking',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '7.7: Brgerengagement und Partizipation Konzepte und Techniken der Beteiligung in Europa',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '7.8: Interessensverbnde in der EU',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'Modul 8: Fremdsprachliche Kompetenz',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '8.1: Englisch',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '8.2: Franzsisch',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'Modul 9: Wahlpflichtfcher',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '9.1: Wahlpflichtfach I',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, '9.2: Wahlpflichtfach II',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'Modul 11: Master Kolloquium',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'In Kehl und in Ludwigsburg je zur Hlfte aufgeteilt',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'Zusatzangebot "Optimierung von wissenschaftlichen Arbeiten I" ',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'Zusatzangebot "Optimierung von wissenschaftlichen Arbeiten II" ',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'Zusatzangebot "Optimierung von wissenschaftlichen Arbeiten III" ',0); +INSERT INTO dep_kat_studienmodul (dsgid, bezeichnung, lvs) values (6, 'Zusatzangebot "Prsentationstraining" ',0); + + +ALTER TABLE `dep_deputat_abschlussarbeiten` ADD `pauschale` DECIMAL(10,2) NOT NULL AFTER `semester`; \ No newline at end of file diff --git a/jahresabschluss.php b/jahresabschluss.php new file mode 100755 index 0000000..d80aad3 --- /dev/null +++ b/jahresabschluss.php @@ -0,0 +1,540 @@ +Jahrgang wählen!"; + exit; + } + $jahrgang_next = $jahrgang + 1; + $studjahr = "$jahrgang/$jahrgang_next"; + $smarty->assign('jaabschl_jahrgang', $studjahr); + + #Ermäßigungen berechnen + jahresabschluss_erm($uid, $jahrgang); + + # Startwert: 594 + $query_startlvs = $db->query("SELECT lvs + FROM dep_kat_lvs + WHERE jahr <= '$jahrgang' + ORDER BY jahr DESC + LIMIT 1 + "); + $row_startlvs = $query_startlvs->fetch_array(); + $startlvs = number_format($row_startlvs['lvs'], 2, ',', '.'); + $cur_lvs = $row_startlvs['lvs']; + $smarty->assign('erf_value_soll_lvs', $startlvs); + + #$lvs_form = number_format(lvs_teilzeit($uid,$jahrgang), 2, ',', '.'); + # $lvs = lvs_teilzeit($uid,$jahrgang); + + + $query0 = "SELECT deid, art, funktion, date_format(beginn, '%d.%m.%Y') beginn_form, date_format(ende, '%d.%m.%Y') ende_form, sws, lvs, beantragung, prozent, sort_order, monate, beginn + FROM dep_deputat_ermaessigung + WHERE imtuid=$uid + AND jahr=$jahrgang + AND (lvs > 0 OR beantragung > 0) + ORDER BY sort_order ASC, beginn ASC"; + + $result0 = $db->query($query0) or die("Cannot execute query 1a"); + + while ($row0 = $result0->fetch_array()) { + $erg_lvs = $cur_lvs - $row0['lvs']; + + if ($row0['beginn_form'] == '00.00.0000') { + $beginn_form = ''; + } else { + $beginn_form = $row0['beginn_form']; + } + + if ($row0['ende_form'] == '00.00.0000') { + $ende_form = ''; + } else { + $ende_form = $row0['ende_form']; + } + + + if ($row0['art'] == 'Schwerbehinderung' AND $row0['prozent'] == 0) { + $hinweis = '0%'; + } elseif ($row0['art'] == 'Schwerbehinderung' AND $row0['prozent'] != 0) { + $prc = $row0['prozent'] * 100; + $hinweis = $prc . "%"; + + # Ende einer Schwerbehinderung/wird nicht mehr gewährt. Wenn lvs auf 0 gesetzt wurde kommt es nicht in der Schleife vor. daher das nächste Anfangsdatum mit 0 als Ende nehmen + $query_endnext = $db->query("SELECT date_sub(beginn, INTERVAL 1 DAY) ende + FROM dep_deputat_ermaessigung + WHERE jahr = '$jahrgang' + AND imtuid = $uid + AND art = 'Schwerbehinderung' + AND beginn > '$row0[beginn]' + ORDER BY beginn ASC + LIMIT 1 + "); + $row_endnext = $query_endnext->fetch_array(); + if ($row_endnext['ende'] == '') { + # keine weitere Schwerbehinderung im aktuellen Jahr, dann 31.8 Jahr2 + $ende = $jahrgang_next . '-08-31'; + } elseif ($row_endnext['ende'] >= $jahrgang_next . '-08-31') { + # Wenn das nächste Datum höher als der 31.8 im Folgejahr ist, dann 31.8 Jahr2 als Enddatum setzen + $ende = $jahrgang_next . '-08-31'; + } else { + # Ende ist der Tag vor der nächsten beginnenden Schwerbehinderung + $ende = $row_endnext['ende']; + } + $L = new DateTime($ende); + $ende_form = $L->format('d.m.Y'); + } + + if ($row0['art'] == 'Teilzeit' AND $row0['prozent'] == 0) { + $hinweis = '0 %'; + } elseif ($row0['art'] == 'Teilzeit' AND $row0['prozent'] != 0) { + $prc = $row0['prozent'] * 100; + $hinweis = $prc . " %"; + + $query_endnext = $db->query("SELECT date_sub(beginn, INTERVAL 1 DAY) ende + FROM dep_deputat_ermaessigung + WHERE jahr = '$jahrgang' + AND imtuid = $uid + AND art = 'Teilzeit' + and beginn > '$row0[beginn]' + ORDER BY beginn ASC + LIMIT 1 + "); + $row_endnext = $query_endnext->fetch_array(); + if ($row_endnext['ende'] == '') { + # keine weitere Teilzeit im aktuellen Jahr, dann 31.8 jahrgang_next + $ende = $jahrgang_next . '-08-31'; + } elseif ($row_endnext['ende'] >= $jahrgang_next . '-08-31') { + # Wenn das nächste Datum höher als der 31.8 im Folgejahr ist, dann 31.8 jahrgang_next als Enddatum setzen + $ende = $jahrgang_next . '-08-31'; + } else { + # Ende ist der Tag vor der nächsten beginnenden Teilzeit + $ende = $row_endnext['ende']; + } + $L = new DateTime($ende); + $ende_form = $L->format('d.m.Y'); + + } + + + if ((strpos($row0['art'], "Deputat") !== false OR strpos($row0['art'], "Freistellung") !== false) AND $row0['prozent'] == 0 AND $row0['funktion'] > 0) { + $query_funktion = $db->query("SELECT bezeichnung + FROM dep_kat_ermaessigung + WHERE dkeid = '$row0[funktion]'"); + $row_funktion = $query_funktion->fetch_array(); + $hinweis = $row_funktion['bezeichnung']; + } elseif (strpos($row0['art'], "Deputat") !== false AND $row0['prozent'] == 0 AND $row0['funktion'] == 0) { + $hinweis = ''; + } + + if (strpos($row0['art'], "Mutterschutz") !== false AND $row0['lvs'] != 0) { + $hinweis = ''; + } + + + if (strpos($row0['art'], "Abweichender Lehrbedarf") !== false AND $row0['beantragung'] != 0) { + $lvs = number_format($row0['beantragung'], 2, ',', '.'); + $hinweis = "Beantragt: $lvs LVS"; + } + + + + + if ($row0['lvs'] == 0) { + $anz_lvs = ''; + } else { + $anz_lvs = number_format($row0['lvs'], 2, ',', '.'); + } + + if ($row0['sws'] == 0) { + $sws = ''; + } else { + $sws = number_format($row0['sws'], 2, ',', '.'); + } + + + + #echo number_format($row0['lvs'], 2, ',', '.')."
"; + + $row0['erg_lvs'] = number_format($erg_lvs, 2, ',', '.'); + $row0['hinweis'] = $hinweis; + $row0['cur_lvs'] = number_format($cur_lvs, 2, ',', '.'); + $cur_lvs = $cur_lvs - $row0['lvs']; + $row0['sws'] = $sws; + $row0['anz_lvs'] = $anz_lvs; + $row0['ber_lvs'] = number_format($row0['lvs'], 2, ',', '.'); + $row0['beginn_form'] = $beginn_form; + $row0['ende_form'] = $ende_form; + + $table_data0[] = $row0; + + + } + $smarty->assign('table_data0', $table_data0); + + # Jahressumme Ermäßigungen + $query_jahrsum0 = $db->query("SELECT sum(lvs) summe_jahr + FROM dep_deputat_ermaessigung + WHERE imtuid=$uid + AND jahr=$jahrgang"); + $row_jahrsum0 = $query_jahrsum0->fetch_array(); + + $summe_jahr0 = number_format($row_jahrsum0['summe_jahr'], 2, ',', '.'); + $smarty->assign('erf_value_summe_jahr_erm', $summe_jahr0); + + + $zu_leisten = $row_startlvs['lvs'] - $row_jahrsum0['summe_jahr']; + $zu_leisten_form = number_format($row_startlvs['lvs'] - $row_jahrsum0['summe_jahr'], 2, ',', '.'); + + $smarty->assign('erf_value_zu_leisten', $zu_leisten_form); + + + # Gespeicherte Werte + $query2 = "SELECT did, titel, module, schwerpunkt, dsgid, verid, anz_ag, krankheitsmerkmal, gemlv, fachlv, anzgemlv, namegemlv, basislvsgemlv, teamteaching, exk_tage, exk_datumvon, exk_datumbis, exk_beschreibung, exk_stdanreise, exk_stdabreise, std, std_default, hinweise + FROM dep_deputat + WHERE imtuid=$uid + AND jahr=$jahrgang + ORDER BY created DESC"; + + $result2 = $db->query($query2) or die("Cannot execute query 1"); + + while ($row1 = $result2->fetch_array()) { + + $query_verid = $db->query("SELECT bezeichnung + FROM dep_kat_veranstaltungsart + WHERE verid='$row1[verid]'"); + $row_verid = $query_verid->fetch_array(); + + # Wird aktuell nicht mehr im Frontend eingeblendet + $query_tid = $db->query("SELECT bezeichnung + FROM dep_kat_teamteaching + WHERE tid='$row1[teamteaching]'"); + $row_tid = $query_tid->fetch_array(); + + if ($row1['gemlv'] == 'J') { + $gemlv_form = 'Ja'; + } + if ($row1['gemlv'] == 'N') { + $gemlv_form = 'Nein'; + } + # Krankheitsbedingte Merkmale + # 0=Keine; 1=LV übernommen; 2=LV nachgeholt + if ($row1['krankheitsmerkmal'] == 0) { + $krankheitsmerkmal = "keine"; + } + if ($row1['krankheitsmerkmal'] == 1) { + $krankheitsmerkmal = "LV übernommen"; + } + if ($row1['krankheitsmerkmal'] == 2) { + $krankheitsmerkmal = "LV nachgeholt"; + } + + /* Marix, wann $modul $schwerpunkt oder $titel verwendet wird + findet sind in Excel "erfassen_eingabe_felder.xlsx" Tab "Matrix Titel" + + $titel = $_POST['titel']; + $module = $_POST['module']; + $schwerpunkt = $_POST['schwerpunkt']; + */ + if ($row1['verid'] == "1" AND ($row1['dsgid'] == "1" or $row1['dsgid'] == "2" or $row1['dsgid'] == "3" or $row1['dsgid'] == "4")) { + # In Kombination Vorlesung mit Public Management, Steuer, Rente und Finanz gilt $modul und $titel und $schwerpunkt sind leer + $query_vorl = $db->query("SELECT bezeichnung + FROM dep_kat_studienmodul + WHERE dsmid='$row1[module]'"); + $row_vorl = $query_vorl->fetch_array(); + $titel = $row_vorl['bezeichnung']; + } elseif ($row1['verid'] == 11) { + # Bei Schwerpunkt gilt immer $schwerpunkt + $query_spt = $db->query("SELECT bezeichnung + FROM dep_kat_schwerpunkt + WHERE dspid='$row1[schwerpunkt]'"); + $row_spt = $query_spt->fetch_array(); + $titel = $row_spt['bezeichnung']; + } else { + # Bei anderen konstellationen gibt es immer $titel + $titel = $row1['titel']; + } + + $std = number_format($row1['std'], 2, ',', '.'); + $row1['std'] = $std; + $row1['titel'] = $titel; + $row1['gemlv_form'] = $gemlv_form; + $row1['krankheitsmerkmal'] = $krankheitsmerkmal; + $row1['veranstaltung'] = $row_verid['bezeichnung']; + $row1['teamteaching_form'] = $row_tid['bezeichnung']; + $table_data1[] = $row1; + } + $smarty->assign('table_data1', $table_data1); + + # Jahressumme + $query_jahrsum = $db->query("SELECT sum(std) summe_jahr + FROM dep_deputat + WHERE imtuid=$uid + AND jahr=$jahrgang"); + $row_jahrsum = $query_jahrsum->fetch_array(); + $summe_jahr = number_format($row_jahrsum['summe_jahr'], 2, ',', '.'); + $smarty->assign('erf_value_summe_jahr', $summe_jahr); + + + ## Sonstige Deputate + + # Gespeicherte Werte + $query2 = "SELECT dsid, titel, verid, lvs, hinweise + FROM dep_deputat_sonstige + WHERE imtuid=$uid + AND jahr=$jahrgang + ORDER BY verid ASC"; + + $result2 = $db->query($query2) or die("Cannot execute query2"); + + while ($row2 = $result2->fetch_array()) { + + $query_verid = $db->query("SELECT bezeichnung + FROM dep_kat_veranstaltungsart + WHERE verid='$row2[verid]'"); + $row_verid = $query_verid->fetch_array(); + + # Wird aktuell nicht mehr im Frontend eingeblendet + $query_tid = $db->query("SELECT bezeichnung + FROM dep_kat_teamteaching + WHERE tid='$row2[teamteaching]'"); + $row_tid = $query_tid->fetch_array(); + + if ($row2['gemlv'] == 'J') { + $gemlv_form = 'Ja'; + } + if ($row2['gemlv'] == 'N') { + $gemlv_form = 'Nein'; + } + # Krankheitsbedingte Merkmale + # 0=Keine; 1=LV übernommen; 2=LV nachgeholt + if ($row2['krankheitsmerkmal'] == 0) { + $krankheitsmerkmal = "keine"; + } + if ($row2['krankheitsmerkmal'] == 1) { + $krankheitsmerkmal = "LV übernommen"; + } + if ($row2['krankheitsmerkmal'] == 2) { + $krankheitsmerkmal = "LV nachgeholt"; + } + + $lvs = number_format($row2['lvs'], 2, ',', '.'); + $row2['lvs'] = $lvs; + $row2['gemlv_form'] = $gemlv_form; + $row2['krankheitsmerkmal'] = $krankheitsmerkmal; + $row2['veranstaltung'] = $row_verid['bezeichnung']; + $row2['teamteaching_form'] = $row_tid['bezeichnung']; + $table_data2[] = $row2; + } + $smarty->assign('table_data2', $table_data2); + + # Jahressumme + $query_jahrsum = $db->query("SELECT sum(lvs) summe_jahr + FROM dep_deputat_sonstige + WHERE imtuid=$uid + AND jahr=$jahrgang"); + $row_jahrsum_sonst = $query_jahrsum->fetch_array(); + $summe_jahr_sonst = number_format($row_jahrsum_sonst['summe_jahr'], 2, ',', '.'); + $smarty->assign('erfs_value_summe_jahr', $summe_jahr_sonst); + + # Gespeicherte Werte Abschlussarbeiten + $query2 = "SELECT daid, name, kaid, semester, lvs + FROM dep_deputat_abschlussarbeiten + WHERE imtuid=$uid + AND jahr=$jahrgang + ORDER BY semester DESC"; + + $result2 = $db->query($query2) or die("Cannot execute query 3"); + + while ($row3 = $result2->fetch_array()) { + + if ($row3['semester'] == 'SS') { + $semester = "Sommersemester"; + } + if ($row3['semester'] == 'WS') { + $semester = "Wintersemester"; + } + + $query_bez_sem = $db->query("SELECT bezeichnung + FROM dep_kat_abschlussarbeiten + WHERE kaid =$row3[kaid]"); + $row_bez_sem = $query_bez_sem->fetch_array(); + + $lvs = number_format($row3['lvs'], 2, ',', '.'); + + $row3['lvs'] = $lvs; + $row3['abschlussarbeit'] = $row_bez_sem['bezeichnung']; + $row3['semesterbez'] = $semester; + $table_data3[] = $row3; + } + $smarty->assign('table_data3', $table_data3); + # Summe LVS im WS + $query_sumlvs_ws = $db->query("SELECT sum(lvs) lvs + FROM dep_deputat_abschlussarbeiten + WHERE imtuid=$uid + AND jahr=$jahrgang"); + $row_sumlvs = $query_sumlvs_ws->fetch_array(); + $summe_jahrlvs = number_format($row_sumlvs['lvs'], 2, ',', '.'); + $smarty->assign('abschluss_value_summe_lvs', $summe_jahrlvs); + + $ist = $row_sumlvs['lvs'] + $row_jahrsum_sonst['summe_jahr'] + $row_jahrsum['summe_jahr']; + #Berechnung durchführen für Tabelle + + # auskommentiert am 02.06.2022. $zu_leisten gibt es noch nicht, es wird mal mit 594 gerechnet + # jahresabschlussberechnung($uid, $jahrgang, $zu_leisten, $ist); + jahresabschlussberechnung($uid, $jahrgang, $zu_leisten, $ist); + + $ist_format = number_format($ist, 2, ',', '.'); + $smarty->assign('abschluss_gesamt', $ist_format); + + ########SYNOPSE############################ + #Aktuelles Jahr + $vorjahr = $jahrgang - 1; + $query_syn_pre = $db->query("SELECT endwert + FROM dep_jahresabschluss_restdeputate + WHERE imtuid=$uid + AND jahr=$vorjahr"); + $row_syn_pre = $query_syn_pre->fetch_array(); + $jaabschl_endwert_vorjahr = number_format($row_syn_pre[endwert], 2, ',', '.'); + $smarty->assign('jaabschl_endwert_vorjahr', $jaabschl_endwert_vorjahr); + + $query_syn_cur = $db->query("SELECT soll, ist, dep_gesamt, dep_verfall_jahr, dep_verfall, dep_gesamt_nach_verfall, deperg_aktjahr + FROM dep_jahresabschluss + WHERE imtuid=$uid + AND jahr=$jahrgang"); + $row_syn_cur = $query_syn_cur->fetch_array(); + + $jaabschl_soll = number_format($row_syn_cur[soll], 2, ',', '.'); + $smarty->assign('jaabschl_soll', $jaabschl_soll); + + $jaabschl_ist = number_format($row_syn_cur[ist], 2, ',', '.'); + $smarty->assign('jaabschl_ist', $jaabschl_ist); + + $uber_unter_jahr = $row_syn_cur[ist] - $row_syn_cur[soll]; + $jaabschl_uber_unter_jahr = number_format($uber_unter_jahr, 2, ',', '.'); + $smarty->assign('jaabschl_uber_unter_jahr', $jaabschl_uber_unter_jahr); + + $smarty->assign('jaabschl_verfall_jahr', $row_syn_cur[dep_verfall_jahr]); + $jaabschl_dep_verfall = number_format($row_syn_cur[dep_verfall], 2, ',', '.'); + $smarty->assign('jaabschl_dep_verfall', $jaabschl_dep_verfall); + + $jaabschl_dep_gesamt = number_format($row_syn_cur[dep_gesamt], 2, ',', '.'); + $smarty->assign('jaabschl_dep_gesamt', $jaabschl_dep_gesamt); + + $jaabschl_dep_gesamt_nach_verfall = number_format($row_syn_cur[dep_gesamt_nach_verfall], 2, ',', '.'); + $smarty->assign('jaabschl_dep_gesamt_nach_verfall', $jaabschl_dep_gesamt_nach_verfall); + + # Wie viel Unterdeputat konnte abgebaut werden + $query_syn_abb = $db->query("SELECT sum(differenz)*-1 abbau_jahr + FROM dep_jahresabschluss_restdeputate + WHERE imtuid=$uid + AND jahr=$jahrgang + GROUP BY jahr"); + $row_syn_abb = $query_syn_abb->fetch_array(); + + $jaabschl_abbau_jahr = number_format($row_syn_abb[abbau_jahr], 2, ',', '.'); + $smarty->assign('jaabschl_abbau_jahr', $jaabschl_abbau_jahr); + + # Vergangene Jahre + $query4 = "SELECT vorjahr, startwert, differenz, differenzjahr, endwert, soll, ist, dep_gesamt, dep_verfall_jahr, dep_verfall, dep_gesamt_nach_verfall, deperg_aktjahr + FROM dep_jahresabschluss_restdeputate a, dep_jahresabschluss b + WHERE a.vorjahr=b.jahr + AND a.jahr = $jahrgang + AND a.imtuid = $uid + ORDER BY vorjahr DESC"; + #echo $query4; + $result4 = $db->query($query4) or die("Cannot execute query 4"); + + + + while ($row4 = $result4->fetch_array()) { + $vorjahr_next = $row4[vorjahr] + 1; + $vorjahre = $row4[vorjahr] . "/" . $vorjahr_next; + + $verfall_next = $row4[dep_verfall_jahr] + 1; + $dep_verfall_jahr = $row4[dep_verfall_jahr] . "/" . $verfall_next; + + $uber_unter_jahr = $row4[ist] - $row4[soll]; + + + $row4['vorjahr'] = $vorjahre; + $row4['dep_verfall_jahr'] = $dep_verfall_jahr; + $row4['uber_unter_jahr'] = number_format($uber_unter_jahr, 2, ',', '.'); + $row4['differenz'] = number_format($row4['differenz'], 2, ',', '.'); + $row4['dep_verfall'] = number_format($row4['dep_verfall'], 2, ',', '.'); + $row4['dep_gesamt_nach_verfall'] = number_format($row4['dep_gesamt_nach_verfall'], 2, ',', '.'); + $row4['dep_gesamt'] = number_format($row4['dep_gesamt'], 2, ',', '.'); + $row4['endwert'] = number_format($row4['endwert'], 2, ',', '.'); + $row4['soll'] = number_format($row4['soll'], 2, ',', '.'); + $row4['ist'] = number_format($row4['ist'], 2, ',', '.'); + $table_data4[] = $row4; + } + $smarty->assign('table_data4', $table_data4); + + # Prüfen ob der Jahrgang schon abgeschlossen wurde, dann soll der Button "Abschließen und absenden" ausgeblendet werden + $query_closed = $db->query("SELECT count(*) Anz + FROM dep_doz_abschluss + WHERE imtuid=$uid + AND jahr=$jahrgang"); + $row_closed = $query_closed->fetch_array(); + + if ($row_closed['Anz'] > 0) { + $smarty->assign('jaabschl_closed', 1); + $smarty->assign('jaabschl_error', 1); + $smarty->assign('jaabschl_error_text', 'Der aktuelle Jahrgang ist bereits abgeschlossen!'); + } else { + $smarty->assign('jaabschl_closed', 0); + } +} +if ($action == 'abschluss') { + $jahrgang_next = $jahrgang + 1; + $studjahr = "$jahrgang/$jahrgang_next"; + $smarty->assign('jaabschl_jahrgang', $studjahr); +} +if ($action == 'abschluss2') { + $datum = date("Y-m-d H:i:s"); + $jahrgang_next = $jahrgang + 1; + $studjahr = "$jahrgang/$jahrgang_next"; + $smarty->assign('jaabschl_jahrgang', $studjahr); + + $sql1 = $db->query("INSERT INTO dep_doz_abschluss ( imtuid + , jahr + , abschluss + ) + VALUES + ( '$uid' + , '$jahrgang' + , '$datum' + ) + "); + echo ""; +} +$smarty->assign('action', "$action"); +$smarty->display("$template/$templatename"); + +?> \ No newline at end of file diff --git a/jahrgang.php b/jahrgang.php new file mode 100755 index 0000000..50a6662 --- /dev/null +++ b/jahrgang.php @@ -0,0 +1,64 @@ +query("SELECT min(jahr) jahr + FROM `dep_kat_lvs` + + "); + $row = $query->fetch_array(); + + $query2 = $db->query("SELECT max(jahr)+2 ende_jahr + FROM `dep_jahresabschluss` + "); + + $row2 = $query2->fetch_array(); + if($row2['ende_jahr'] == ''){ + $ende = intval($row['jahr'])+10; + }else{ + $ende = intval($row2['ende_jahr']); + } + + + for($i=intval($row['jahr']);$i < $ende;$i++){ + $jahre[]= $i; + } + @arsort($jahre); + +#echo "

";
+#print_r($jahre);
+#echo "
"; + + $smarty->assign('jahrgang', $jahre); +# $smarty->assign('jahrgang_min', $row['jahr']); +# $smarty->assign('jahrgang_max', $row2['ende_jahr']); + $smarty->assign('jahrgang_cur_jahrgang', $jahrgang); + +} + +if($action == 'jahr'){ + + $_SESSION["jahrgang"] = $_POST['jahr']; + echo ""; +} // Ende Action script + +$smarty->assign('action', "$action"); +$smarty->display("$template/$templatename"); +?> diff --git a/jquery - Kopie/jquery-1.12.4.js b/jquery - Kopie/jquery-1.12.4.js new file mode 100755 index 0000000..d02245a --- /dev/null +++ b/jquery - Kopie/jquery-1.12.4.js @@ -0,0 +1,11008 @@ +/*! + * jQuery JavaScript Library v1.12.4 + * https://jquery.com/ + * + * Includes Sizzle.js + * https://sizzlejs.com/ + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2016-05-20T17:17Z + */ + +(function( global, factory ) { + + if ( typeof module === "object" && typeof module.exports === "object" ) { + // For CommonJS and CommonJS-like environments where a proper `window` + // is present, execute the factory and get jQuery. + // For environments that do not have a `window` with a `document` + // (such as Node.js), expose a factory as module.exports. + // This accentuates the need for the creation of a real `window`. + // e.g. var jQuery = require("jquery")(window); + // See ticket #14549 for more info. + module.exports = global.document ? + factory( global, true ) : + function( w ) { + if ( !w.document ) { + throw new Error( "jQuery requires a window with a document" ); + } + return factory( w ); + }; + } else { + factory( global ); + } + +// Pass this if window is not defined yet +}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) { + +// Support: Firefox 18+ +// Can't be in strict mode, several libs including ASP.NET trace +// the stack via arguments.caller.callee and Firefox dies if +// you try to trace through "use strict" call chains. (#13335) +//"use strict"; +var deletedIds = []; + +var document = window.document; + +var slice = deletedIds.slice; + +var concat = deletedIds.concat; + +var push = deletedIds.push; + +var indexOf = deletedIds.indexOf; + +var class2type = {}; + +var toString = class2type.toString; + +var hasOwn = class2type.hasOwnProperty; + +var support = {}; + + + +var + version = "1.12.4", + + // Define a local copy of jQuery + jQuery = function( selector, context ) { + + // The jQuery object is actually just the init constructor 'enhanced' + // Need init if jQuery is called (just allow error to be thrown if not included) + return new jQuery.fn.init( selector, context ); + }, + + // Support: Android<4.1, IE<9 + // Make sure we trim BOM and NBSP + rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, + + // Matches dashed string for camelizing + rmsPrefix = /^-ms-/, + rdashAlpha = /-([\da-z])/gi, + + // Used by jQuery.camelCase as callback to replace() + fcamelCase = function( all, letter ) { + return letter.toUpperCase(); + }; + +jQuery.fn = jQuery.prototype = { + + // The current version of jQuery being used + jquery: version, + + constructor: jQuery, + + // Start with an empty selector + selector: "", + + // The default length of a jQuery object is 0 + length: 0, + + toArray: function() { + return slice.call( this ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + return num != null ? + + // Return just the one element from the set + ( num < 0 ? this[ num + this.length ] : this[ num ] ) : + + // Return all the elements in a clean array + slice.call( this ); + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems ) { + + // Build a new jQuery matched element set + var ret = jQuery.merge( this.constructor(), elems ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + ret.context = this.context; + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. + each: function( callback ) { + return jQuery.each( this, callback ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map( this, function( elem, i ) { + return callback.call( elem, i, elem ); + } ) ); + }, + + slice: function() { + return this.pushStack( slice.apply( this, arguments ) ); + }, + + first: function() { + return this.eq( 0 ); + }, + + last: function() { + return this.eq( -1 ); + }, + + eq: function( i ) { + var len = this.length, + j = +i + ( i < 0 ? len : 0 ); + return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); + }, + + end: function() { + return this.prevObject || this.constructor(); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: push, + sort: deletedIds.sort, + splice: deletedIds.splice +}; + +jQuery.extend = jQuery.fn.extend = function() { + var src, copyIsArray, copy, name, options, clone, + target = arguments[ 0 ] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + + // skip the boolean and the target + target = arguments[ i ] || {}; + i++; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction( target ) ) { + target = {}; + } + + // extend jQuery itself if only one argument is passed + if ( i === length ) { + target = this; + i--; + } + + for ( ; i < length; i++ ) { + + // Only deal with non-null/undefined values + if ( ( options = arguments[ i ] ) != null ) { + + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject( copy ) || + ( copyIsArray = jQuery.isArray( copy ) ) ) ) { + + if ( copyIsArray ) { + copyIsArray = false; + clone = src && jQuery.isArray( src ) ? src : []; + + } else { + clone = src && jQuery.isPlainObject( src ) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +jQuery.extend( { + + // Unique for each copy of jQuery on the page + expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), + + // Assume jQuery is ready without the ready module + isReady: true, + + error: function( msg ) { + throw new Error( msg ); + }, + + noop: function() {}, + + // See test/unit/core.js for details concerning isFunction. + // Since version 1.3, DOM methods and functions like alert + // aren't supported. They return false on IE (#2968). + isFunction: function( obj ) { + return jQuery.type( obj ) === "function"; + }, + + isArray: Array.isArray || function( obj ) { + return jQuery.type( obj ) === "array"; + }, + + isWindow: function( obj ) { + /* jshint eqeqeq: false */ + return obj != null && obj == obj.window; + }, + + isNumeric: function( obj ) { + + // parseFloat NaNs numeric-cast false positives (null|true|false|"") + // ...but misinterprets leading-number strings, particularly hex literals ("0x...") + // subtraction forces infinities to NaN + // adding 1 corrects loss of precision from parseFloat (#15100) + var realStringObj = obj && obj.toString(); + return !jQuery.isArray( obj ) && ( realStringObj - parseFloat( realStringObj ) + 1 ) >= 0; + }, + + isEmptyObject: function( obj ) { + var name; + for ( name in obj ) { + return false; + } + return true; + }, + + isPlainObject: function( obj ) { + var key; + + // Must be an Object. + // Because of IE, we also have to check the presence of the constructor property. + // Make sure that DOM nodes and window objects don't pass through, as well + if ( !obj || jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { + return false; + } + + try { + + // Not own constructor property must be Object + if ( obj.constructor && + !hasOwn.call( obj, "constructor" ) && + !hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) { + return false; + } + } catch ( e ) { + + // IE8,9 Will throw exceptions on certain host objects #9897 + return false; + } + + // Support: IE<9 + // Handle iteration over inherited properties before own properties. + if ( !support.ownFirst ) { + for ( key in obj ) { + return hasOwn.call( obj, key ); + } + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + for ( key in obj ) {} + + return key === undefined || hasOwn.call( obj, key ); + }, + + type: function( obj ) { + if ( obj == null ) { + return obj + ""; + } + return typeof obj === "object" || typeof obj === "function" ? + class2type[ toString.call( obj ) ] || "object" : + typeof obj; + }, + + // Workarounds based on findings by Jim Driscoll + // https://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context + globalEval: function( data ) { + if ( data && jQuery.trim( data ) ) { + + // We use execScript on Internet Explorer + // We use an anonymous function so that context is window + // rather than jQuery in Firefox + ( window.execScript || function( data ) { + window[ "eval" ].call( window, data ); // jscs:ignore requireDotNotation + } )( data ); + } + }, + + // Convert dashed to camelCase; used by the css and data modules + // Microsoft forgot to hump their vendor prefix (#9572) + camelCase: function( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); + }, + + nodeName: function( elem, name ) { + return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); + }, + + each: function( obj, callback ) { + var length, i = 0; + + if ( isArrayLike( obj ) ) { + length = obj.length; + for ( ; i < length; i++ ) { + if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { + break; + } + } + } else { + for ( i in obj ) { + if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { + break; + } + } + } + + return obj; + }, + + // Support: Android<4.1, IE<9 + trim: function( text ) { + return text == null ? + "" : + ( text + "" ).replace( rtrim, "" ); + }, + + // results is for internal usage only + makeArray: function( arr, results ) { + var ret = results || []; + + if ( arr != null ) { + if ( isArrayLike( Object( arr ) ) ) { + jQuery.merge( ret, + typeof arr === "string" ? + [ arr ] : arr + ); + } else { + push.call( ret, arr ); + } + } + + return ret; + }, + + inArray: function( elem, arr, i ) { + var len; + + if ( arr ) { + if ( indexOf ) { + return indexOf.call( arr, elem, i ); + } + + len = arr.length; + i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; + + for ( ; i < len; i++ ) { + + // Skip accessing in sparse arrays + if ( i in arr && arr[ i ] === elem ) { + return i; + } + } + } + + return -1; + }, + + merge: function( first, second ) { + var len = +second.length, + j = 0, + i = first.length; + + while ( j < len ) { + first[ i++ ] = second[ j++ ]; + } + + // Support: IE<9 + // Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists) + if ( len !== len ) { + while ( second[ j ] !== undefined ) { + first[ i++ ] = second[ j++ ]; + } + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, invert ) { + var callbackInverse, + matches = [], + i = 0, + length = elems.length, + callbackExpect = !invert; + + // Go through the array, only saving the items + // that pass the validator function + for ( ; i < length; i++ ) { + callbackInverse = !callback( elems[ i ], i ); + if ( callbackInverse !== callbackExpect ) { + matches.push( elems[ i ] ); + } + } + + return matches; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var length, value, + i = 0, + ret = []; + + // Go through the array, translating each of the items to their new values + if ( isArrayLike( elems ) ) { + length = elems.length; + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + + // Go through every key on the object, + } else { + for ( i in elems ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + } + + // Flatten any nested arrays + return concat.apply( [], ret ); + }, + + // A global GUID counter for objects + guid: 1, + + // Bind a function to a context, optionally partially applying any + // arguments. + proxy: function( fn, context ) { + var args, proxy, tmp; + + if ( typeof context === "string" ) { + tmp = fn[ context ]; + context = fn; + fn = tmp; + } + + // Quick check to determine if target is callable, in the spec + // this throws a TypeError, but we will just return undefined. + if ( !jQuery.isFunction( fn ) ) { + return undefined; + } + + // Simulated bind + args = slice.call( arguments, 2 ); + proxy = function() { + return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); + }; + + // Set the guid of unique handler to the same of original handler, so it can be removed + proxy.guid = fn.guid = fn.guid || jQuery.guid++; + + return proxy; + }, + + now: function() { + return +( new Date() ); + }, + + // jQuery.support is not used in Core but other projects attach their + // properties to it so it needs to exist. + support: support +} ); + +// JSHint would error on this code due to the Symbol not being defined in ES5. +// Defining this global in .jshintrc would create a danger of using the global +// unguarded in another place, it seems safer to just disable JSHint for these +// three lines. +/* jshint ignore: start */ +if ( typeof Symbol === "function" ) { + jQuery.fn[ Symbol.iterator ] = deletedIds[ Symbol.iterator ]; +} +/* jshint ignore: end */ + +// Populate the class2type map +jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), +function( i, name ) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); +} ); + +function isArrayLike( obj ) { + + // Support: iOS 8.2 (not reproducible in simulator) + // `in` check used to prevent JIT error (gh-2145) + // hasOwn isn't used here due to false negatives + // regarding Nodelist length in IE + var length = !!obj && "length" in obj && obj.length, + type = jQuery.type( obj ); + + if ( type === "function" || jQuery.isWindow( obj ) ) { + return false; + } + + return type === "array" || length === 0 || + typeof length === "number" && length > 0 && ( length - 1 ) in obj; +} +var Sizzle = +/*! + * Sizzle CSS Selector Engine v2.2.1 + * https://sizzlejs.com/ + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2015-10-17 + */ +(function( window ) { + +var i, + support, + Expr, + getText, + isXML, + tokenize, + compile, + select, + outermostContext, + sortInput, + hasDuplicate, + + // Local document vars + setDocument, + document, + docElem, + documentIsHTML, + rbuggyQSA, + rbuggyMatches, + matches, + contains, + + // Instance-specific data + expando = "sizzle" + 1 * new Date(), + preferredDoc = window.document, + dirruns = 0, + done = 0, + classCache = createCache(), + tokenCache = createCache(), + compilerCache = createCache(), + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + } + return 0; + }, + + // General-purpose constants + MAX_NEGATIVE = 1 << 31, + + // Instance methods + hasOwn = ({}).hasOwnProperty, + arr = [], + pop = arr.pop, + push_native = arr.push, + push = arr.push, + slice = arr.slice, + // Use a stripped-down indexOf as it's faster than native + // https://jsperf.com/thor-indexof-vs-for/5 + indexOf = function( list, elem ) { + var i = 0, + len = list.length; + for ( ; i < len; i++ ) { + if ( list[i] === elem ) { + return i; + } + } + return -1; + }, + + booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", + + // Regular expressions + + // https://www.w3.org/TR/css3-selectors/#whitespace + whitespace = "[\\x20\\t\\r\\n\\f]", + + // https://www.w3.org/TR/CSS21/syndata.html#value-def-identifier + identifier = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", + + // Attribute selectors: https://www.w3.org/TR/selectors/#attribute-selectors + attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + + // Operator (capture 2) + "*([*^$|!~]?=)" + whitespace + + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + + "*\\]", + + pseudos = ":(" + identifier + ")(?:\\((" + + // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: + // 1. quoted (capture 3; capture 4 or capture 5) + "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + + // 2. simple (capture 6) + "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + + // 3. anything else (capture 2) + ".*" + + ")\\)|)", + + // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter + rwhitespace = new RegExp( whitespace + "+", "g" ), + rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), + + rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), + rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), + + rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), + + rpseudo = new RegExp( pseudos ), + ridentifier = new RegExp( "^" + identifier + "$" ), + + matchExpr = { + "ID": new RegExp( "^#(" + identifier + ")" ), + "CLASS": new RegExp( "^\\.(" + identifier + ")" ), + "TAG": new RegExp( "^(" + identifier + "|[*])" ), + "ATTR": new RegExp( "^" + attributes ), + "PSEUDO": new RegExp( "^" + pseudos ), + "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), + "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), + // For use in libraries implementing .is() + // We use this for POS matching in `select` + "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) + }, + + rinputs = /^(?:input|select|textarea|button)$/i, + rheader = /^h\d$/i, + + rnative = /^[^{]+\{\s*\[native \w/, + + // Easily-parseable/retrievable ID or TAG or CLASS selectors + rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, + + rsibling = /[+~]/, + rescape = /'|\\/g, + + // CSS escapes https://www.w3.org/TR/CSS21/syndata.html#escaped-characters + runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), + funescape = function( _, escaped, escapedWhitespace ) { + var high = "0x" + escaped - 0x10000; + // NaN means non-codepoint + // Support: Firefox<24 + // Workaround erroneous numeric interpretation of +"0x" + return high !== high || escapedWhitespace ? + escaped : + high < 0 ? + // BMP codepoint + String.fromCharCode( high + 0x10000 ) : + // Supplemental Plane codepoint (surrogate pair) + String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); + }, + + // Used for iframes + // See setDocument() + // Removing the function wrapper causes a "Permission Denied" + // error in IE + unloadHandler = function() { + setDocument(); + }; + +// Optimize for push.apply( _, NodeList ) +try { + push.apply( + (arr = slice.call( preferredDoc.childNodes )), + preferredDoc.childNodes + ); + // Support: Android<4.0 + // Detect silently failing push.apply + arr[ preferredDoc.childNodes.length ].nodeType; +} catch ( e ) { + push = { apply: arr.length ? + + // Leverage slice if possible + function( target, els ) { + push_native.apply( target, slice.call(els) ); + } : + + // Support: IE<9 + // Otherwise append directly + function( target, els ) { + var j = target.length, + i = 0; + // Can't trust NodeList.length + while ( (target[j++] = els[i++]) ) {} + target.length = j - 1; + } + }; +} + +function Sizzle( selector, context, results, seed ) { + var m, i, elem, nid, nidselect, match, groups, newSelector, + newContext = context && context.ownerDocument, + + // nodeType defaults to 9, since context defaults to document + nodeType = context ? context.nodeType : 9; + + results = results || []; + + // Return early from calls with invalid selector or context + if ( typeof selector !== "string" || !selector || + nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { + + return results; + } + + // Try to shortcut find operations (as opposed to filters) in HTML documents + if ( !seed ) { + + if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { + setDocument( context ); + } + context = context || document; + + if ( documentIsHTML ) { + + // If the selector is sufficiently simple, try using a "get*By*" DOM method + // (excepting DocumentFragment context, where the methods don't exist) + if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { + + // ID selector + if ( (m = match[1]) ) { + + // Document context + if ( nodeType === 9 ) { + if ( (elem = context.getElementById( m )) ) { + + // Support: IE, Opera, Webkit + // TODO: identify versions + // getElementById can match elements by name instead of ID + if ( elem.id === m ) { + results.push( elem ); + return results; + } + } else { + return results; + } + + // Element context + } else { + + // Support: IE, Opera, Webkit + // TODO: identify versions + // getElementById can match elements by name instead of ID + if ( newContext && (elem = newContext.getElementById( m )) && + contains( context, elem ) && + elem.id === m ) { + + results.push( elem ); + return results; + } + } + + // Type selector + } else if ( match[2] ) { + push.apply( results, context.getElementsByTagName( selector ) ); + return results; + + // Class selector + } else if ( (m = match[3]) && support.getElementsByClassName && + context.getElementsByClassName ) { + + push.apply( results, context.getElementsByClassName( m ) ); + return results; + } + } + + // Take advantage of querySelectorAll + if ( support.qsa && + !compilerCache[ selector + " " ] && + (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { + + if ( nodeType !== 1 ) { + newContext = context; + newSelector = selector; + + // qSA looks outside Element context, which is not what we want + // Thanks to Andrew Dupont for this workaround technique + // Support: IE <=8 + // Exclude object elements + } else if ( context.nodeName.toLowerCase() !== "object" ) { + + // Capture the context ID, setting it first if necessary + if ( (nid = context.getAttribute( "id" )) ) { + nid = nid.replace( rescape, "\\$&" ); + } else { + context.setAttribute( "id", (nid = expando) ); + } + + // Prefix every selector in the list + groups = tokenize( selector ); + i = groups.length; + nidselect = ridentifier.test( nid ) ? "#" + nid : "[id='" + nid + "']"; + while ( i-- ) { + groups[i] = nidselect + " " + toSelector( groups[i] ); + } + newSelector = groups.join( "," ); + + // Expand context for sibling selectors + newContext = rsibling.test( selector ) && testContext( context.parentNode ) || + context; + } + + if ( newSelector ) { + try { + push.apply( results, + newContext.querySelectorAll( newSelector ) + ); + return results; + } catch ( qsaError ) { + } finally { + if ( nid === expando ) { + context.removeAttribute( "id" ); + } + } + } + } + } + } + + // All others + return select( selector.replace( rtrim, "$1" ), context, results, seed ); +} + +/** + * Create key-value caches of limited size + * @returns {function(string, object)} Returns the Object data after storing it on itself with + * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) + * deleting the oldest entry + */ +function createCache() { + var keys = []; + + function cache( key, value ) { + // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) + if ( keys.push( key + " " ) > Expr.cacheLength ) { + // Only keep the most recent entries + delete cache[ keys.shift() ]; + } + return (cache[ key + " " ] = value); + } + return cache; +} + +/** + * Mark a function for special use by Sizzle + * @param {Function} fn The function to mark + */ +function markFunction( fn ) { + fn[ expando ] = true; + return fn; +} + +/** + * Support testing using an element + * @param {Function} fn Passed the created div and expects a boolean result + */ +function assert( fn ) { + var div = document.createElement("div"); + + try { + return !!fn( div ); + } catch (e) { + return false; + } finally { + // Remove from its parent by default + if ( div.parentNode ) { + div.parentNode.removeChild( div ); + } + // release memory in IE + div = null; + } +} + +/** + * Adds the same handler for all of the specified attrs + * @param {String} attrs Pipe-separated list of attributes + * @param {Function} handler The method that will be applied + */ +function addHandle( attrs, handler ) { + var arr = attrs.split("|"), + i = arr.length; + + while ( i-- ) { + Expr.attrHandle[ arr[i] ] = handler; + } +} + +/** + * Checks document order of two siblings + * @param {Element} a + * @param {Element} b + * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b + */ +function siblingCheck( a, b ) { + var cur = b && a, + diff = cur && a.nodeType === 1 && b.nodeType === 1 && + ( ~b.sourceIndex || MAX_NEGATIVE ) - + ( ~a.sourceIndex || MAX_NEGATIVE ); + + // Use IE sourceIndex if available on both nodes + if ( diff ) { + return diff; + } + + // Check if b follows a + if ( cur ) { + while ( (cur = cur.nextSibling) ) { + if ( cur === b ) { + return -1; + } + } + } + + return a ? 1 : -1; +} + +/** + * Returns a function to use in pseudos for input types + * @param {String} type + */ +function createInputPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for buttons + * @param {String} type + */ +function createButtonPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for positionals + * @param {Function} fn + */ +function createPositionalPseudo( fn ) { + return markFunction(function( argument ) { + argument = +argument; + return markFunction(function( seed, matches ) { + var j, + matchIndexes = fn( [], seed.length, argument ), + i = matchIndexes.length; + + // Match elements found at the specified indexes + while ( i-- ) { + if ( seed[ (j = matchIndexes[i]) ] ) { + seed[j] = !(matches[j] = seed[j]); + } + } + }); + }); +} + +/** + * Checks a node for validity as a Sizzle context + * @param {Element|Object=} context + * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value + */ +function testContext( context ) { + return context && typeof context.getElementsByTagName !== "undefined" && context; +} + +// Expose support vars for convenience +support = Sizzle.support = {}; + +/** + * Detects XML nodes + * @param {Element|Object} elem An element or a document + * @returns {Boolean} True iff elem is a non-HTML XML node + */ +isXML = Sizzle.isXML = function( elem ) { + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = elem && (elem.ownerDocument || elem).documentElement; + return documentElement ? documentElement.nodeName !== "HTML" : false; +}; + +/** + * Sets document-related variables once based on the current document + * @param {Element|Object} [doc] An element or document object to use to set the document + * @returns {Object} Returns the current document + */ +setDocument = Sizzle.setDocument = function( node ) { + var hasCompare, parent, + doc = node ? node.ownerDocument || node : preferredDoc; + + // Return early if doc is invalid or already selected + if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { + return document; + } + + // Update global variables + document = doc; + docElem = document.documentElement; + documentIsHTML = !isXML( document ); + + // Support: IE 9-11, Edge + // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) + if ( (parent = document.defaultView) && parent.top !== parent ) { + // Support: IE 11 + if ( parent.addEventListener ) { + parent.addEventListener( "unload", unloadHandler, false ); + + // Support: IE 9 - 10 only + } else if ( parent.attachEvent ) { + parent.attachEvent( "onunload", unloadHandler ); + } + } + + /* Attributes + ---------------------------------------------------------------------- */ + + // Support: IE<8 + // Verify that getAttribute really returns attributes and not properties + // (excepting IE8 booleans) + support.attributes = assert(function( div ) { + div.className = "i"; + return !div.getAttribute("className"); + }); + + /* getElement(s)By* + ---------------------------------------------------------------------- */ + + // Check if getElementsByTagName("*") returns only elements + support.getElementsByTagName = assert(function( div ) { + div.appendChild( document.createComment("") ); + return !div.getElementsByTagName("*").length; + }); + + // Support: IE<9 + support.getElementsByClassName = rnative.test( document.getElementsByClassName ); + + // Support: IE<10 + // Check if getElementById returns elements by name + // The broken getElementById methods don't pick up programatically-set names, + // so use a roundabout getElementsByName test + support.getById = assert(function( div ) { + docElem.appendChild( div ).id = expando; + return !document.getElementsByName || !document.getElementsByName( expando ).length; + }); + + // ID find and filter + if ( support.getById ) { + Expr.find["ID"] = function( id, context ) { + if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { + var m = context.getElementById( id ); + return m ? [ m ] : []; + } + }; + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + return elem.getAttribute("id") === attrId; + }; + }; + } else { + // Support: IE6/7 + // getElementById is not reliable as a find shortcut + delete Expr.find["ID"]; + + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + var node = typeof elem.getAttributeNode !== "undefined" && + elem.getAttributeNode("id"); + return node && node.value === attrId; + }; + }; + } + + // Tag + Expr.find["TAG"] = support.getElementsByTagName ? + function( tag, context ) { + if ( typeof context.getElementsByTagName !== "undefined" ) { + return context.getElementsByTagName( tag ); + + // DocumentFragment nodes don't have gEBTN + } else if ( support.qsa ) { + return context.querySelectorAll( tag ); + } + } : + + function( tag, context ) { + var elem, + tmp = [], + i = 0, + // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too + results = context.getElementsByTagName( tag ); + + // Filter out possible comments + if ( tag === "*" ) { + while ( (elem = results[i++]) ) { + if ( elem.nodeType === 1 ) { + tmp.push( elem ); + } + } + + return tmp; + } + return results; + }; + + // Class + Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { + if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { + return context.getElementsByClassName( className ); + } + }; + + /* QSA/matchesSelector + ---------------------------------------------------------------------- */ + + // QSA and matchesSelector support + + // matchesSelector(:active) reports false when true (IE9/Opera 11.5) + rbuggyMatches = []; + + // qSa(:focus) reports false when true (Chrome 21) + // We allow this because of a bug in IE8/9 that throws an error + // whenever `document.activeElement` is accessed on an iframe + // So, we allow :focus to pass through QSA all the time to avoid the IE error + // See https://bugs.jquery.com/ticket/13378 + rbuggyQSA = []; + + if ( (support.qsa = rnative.test( document.querySelectorAll )) ) { + // Build QSA regex + // Regex strategy adopted from Diego Perini + assert(function( div ) { + // Select is set to empty string on purpose + // This is to test IE's treatment of not explicitly + // setting a boolean content attribute, + // since its presence should be enough + // https://bugs.jquery.com/ticket/12359 + docElem.appendChild( div ).innerHTML = "" + + ""; + + // Support: IE8, Opera 11-12.16 + // Nothing should be selected when empty strings follow ^= or $= or *= + // The test attribute must be unknown in Opera but "safe" for WinRT + // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section + if ( div.querySelectorAll("[msallowcapture^='']").length ) { + rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); + } + + // Support: IE8 + // Boolean attributes and "value" are not treated correctly + if ( !div.querySelectorAll("[selected]").length ) { + rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); + } + + // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ + if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) { + rbuggyQSA.push("~="); + } + + // Webkit/Opera - :checked should return selected option elements + // https://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + // IE8 throws error here and will not see later tests + if ( !div.querySelectorAll(":checked").length ) { + rbuggyQSA.push(":checked"); + } + + // Support: Safari 8+, iOS 8+ + // https://bugs.webkit.org/show_bug.cgi?id=136851 + // In-page `selector#id sibing-combinator selector` fails + if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) { + rbuggyQSA.push(".#.+[+~]"); + } + }); + + assert(function( div ) { + // Support: Windows 8 Native Apps + // The type and name attributes are restricted during .innerHTML assignment + var input = document.createElement("input"); + input.setAttribute( "type", "hidden" ); + div.appendChild( input ).setAttribute( "name", "D" ); + + // Support: IE8 + // Enforce case-sensitivity of name attribute + if ( div.querySelectorAll("[name=d]").length ) { + rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); + } + + // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) + // IE8 throws error here and will not see later tests + if ( !div.querySelectorAll(":enabled").length ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Opera 10-11 does not throw on post-comma invalid pseudos + div.querySelectorAll("*,:x"); + rbuggyQSA.push(",.*:"); + }); + } + + if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || + docElem.webkitMatchesSelector || + docElem.mozMatchesSelector || + docElem.oMatchesSelector || + docElem.msMatchesSelector) )) ) { + + assert(function( div ) { + // Check to see if it's possible to do matchesSelector + // on a disconnected node (IE 9) + support.disconnectedMatch = matches.call( div, "div" ); + + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call( div, "[s!='']:x" ); + rbuggyMatches.push( "!=", pseudos ); + }); + } + + rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); + rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); + + /* Contains + ---------------------------------------------------------------------- */ + hasCompare = rnative.test( docElem.compareDocumentPosition ); + + // Element contains another + // Purposefully self-exclusive + // As in, an element does not contain itself + contains = hasCompare || rnative.test( docElem.contains ) ? + function( a, b ) { + var adown = a.nodeType === 9 ? a.documentElement : a, + bup = b && b.parentNode; + return a === bup || !!( bup && bup.nodeType === 1 && ( + adown.contains ? + adown.contains( bup ) : + a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 + )); + } : + function( a, b ) { + if ( b ) { + while ( (b = b.parentNode) ) { + if ( b === a ) { + return true; + } + } + } + return false; + }; + + /* Sorting + ---------------------------------------------------------------------- */ + + // Document order sorting + sortOrder = hasCompare ? + function( a, b ) { + + // Flag for duplicate removal + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + // Sort on method existence if only one input has compareDocumentPosition + var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; + if ( compare ) { + return compare; + } + + // Calculate position if both inputs belong to the same document + compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? + a.compareDocumentPosition( b ) : + + // Otherwise we know they are disconnected + 1; + + // Disconnected nodes + if ( compare & 1 || + (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { + + // Choose the first element that is related to our preferred document + if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { + return -1; + } + if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { + return 1; + } + + // Maintain original order + return sortInput ? + ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : + 0; + } + + return compare & 4 ? -1 : 1; + } : + function( a, b ) { + // Exit early if the nodes are identical + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + var cur, + i = 0, + aup = a.parentNode, + bup = b.parentNode, + ap = [ a ], + bp = [ b ]; + + // Parentless nodes are either documents or disconnected + if ( !aup || !bup ) { + return a === document ? -1 : + b === document ? 1 : + aup ? -1 : + bup ? 1 : + sortInput ? + ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : + 0; + + // If the nodes are siblings, we can do a quick check + } else if ( aup === bup ) { + return siblingCheck( a, b ); + } + + // Otherwise we need full lists of their ancestors for comparison + cur = a; + while ( (cur = cur.parentNode) ) { + ap.unshift( cur ); + } + cur = b; + while ( (cur = cur.parentNode) ) { + bp.unshift( cur ); + } + + // Walk down the tree looking for a discrepancy + while ( ap[i] === bp[i] ) { + i++; + } + + return i ? + // Do a sibling check if the nodes have a common ancestor + siblingCheck( ap[i], bp[i] ) : + + // Otherwise nodes in our document sort first + ap[i] === preferredDoc ? -1 : + bp[i] === preferredDoc ? 1 : + 0; + }; + + return document; +}; + +Sizzle.matches = function( expr, elements ) { + return Sizzle( expr, null, null, elements ); +}; + +Sizzle.matchesSelector = function( elem, expr ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + // Make sure that attribute selectors are quoted + expr = expr.replace( rattributeQuotes, "='$1']" ); + + if ( support.matchesSelector && documentIsHTML && + !compilerCache[ expr + " " ] && + ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && + ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { + + try { + var ret = matches.call( elem, expr ); + + // IE 9's matchesSelector returns false on disconnected nodes + if ( ret || support.disconnectedMatch || + // As well, disconnected nodes are said to be in a document + // fragment in IE 9 + elem.document && elem.document.nodeType !== 11 ) { + return ret; + } + } catch (e) {} + } + + return Sizzle( expr, document, null, [ elem ] ).length > 0; +}; + +Sizzle.contains = function( context, elem ) { + // Set document vars if needed + if ( ( context.ownerDocument || context ) !== document ) { + setDocument( context ); + } + return contains( context, elem ); +}; + +Sizzle.attr = function( elem, name ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + var fn = Expr.attrHandle[ name.toLowerCase() ], + // Don't get fooled by Object.prototype properties (jQuery #13807) + val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? + fn( elem, name, !documentIsHTML ) : + undefined; + + return val !== undefined ? + val : + support.attributes || !documentIsHTML ? + elem.getAttribute( name ) : + (val = elem.getAttributeNode(name)) && val.specified ? + val.value : + null; +}; + +Sizzle.error = function( msg ) { + throw new Error( "Syntax error, unrecognized expression: " + msg ); +}; + +/** + * Document sorting and removing duplicates + * @param {ArrayLike} results + */ +Sizzle.uniqueSort = function( results ) { + var elem, + duplicates = [], + j = 0, + i = 0; + + // Unless we *know* we can detect duplicates, assume their presence + hasDuplicate = !support.detectDuplicates; + sortInput = !support.sortStable && results.slice( 0 ); + results.sort( sortOrder ); + + if ( hasDuplicate ) { + while ( (elem = results[i++]) ) { + if ( elem === results[ i ] ) { + j = duplicates.push( i ); + } + } + while ( j-- ) { + results.splice( duplicates[ j ], 1 ); + } + } + + // Clear input after sorting to release objects + // See https://github.com/jquery/sizzle/pull/225 + sortInput = null; + + return results; +}; + +/** + * Utility function for retrieving the text value of an array of DOM nodes + * @param {Array|Element} elem + */ +getText = Sizzle.getText = function( elem ) { + var node, + ret = "", + i = 0, + nodeType = elem.nodeType; + + if ( !nodeType ) { + // If no nodeType, this is expected to be an array + while ( (node = elem[i++]) ) { + // Do not traverse comment nodes + ret += getText( node ); + } + } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { + // Use textContent for elements + // innerText usage removed for consistency of new lines (jQuery #11153) + if ( typeof elem.textContent === "string" ) { + return elem.textContent; + } else { + // Traverse its children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + ret += getText( elem ); + } + } + } else if ( nodeType === 3 || nodeType === 4 ) { + return elem.nodeValue; + } + // Do not include comment or processing instruction nodes + + return ret; +}; + +Expr = Sizzle.selectors = { + + // Can be adjusted by the user + cacheLength: 50, + + createPseudo: markFunction, + + match: matchExpr, + + attrHandle: {}, + + find: {}, + + relative: { + ">": { dir: "parentNode", first: true }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: true }, + "~": { dir: "previousSibling" } + }, + + preFilter: { + "ATTR": function( match ) { + match[1] = match[1].replace( runescape, funescape ); + + // Move the given value to match[3] whether quoted or unquoted + match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); + + if ( match[2] === "~=" ) { + match[3] = " " + match[3] + " "; + } + + return match.slice( 0, 4 ); + }, + + "CHILD": function( match ) { + /* matches from matchExpr["CHILD"] + 1 type (only|nth|...) + 2 what (child|of-type) + 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) + 4 xn-component of xn+y argument ([+-]?\d*n|) + 5 sign of xn-component + 6 x of xn-component + 7 sign of y-component + 8 y of y-component + */ + match[1] = match[1].toLowerCase(); + + if ( match[1].slice( 0, 3 ) === "nth" ) { + // nth-* requires argument + if ( !match[3] ) { + Sizzle.error( match[0] ); + } + + // numeric x and y parameters for Expr.filter.CHILD + // remember that false/true cast respectively to 0/1 + match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); + match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); + + // other types prohibit arguments + } else if ( match[3] ) { + Sizzle.error( match[0] ); + } + + return match; + }, + + "PSEUDO": function( match ) { + var excess, + unquoted = !match[6] && match[2]; + + if ( matchExpr["CHILD"].test( match[0] ) ) { + return null; + } + + // Accept quoted arguments as-is + if ( match[3] ) { + match[2] = match[4] || match[5] || ""; + + // Strip excess characters from unquoted arguments + } else if ( unquoted && rpseudo.test( unquoted ) && + // Get excess from tokenize (recursively) + (excess = tokenize( unquoted, true )) && + // advance to the next closing parenthesis + (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { + + // excess is a negative index + match[0] = match[0].slice( 0, excess ); + match[2] = unquoted.slice( 0, excess ); + } + + // Return only captures needed by the pseudo filter method (type and argument) + return match.slice( 0, 3 ); + } + }, + + filter: { + + "TAG": function( nodeNameSelector ) { + var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); + return nodeNameSelector === "*" ? + function() { return true; } : + function( elem ) { + return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; + }; + }, + + "CLASS": function( className ) { + var pattern = classCache[ className + " " ]; + + return pattern || + (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && + classCache( className, function( elem ) { + return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); + }); + }, + + "ATTR": function( name, operator, check ) { + return function( elem ) { + var result = Sizzle.attr( elem, name ); + + if ( result == null ) { + return operator === "!="; + } + if ( !operator ) { + return true; + } + + result += ""; + + return operator === "=" ? result === check : + operator === "!=" ? result !== check : + operator === "^=" ? check && result.indexOf( check ) === 0 : + operator === "*=" ? check && result.indexOf( check ) > -1 : + operator === "$=" ? check && result.slice( -check.length ) === check : + operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : + operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : + false; + }; + }, + + "CHILD": function( type, what, argument, first, last ) { + var simple = type.slice( 0, 3 ) !== "nth", + forward = type.slice( -4 ) !== "last", + ofType = what === "of-type"; + + return first === 1 && last === 0 ? + + // Shortcut for :nth-*(n) + function( elem ) { + return !!elem.parentNode; + } : + + function( elem, context, xml ) { + var cache, uniqueCache, outerCache, node, nodeIndex, start, + dir = simple !== forward ? "nextSibling" : "previousSibling", + parent = elem.parentNode, + name = ofType && elem.nodeName.toLowerCase(), + useCache = !xml && !ofType, + diff = false; + + if ( parent ) { + + // :(first|last|only)-(child|of-type) + if ( simple ) { + while ( dir ) { + node = elem; + while ( (node = node[ dir ]) ) { + if ( ofType ? + node.nodeName.toLowerCase() === name : + node.nodeType === 1 ) { + + return false; + } + } + // Reverse direction for :only-* (if we haven't yet done so) + start = dir = type === "only" && !start && "nextSibling"; + } + return true; + } + + start = [ forward ? parent.firstChild : parent.lastChild ]; + + // non-xml :nth-child(...) stores cache data on `parent` + if ( forward && useCache ) { + + // Seek `elem` from a previously-cached index + + // ...in a gzip-friendly way + node = parent; + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + cache = uniqueCache[ type ] || []; + nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; + diff = nodeIndex && cache[ 2 ]; + node = nodeIndex && parent.childNodes[ nodeIndex ]; + + while ( (node = ++nodeIndex && node && node[ dir ] || + + // Fallback to seeking `elem` from the start + (diff = nodeIndex = 0) || start.pop()) ) { + + // When found, cache indexes on `parent` and break + if ( node.nodeType === 1 && ++diff && node === elem ) { + uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; + break; + } + } + + } else { + // Use previously-cached element index if available + if ( useCache ) { + // ...in a gzip-friendly way + node = elem; + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + cache = uniqueCache[ type ] || []; + nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; + diff = nodeIndex; + } + + // xml :nth-child(...) + // or :nth-last-child(...) or :nth(-last)?-of-type(...) + if ( diff === false ) { + // Use the same loop as above to seek `elem` from the start + while ( (node = ++nodeIndex && node && node[ dir ] || + (diff = nodeIndex = 0) || start.pop()) ) { + + if ( ( ofType ? + node.nodeName.toLowerCase() === name : + node.nodeType === 1 ) && + ++diff ) { + + // Cache the index of each encountered element + if ( useCache ) { + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + uniqueCache[ type ] = [ dirruns, diff ]; + } + + if ( node === elem ) { + break; + } + } + } + } + } + + // Incorporate the offset, then check against cycle size + diff -= last; + return diff === first || ( diff % first === 0 && diff / first >= 0 ); + } + }; + }, + + "PSEUDO": function( pseudo, argument ) { + // pseudo-class names are case-insensitive + // https://www.w3.org/TR/selectors/#pseudo-classes + // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters + // Remember that setFilters inherits from pseudos + var args, + fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || + Sizzle.error( "unsupported pseudo: " + pseudo ); + + // The user may use createPseudo to indicate that + // arguments are needed to create the filter function + // just as Sizzle does + if ( fn[ expando ] ) { + return fn( argument ); + } + + // But maintain support for old signatures + if ( fn.length > 1 ) { + args = [ pseudo, pseudo, "", argument ]; + return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? + markFunction(function( seed, matches ) { + var idx, + matched = fn( seed, argument ), + i = matched.length; + while ( i-- ) { + idx = indexOf( seed, matched[i] ); + seed[ idx ] = !( matches[ idx ] = matched[i] ); + } + }) : + function( elem ) { + return fn( elem, 0, args ); + }; + } + + return fn; + } + }, + + pseudos: { + // Potentially complex pseudos + "not": markFunction(function( selector ) { + // Trim the selector passed to compile + // to avoid treating leading and trailing + // spaces as combinators + var input = [], + results = [], + matcher = compile( selector.replace( rtrim, "$1" ) ); + + return matcher[ expando ] ? + markFunction(function( seed, matches, context, xml ) { + var elem, + unmatched = matcher( seed, null, xml, [] ), + i = seed.length; + + // Match elements unmatched by `matcher` + while ( i-- ) { + if ( (elem = unmatched[i]) ) { + seed[i] = !(matches[i] = elem); + } + } + }) : + function( elem, context, xml ) { + input[0] = elem; + matcher( input, null, xml, results ); + // Don't keep the element (issue #299) + input[0] = null; + return !results.pop(); + }; + }), + + "has": markFunction(function( selector ) { + return function( elem ) { + return Sizzle( selector, elem ).length > 0; + }; + }), + + "contains": markFunction(function( text ) { + text = text.replace( runescape, funescape ); + return function( elem ) { + return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; + }; + }), + + // "Whether an element is represented by a :lang() selector + // is based solely on the element's language value + // being equal to the identifier C, + // or beginning with the identifier C immediately followed by "-". + // The matching of C against the element's language value is performed case-insensitively. + // The identifier C does not have to be a valid language name." + // https://www.w3.org/TR/selectors/#lang-pseudo + "lang": markFunction( function( lang ) { + // lang value must be a valid identifier + if ( !ridentifier.test(lang || "") ) { + Sizzle.error( "unsupported lang: " + lang ); + } + lang = lang.replace( runescape, funescape ).toLowerCase(); + return function( elem ) { + var elemLang; + do { + if ( (elemLang = documentIsHTML ? + elem.lang : + elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { + + elemLang = elemLang.toLowerCase(); + return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; + } + } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); + return false; + }; + }), + + // Miscellaneous + "target": function( elem ) { + var hash = window.location && window.location.hash; + return hash && hash.slice( 1 ) === elem.id; + }, + + "root": function( elem ) { + return elem === docElem; + }, + + "focus": function( elem ) { + return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); + }, + + // Boolean properties + "enabled": function( elem ) { + return elem.disabled === false; + }, + + "disabled": function( elem ) { + return elem.disabled === true; + }, + + "checked": function( elem ) { + // In CSS3, :checked should return both checked and selected elements + // https://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + var nodeName = elem.nodeName.toLowerCase(); + return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); + }, + + "selected": function( elem ) { + // Accessing this property makes selected-by-default + // options in Safari work properly + if ( elem.parentNode ) { + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + // Contents + "empty": function( elem ) { + // https://www.w3.org/TR/selectors/#empty-pseudo + // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), + // but not by others (comment: 8; processing instruction: 7; etc.) + // nodeType < 6 works because attributes (2) do not appear as children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + if ( elem.nodeType < 6 ) { + return false; + } + } + return true; + }, + + "parent": function( elem ) { + return !Expr.pseudos["empty"]( elem ); + }, + + // Element/input types + "header": function( elem ) { + return rheader.test( elem.nodeName ); + }, + + "input": function( elem ) { + return rinputs.test( elem.nodeName ); + }, + + "button": function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === "button" || name === "button"; + }, + + "text": function( elem ) { + var attr; + return elem.nodeName.toLowerCase() === "input" && + elem.type === "text" && + + // Support: IE<8 + // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" + ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); + }, + + // Position-in-collection + "first": createPositionalPseudo(function() { + return [ 0 ]; + }), + + "last": createPositionalPseudo(function( matchIndexes, length ) { + return [ length - 1 ]; + }), + + "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { + return [ argument < 0 ? argument + length : argument ]; + }), + + "even": createPositionalPseudo(function( matchIndexes, length ) { + var i = 0; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "odd": createPositionalPseudo(function( matchIndexes, length ) { + var i = 1; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; --i >= 0; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; ++i < length; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }) + } +}; + +Expr.pseudos["nth"] = Expr.pseudos["eq"]; + +// Add button/input type pseudos +for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { + Expr.pseudos[ i ] = createInputPseudo( i ); +} +for ( i in { submit: true, reset: true } ) { + Expr.pseudos[ i ] = createButtonPseudo( i ); +} + +// Easy API for creating new setFilters +function setFilters() {} +setFilters.prototype = Expr.filters = Expr.pseudos; +Expr.setFilters = new setFilters(); + +tokenize = Sizzle.tokenize = function( selector, parseOnly ) { + var matched, match, tokens, type, + soFar, groups, preFilters, + cached = tokenCache[ selector + " " ]; + + if ( cached ) { + return parseOnly ? 0 : cached.slice( 0 ); + } + + soFar = selector; + groups = []; + preFilters = Expr.preFilter; + + while ( soFar ) { + + // Comma and first run + if ( !matched || (match = rcomma.exec( soFar )) ) { + if ( match ) { + // Don't consume trailing commas as valid + soFar = soFar.slice( match[0].length ) || soFar; + } + groups.push( (tokens = []) ); + } + + matched = false; + + // Combinators + if ( (match = rcombinators.exec( soFar )) ) { + matched = match.shift(); + tokens.push({ + value: matched, + // Cast descendant combinators to space + type: match[0].replace( rtrim, " " ) + }); + soFar = soFar.slice( matched.length ); + } + + // Filters + for ( type in Expr.filter ) { + if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || + (match = preFilters[ type ]( match ))) ) { + matched = match.shift(); + tokens.push({ + value: matched, + type: type, + matches: match + }); + soFar = soFar.slice( matched.length ); + } + } + + if ( !matched ) { + break; + } + } + + // Return the length of the invalid excess + // if we're just parsing + // Otherwise, throw an error or return tokens + return parseOnly ? + soFar.length : + soFar ? + Sizzle.error( selector ) : + // Cache the tokens + tokenCache( selector, groups ).slice( 0 ); +}; + +function toSelector( tokens ) { + var i = 0, + len = tokens.length, + selector = ""; + for ( ; i < len; i++ ) { + selector += tokens[i].value; + } + return selector; +} + +function addCombinator( matcher, combinator, base ) { + var dir = combinator.dir, + checkNonElements = base && dir === "parentNode", + doneName = done++; + + return combinator.first ? + // Check against closest ancestor/preceding element + function( elem, context, xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + return matcher( elem, context, xml ); + } + } + } : + + // Check against all ancestor/preceding elements + function( elem, context, xml ) { + var oldCache, uniqueCache, outerCache, + newCache = [ dirruns, doneName ]; + + // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching + if ( xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + if ( matcher( elem, context, xml ) ) { + return true; + } + } + } + } else { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + outerCache = elem[ expando ] || (elem[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {}); + + if ( (oldCache = uniqueCache[ dir ]) && + oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { + + // Assign to newCache so results back-propagate to previous elements + return (newCache[ 2 ] = oldCache[ 2 ]); + } else { + // Reuse newcache so results back-propagate to previous elements + uniqueCache[ dir ] = newCache; + + // A match means we're done; a fail means we have to keep checking + if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { + return true; + } + } + } + } + } + }; +} + +function elementMatcher( matchers ) { + return matchers.length > 1 ? + function( elem, context, xml ) { + var i = matchers.length; + while ( i-- ) { + if ( !matchers[i]( elem, context, xml ) ) { + return false; + } + } + return true; + } : + matchers[0]; +} + +function multipleContexts( selector, contexts, results ) { + var i = 0, + len = contexts.length; + for ( ; i < len; i++ ) { + Sizzle( selector, contexts[i], results ); + } + return results; +} + +function condense( unmatched, map, filter, context, xml ) { + var elem, + newUnmatched = [], + i = 0, + len = unmatched.length, + mapped = map != null; + + for ( ; i < len; i++ ) { + if ( (elem = unmatched[i]) ) { + if ( !filter || filter( elem, context, xml ) ) { + newUnmatched.push( elem ); + if ( mapped ) { + map.push( i ); + } + } + } + } + + return newUnmatched; +} + +function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { + if ( postFilter && !postFilter[ expando ] ) { + postFilter = setMatcher( postFilter ); + } + if ( postFinder && !postFinder[ expando ] ) { + postFinder = setMatcher( postFinder, postSelector ); + } + return markFunction(function( seed, results, context, xml ) { + var temp, i, elem, + preMap = [], + postMap = [], + preexisting = results.length, + + // Get initial elements from seed or context + elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), + + // Prefilter to get matcher input, preserving a map for seed-results synchronization + matcherIn = preFilter && ( seed || !selector ) ? + condense( elems, preMap, preFilter, context, xml ) : + elems, + + matcherOut = matcher ? + // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, + postFinder || ( seed ? preFilter : preexisting || postFilter ) ? + + // ...intermediate processing is necessary + [] : + + // ...otherwise use results directly + results : + matcherIn; + + // Find primary matches + if ( matcher ) { + matcher( matcherIn, matcherOut, context, xml ); + } + + // Apply postFilter + if ( postFilter ) { + temp = condense( matcherOut, postMap ); + postFilter( temp, [], context, xml ); + + // Un-match failing elements by moving them back to matcherIn + i = temp.length; + while ( i-- ) { + if ( (elem = temp[i]) ) { + matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); + } + } + } + + if ( seed ) { + if ( postFinder || preFilter ) { + if ( postFinder ) { + // Get the final matcherOut by condensing this intermediate into postFinder contexts + temp = []; + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) ) { + // Restore matcherIn since elem is not yet a final match + temp.push( (matcherIn[i] = elem) ); + } + } + postFinder( null, (matcherOut = []), temp, xml ); + } + + // Move matched elements from seed to results to keep them synchronized + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) && + (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { + + seed[temp] = !(results[temp] = elem); + } + } + } + + // Add elements to results, through postFinder if defined + } else { + matcherOut = condense( + matcherOut === results ? + matcherOut.splice( preexisting, matcherOut.length ) : + matcherOut + ); + if ( postFinder ) { + postFinder( null, results, matcherOut, xml ); + } else { + push.apply( results, matcherOut ); + } + } + }); +} + +function matcherFromTokens( tokens ) { + var checkContext, matcher, j, + len = tokens.length, + leadingRelative = Expr.relative[ tokens[0].type ], + implicitRelative = leadingRelative || Expr.relative[" "], + i = leadingRelative ? 1 : 0, + + // The foundational matcher ensures that elements are reachable from top-level context(s) + matchContext = addCombinator( function( elem ) { + return elem === checkContext; + }, implicitRelative, true ), + matchAnyContext = addCombinator( function( elem ) { + return indexOf( checkContext, elem ) > -1; + }, implicitRelative, true ), + matchers = [ function( elem, context, xml ) { + var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( + (checkContext = context).nodeType ? + matchContext( elem, context, xml ) : + matchAnyContext( elem, context, xml ) ); + // Avoid hanging onto element (issue #299) + checkContext = null; + return ret; + } ]; + + for ( ; i < len; i++ ) { + if ( (matcher = Expr.relative[ tokens[i].type ]) ) { + matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; + } else { + matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); + + // Return special upon seeing a positional matcher + if ( matcher[ expando ] ) { + // Find the next relative operator (if any) for proper handling + j = ++i; + for ( ; j < len; j++ ) { + if ( Expr.relative[ tokens[j].type ] ) { + break; + } + } + return setMatcher( + i > 1 && elementMatcher( matchers ), + i > 1 && toSelector( + // If the preceding token was a descendant combinator, insert an implicit any-element `*` + tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) + ).replace( rtrim, "$1" ), + matcher, + i < j && matcherFromTokens( tokens.slice( i, j ) ), + j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), + j < len && toSelector( tokens ) + ); + } + matchers.push( matcher ); + } + } + + return elementMatcher( matchers ); +} + +function matcherFromGroupMatchers( elementMatchers, setMatchers ) { + var bySet = setMatchers.length > 0, + byElement = elementMatchers.length > 0, + superMatcher = function( seed, context, xml, results, outermost ) { + var elem, j, matcher, + matchedCount = 0, + i = "0", + unmatched = seed && [], + setMatched = [], + contextBackup = outermostContext, + // We must always have either seed elements or outermost context + elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), + // Use integer dirruns iff this is the outermost matcher + dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), + len = elems.length; + + if ( outermost ) { + outermostContext = context === document || context || outermost; + } + + // Add elements passing elementMatchers directly to results + // Support: IE<9, Safari + // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id + for ( ; i !== len && (elem = elems[i]) != null; i++ ) { + if ( byElement && elem ) { + j = 0; + if ( !context && elem.ownerDocument !== document ) { + setDocument( elem ); + xml = !documentIsHTML; + } + while ( (matcher = elementMatchers[j++]) ) { + if ( matcher( elem, context || document, xml) ) { + results.push( elem ); + break; + } + } + if ( outermost ) { + dirruns = dirrunsUnique; + } + } + + // Track unmatched elements for set filters + if ( bySet ) { + // They will have gone through all possible matchers + if ( (elem = !matcher && elem) ) { + matchedCount--; + } + + // Lengthen the array for every element, matched or not + if ( seed ) { + unmatched.push( elem ); + } + } + } + + // `i` is now the count of elements visited above, and adding it to `matchedCount` + // makes the latter nonnegative. + matchedCount += i; + + // Apply set filters to unmatched elements + // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` + // equals `i`), unless we didn't visit _any_ elements in the above loop because we have + // no element matchers and no seed. + // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that + // case, which will result in a "00" `matchedCount` that differs from `i` but is also + // numerically zero. + if ( bySet && i !== matchedCount ) { + j = 0; + while ( (matcher = setMatchers[j++]) ) { + matcher( unmatched, setMatched, context, xml ); + } + + if ( seed ) { + // Reintegrate element matches to eliminate the need for sorting + if ( matchedCount > 0 ) { + while ( i-- ) { + if ( !(unmatched[i] || setMatched[i]) ) { + setMatched[i] = pop.call( results ); + } + } + } + + // Discard index placeholder values to get only actual matches + setMatched = condense( setMatched ); + } + + // Add matches to results + push.apply( results, setMatched ); + + // Seedless set matches succeeding multiple successful matchers stipulate sorting + if ( outermost && !seed && setMatched.length > 0 && + ( matchedCount + setMatchers.length ) > 1 ) { + + Sizzle.uniqueSort( results ); + } + } + + // Override manipulation of globals by nested matchers + if ( outermost ) { + dirruns = dirrunsUnique; + outermostContext = contextBackup; + } + + return unmatched; + }; + + return bySet ? + markFunction( superMatcher ) : + superMatcher; +} + +compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { + var i, + setMatchers = [], + elementMatchers = [], + cached = compilerCache[ selector + " " ]; + + if ( !cached ) { + // Generate a function of recursive functions that can be used to check each element + if ( !match ) { + match = tokenize( selector ); + } + i = match.length; + while ( i-- ) { + cached = matcherFromTokens( match[i] ); + if ( cached[ expando ] ) { + setMatchers.push( cached ); + } else { + elementMatchers.push( cached ); + } + } + + // Cache the compiled function + cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); + + // Save selector and tokenization + cached.selector = selector; + } + return cached; +}; + +/** + * A low-level selection function that works with Sizzle's compiled + * selector functions + * @param {String|Function} selector A selector or a pre-compiled + * selector function built with Sizzle.compile + * @param {Element} context + * @param {Array} [results] + * @param {Array} [seed] A set of elements to match against + */ +select = Sizzle.select = function( selector, context, results, seed ) { + var i, tokens, token, type, find, + compiled = typeof selector === "function" && selector, + match = !seed && tokenize( (selector = compiled.selector || selector) ); + + results = results || []; + + // Try to minimize operations if there is only one selector in the list and no seed + // (the latter of which guarantees us context) + if ( match.length === 1 ) { + + // Reduce context if the leading compound selector is an ID + tokens = match[0] = match[0].slice( 0 ); + if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && + support.getById && context.nodeType === 9 && documentIsHTML && + Expr.relative[ tokens[1].type ] ) { + + context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; + if ( !context ) { + return results; + + // Precompiled matchers will still verify ancestry, so step up a level + } else if ( compiled ) { + context = context.parentNode; + } + + selector = selector.slice( tokens.shift().value.length ); + } + + // Fetch a seed set for right-to-left matching + i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; + while ( i-- ) { + token = tokens[i]; + + // Abort if we hit a combinator + if ( Expr.relative[ (type = token.type) ] ) { + break; + } + if ( (find = Expr.find[ type ]) ) { + // Search, expanding context for leading sibling combinators + if ( (seed = find( + token.matches[0].replace( runescape, funescape ), + rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context + )) ) { + + // If seed is empty or no tokens remain, we can return early + tokens.splice( i, 1 ); + selector = seed.length && toSelector( tokens ); + if ( !selector ) { + push.apply( results, seed ); + return results; + } + + break; + } + } + } + } + + // Compile and execute a filtering function if one is not provided + // Provide `match` to avoid retokenization if we modified the selector above + ( compiled || compile( selector, match ) )( + seed, + context, + !documentIsHTML, + results, + !context || rsibling.test( selector ) && testContext( context.parentNode ) || context + ); + return results; +}; + +// One-time assignments + +// Sort stability +support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; + +// Support: Chrome 14-35+ +// Always assume duplicates if they aren't passed to the comparison function +support.detectDuplicates = !!hasDuplicate; + +// Initialize against the default document +setDocument(); + +// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) +// Detached nodes confoundingly follow *each other* +support.sortDetached = assert(function( div1 ) { + // Should return 1, but returns 4 (following) + return div1.compareDocumentPosition( document.createElement("div") ) & 1; +}); + +// Support: IE<8 +// Prevent attribute/property "interpolation" +// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx +if ( !assert(function( div ) { + div.innerHTML = ""; + return div.firstChild.getAttribute("href") === "#" ; +}) ) { + addHandle( "type|href|height|width", function( elem, name, isXML ) { + if ( !isXML ) { + return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); + } + }); +} + +// Support: IE<9 +// Use defaultValue in place of getAttribute("value") +if ( !support.attributes || !assert(function( div ) { + div.innerHTML = ""; + div.firstChild.setAttribute( "value", "" ); + return div.firstChild.getAttribute( "value" ) === ""; +}) ) { + addHandle( "value", function( elem, name, isXML ) { + if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { + return elem.defaultValue; + } + }); +} + +// Support: IE<9 +// Use getAttributeNode to fetch booleans when getAttribute lies +if ( !assert(function( div ) { + return div.getAttribute("disabled") == null; +}) ) { + addHandle( booleans, function( elem, name, isXML ) { + var val; + if ( !isXML ) { + return elem[ name ] === true ? name.toLowerCase() : + (val = elem.getAttributeNode( name )) && val.specified ? + val.value : + null; + } + }); +} + +return Sizzle; + +})( window ); + + + +jQuery.find = Sizzle; +jQuery.expr = Sizzle.selectors; +jQuery.expr[ ":" ] = jQuery.expr.pseudos; +jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; + + + +var dir = function( elem, dir, until ) { + var matched = [], + truncate = until !== undefined; + + while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { + if ( elem.nodeType === 1 ) { + if ( truncate && jQuery( elem ).is( until ) ) { + break; + } + matched.push( elem ); + } + } + return matched; +}; + + +var siblings = function( n, elem ) { + var matched = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + matched.push( n ); + } + } + + return matched; +}; + + +var rneedsContext = jQuery.expr.match.needsContext; + +var rsingleTag = ( /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/ ); + + + +var risSimple = /^.[^:#\[\.,]*$/; + +// Implement the identical functionality for filter and not +function winnow( elements, qualifier, not ) { + if ( jQuery.isFunction( qualifier ) ) { + return jQuery.grep( elements, function( elem, i ) { + /* jshint -W018 */ + return !!qualifier.call( elem, i, elem ) !== not; + } ); + + } + + if ( qualifier.nodeType ) { + return jQuery.grep( elements, function( elem ) { + return ( elem === qualifier ) !== not; + } ); + + } + + if ( typeof qualifier === "string" ) { + if ( risSimple.test( qualifier ) ) { + return jQuery.filter( qualifier, elements, not ); + } + + qualifier = jQuery.filter( qualifier, elements ); + } + + return jQuery.grep( elements, function( elem ) { + return ( jQuery.inArray( elem, qualifier ) > -1 ) !== not; + } ); +} + +jQuery.filter = function( expr, elems, not ) { + var elem = elems[ 0 ]; + + if ( not ) { + expr = ":not(" + expr + ")"; + } + + return elems.length === 1 && elem.nodeType === 1 ? + jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : + jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { + return elem.nodeType === 1; + } ) ); +}; + +jQuery.fn.extend( { + find: function( selector ) { + var i, + ret = [], + self = this, + len = self.length; + + if ( typeof selector !== "string" ) { + return this.pushStack( jQuery( selector ).filter( function() { + for ( i = 0; i < len; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + } ) ); + } + + for ( i = 0; i < len; i++ ) { + jQuery.find( selector, self[ i ], ret ); + } + + // Needed because $( selector, context ) becomes $( context ).find( selector ) + ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); + ret.selector = this.selector ? this.selector + " " + selector : selector; + return ret; + }, + filter: function( selector ) { + return this.pushStack( winnow( this, selector || [], false ) ); + }, + not: function( selector ) { + return this.pushStack( winnow( this, selector || [], true ) ); + }, + is: function( selector ) { + return !!winnow( + this, + + // If this is a positional/relative selector, check membership in the returned set + // so $("p:first").is("p:last") won't return true for a doc with two "p". + typeof selector === "string" && rneedsContext.test( selector ) ? + jQuery( selector ) : + selector || [], + false + ).length; + } +} ); + + +// Initialize a jQuery object + + +// A central reference to the root jQuery(document) +var rootjQuery, + + // A simple way to check for HTML strings + // Prioritize #id over to avoid XSS via location.hash (#9521) + // Strict HTML recognition (#11290: must start with <) + rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, + + init = jQuery.fn.init = function( selector, context, root ) { + var match, elem; + + // HANDLE: $(""), $(null), $(undefined), $(false) + if ( !selector ) { + return this; + } + + // init accepts an alternate rootjQuery + // so migrate can support jQuery.sub (gh-2101) + root = root || rootjQuery; + + // Handle HTML strings + if ( typeof selector === "string" ) { + if ( selector.charAt( 0 ) === "<" && + selector.charAt( selector.length - 1 ) === ">" && + selector.length >= 3 ) { + + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = rquickExpr.exec( selector ); + } + + // Match html or make sure no context is specified for #id + if ( match && ( match[ 1 ] || !context ) ) { + + // HANDLE: $(html) -> $(array) + if ( match[ 1 ] ) { + context = context instanceof jQuery ? context[ 0 ] : context; + + // scripts is true for back-compat + // Intentionally let the error be thrown if parseHTML is not present + jQuery.merge( this, jQuery.parseHTML( + match[ 1 ], + context && context.nodeType ? context.ownerDocument || context : document, + true + ) ); + + // HANDLE: $(html, props) + if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { + for ( match in context ) { + + // Properties of context are called as methods if possible + if ( jQuery.isFunction( this[ match ] ) ) { + this[ match ]( context[ match ] ); + + // ...and otherwise set as attributes + } else { + this.attr( match, context[ match ] ); + } + } + } + + return this; + + // HANDLE: $(#id) + } else { + elem = document.getElementById( match[ 2 ] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id !== match[ 2 ] ) { + return rootjQuery.find( selector ); + } + + // Otherwise, we inject the element directly into the jQuery object + this.length = 1; + this[ 0 ] = elem; + } + + this.context = document; + this.selector = selector; + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return ( context || root ).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(DOMElement) + } else if ( selector.nodeType ) { + this.context = this[ 0 ] = selector; + this.length = 1; + return this; + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) { + return typeof root.ready !== "undefined" ? + root.ready( selector ) : + + // Execute immediately if ready is not present + selector( jQuery ); + } + + if ( selector.selector !== undefined ) { + this.selector = selector.selector; + this.context = selector.context; + } + + return jQuery.makeArray( selector, this ); + }; + +// Give the init function the jQuery prototype for later instantiation +init.prototype = jQuery.fn; + +// Initialize central reference +rootjQuery = jQuery( document ); + + +var rparentsprev = /^(?:parents|prev(?:Until|All))/, + + // methods guaranteed to produce a unique set when starting from a unique set + guaranteedUnique = { + children: true, + contents: true, + next: true, + prev: true + }; + +jQuery.fn.extend( { + has: function( target ) { + var i, + targets = jQuery( target, this ), + len = targets.length; + + return this.filter( function() { + for ( i = 0; i < len; i++ ) { + if ( jQuery.contains( this, targets[ i ] ) ) { + return true; + } + } + } ); + }, + + closest: function( selectors, context ) { + var cur, + i = 0, + l = this.length, + matched = [], + pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? + jQuery( selectors, context || this.context ) : + 0; + + for ( ; i < l; i++ ) { + for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { + + // Always skip document fragments + if ( cur.nodeType < 11 && ( pos ? + pos.index( cur ) > -1 : + + // Don't pass non-elements to Sizzle + cur.nodeType === 1 && + jQuery.find.matchesSelector( cur, selectors ) ) ) { + + matched.push( cur ); + break; + } + } + } + + return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); + }, + + // Determine the position of an element within + // the matched set of elements + index: function( elem ) { + + // No argument, return index in parent + if ( !elem ) { + return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; + } + + // index in selector + if ( typeof elem === "string" ) { + return jQuery.inArray( this[ 0 ], jQuery( elem ) ); + } + + // Locate the position of the desired element + return jQuery.inArray( + + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[ 0 ] : elem, this ); + }, + + add: function( selector, context ) { + return this.pushStack( + jQuery.uniqueSort( + jQuery.merge( this.get(), jQuery( selector, context ) ) + ) + ); + }, + + addBack: function( selector ) { + return this.add( selector == null ? + this.prevObject : this.prevObject.filter( selector ) + ); + } +} ); + +function sibling( cur, dir ) { + do { + cur = cur[ dir ]; + } while ( cur && cur.nodeType !== 1 ); + + return cur; +} + +jQuery.each( { + parent: function( elem ) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function( elem ) { + return dir( elem, "parentNode" ); + }, + parentsUntil: function( elem, i, until ) { + return dir( elem, "parentNode", until ); + }, + next: function( elem ) { + return sibling( elem, "nextSibling" ); + }, + prev: function( elem ) { + return sibling( elem, "previousSibling" ); + }, + nextAll: function( elem ) { + return dir( elem, "nextSibling" ); + }, + prevAll: function( elem ) { + return dir( elem, "previousSibling" ); + }, + nextUntil: function( elem, i, until ) { + return dir( elem, "nextSibling", until ); + }, + prevUntil: function( elem, i, until ) { + return dir( elem, "previousSibling", until ); + }, + siblings: function( elem ) { + return siblings( ( elem.parentNode || {} ).firstChild, elem ); + }, + children: function( elem ) { + return siblings( elem.firstChild ); + }, + contents: function( elem ) { + return jQuery.nodeName( elem, "iframe" ) ? + elem.contentDocument || elem.contentWindow.document : + jQuery.merge( [], elem.childNodes ); + } +}, function( name, fn ) { + jQuery.fn[ name ] = function( until, selector ) { + var ret = jQuery.map( this, fn, until ); + + if ( name.slice( -5 ) !== "Until" ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + if ( this.length > 1 ) { + + // Remove duplicates + if ( !guaranteedUnique[ name ] ) { + ret = jQuery.uniqueSort( ret ); + } + + // Reverse order for parents* and prev-derivatives + if ( rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + } + + return this.pushStack( ret ); + }; +} ); +var rnotwhite = ( /\S+/g ); + + + +// Convert String-formatted options into Object-formatted ones +function createOptions( options ) { + var object = {}; + jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) { + object[ flag ] = true; + } ); + return object; +} + +/* + * Create a callback list using the following parameters: + * + * options: an optional list of space-separated options that will change how + * the callback list behaves or a more traditional option object + * + * By default a callback list will act like an event callback list and can be + * "fired" multiple times. + * + * Possible options: + * + * once: will ensure the callback list can only be fired once (like a Deferred) + * + * memory: will keep track of previous values and will call any callback added + * after the list has been fired right away with the latest "memorized" + * values (like a Deferred) + * + * unique: will ensure a callback can only be added once (no duplicate in the list) + * + * stopOnFalse: interrupt callings when a callback returns false + * + */ +jQuery.Callbacks = function( options ) { + + // Convert options from String-formatted to Object-formatted if needed + // (we check in cache first) + options = typeof options === "string" ? + createOptions( options ) : + jQuery.extend( {}, options ); + + var // Flag to know if list is currently firing + firing, + + // Last fire value for non-forgettable lists + memory, + + // Flag to know if list was already fired + fired, + + // Flag to prevent firing + locked, + + // Actual callback list + list = [], + + // Queue of execution data for repeatable lists + queue = [], + + // Index of currently firing callback (modified by add/remove as needed) + firingIndex = -1, + + // Fire callbacks + fire = function() { + + // Enforce single-firing + locked = options.once; + + // Execute callbacks for all pending executions, + // respecting firingIndex overrides and runtime changes + fired = firing = true; + for ( ; queue.length; firingIndex = -1 ) { + memory = queue.shift(); + while ( ++firingIndex < list.length ) { + + // Run callback and check for early termination + if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && + options.stopOnFalse ) { + + // Jump to end and forget the data so .add doesn't re-fire + firingIndex = list.length; + memory = false; + } + } + } + + // Forget the data if we're done with it + if ( !options.memory ) { + memory = false; + } + + firing = false; + + // Clean up if we're done firing for good + if ( locked ) { + + // Keep an empty list if we have data for future add calls + if ( memory ) { + list = []; + + // Otherwise, this object is spent + } else { + list = ""; + } + } + }, + + // Actual Callbacks object + self = { + + // Add a callback or a collection of callbacks to the list + add: function() { + if ( list ) { + + // If we have memory from a past run, we should fire after adding + if ( memory && !firing ) { + firingIndex = list.length - 1; + queue.push( memory ); + } + + ( function add( args ) { + jQuery.each( args, function( _, arg ) { + if ( jQuery.isFunction( arg ) ) { + if ( !options.unique || !self.has( arg ) ) { + list.push( arg ); + } + } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) { + + // Inspect recursively + add( arg ); + } + } ); + } )( arguments ); + + if ( memory && !firing ) { + fire(); + } + } + return this; + }, + + // Remove a callback from the list + remove: function() { + jQuery.each( arguments, function( _, arg ) { + var index; + while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { + list.splice( index, 1 ); + + // Handle firing indexes + if ( index <= firingIndex ) { + firingIndex--; + } + } + } ); + return this; + }, + + // Check if a given callback is in the list. + // If no argument is given, return whether or not list has callbacks attached. + has: function( fn ) { + return fn ? + jQuery.inArray( fn, list ) > -1 : + list.length > 0; + }, + + // Remove all callbacks from the list + empty: function() { + if ( list ) { + list = []; + } + return this; + }, + + // Disable .fire and .add + // Abort any current/pending executions + // Clear all callbacks and values + disable: function() { + locked = queue = []; + list = memory = ""; + return this; + }, + disabled: function() { + return !list; + }, + + // Disable .fire + // Also disable .add unless we have memory (since it would have no effect) + // Abort any pending executions + lock: function() { + locked = true; + if ( !memory ) { + self.disable(); + } + return this; + }, + locked: function() { + return !!locked; + }, + + // Call all callbacks with the given context and arguments + fireWith: function( context, args ) { + if ( !locked ) { + args = args || []; + args = [ context, args.slice ? args.slice() : args ]; + queue.push( args ); + if ( !firing ) { + fire(); + } + } + return this; + }, + + // Call all the callbacks with the given arguments + fire: function() { + self.fireWith( this, arguments ); + return this; + }, + + // To know if the callbacks have already been called at least once + fired: function() { + return !!fired; + } + }; + + return self; +}; + + +jQuery.extend( { + + Deferred: function( func ) { + var tuples = [ + + // action, add listener, listener list, final state + [ "resolve", "done", jQuery.Callbacks( "once memory" ), "resolved" ], + [ "reject", "fail", jQuery.Callbacks( "once memory" ), "rejected" ], + [ "notify", "progress", jQuery.Callbacks( "memory" ) ] + ], + state = "pending", + promise = { + state: function() { + return state; + }, + always: function() { + deferred.done( arguments ).fail( arguments ); + return this; + }, + then: function( /* fnDone, fnFail, fnProgress */ ) { + var fns = arguments; + return jQuery.Deferred( function( newDefer ) { + jQuery.each( tuples, function( i, tuple ) { + var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; + + // deferred[ done | fail | progress ] for forwarding actions to newDefer + deferred[ tuple[ 1 ] ]( function() { + var returned = fn && fn.apply( this, arguments ); + if ( returned && jQuery.isFunction( returned.promise ) ) { + returned.promise() + .progress( newDefer.notify ) + .done( newDefer.resolve ) + .fail( newDefer.reject ); + } else { + newDefer[ tuple[ 0 ] + "With" ]( + this === promise ? newDefer.promise() : this, + fn ? [ returned ] : arguments + ); + } + } ); + } ); + fns = null; + } ).promise(); + }, + + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + return obj != null ? jQuery.extend( obj, promise ) : promise; + } + }, + deferred = {}; + + // Keep pipe for back-compat + promise.pipe = promise.then; + + // Add list-specific methods + jQuery.each( tuples, function( i, tuple ) { + var list = tuple[ 2 ], + stateString = tuple[ 3 ]; + + // promise[ done | fail | progress ] = list.add + promise[ tuple[ 1 ] ] = list.add; + + // Handle state + if ( stateString ) { + list.add( function() { + + // state = [ resolved | rejected ] + state = stateString; + + // [ reject_list | resolve_list ].disable; progress_list.lock + }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); + } + + // deferred[ resolve | reject | notify ] + deferred[ tuple[ 0 ] ] = function() { + deferred[ tuple[ 0 ] + "With" ]( this === deferred ? promise : this, arguments ); + return this; + }; + deferred[ tuple[ 0 ] + "With" ] = list.fireWith; + } ); + + // Make the deferred a promise + promise.promise( deferred ); + + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + + // All done! + return deferred; + }, + + // Deferred helper + when: function( subordinate /* , ..., subordinateN */ ) { + var i = 0, + resolveValues = slice.call( arguments ), + length = resolveValues.length, + + // the count of uncompleted subordinates + remaining = length !== 1 || + ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, + + // the master Deferred. + // If resolveValues consist of only a single Deferred, just use that. + deferred = remaining === 1 ? subordinate : jQuery.Deferred(), + + // Update function for both resolve and progress values + updateFunc = function( i, contexts, values ) { + return function( value ) { + contexts[ i ] = this; + values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; + if ( values === progressValues ) { + deferred.notifyWith( contexts, values ); + + } else if ( !( --remaining ) ) { + deferred.resolveWith( contexts, values ); + } + }; + }, + + progressValues, progressContexts, resolveContexts; + + // add listeners to Deferred subordinates; treat others as resolved + if ( length > 1 ) { + progressValues = new Array( length ); + progressContexts = new Array( length ); + resolveContexts = new Array( length ); + for ( ; i < length; i++ ) { + if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { + resolveValues[ i ].promise() + .progress( updateFunc( i, progressContexts, progressValues ) ) + .done( updateFunc( i, resolveContexts, resolveValues ) ) + .fail( deferred.reject ); + } else { + --remaining; + } + } + } + + // if we're not waiting on anything, resolve the master + if ( !remaining ) { + deferred.resolveWith( resolveContexts, resolveValues ); + } + + return deferred.promise(); + } +} ); + + +// The deferred used on DOM ready +var readyList; + +jQuery.fn.ready = function( fn ) { + + // Add the callback + jQuery.ready.promise().done( fn ); + + return this; +}; + +jQuery.extend( { + + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // A counter to track how many items to wait for before + // the ready event fires. See #6781 + readyWait: 1, + + // Hold (or release) the ready event + holdReady: function( hold ) { + if ( hold ) { + jQuery.readyWait++; + } else { + jQuery.ready( true ); + } + }, + + // Handle when the DOM is ready + ready: function( wait ) { + + // Abort if there are pending holds or we're already ready + if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { + return; + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith( document, [ jQuery ] ); + + // Trigger any bound ready events + if ( jQuery.fn.triggerHandler ) { + jQuery( document ).triggerHandler( "ready" ); + jQuery( document ).off( "ready" ); + } + } +} ); + +/** + * Clean-up method for dom ready events + */ +function detach() { + if ( document.addEventListener ) { + document.removeEventListener( "DOMContentLoaded", completed ); + window.removeEventListener( "load", completed ); + + } else { + document.detachEvent( "onreadystatechange", completed ); + window.detachEvent( "onload", completed ); + } +} + +/** + * The ready event handler and self cleanup method + */ +function completed() { + + // readyState === "complete" is good enough for us to call the dom ready in oldIE + if ( document.addEventListener || + window.event.type === "load" || + document.readyState === "complete" ) { + + detach(); + jQuery.ready(); + } +} + +jQuery.ready.promise = function( obj ) { + if ( !readyList ) { + + readyList = jQuery.Deferred(); + + // Catch cases where $(document).ready() is called + // after the browser event has already occurred. + // Support: IE6-10 + // Older IE sometimes signals "interactive" too soon + if ( document.readyState === "complete" || + ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { + + // Handle it asynchronously to allow scripts the opportunity to delay ready + window.setTimeout( jQuery.ready ); + + // Standards-based browsers support DOMContentLoaded + } else if ( document.addEventListener ) { + + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", completed ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", completed ); + + // If IE event model is used + } else { + + // Ensure firing before onload, maybe late but safe also for iframes + document.attachEvent( "onreadystatechange", completed ); + + // A fallback to window.onload, that will always work + window.attachEvent( "onload", completed ); + + // If IE and not a frame + // continually check to see if the document is ready + var top = false; + + try { + top = window.frameElement == null && document.documentElement; + } catch ( e ) {} + + if ( top && top.doScroll ) { + ( function doScrollCheck() { + if ( !jQuery.isReady ) { + + try { + + // Use the trick by Diego Perini + // https://javascript.nwbox.com/IEContentLoaded/ + top.doScroll( "left" ); + } catch ( e ) { + return window.setTimeout( doScrollCheck, 50 ); + } + + // detach all dom ready events + detach(); + + // and execute any waiting functions + jQuery.ready(); + } + } )(); + } + } + } + return readyList.promise( obj ); +}; + +// Kick off the DOM ready check even if the user does not +jQuery.ready.promise(); + + + + +// Support: IE<9 +// Iteration over object's inherited properties before its own +var i; +for ( i in jQuery( support ) ) { + break; +} +support.ownFirst = i === "0"; + +// Note: most support tests are defined in their respective modules. +// false until the test is run +support.inlineBlockNeedsLayout = false; + +// Execute ASAP in case we need to set body.style.zoom +jQuery( function() { + + // Minified: var a,b,c,d + var val, div, body, container; + + body = document.getElementsByTagName( "body" )[ 0 ]; + if ( !body || !body.style ) { + + // Return for frameset docs that don't have a body + return; + } + + // Setup + div = document.createElement( "div" ); + container = document.createElement( "div" ); + container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"; + body.appendChild( container ).appendChild( div ); + + if ( typeof div.style.zoom !== "undefined" ) { + + // Support: IE<8 + // Check if natively block-level elements act like inline-block + // elements when setting their display to 'inline' and giving + // them layout + div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1"; + + support.inlineBlockNeedsLayout = val = div.offsetWidth === 3; + if ( val ) { + + // Prevent IE 6 from affecting layout for positioned elements #11048 + // Prevent IE from shrinking the body in IE 7 mode #12869 + // Support: IE<8 + body.style.zoom = 1; + } + } + + body.removeChild( container ); +} ); + + +( function() { + var div = document.createElement( "div" ); + + // Support: IE<9 + support.deleteExpando = true; + try { + delete div.test; + } catch ( e ) { + support.deleteExpando = false; + } + + // Null elements to avoid leaks in IE. + div = null; +} )(); +var acceptData = function( elem ) { + var noData = jQuery.noData[ ( elem.nodeName + " " ).toLowerCase() ], + nodeType = +elem.nodeType || 1; + + // Do not set data on non-element DOM nodes because it will not be cleared (#8335). + return nodeType !== 1 && nodeType !== 9 ? + false : + + // Nodes accept data unless otherwise specified; rejection can be conditional + !noData || noData !== true && elem.getAttribute( "classid" ) === noData; +}; + + + + +var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, + rmultiDash = /([A-Z])/g; + +function dataAttr( elem, key, data ) { + + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if ( data === undefined && elem.nodeType === 1 ) { + + var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); + + data = elem.getAttribute( name ); + + if ( typeof data === "string" ) { + try { + data = data === "true" ? true : + data === "false" ? false : + data === "null" ? null : + + // Only convert to a number if it doesn't change the string + +data + "" === data ? +data : + rbrace.test( data ) ? jQuery.parseJSON( data ) : + data; + } catch ( e ) {} + + // Make sure we set the data so it isn't changed later + jQuery.data( elem, key, data ); + + } else { + data = undefined; + } + } + + return data; +} + +// checks a cache object for emptiness +function isEmptyDataObject( obj ) { + var name; + for ( name in obj ) { + + // if the public data object is empty, the private is still empty + if ( name === "data" && jQuery.isEmptyObject( obj[ name ] ) ) { + continue; + } + if ( name !== "toJSON" ) { + return false; + } + } + + return true; +} + +function internalData( elem, name, data, pvt /* Internal Use Only */ ) { + if ( !acceptData( elem ) ) { + return; + } + + var ret, thisCache, + internalKey = jQuery.expando, + + // We have to handle DOM nodes and JS objects differently because IE6-7 + // can't GC object references properly across the DOM-JS boundary + isNode = elem.nodeType, + + // Only DOM nodes need the global jQuery cache; JS object data is + // attached directly to the object so GC can occur automatically + cache = isNode ? jQuery.cache : elem, + + // Only defining an ID for JS objects if its cache already exists allows + // the code to shortcut on the same path as a DOM node with no cache + id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; + + // Avoid doing any more work than we need to when trying to get data on an + // object that has no data at all + if ( ( !id || !cache[ id ] || ( !pvt && !cache[ id ].data ) ) && + data === undefined && typeof name === "string" ) { + return; + } + + if ( !id ) { + + // Only DOM nodes need a new unique ID for each element since their data + // ends up in the global cache + if ( isNode ) { + id = elem[ internalKey ] = deletedIds.pop() || jQuery.guid++; + } else { + id = internalKey; + } + } + + if ( !cache[ id ] ) { + + // Avoid exposing jQuery metadata on plain JS objects when the object + // is serialized using JSON.stringify + cache[ id ] = isNode ? {} : { toJSON: jQuery.noop }; + } + + // An object can be passed to jQuery.data instead of a key/value pair; this gets + // shallow copied over onto the existing cache + if ( typeof name === "object" || typeof name === "function" ) { + if ( pvt ) { + cache[ id ] = jQuery.extend( cache[ id ], name ); + } else { + cache[ id ].data = jQuery.extend( cache[ id ].data, name ); + } + } + + thisCache = cache[ id ]; + + // jQuery data() is stored in a separate object inside the object's internal data + // cache in order to avoid key collisions between internal data and user-defined + // data. + if ( !pvt ) { + if ( !thisCache.data ) { + thisCache.data = {}; + } + + thisCache = thisCache.data; + } + + if ( data !== undefined ) { + thisCache[ jQuery.camelCase( name ) ] = data; + } + + // Check for both converted-to-camel and non-converted data property names + // If a data property was specified + if ( typeof name === "string" ) { + + // First Try to find as-is property data + ret = thisCache[ name ]; + + // Test for null|undefined property data + if ( ret == null ) { + + // Try to find the camelCased property + ret = thisCache[ jQuery.camelCase( name ) ]; + } + } else { + ret = thisCache; + } + + return ret; +} + +function internalRemoveData( elem, name, pvt ) { + if ( !acceptData( elem ) ) { + return; + } + + var thisCache, i, + isNode = elem.nodeType, + + // See jQuery.data for more information + cache = isNode ? jQuery.cache : elem, + id = isNode ? elem[ jQuery.expando ] : jQuery.expando; + + // If there is already no cache entry for this object, there is no + // purpose in continuing + if ( !cache[ id ] ) { + return; + } + + if ( name ) { + + thisCache = pvt ? cache[ id ] : cache[ id ].data; + + if ( thisCache ) { + + // Support array or space separated string names for data keys + if ( !jQuery.isArray( name ) ) { + + // try the string as a key before any manipulation + if ( name in thisCache ) { + name = [ name ]; + } else { + + // split the camel cased version by spaces unless a key with the spaces exists + name = jQuery.camelCase( name ); + if ( name in thisCache ) { + name = [ name ]; + } else { + name = name.split( " " ); + } + } + } else { + + // If "name" is an array of keys... + // When data is initially created, via ("key", "val") signature, + // keys will be converted to camelCase. + // Since there is no way to tell _how_ a key was added, remove + // both plain key and camelCase key. #12786 + // This will only penalize the array argument path. + name = name.concat( jQuery.map( name, jQuery.camelCase ) ); + } + + i = name.length; + while ( i-- ) { + delete thisCache[ name[ i ] ]; + } + + // If there is no data left in the cache, we want to continue + // and let the cache object itself get destroyed + if ( pvt ? !isEmptyDataObject( thisCache ) : !jQuery.isEmptyObject( thisCache ) ) { + return; + } + } + } + + // See jQuery.data for more information + if ( !pvt ) { + delete cache[ id ].data; + + // Don't destroy the parent cache unless the internal data object + // had been the only thing left in it + if ( !isEmptyDataObject( cache[ id ] ) ) { + return; + } + } + + // Destroy the cache + if ( isNode ) { + jQuery.cleanData( [ elem ], true ); + + // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) + /* jshint eqeqeq: false */ + } else if ( support.deleteExpando || cache != cache.window ) { + /* jshint eqeqeq: true */ + delete cache[ id ]; + + // When all else fails, undefined + } else { + cache[ id ] = undefined; + } +} + +jQuery.extend( { + cache: {}, + + // The following elements (space-suffixed to avoid Object.prototype collisions) + // throw uncatchable exceptions if you attempt to set expando properties + noData: { + "applet ": true, + "embed ": true, + + // ...but Flash objects (which have this classid) *can* handle expandos + "object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" + }, + + hasData: function( elem ) { + elem = elem.nodeType ? jQuery.cache[ elem[ jQuery.expando ] ] : elem[ jQuery.expando ]; + return !!elem && !isEmptyDataObject( elem ); + }, + + data: function( elem, name, data ) { + return internalData( elem, name, data ); + }, + + removeData: function( elem, name ) { + return internalRemoveData( elem, name ); + }, + + // For internal use only. + _data: function( elem, name, data ) { + return internalData( elem, name, data, true ); + }, + + _removeData: function( elem, name ) { + return internalRemoveData( elem, name, true ); + } +} ); + +jQuery.fn.extend( { + data: function( key, value ) { + var i, name, data, + elem = this[ 0 ], + attrs = elem && elem.attributes; + + // Special expections of .data basically thwart jQuery.access, + // so implement the relevant behavior ourselves + + // Gets all values + if ( key === undefined ) { + if ( this.length ) { + data = jQuery.data( elem ); + + if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { + i = attrs.length; + while ( i-- ) { + + // Support: IE11+ + // The attrs elements can be null (#14894) + if ( attrs[ i ] ) { + name = attrs[ i ].name; + if ( name.indexOf( "data-" ) === 0 ) { + name = jQuery.camelCase( name.slice( 5 ) ); + dataAttr( elem, name, data[ name ] ); + } + } + } + jQuery._data( elem, "parsedAttrs", true ); + } + } + + return data; + } + + // Sets multiple values + if ( typeof key === "object" ) { + return this.each( function() { + jQuery.data( this, key ); + } ); + } + + return arguments.length > 1 ? + + // Sets one value + this.each( function() { + jQuery.data( this, key, value ); + } ) : + + // Gets one value + // Try to fetch any internally stored data first + elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : undefined; + }, + + removeData: function( key ) { + return this.each( function() { + jQuery.removeData( this, key ); + } ); + } +} ); + + +jQuery.extend( { + queue: function( elem, type, data ) { + var queue; + + if ( elem ) { + type = ( type || "fx" ) + "queue"; + queue = jQuery._data( elem, type ); + + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !queue || jQuery.isArray( data ) ) { + queue = jQuery._data( elem, type, jQuery.makeArray( data ) ); + } else { + queue.push( data ); + } + } + return queue || []; + } + }, + + dequeue: function( elem, type ) { + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + startLength = queue.length, + fn = queue.shift(), + hooks = jQuery._queueHooks( elem, type ), + next = function() { + jQuery.dequeue( elem, type ); + }; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + startLength--; + } + + if ( fn ) { + + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift( "inprogress" ); + } + + // clear up the last queue stop function + delete hooks.stop; + fn.call( elem, next, hooks ); + } + + if ( !startLength && hooks ) { + hooks.empty.fire(); + } + }, + + // not intended for public consumption - generates a queueHooks object, + // or returns the current one + _queueHooks: function( elem, type ) { + var key = type + "queueHooks"; + return jQuery._data( elem, key ) || jQuery._data( elem, key, { + empty: jQuery.Callbacks( "once memory" ).add( function() { + jQuery._removeData( elem, type + "queue" ); + jQuery._removeData( elem, key ); + } ) + } ); + } +} ); + +jQuery.fn.extend( { + queue: function( type, data ) { + var setter = 2; + + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + setter--; + } + + if ( arguments.length < setter ) { + return jQuery.queue( this[ 0 ], type ); + } + + return data === undefined ? + this : + this.each( function() { + var queue = jQuery.queue( this, type, data ); + + // ensure a hooks for this queue + jQuery._queueHooks( this, type ); + + if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + } ); + }, + dequeue: function( type ) { + return this.each( function() { + jQuery.dequeue( this, type ); + } ); + }, + clearQueue: function( type ) { + return this.queue( type || "fx", [] ); + }, + + // Get a promise resolved when queues of a certain type + // are emptied (fx is the type by default) + promise: function( type, obj ) { + var tmp, + count = 1, + defer = jQuery.Deferred(), + elements = this, + i = this.length, + resolve = function() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + }; + + if ( typeof type !== "string" ) { + obj = type; + type = undefined; + } + type = type || "fx"; + + while ( i-- ) { + tmp = jQuery._data( elements[ i ], type + "queueHooks" ); + if ( tmp && tmp.empty ) { + count++; + tmp.empty.add( resolve ); + } + } + resolve(); + return defer.promise( obj ); + } +} ); + + +( function() { + var shrinkWrapBlocksVal; + + support.shrinkWrapBlocks = function() { + if ( shrinkWrapBlocksVal != null ) { + return shrinkWrapBlocksVal; + } + + // Will be changed later if needed. + shrinkWrapBlocksVal = false; + + // Minified: var b,c,d + var div, body, container; + + body = document.getElementsByTagName( "body" )[ 0 ]; + if ( !body || !body.style ) { + + // Test fired too early or in an unsupported environment, exit. + return; + } + + // Setup + div = document.createElement( "div" ); + container = document.createElement( "div" ); + container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"; + body.appendChild( container ).appendChild( div ); + + // Support: IE6 + // Check if elements with layout shrink-wrap their children + if ( typeof div.style.zoom !== "undefined" ) { + + // Reset CSS: box-sizing; display; margin; border + div.style.cssText = + + // Support: Firefox<29, Android 2.3 + // Vendor-prefix box-sizing + "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" + + "box-sizing:content-box;display:block;margin:0;border:0;" + + "padding:1px;width:1px;zoom:1"; + div.appendChild( document.createElement( "div" ) ).style.width = "5px"; + shrinkWrapBlocksVal = div.offsetWidth !== 3; + } + + body.removeChild( container ); + + return shrinkWrapBlocksVal; + }; + +} )(); +var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; + +var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); + + +var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; + +var isHidden = function( elem, el ) { + + // isHidden might be called from jQuery#filter function; + // in that case, element will be second argument + elem = el || elem; + return jQuery.css( elem, "display" ) === "none" || + !jQuery.contains( elem.ownerDocument, elem ); + }; + + + +function adjustCSS( elem, prop, valueParts, tween ) { + var adjusted, + scale = 1, + maxIterations = 20, + currentValue = tween ? + function() { return tween.cur(); } : + function() { return jQuery.css( elem, prop, "" ); }, + initial = currentValue(), + unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), + + // Starting value computation is required for potential unit mismatches + initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && + rcssNum.exec( jQuery.css( elem, prop ) ); + + if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { + + // Trust units reported by jQuery.css + unit = unit || initialInUnit[ 3 ]; + + // Make sure we update the tween properties later on + valueParts = valueParts || []; + + // Iteratively approximate from a nonzero starting point + initialInUnit = +initial || 1; + + do { + + // If previous iteration zeroed out, double until we get *something*. + // Use string for doubling so we don't accidentally see scale as unchanged below + scale = scale || ".5"; + + // Adjust and apply + initialInUnit = initialInUnit / scale; + jQuery.style( elem, prop, initialInUnit + unit ); + + // Update scale, tolerating zero or NaN from tween.cur() + // Break the loop if scale is unchanged or perfect, or if we've just had enough. + } while ( + scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations + ); + } + + if ( valueParts ) { + initialInUnit = +initialInUnit || +initial || 0; + + // Apply relative offset (+=/-=) if specified + adjusted = valueParts[ 1 ] ? + initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : + +valueParts[ 2 ]; + if ( tween ) { + tween.unit = unit; + tween.start = initialInUnit; + tween.end = adjusted; + } + } + return adjusted; +} + + +// Multifunctional method to get and set values of a collection +// The value/s can optionally be executed if it's a function +var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { + var i = 0, + length = elems.length, + bulk = key == null; + + // Sets many values + if ( jQuery.type( key ) === "object" ) { + chainable = true; + for ( i in key ) { + access( elems, fn, i, key[ i ], true, emptyGet, raw ); + } + + // Sets one value + } else if ( value !== undefined ) { + chainable = true; + + if ( !jQuery.isFunction( value ) ) { + raw = true; + } + + if ( bulk ) { + + // Bulk operations run against the entire set + if ( raw ) { + fn.call( elems, value ); + fn = null; + + // ...except when executing function values + } else { + bulk = fn; + fn = function( elem, key, value ) { + return bulk.call( jQuery( elem ), value ); + }; + } + } + + if ( fn ) { + for ( ; i < length; i++ ) { + fn( + elems[ i ], + key, + raw ? value : value.call( elems[ i ], i, fn( elems[ i ], key ) ) + ); + } + } + } + + return chainable ? + elems : + + // Gets + bulk ? + fn.call( elems ) : + length ? fn( elems[ 0 ], key ) : emptyGet; +}; +var rcheckableType = ( /^(?:checkbox|radio)$/i ); + +var rtagName = ( /<([\w:-]+)/ ); + +var rscriptType = ( /^$|\/(?:java|ecma)script/i ); + +var rleadingWhitespace = ( /^\s+/ ); + +var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|" + + "details|dialog|figcaption|figure|footer|header|hgroup|main|" + + "mark|meter|nav|output|picture|progress|section|summary|template|time|video"; + + + +function createSafeFragment( document ) { + var list = nodeNames.split( "|" ), + safeFrag = document.createDocumentFragment(); + + if ( safeFrag.createElement ) { + while ( list.length ) { + safeFrag.createElement( + list.pop() + ); + } + } + return safeFrag; +} + + +( function() { + var div = document.createElement( "div" ), + fragment = document.createDocumentFragment(), + input = document.createElement( "input" ); + + // Setup + div.innerHTML = "
a"; + + // IE strips leading whitespace when .innerHTML is used + support.leadingWhitespace = div.firstChild.nodeType === 3; + + // Make sure that tbody elements aren't automatically inserted + // IE will insert them into empty tables + support.tbody = !div.getElementsByTagName( "tbody" ).length; + + // Make sure that link elements get serialized correctly by innerHTML + // This requires a wrapper element in IE + support.htmlSerialize = !!div.getElementsByTagName( "link" ).length; + + // Makes sure cloning an html5 element does not cause problems + // Where outerHTML is undefined, this still works + support.html5Clone = + document.createElement( "nav" ).cloneNode( true ).outerHTML !== "<:nav>"; + + // Check if a disconnected checkbox will retain its checked + // value of true after appended to the DOM (IE6/7) + input.type = "checkbox"; + input.checked = true; + fragment.appendChild( input ); + support.appendChecked = input.checked; + + // Make sure textarea (and checkbox) defaultValue is properly cloned + // Support: IE6-IE11+ + div.innerHTML = ""; + support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; + + // #11217 - WebKit loses check when the name is after the checked attribute + fragment.appendChild( div ); + + // Support: Windows Web Apps (WWA) + // `name` and `type` must use .setAttribute for WWA (#14901) + input = document.createElement( "input" ); + input.setAttribute( "type", "radio" ); + input.setAttribute( "checked", "checked" ); + input.setAttribute( "name", "t" ); + + div.appendChild( input ); + + // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3 + // old WebKit doesn't clone checked state correctly in fragments + support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; + + // Support: IE<9 + // Cloned elements keep attachEvent handlers, we use addEventListener on IE9+ + support.noCloneEvent = !!div.addEventListener; + + // Support: IE<9 + // Since attributes and properties are the same in IE, + // cleanData must set properties to undefined rather than use removeAttribute + div[ jQuery.expando ] = 1; + support.attributes = !div.getAttribute( jQuery.expando ); +} )(); + + +// We have to close these tags to support XHTML (#13200) +var wrapMap = { + option: [ 1, "" ], + legend: [ 1, "
", "
" ], + area: [ 1, "", "" ], + + // Support: IE8 + param: [ 1, "", "" ], + thead: [ 1, "", "
" ], + tr: [ 2, "", "
" ], + col: [ 2, "", "
" ], + td: [ 3, "", "
" ], + + // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, + // unless wrapped in a div with non-breaking characters in front of it. + _default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
", "
" ] +}; + +// Support: IE8-IE9 +wrapMap.optgroup = wrapMap.option; + +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + + +function getAll( context, tag ) { + var elems, elem, + i = 0, + found = typeof context.getElementsByTagName !== "undefined" ? + context.getElementsByTagName( tag || "*" ) : + typeof context.querySelectorAll !== "undefined" ? + context.querySelectorAll( tag || "*" ) : + undefined; + + if ( !found ) { + for ( found = [], elems = context.childNodes || context; + ( elem = elems[ i ] ) != null; + i++ + ) { + if ( !tag || jQuery.nodeName( elem, tag ) ) { + found.push( elem ); + } else { + jQuery.merge( found, getAll( elem, tag ) ); + } + } + } + + return tag === undefined || tag && jQuery.nodeName( context, tag ) ? + jQuery.merge( [ context ], found ) : + found; +} + + +// Mark scripts as having already been evaluated +function setGlobalEval( elems, refElements ) { + var elem, + i = 0; + for ( ; ( elem = elems[ i ] ) != null; i++ ) { + jQuery._data( + elem, + "globalEval", + !refElements || jQuery._data( refElements[ i ], "globalEval" ) + ); + } +} + + +var rhtml = /<|&#?\w+;/, + rtbody = / from table fragments + if ( !support.tbody ) { + + // String was a , *may* have spurious + elem = tag === "table" && !rtbody.test( elem ) ? + tmp.firstChild : + + // String was a bare or + wrap[ 1 ] === "
" && !rtbody.test( elem ) ? + tmp : + 0; + + j = elem && elem.childNodes.length; + while ( j-- ) { + if ( jQuery.nodeName( ( tbody = elem.childNodes[ j ] ), "tbody" ) && + !tbody.childNodes.length ) { + + elem.removeChild( tbody ); + } + } + } + + jQuery.merge( nodes, tmp.childNodes ); + + // Fix #12392 for WebKit and IE > 9 + tmp.textContent = ""; + + // Fix #12392 for oldIE + while ( tmp.firstChild ) { + tmp.removeChild( tmp.firstChild ); + } + + // Remember the top-level container for proper cleanup + tmp = safe.lastChild; + } + } + } + + // Fix #11356: Clear elements from fragment + if ( tmp ) { + safe.removeChild( tmp ); + } + + // Reset defaultChecked for any radios and checkboxes + // about to be appended to the DOM in IE 6/7 (#8060) + if ( !support.appendChecked ) { + jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); + } + + i = 0; + while ( ( elem = nodes[ i++ ] ) ) { + + // Skip elements already in the context collection (trac-4087) + if ( selection && jQuery.inArray( elem, selection ) > -1 ) { + if ( ignored ) { + ignored.push( elem ); + } + + continue; + } + + contains = jQuery.contains( elem.ownerDocument, elem ); + + // Append to fragment + tmp = getAll( safe.appendChild( elem ), "script" ); + + // Preserve script evaluation history + if ( contains ) { + setGlobalEval( tmp ); + } + + // Capture executables + if ( scripts ) { + j = 0; + while ( ( elem = tmp[ j++ ] ) ) { + if ( rscriptType.test( elem.type || "" ) ) { + scripts.push( elem ); + } + } + } + } + + tmp = null; + + return safe; +} + + +( function() { + var i, eventName, + div = document.createElement( "div" ); + + // Support: IE<9 (lack submit/change bubble), Firefox (lack focus(in | out) events) + for ( i in { submit: true, change: true, focusin: true } ) { + eventName = "on" + i; + + if ( !( support[ i ] = eventName in window ) ) { + + // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) + div.setAttribute( eventName, "t" ); + support[ i ] = div.attributes[ eventName ].expando === false; + } + } + + // Null elements to avoid leaks in IE. + div = null; +} )(); + + +var rformElems = /^(?:input|select|textarea)$/i, + rkeyEvent = /^key/, + rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, + rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, + rtypenamespace = /^([^.]*)(?:\.(.+)|)/; + +function returnTrue() { + return true; +} + +function returnFalse() { + return false; +} + +// Support: IE9 +// See #13393 for more info +function safeActiveElement() { + try { + return document.activeElement; + } catch ( err ) { } +} + +function on( elem, types, selector, data, fn, one ) { + var origFn, type; + + // Types can be a map of types/handlers + if ( typeof types === "object" ) { + + // ( types-Object, selector, data ) + if ( typeof selector !== "string" ) { + + // ( types-Object, data ) + data = data || selector; + selector = undefined; + } + for ( type in types ) { + on( elem, type, selector, data, types[ type ], one ); + } + return elem; + } + + if ( data == null && fn == null ) { + + // ( types, fn ) + fn = selector; + data = selector = undefined; + } else if ( fn == null ) { + if ( typeof selector === "string" ) { + + // ( types, selector, fn ) + fn = data; + data = undefined; + } else { + + // ( types, data, fn ) + fn = data; + data = selector; + selector = undefined; + } + } + if ( fn === false ) { + fn = returnFalse; + } else if ( !fn ) { + return elem; + } + + if ( one === 1 ) { + origFn = fn; + fn = function( event ) { + + // Can use an empty set, since event contains the info + jQuery().off( event ); + return origFn.apply( this, arguments ); + }; + + // Use same guid so caller can remove using origFn + fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); + } + return elem.each( function() { + jQuery.event.add( this, types, fn, data, selector ); + } ); +} + +/* + * Helper functions for managing events -- not part of the public interface. + * Props to Dean Edwards' addEvent library for many of the ideas. + */ +jQuery.event = { + + global: {}, + + add: function( elem, types, handler, data, selector ) { + var tmp, events, t, handleObjIn, + special, eventHandle, handleObj, + handlers, type, namespaces, origType, + elemData = jQuery._data( elem ); + + // Don't attach events to noData or text/comment nodes (but allow plain objects) + if ( !elemData ) { + return; + } + + // Caller can pass in an object of custom data in lieu of the handler + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + selector = handleObjIn.selector; + } + + // Make sure that the handler has a unique ID, used to find/remove it later + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure and main handler, if this is the first + if ( !( events = elemData.events ) ) { + events = elemData.events = {}; + } + if ( !( eventHandle = elemData.handle ) ) { + eventHandle = elemData.handle = function( e ) { + + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== "undefined" && + ( !e || jQuery.event.triggered !== e.type ) ? + jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : + undefined; + }; + + // Add elem as a property of the handle fn to prevent a memory leak + // with IE non-native events + eventHandle.elem = elem; + } + + // Handle multiple events separated by a space + types = ( types || "" ).match( rnotwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[ t ] ) || []; + type = origType = tmp[ 1 ]; + namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); + + // There *must* be a type, no attaching namespace-only handlers + if ( !type ) { + continue; + } + + // If event changes its type, use the special event handlers for the changed type + special = jQuery.event.special[ type ] || {}; + + // If selector defined, determine special event api type, otherwise given type + type = ( selector ? special.delegateType : special.bindType ) || type; + + // Update special based on newly reset type + special = jQuery.event.special[ type ] || {}; + + // handleObj is passed to all event handlers + handleObj = jQuery.extend( { + type: type, + origType: origType, + data: data, + handler: handler, + guid: handler.guid, + selector: selector, + needsContext: selector && jQuery.expr.match.needsContext.test( selector ), + namespace: namespaces.join( "." ) + }, handleObjIn ); + + // Init the event handler queue if we're the first + if ( !( handlers = events[ type ] ) ) { + handlers = events[ type ] = []; + handlers.delegateCount = 0; + + // Only use addEventListener/attachEvent if the special events handler returns false + if ( !special.setup || + special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + + // Bind the global event handler to the element + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle, false ); + + } else if ( elem.attachEvent ) { + elem.attachEvent( "on" + type, eventHandle ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add to the element's handler list, delegates in front + if ( selector ) { + handlers.splice( handlers.delegateCount++, 0, handleObj ); + } else { + handlers.push( handleObj ); + } + + // Keep track of which events have ever been used, for event optimization + jQuery.event.global[ type ] = true; + } + + // Nullify elem to prevent memory leaks in IE + elem = null; + }, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, selector, mappedTypes ) { + var j, handleObj, tmp, + origCount, t, events, + special, handlers, type, + namespaces, origType, + elemData = jQuery.hasData( elem ) && jQuery._data( elem ); + + if ( !elemData || !( events = elemData.events ) ) { + return; + } + + // Once for each type.namespace in types; type may be omitted + types = ( types || "" ).match( rnotwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[ t ] ) || []; + type = origType = tmp[ 1 ]; + namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); + + // Unbind all events (on this namespace, if provided) for the element + if ( !type ) { + for ( type in events ) { + jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); + } + continue; + } + + special = jQuery.event.special[ type ] || {}; + type = ( selector ? special.delegateType : special.bindType ) || type; + handlers = events[ type ] || []; + tmp = tmp[ 2 ] && + new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); + + // Remove matching events + origCount = j = handlers.length; + while ( j-- ) { + handleObj = handlers[ j ]; + + if ( ( mappedTypes || origType === handleObj.origType ) && + ( !handler || handler.guid === handleObj.guid ) && + ( !tmp || tmp.test( handleObj.namespace ) ) && + ( !selector || selector === handleObj.selector || + selector === "**" && handleObj.selector ) ) { + handlers.splice( j, 1 ); + + if ( handleObj.selector ) { + handlers.delegateCount--; + } + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + } + + // Remove generic event handler if we removed something and no more handlers exist + // (avoids potential for endless recursion during removal of special event handlers) + if ( origCount && !handlers.length ) { + if ( !special.teardown || + special.teardown.call( elem, namespaces, elemData.handle ) === false ) { + + jQuery.removeEvent( elem, type, elemData.handle ); + } + + delete events[ type ]; + } + } + + // Remove the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + delete elemData.handle; + + // removeData also checks for emptiness and clears the expando if empty + // so use it instead of delete + jQuery._removeData( elem, "events" ); + } + }, + + trigger: function( event, data, elem, onlyHandlers ) { + var handle, ontype, cur, + bubbleType, special, tmp, i, + eventPath = [ elem || document ], + type = hasOwn.call( event, "type" ) ? event.type : event, + namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; + + cur = tmp = elem = elem || document; + + // Don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + // focus/blur morphs to focusin/out; ensure we're not firing them right now + if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { + return; + } + + if ( type.indexOf( "." ) > -1 ) { + + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split( "." ); + type = namespaces.shift(); + namespaces.sort(); + } + ontype = type.indexOf( ":" ) < 0 && "on" + type; + + // Caller can pass in a jQuery.Event object, Object, or just an event type string + event = event[ jQuery.expando ] ? + event : + new jQuery.Event( type, typeof event === "object" && event ); + + // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) + event.isTrigger = onlyHandlers ? 2 : 3; + event.namespace = namespaces.join( "." ); + event.rnamespace = event.namespace ? + new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : + null; + + // Clean up the event in case it is being reused + event.result = undefined; + if ( !event.target ) { + event.target = elem; + } + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data == null ? + [ event ] : + jQuery.makeArray( data, [ event ] ); + + // Allow special events to draw outside the lines + special = jQuery.event.special[ type ] || {}; + if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { + return; + } + + // Determine event propagation path in advance, per W3C events spec (#9951) + // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) + if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { + + bubbleType = special.delegateType || type; + if ( !rfocusMorph.test( bubbleType + type ) ) { + cur = cur.parentNode; + } + for ( ; cur; cur = cur.parentNode ) { + eventPath.push( cur ); + tmp = cur; + } + + // Only add window if we got to document (e.g., not plain obj or detached DOM) + if ( tmp === ( elem.ownerDocument || document ) ) { + eventPath.push( tmp.defaultView || tmp.parentWindow || window ); + } + } + + // Fire handlers on the event path + i = 0; + while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { + + event.type = i > 1 ? + bubbleType : + special.bindType || type; + + // jQuery handler + handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && + jQuery._data( cur, "handle" ); + + if ( handle ) { + handle.apply( cur, data ); + } + + // Native handler + handle = ontype && cur[ ontype ]; + if ( handle && handle.apply && acceptData( cur ) ) { + event.result = handle.apply( cur, data ); + if ( event.result === false ) { + event.preventDefault(); + } + } + } + event.type = type; + + // If nobody prevented the default action, do it now + if ( !onlyHandlers && !event.isDefaultPrevented() ) { + + if ( + ( !special._default || + special._default.apply( eventPath.pop(), data ) === false + ) && acceptData( elem ) + ) { + + // Call a native DOM method on the target with the same name name as the event. + // Can't use an .isFunction() check here because IE6/7 fails that test. + // Don't do default actions on window, that's where global variables be (#6170) + if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { + + // Don't re-trigger an onFOO event when we call its FOO() method + tmp = elem[ ontype ]; + + if ( tmp ) { + elem[ ontype ] = null; + } + + // Prevent re-triggering of the same event, since we already bubbled it above + jQuery.event.triggered = type; + try { + elem[ type ](); + } catch ( e ) { + + // IE<9 dies on focus/blur to hidden element (#1486,#12518) + // only reproducible on winXP IE8 native, not IE9 in IE8 mode + } + jQuery.event.triggered = undefined; + + if ( tmp ) { + elem[ ontype ] = tmp; + } + } + } + } + + return event.result; + }, + + dispatch: function( event ) { + + // Make a writable jQuery.Event from the native event object + event = jQuery.event.fix( event ); + + var i, j, ret, matched, handleObj, + handlerQueue = [], + args = slice.call( arguments ), + handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], + special = jQuery.event.special[ event.type ] || {}; + + // Use the fix-ed jQuery.Event rather than the (read-only) native event + args[ 0 ] = event; + event.delegateTarget = this; + + // Call the preDispatch hook for the mapped type, and let it bail if desired + if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { + return; + } + + // Determine handlers + handlerQueue = jQuery.event.handlers.call( this, event, handlers ); + + // Run delegates first; they may want to stop propagation beneath us + i = 0; + while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { + event.currentTarget = matched.elem; + + j = 0; + while ( ( handleObj = matched.handlers[ j++ ] ) && + !event.isImmediatePropagationStopped() ) { + + // Triggered event must either 1) have no namespace, or 2) have namespace(s) + // a subset or equal to those in the bound event (both can have no namespace). + if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) { + + event.handleObj = handleObj; + event.data = handleObj.data; + + ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || + handleObj.handler ).apply( matched.elem, args ); + + if ( ret !== undefined ) { + if ( ( event.result = ret ) === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + } + } + } + + // Call the postDispatch hook for the mapped type + if ( special.postDispatch ) { + special.postDispatch.call( this, event ); + } + + return event.result; + }, + + handlers: function( event, handlers ) { + var i, matches, sel, handleObj, + handlerQueue = [], + delegateCount = handlers.delegateCount, + cur = event.target; + + // Support (at least): Chrome, IE9 + // Find delegate handlers + // Black-hole SVG instance trees (#13180) + // + // Support: Firefox<=42+ + // Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343) + if ( delegateCount && cur.nodeType && + ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) { + + /* jshint eqeqeq: false */ + for ( ; cur != this; cur = cur.parentNode || this ) { + /* jshint eqeqeq: true */ + + // Don't check non-elements (#13208) + // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) + if ( cur.nodeType === 1 && ( cur.disabled !== true || event.type !== "click" ) ) { + matches = []; + for ( i = 0; i < delegateCount; i++ ) { + handleObj = handlers[ i ]; + + // Don't conflict with Object.prototype properties (#13203) + sel = handleObj.selector + " "; + + if ( matches[ sel ] === undefined ) { + matches[ sel ] = handleObj.needsContext ? + jQuery( sel, this ).index( cur ) > -1 : + jQuery.find( sel, this, null, [ cur ] ).length; + } + if ( matches[ sel ] ) { + matches.push( handleObj ); + } + } + if ( matches.length ) { + handlerQueue.push( { elem: cur, handlers: matches } ); + } + } + } + } + + // Add the remaining (directly-bound) handlers + if ( delegateCount < handlers.length ) { + handlerQueue.push( { elem: this, handlers: handlers.slice( delegateCount ) } ); + } + + return handlerQueue; + }, + + fix: function( event ) { + if ( event[ jQuery.expando ] ) { + return event; + } + + // Create a writable copy of the event object and normalize some properties + var i, prop, copy, + type = event.type, + originalEvent = event, + fixHook = this.fixHooks[ type ]; + + if ( !fixHook ) { + this.fixHooks[ type ] = fixHook = + rmouseEvent.test( type ) ? this.mouseHooks : + rkeyEvent.test( type ) ? this.keyHooks : + {}; + } + copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; + + event = new jQuery.Event( originalEvent ); + + i = copy.length; + while ( i-- ) { + prop = copy[ i ]; + event[ prop ] = originalEvent[ prop ]; + } + + // Support: IE<9 + // Fix target property (#1925) + if ( !event.target ) { + event.target = originalEvent.srcElement || document; + } + + // Support: Safari 6-8+ + // Target should not be a text node (#504, #13143) + if ( event.target.nodeType === 3 ) { + event.target = event.target.parentNode; + } + + // Support: IE<9 + // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) + event.metaKey = !!event.metaKey; + + return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; + }, + + // Includes some event props shared by KeyEvent and MouseEvent + props: ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " + + "metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " ), + + fixHooks: {}, + + keyHooks: { + props: "char charCode key keyCode".split( " " ), + filter: function( event, original ) { + + // Add which for key events + if ( event.which == null ) { + event.which = original.charCode != null ? original.charCode : original.keyCode; + } + + return event; + } + }, + + mouseHooks: { + props: ( "button buttons clientX clientY fromElement offsetX offsetY " + + "pageX pageY screenX screenY toElement" ).split( " " ), + filter: function( event, original ) { + var body, eventDoc, doc, + button = original.button, + fromElement = original.fromElement; + + // Calculate pageX/Y if missing and clientX/Y available + if ( event.pageX == null && original.clientX != null ) { + eventDoc = event.target.ownerDocument || document; + doc = eventDoc.documentElement; + body = eventDoc.body; + + event.pageX = original.clientX + + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - + ( doc && doc.clientLeft || body && body.clientLeft || 0 ); + event.pageY = original.clientY + + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - + ( doc && doc.clientTop || body && body.clientTop || 0 ); + } + + // Add relatedTarget, if necessary + if ( !event.relatedTarget && fromElement ) { + event.relatedTarget = fromElement === event.target ? + original.toElement : + fromElement; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + // Note: button is not normalized, so don't use it + if ( !event.which && button !== undefined ) { + event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); + } + + return event; + } + }, + + special: { + load: { + + // Prevent triggered image.load events from bubbling to window.load + noBubble: true + }, + focus: { + + // Fire native event if possible so blur/focus sequence is correct + trigger: function() { + if ( this !== safeActiveElement() && this.focus ) { + try { + this.focus(); + return false; + } catch ( e ) { + + // Support: IE<9 + // If we error on focus to hidden element (#1486, #12518), + // let .trigger() run the handlers + } + } + }, + delegateType: "focusin" + }, + blur: { + trigger: function() { + if ( this === safeActiveElement() && this.blur ) { + this.blur(); + return false; + } + }, + delegateType: "focusout" + }, + click: { + + // For checkbox, fire native event so checked state will be right + trigger: function() { + if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) { + this.click(); + return false; + } + }, + + // For cross-browser consistency, don't fire native .click() on links + _default: function( event ) { + return jQuery.nodeName( event.target, "a" ); + } + }, + + beforeunload: { + postDispatch: function( event ) { + + // Support: Firefox 20+ + // Firefox doesn't alert if the returnValue field is not set. + if ( event.result !== undefined && event.originalEvent ) { + event.originalEvent.returnValue = event.result; + } + } + } + }, + + // Piggyback on a donor event to simulate a different one + simulate: function( type, elem, event ) { + var e = jQuery.extend( + new jQuery.Event(), + event, + { + type: type, + isSimulated: true + + // Previously, `originalEvent: {}` was set here, so stopPropagation call + // would not be triggered on donor event, since in our own + // jQuery.event.stopPropagation function we had a check for existence of + // originalEvent.stopPropagation method, so, consequently it would be a noop. + // + // Guard for simulated events was moved to jQuery.event.stopPropagation function + // since `originalEvent` should point to the original event for the + // constancy with other events and for more focused logic + } + ); + + jQuery.event.trigger( e, null, elem ); + + if ( e.isDefaultPrevented() ) { + event.preventDefault(); + } + } +}; + +jQuery.removeEvent = document.removeEventListener ? + function( elem, type, handle ) { + + // This "if" is needed for plain objects + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle ); + } + } : + function( elem, type, handle ) { + var name = "on" + type; + + if ( elem.detachEvent ) { + + // #8545, #7054, preventing memory leaks for custom events in IE6-8 + // detachEvent needed property on element, by name of that event, + // to properly expose it to GC + if ( typeof elem[ name ] === "undefined" ) { + elem[ name ] = null; + } + + elem.detachEvent( name, handle ); + } + }; + +jQuery.Event = function( src, props ) { + + // Allow instantiation without the 'new' keyword + if ( !( this instanceof jQuery.Event ) ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = src.defaultPrevented || + src.defaultPrevented === undefined && + + // Support: IE < 9, Android < 4.0 + src.returnValue === false ? + returnTrue : + returnFalse; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // Create a timestamp if incoming event doesn't have one + this.timeStamp = src && src.timeStamp || jQuery.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + constructor: jQuery.Event, + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse, + + preventDefault: function() { + var e = this.originalEvent; + + this.isDefaultPrevented = returnTrue; + if ( !e ) { + return; + } + + // If preventDefault exists, run it on the original event + if ( e.preventDefault ) { + e.preventDefault(); + + // Support: IE + // Otherwise set the returnValue property of the original event to false + } else { + e.returnValue = false; + } + }, + stopPropagation: function() { + var e = this.originalEvent; + + this.isPropagationStopped = returnTrue; + + if ( !e || this.isSimulated ) { + return; + } + + // If stopPropagation exists, run it on the original event + if ( e.stopPropagation ) { + e.stopPropagation(); + } + + // Support: IE + // Set the cancelBubble property of the original event to true + e.cancelBubble = true; + }, + stopImmediatePropagation: function() { + var e = this.originalEvent; + + this.isImmediatePropagationStopped = returnTrue; + + if ( e && e.stopImmediatePropagation ) { + e.stopImmediatePropagation(); + } + + this.stopPropagation(); + } +}; + +// Create mouseenter/leave events using mouseover/out and event-time checks +// so that event delegation works in jQuery. +// Do the same for pointerenter/pointerleave and pointerover/pointerout +// +// Support: Safari 7 only +// Safari sends mouseenter too often; see: +// https://code.google.com/p/chromium/issues/detail?id=470258 +// for the description of the bug (it existed in older Chrome versions as well). +jQuery.each( { + mouseenter: "mouseover", + mouseleave: "mouseout", + pointerenter: "pointerover", + pointerleave: "pointerout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + delegateType: fix, + bindType: fix, + + handle: function( event ) { + var ret, + target = this, + related = event.relatedTarget, + handleObj = event.handleObj; + + // For mouseenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { + event.type = handleObj.origType; + ret = handleObj.handler.apply( this, arguments ); + event.type = fix; + } + return ret; + } + }; +} ); + +// IE submit delegation +if ( !support.submit ) { + + jQuery.event.special.submit = { + setup: function() { + + // Only need this for delegated form submit events + if ( jQuery.nodeName( this, "form" ) ) { + return false; + } + + // Lazy-add a submit handler when a descendant form may potentially be submitted + jQuery.event.add( this, "click._submit keypress._submit", function( e ) { + + // Node name check avoids a VML-related crash in IE (#9807) + var elem = e.target, + form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? + + // Support: IE <=8 + // We use jQuery.prop instead of elem.form + // to allow fixing the IE8 delegated submit issue (gh-2332) + // by 3rd party polyfills/workarounds. + jQuery.prop( elem, "form" ) : + undefined; + + if ( form && !jQuery._data( form, "submit" ) ) { + jQuery.event.add( form, "submit._submit", function( event ) { + event._submitBubble = true; + } ); + jQuery._data( form, "submit", true ); + } + } ); + + // return undefined since we don't need an event listener + }, + + postDispatch: function( event ) { + + // If form was submitted by the user, bubble the event up the tree + if ( event._submitBubble ) { + delete event._submitBubble; + if ( this.parentNode && !event.isTrigger ) { + jQuery.event.simulate( "submit", this.parentNode, event ); + } + } + }, + + teardown: function() { + + // Only need this for delegated form submit events + if ( jQuery.nodeName( this, "form" ) ) { + return false; + } + + // Remove delegated handlers; cleanData eventually reaps submit handlers attached above + jQuery.event.remove( this, "._submit" ); + } + }; +} + +// IE change delegation and checkbox/radio fix +if ( !support.change ) { + + jQuery.event.special.change = { + + setup: function() { + + if ( rformElems.test( this.nodeName ) ) { + + // IE doesn't fire change on a check/radio until blur; trigger it on click + // after a propertychange. Eat the blur-change in special.change.handle. + // This still fires onchange a second time for check/radio after blur. + if ( this.type === "checkbox" || this.type === "radio" ) { + jQuery.event.add( this, "propertychange._change", function( event ) { + if ( event.originalEvent.propertyName === "checked" ) { + this._justChanged = true; + } + } ); + jQuery.event.add( this, "click._change", function( event ) { + if ( this._justChanged && !event.isTrigger ) { + this._justChanged = false; + } + + // Allow triggered, simulated change events (#11500) + jQuery.event.simulate( "change", this, event ); + } ); + } + return false; + } + + // Delegated event; lazy-add a change handler on descendant inputs + jQuery.event.add( this, "beforeactivate._change", function( e ) { + var elem = e.target; + + if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "change" ) ) { + jQuery.event.add( elem, "change._change", function( event ) { + if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { + jQuery.event.simulate( "change", this.parentNode, event ); + } + } ); + jQuery._data( elem, "change", true ); + } + } ); + }, + + handle: function( event ) { + var elem = event.target; + + // Swallow native change events from checkbox/radio, we already triggered them above + if ( this !== elem || event.isSimulated || event.isTrigger || + ( elem.type !== "radio" && elem.type !== "checkbox" ) ) { + + return event.handleObj.handler.apply( this, arguments ); + } + }, + + teardown: function() { + jQuery.event.remove( this, "._change" ); + + return !rformElems.test( this.nodeName ); + } + }; +} + +// Support: Firefox +// Firefox doesn't have focus(in | out) events +// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 +// +// Support: Chrome, Safari +// focus(in | out) events fire after focus & blur events, +// which is spec violation - https://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order +// Related ticket - https://code.google.com/p/chromium/issues/detail?id=449857 +if ( !support.focusin ) { + jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { + + // Attach a single capturing handler on the document while someone wants focusin/focusout + var handler = function( event ) { + jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); + }; + + jQuery.event.special[ fix ] = { + setup: function() { + var doc = this.ownerDocument || this, + attaches = jQuery._data( doc, fix ); + + if ( !attaches ) { + doc.addEventListener( orig, handler, true ); + } + jQuery._data( doc, fix, ( attaches || 0 ) + 1 ); + }, + teardown: function() { + var doc = this.ownerDocument || this, + attaches = jQuery._data( doc, fix ) - 1; + + if ( !attaches ) { + doc.removeEventListener( orig, handler, true ); + jQuery._removeData( doc, fix ); + } else { + jQuery._data( doc, fix, attaches ); + } + } + }; + } ); +} + +jQuery.fn.extend( { + + on: function( types, selector, data, fn ) { + return on( this, types, selector, data, fn ); + }, + one: function( types, selector, data, fn ) { + return on( this, types, selector, data, fn, 1 ); + }, + off: function( types, selector, fn ) { + var handleObj, type; + if ( types && types.preventDefault && types.handleObj ) { + + // ( event ) dispatched jQuery.Event + handleObj = types.handleObj; + jQuery( types.delegateTarget ).off( + handleObj.namespace ? + handleObj.origType + "." + handleObj.namespace : + handleObj.origType, + handleObj.selector, + handleObj.handler + ); + return this; + } + if ( typeof types === "object" ) { + + // ( types-object [, selector] ) + for ( type in types ) { + this.off( type, selector, types[ type ] ); + } + return this; + } + if ( selector === false || typeof selector === "function" ) { + + // ( types [, fn] ) + fn = selector; + selector = undefined; + } + if ( fn === false ) { + fn = returnFalse; + } + return this.each( function() { + jQuery.event.remove( this, types, fn, selector ); + } ); + }, + + trigger: function( type, data ) { + return this.each( function() { + jQuery.event.trigger( type, data, this ); + } ); + }, + triggerHandler: function( type, data ) { + var elem = this[ 0 ]; + if ( elem ) { + return jQuery.event.trigger( type, data, elem, true ); + } + } +} ); + + +var rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, + rnoshimcache = new RegExp( "<(?:" + nodeNames + ")[\\s/>]", "i" ), + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi, + + // Support: IE 10-11, Edge 10240+ + // In IE/Edge using regex groups here causes severe slowdowns. + // See https://connect.microsoft.com/IE/feedback/details/1736512/ + rnoInnerhtml = /\s*$/g, + safeFragment = createSafeFragment( document ), + fragmentDiv = safeFragment.appendChild( document.createElement( "div" ) ); + +// Support: IE<8 +// Manipulating tables requires a tbody +function manipulationTarget( elem, content ) { + return jQuery.nodeName( elem, "table" ) && + jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ? + + elem.getElementsByTagName( "tbody" )[ 0 ] || + elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) : + elem; +} + +// Replace/restore the type attribute of script elements for safe DOM manipulation +function disableScript( elem ) { + elem.type = ( jQuery.find.attr( elem, "type" ) !== null ) + "/" + elem.type; + return elem; +} +function restoreScript( elem ) { + var match = rscriptTypeMasked.exec( elem.type ); + if ( match ) { + elem.type = match[ 1 ]; + } else { + elem.removeAttribute( "type" ); + } + return elem; +} + +function cloneCopyEvent( src, dest ) { + if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { + return; + } + + var type, i, l, + oldData = jQuery._data( src ), + curData = jQuery._data( dest, oldData ), + events = oldData.events; + + if ( events ) { + delete curData.handle; + curData.events = {}; + + for ( type in events ) { + for ( i = 0, l = events[ type ].length; i < l; i++ ) { + jQuery.event.add( dest, type, events[ type ][ i ] ); + } + } + } + + // make the cloned public data object a copy from the original + if ( curData.data ) { + curData.data = jQuery.extend( {}, curData.data ); + } +} + +function fixCloneNodeIssues( src, dest ) { + var nodeName, e, data; + + // We do not need to do anything for non-Elements + if ( dest.nodeType !== 1 ) { + return; + } + + nodeName = dest.nodeName.toLowerCase(); + + // IE6-8 copies events bound via attachEvent when using cloneNode. + if ( !support.noCloneEvent && dest[ jQuery.expando ] ) { + data = jQuery._data( dest ); + + for ( e in data.events ) { + jQuery.removeEvent( dest, e, data.handle ); + } + + // Event data gets referenced instead of copied if the expando gets copied too + dest.removeAttribute( jQuery.expando ); + } + + // IE blanks contents when cloning scripts, and tries to evaluate newly-set text + if ( nodeName === "script" && dest.text !== src.text ) { + disableScript( dest ).text = src.text; + restoreScript( dest ); + + // IE6-10 improperly clones children of object elements using classid. + // IE10 throws NoModificationAllowedError if parent is null, #12132. + } else if ( nodeName === "object" ) { + if ( dest.parentNode ) { + dest.outerHTML = src.outerHTML; + } + + // This path appears unavoidable for IE9. When cloning an object + // element in IE9, the outerHTML strategy above is not sufficient. + // If the src has innerHTML and the destination does not, + // copy the src.innerHTML into the dest.innerHTML. #10324 + if ( support.html5Clone && ( src.innerHTML && !jQuery.trim( dest.innerHTML ) ) ) { + dest.innerHTML = src.innerHTML; + } + + } else if ( nodeName === "input" && rcheckableType.test( src.type ) ) { + + // IE6-8 fails to persist the checked state of a cloned checkbox + // or radio button. Worse, IE6-7 fail to give the cloned element + // a checked appearance if the defaultChecked value isn't also set + + dest.defaultChecked = dest.checked = src.checked; + + // IE6-7 get confused and end up setting the value of a cloned + // checkbox/radio button to an empty string instead of "on" + if ( dest.value !== src.value ) { + dest.value = src.value; + } + + // IE6-8 fails to return the selected option to the default selected + // state when cloning options + } else if ( nodeName === "option" ) { + dest.defaultSelected = dest.selected = src.defaultSelected; + + // IE6-8 fails to set the defaultValue to the correct value when + // cloning other types of input fields + } else if ( nodeName === "input" || nodeName === "textarea" ) { + dest.defaultValue = src.defaultValue; + } +} + +function domManip( collection, args, callback, ignored ) { + + // Flatten any nested arrays + args = concat.apply( [], args ); + + var first, node, hasScripts, + scripts, doc, fragment, + i = 0, + l = collection.length, + iNoClone = l - 1, + value = args[ 0 ], + isFunction = jQuery.isFunction( value ); + + // We can't cloneNode fragments that contain checked, in WebKit + if ( isFunction || + ( l > 1 && typeof value === "string" && + !support.checkClone && rchecked.test( value ) ) ) { + return collection.each( function( index ) { + var self = collection.eq( index ); + if ( isFunction ) { + args[ 0 ] = value.call( this, index, self.html() ); + } + domManip( self, args, callback, ignored ); + } ); + } + + if ( l ) { + fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); + first = fragment.firstChild; + + if ( fragment.childNodes.length === 1 ) { + fragment = first; + } + + // Require either new content or an interest in ignored elements to invoke the callback + if ( first || ignored ) { + scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); + hasScripts = scripts.length; + + // Use the original fragment for the last item + // instead of the first because it can end up + // being emptied incorrectly in certain situations (#8070). + for ( ; i < l; i++ ) { + node = fragment; + + if ( i !== iNoClone ) { + node = jQuery.clone( node, true, true ); + + // Keep references to cloned scripts for later restoration + if ( hasScripts ) { + + // Support: Android<4.1, PhantomJS<2 + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( scripts, getAll( node, "script" ) ); + } + } + + callback.call( collection[ i ], node, i ); + } + + if ( hasScripts ) { + doc = scripts[ scripts.length - 1 ].ownerDocument; + + // Reenable scripts + jQuery.map( scripts, restoreScript ); + + // Evaluate executable scripts on first document insertion + for ( i = 0; i < hasScripts; i++ ) { + node = scripts[ i ]; + if ( rscriptType.test( node.type || "" ) && + !jQuery._data( node, "globalEval" ) && + jQuery.contains( doc, node ) ) { + + if ( node.src ) { + + // Optional AJAX dependency, but won't run scripts if not present + if ( jQuery._evalUrl ) { + jQuery._evalUrl( node.src ); + } + } else { + jQuery.globalEval( + ( node.text || node.textContent || node.innerHTML || "" ) + .replace( rcleanScript, "" ) + ); + } + } + } + } + + // Fix #11809: Avoid leaking memory + fragment = first = null; + } + } + + return collection; +} + +function remove( elem, selector, keepData ) { + var node, + elems = selector ? jQuery.filter( selector, elem ) : elem, + i = 0; + + for ( ; ( node = elems[ i ] ) != null; i++ ) { + + if ( !keepData && node.nodeType === 1 ) { + jQuery.cleanData( getAll( node ) ); + } + + if ( node.parentNode ) { + if ( keepData && jQuery.contains( node.ownerDocument, node ) ) { + setGlobalEval( getAll( node, "script" ) ); + } + node.parentNode.removeChild( node ); + } + } + + return elem; +} + +jQuery.extend( { + htmlPrefilter: function( html ) { + return html.replace( rxhtmlTag, "<$1>" ); + }, + + clone: function( elem, dataAndEvents, deepDataAndEvents ) { + var destElements, node, clone, i, srcElements, + inPage = jQuery.contains( elem.ownerDocument, elem ); + + if ( support.html5Clone || jQuery.isXMLDoc( elem ) || + !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { + + clone = elem.cloneNode( true ); + + // IE<=8 does not properly clone detached, unknown element nodes + } else { + fragmentDiv.innerHTML = elem.outerHTML; + fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); + } + + if ( ( !support.noCloneEvent || !support.noCloneChecked ) && + ( elem.nodeType === 1 || elem.nodeType === 11 ) && !jQuery.isXMLDoc( elem ) ) { + + // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 + destElements = getAll( clone ); + srcElements = getAll( elem ); + + // Fix all IE cloning issues + for ( i = 0; ( node = srcElements[ i ] ) != null; ++i ) { + + // Ensure that the destination node is not null; Fixes #9587 + if ( destElements[ i ] ) { + fixCloneNodeIssues( node, destElements[ i ] ); + } + } + } + + // Copy the events from the original to the clone + if ( dataAndEvents ) { + if ( deepDataAndEvents ) { + srcElements = srcElements || getAll( elem ); + destElements = destElements || getAll( clone ); + + for ( i = 0; ( node = srcElements[ i ] ) != null; i++ ) { + cloneCopyEvent( node, destElements[ i ] ); + } + } else { + cloneCopyEvent( elem, clone ); + } + } + + // Preserve script evaluation history + destElements = getAll( clone, "script" ); + if ( destElements.length > 0 ) { + setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); + } + + destElements = srcElements = node = null; + + // Return the cloned set + return clone; + }, + + cleanData: function( elems, /* internal */ forceAcceptData ) { + var elem, type, id, data, + i = 0, + internalKey = jQuery.expando, + cache = jQuery.cache, + attributes = support.attributes, + special = jQuery.event.special; + + for ( ; ( elem = elems[ i ] ) != null; i++ ) { + if ( forceAcceptData || acceptData( elem ) ) { + + id = elem[ internalKey ]; + data = id && cache[ id ]; + + if ( data ) { + if ( data.events ) { + for ( type in data.events ) { + if ( special[ type ] ) { + jQuery.event.remove( elem, type ); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent( elem, type, data.handle ); + } + } + } + + // Remove cache only if it was not already removed by jQuery.event.remove + if ( cache[ id ] ) { + + delete cache[ id ]; + + // Support: IE<9 + // IE does not allow us to delete expando properties from nodes + // IE creates expando attributes along with the property + // IE does not have a removeAttribute function on Document nodes + if ( !attributes && typeof elem.removeAttribute !== "undefined" ) { + elem.removeAttribute( internalKey ); + + // Webkit & Blink performance suffers when deleting properties + // from DOM nodes, so set to undefined instead + // https://code.google.com/p/chromium/issues/detail?id=378607 + } else { + elem[ internalKey ] = undefined; + } + + deletedIds.push( id ); + } + } + } + } + } +} ); + +jQuery.fn.extend( { + + // Keep domManip exposed until 3.0 (gh-2225) + domManip: domManip, + + detach: function( selector ) { + return remove( this, selector, true ); + }, + + remove: function( selector ) { + return remove( this, selector ); + }, + + text: function( value ) { + return access( this, function( value ) { + return value === undefined ? + jQuery.text( this ) : + this.empty().append( + ( this[ 0 ] && this[ 0 ].ownerDocument || document ).createTextNode( value ) + ); + }, null, value, arguments.length ); + }, + + append: function() { + return domManip( this, arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.appendChild( elem ); + } + } ); + }, + + prepend: function() { + return domManip( this, arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.insertBefore( elem, target.firstChild ); + } + } ); + }, + + before: function() { + return domManip( this, arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this ); + } + } ); + }, + + after: function() { + return domManip( this, arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this.nextSibling ); + } + } ); + }, + + empty: function() { + var elem, + i = 0; + + for ( ; ( elem = this[ i ] ) != null; i++ ) { + + // Remove element nodes and prevent memory leaks + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + } + + // Remove any remaining nodes + while ( elem.firstChild ) { + elem.removeChild( elem.firstChild ); + } + + // If this is a select, ensure that it displays empty (#12336) + // Support: IE<9 + if ( elem.options && jQuery.nodeName( elem, "select" ) ) { + elem.options.length = 0; + } + } + + return this; + }, + + clone: function( dataAndEvents, deepDataAndEvents ) { + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map( function() { + return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); + } ); + }, + + html: function( value ) { + return access( this, function( value ) { + var elem = this[ 0 ] || {}, + i = 0, + l = this.length; + + if ( value === undefined ) { + return elem.nodeType === 1 ? + elem.innerHTML.replace( rinlinejQuery, "" ) : + undefined; + } + + // See if we can take a shortcut and just use innerHTML + if ( typeof value === "string" && !rnoInnerhtml.test( value ) && + ( support.htmlSerialize || !rnoshimcache.test( value ) ) && + ( support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && + !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { + + value = jQuery.htmlPrefilter( value ); + + try { + for ( ; i < l; i++ ) { + + // Remove element nodes and prevent memory leaks + elem = this[ i ] || {}; + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + elem.innerHTML = value; + } + } + + elem = 0; + + // If using innerHTML throws an exception, use the fallback method + } catch ( e ) {} + } + + if ( elem ) { + this.empty().append( value ); + } + }, null, value, arguments.length ); + }, + + replaceWith: function() { + var ignored = []; + + // Make the changes, replacing each non-ignored context element with the new content + return domManip( this, arguments, function( elem ) { + var parent = this.parentNode; + + if ( jQuery.inArray( this, ignored ) < 0 ) { + jQuery.cleanData( getAll( this ) ); + if ( parent ) { + parent.replaceChild( elem, this ); + } + } + + // Force callback invocation + }, ignored ); + } +} ); + +jQuery.each( { + appendTo: "append", + prependTo: "prepend", + insertBefore: "before", + insertAfter: "after", + replaceAll: "replaceWith" +}, function( name, original ) { + jQuery.fn[ name ] = function( selector ) { + var elems, + i = 0, + ret = [], + insert = jQuery( selector ), + last = insert.length - 1; + + for ( ; i <= last; i++ ) { + elems = i === last ? this : this.clone( true ); + jQuery( insert[ i ] )[ original ]( elems ); + + // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() + push.apply( ret, elems.get() ); + } + + return this.pushStack( ret ); + }; +} ); + + +var iframe, + elemdisplay = { + + // Support: Firefox + // We have to pre-define these values for FF (#10227) + HTML: "block", + BODY: "block" + }; + +/** + * Retrieve the actual display of a element + * @param {String} name nodeName of the element + * @param {Object} doc Document object + */ + +// Called only from within defaultDisplay +function actualDisplay( name, doc ) { + var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), + + display = jQuery.css( elem[ 0 ], "display" ); + + // We don't have any data stored on the element, + // so use "detach" method as fast way to get rid of the element + elem.detach(); + + return display; +} + +/** + * Try to determine the default display value of an element + * @param {String} nodeName + */ +function defaultDisplay( nodeName ) { + var doc = document, + display = elemdisplay[ nodeName ]; + + if ( !display ) { + display = actualDisplay( nodeName, doc ); + + // If the simple way fails, read from inside an iframe + if ( display === "none" || !display ) { + + // Use the already-created iframe if possible + iframe = ( iframe || jQuery( "';} +function hideSelectBox(){if(olNs4||olOp||olIe55)return;var px,py,pw,ph,sx,sw,sy,sh,selEl,v; +if(olIe4)v=0;else{v=navigator.userAgent.match(/Gecko\/(\d{8})/i);if(!v)return;v=parseInt(v[1]);} +if(v<20030624){px=parseInt(over.style.left);py=parseInt(over.style.top);pw=o3_width;ph=(o3_aboveheight?parseInt(o3_aboveheight):over.offsetHeight);selEl=(olIe4)?o3_frame.document.all.tags("SELECT"):o3_frame.document.getElementsByTagName("SELECT");for(var i=0;i(sx+sw)||(py+ph)(sy+sh))continue;selEl[i].isHidden=1;selEl[i].style.visibility='hidden';}}} +function showSelectBox(){if(olNs4||olOp||olIe55)return;var selEl,v; +if(olIe4)v=0;else{v=navigator.userAgent.match(/Gecko\/(\d{8})/i);if(!v)return;v=parseInt(v[1]);} +if(v<20030624){selEl=(olIe4)?o3_frame.document.all.tags("SELECT"):o3_frame.document.getElementsByTagName("SELECT");for(var i=0;i\n\n');} +f=capExtent.onmousemove.toString().match(/function[ ]+(\w*)\(/);if(f&&f[1]!='anonymous')capExtent.onmousemove=olMouseMove;} +registerHook("createPopup",generatePopUp,FAFTER);registerHook("hideObject",showSelectBox,FAFTER);olHideForm=1;} diff --git a/overlib/Mini/overlib_mini.js b/overlib/Mini/overlib_mini.js new file mode 100755 index 0000000..80be19c --- /dev/null +++ b/overlib/Mini/overlib_mini.js @@ -0,0 +1,322 @@ +//\///// +//\ overLIB 4.21 - You may not remove or change this notice. +//\ Copyright Erik Bosrup 1998-2004. All rights reserved. +//\ +//\ Contributors are listed on the homepage. +//\ This file might be old, always check for the latest version at: +//\ https://www.bosrup.com/web/overlib/ +//\ +//\ Please read the license agreement (available through the link above) +//\ before using overLIB. Direct any licensing questions to erik@bosrup.com. +//\ +//\ Do not sell this as your own work or remove this copyright notice. +//\ For full details on copying or changing this script please read the +//\ license agreement at the link above. Please give credit on sites that +//\ use overLIB and submit changes of the script so other people can use +//\ them as well. +//\///// +//\ THIS IS A VERY MODIFIED VERSION. DO NOT EDIT OR PUBLISH. GET THE ORIGINAL! +var olLoaded=0,pmStart=10000000,pmUpper=10001000,pmCount=pmStart+1,pmt='',pms=new Array(),olInfo=new Info('4.21',1),FREPLACE=0,FBEFORE=1,FAFTER=2,FALTERNATE=3,FCHAIN=4,olHideForm=0,olHautoFlag=0,olVautoFlag=0,hookPts=new Array(),postParse=new Array(),cmdLine=new Array(),runTime=new Array(); +registerCommands('donothing,inarray,caparray,sticky,background,noclose,caption,left,right,center,offsetx,offsety,fgcolor,bgcolor,textcolor,capcolor,closecolor,width,border,cellpad,status,autostatus,autostatuscap,height,closetext,snapx,snapy,fixx,fixy,relx,rely,fgbackground,bgbackground,padx,pady,fullhtml,above,below,capicon,textfont,captionfont,closefont,textsize,captionsize,closesize,timeout,function,delay,hauto,vauto,closeclick,wrap,followmouse,mouseoff,closetitle,cssoff,compatmode,cssclass,fgclass,bgclass,textfontclass,captionfontclass,closefontclass'); +if(typeof ol_fgcolor=='undefined')var ol_fgcolor="#CCCCFF";if(typeof ol_bgcolor=='undefined')var ol_bgcolor="#333399";if(typeof ol_textcolor=='undefined')var ol_textcolor="#000000";if(typeof ol_capcolor=='undefined')var ol_capcolor="#FFFFFF";if(typeof ol_closecolor=='undefined')var ol_closecolor="#9999FF";if(typeof ol_textfont=='undefined')var ol_textfont="Verdana,Arial,Helvetica";if(typeof ol_captionfont=='undefined')var ol_captionfont="Verdana,Arial,Helvetica";if(typeof ol_closefont=='undefined')var ol_closefont="Verdana,Arial,Helvetica";if(typeof ol_textsize=='undefined')var ol_textsize="1";if(typeof ol_captionsize=='undefined')var ol_captionsize="1";if(typeof ol_closesize=='undefined')var ol_closesize="1";if(typeof ol_width=='undefined')var ol_width="200";if(typeof ol_border=='undefined')var ol_border="1";if(typeof ol_cellpad=='undefined')var ol_cellpad=2;if(typeof ol_offsetx=='undefined')var ol_offsetx=10;if(typeof ol_offsety=='undefined')var ol_offsety=10;if(typeof ol_text=='undefined')var ol_text="Default Text";if(typeof ol_cap=='undefined')var ol_cap="";if(typeof ol_sticky=='undefined')var ol_sticky=0;if(typeof ol_background=='undefined')var ol_background="";if(typeof ol_close=='undefined')var ol_close="Close";if(typeof ol_hpos=='undefined')var ol_hpos=RIGHT;if(typeof ol_status=='undefined')var ol_status="";if(typeof ol_autostatus=='undefined')var ol_autostatus=0;if(typeof ol_height=='undefined')var ol_height=-1;if(typeof ol_snapx=='undefined')var ol_snapx=0;if(typeof ol_snapy=='undefined')var ol_snapy=0;if(typeof ol_fixx=='undefined')var ol_fixx=-1;if(typeof ol_fixy=='undefined')var ol_fixy=-1;if(typeof ol_relx=='undefined')var ol_relx=null;if(typeof ol_rely=='undefined')var ol_rely=null;if(typeof ol_fgbackground=='undefined')var ol_fgbackground="";if(typeof ol_bgbackground=='undefined')var ol_bgbackground="";if(typeof ol_padxl=='undefined')var ol_padxl=1;if(typeof ol_padxr=='undefined')var ol_padxr=1;if(typeof ol_padyt=='undefined')var ol_padyt=1;if(typeof ol_padyb=='undefined')var ol_padyb=1;if(typeof ol_fullhtml=='undefined')var ol_fullhtml=0;if(typeof ol_vpos=='undefined')var ol_vpos=BELOW;if(typeof ol_aboveheight=='undefined')var ol_aboveheight=0;if(typeof ol_capicon=='undefined')var ol_capicon="";if(typeof ol_frame=='undefined')var ol_frame=self;if(typeof ol_timeout=='undefined')var ol_timeout=0;if(typeof ol_function=='undefined')var ol_function=null;if(typeof ol_delay=='undefined')var ol_delay=0;if(typeof ol_hauto=='undefined')var ol_hauto=0;if(typeof ol_vauto=='undefined')var ol_vauto=0;if(typeof ol_closeclick=='undefined')var ol_closeclick=0;if(typeof ol_wrap=='undefined')var ol_wrap=0;if(typeof ol_followmouse=='undefined')var ol_followmouse=1;if(typeof ol_mouseoff=='undefined')var ol_mouseoff=0;if(typeof ol_closetitle=='undefined')var ol_closetitle='Close';if(typeof ol_compatmode=='undefined')var ol_compatmode=0;if(typeof ol_css=='undefined')var ol_css=CSSOFF;if(typeof ol_fgclass=='undefined')var ol_fgclass="";if(typeof ol_bgclass=='undefined')var ol_bgclass="";if(typeof ol_textfontclass=='undefined')var ol_textfontclass="";if(typeof ol_captionfontclass=='undefined')var ol_captionfontclass="";if(typeof ol_closefontclass=='undefined')var ol_closefontclass=""; +if(typeof ol_texts=='undefined')var ol_texts=new Array("Text 0","Text 1");if(typeof ol_caps=='undefined')var ol_caps=new Array("Caption 0","Caption 1"); +var o3_text="",o3_cap="",o3_sticky=0,o3_background="",o3_close="Close",o3_hpos=RIGHT,o3_offsetx=2,o3_offsety=2,o3_fgcolor="",o3_bgcolor="",o3_textcolor="",o3_capcolor="",o3_closecolor="",o3_width=100,o3_border=1,o3_cellpad=2,o3_status="",o3_autostatus=0,o3_height=-1,o3_snapx=0,o3_snapy=0,o3_fixx=-1,o3_fixy=-1,o3_relx=null,o3_rely=null,o3_fgbackground="",o3_bgbackground="",o3_padxl=0,o3_padxr=0,o3_padyt=0,o3_padyb=0,o3_fullhtml=0,o3_vpos=BELOW,o3_aboveheight=0,o3_capicon="",o3_textfont="Verdana,Arial,Helvetica",o3_captionfont="Verdana,Arial,Helvetica",o3_closefont="Verdana,Arial,Helvetica",o3_textsize="1",o3_captionsize="1",o3_closesize="1",o3_frame=self,o3_timeout=0,o3_timerid=0,o3_allowmove=0,o3_function=null,o3_delay=0,o3_delayid=0,o3_hauto=0,o3_vauto=0,o3_closeclick=0,o3_wrap=0,o3_followmouse=1,o3_mouseoff=0,o3_closetitle='',o3_compatmode=0,o3_css=CSSOFF,o3_fgclass="",o3_bgclass="",o3_textfontclass="",o3_captionfontclass="",o3_closefontclass=""; +var o3_x=0,o3_y=0,o3_showingsticky=0,o3_removecounter=0; +var over=null,fnRef,hoveringSwitch=false,olHideDelay; +var isMac=(navigator.userAgent.indexOf("Mac")!=-1),olOp=(navigator.userAgent.toLowerCase().indexOf('opera')>-1&&document.createTextNode),olNs4=(navigator.appName=='Netscape'&&parseInt(navigator.appVersion)==4),olNs6=(document.getElementById)?true:false,olKq=(olNs6&&/konqueror/i.test(navigator.userAgent)),olIe4=(document.all)?true:false,olIe5=false,olIe55=false,docRoot='document.body'; +if(olNs4){var oW=window.innerWidth;var oH=window.innerHeight;window.onresize=function(){if(oW!=window.innerWidth||oH!=window.innerHeight)location.reload();}} +if(olIe4){var agent=navigator.userAgent;if(/MSIE/.test(agent)){var versNum=parseFloat(agent.match(/MSIE[ ](\d\.\d+)\.*/i)[1]);if(versNum>=5){olIe5=true;olIe55=(versNum>=5.5&&!olOp)?true:false;if(olNs6)olNs6=false;}} +if(olNs6)olIe4=false;} +if(document.compatMode&&document.compatMode=='CSS1Compat'){docRoot=((olIe4&&!olOp)?'document.documentElement':docRoot);} +if(window.addEventListener)window.addEventListener("load",OLonLoad_handler,false);else if(window.attachEvent)window.attachEvent("onload",OLonLoad_handler); +var capExtent; +function overlib(){if(!olLoaded||isExclusive(overlib.arguments))return true;if(olCheckMouseCapture)olMouseCapture();if(over){over=(typeof over.id!='string')?o3_frame.document.all['overDiv']:over;cClick();} +olHideDelay=0;o3_text=ol_text;o3_cap=ol_cap;o3_sticky=ol_sticky;o3_background=ol_background;o3_close=ol_close;o3_hpos=ol_hpos;o3_offsetx=ol_offsetx;o3_offsety=ol_offsety;o3_fgcolor=ol_fgcolor;o3_bgcolor=ol_bgcolor;o3_textcolor=ol_textcolor;o3_capcolor=ol_capcolor;o3_closecolor=ol_closecolor;o3_width=ol_width;o3_border=ol_border;o3_cellpad=ol_cellpad;o3_status=ol_status;o3_autostatus=ol_autostatus;o3_height=ol_height;o3_snapx=ol_snapx;o3_snapy=ol_snapy;o3_fixx=ol_fixx;o3_fixy=ol_fixy;o3_relx=ol_relx;o3_rely=ol_rely;o3_fgbackground=ol_fgbackground;o3_bgbackground=ol_bgbackground;o3_padxl=ol_padxl;o3_padxr=ol_padxr;o3_padyt=ol_padyt;o3_padyb=ol_padyb;o3_fullhtml=ol_fullhtml;o3_vpos=ol_vpos;o3_aboveheight=ol_aboveheight;o3_capicon=ol_capicon;o3_textfont=ol_textfont;o3_captionfont=ol_captionfont;o3_closefont=ol_closefont;o3_textsize=ol_textsize;o3_captionsize=ol_captionsize;o3_closesize=ol_closesize;o3_timeout=ol_timeout;o3_function=ol_function;o3_delay=ol_delay;o3_hauto=ol_hauto;o3_vauto=ol_vauto;o3_closeclick=ol_closeclick;o3_wrap=ol_wrap;o3_followmouse=ol_followmouse;o3_mouseoff=ol_mouseoff;o3_closetitle=ol_closetitle;o3_css=ol_css;o3_compatmode=ol_compatmode;o3_fgclass=ol_fgclass;o3_bgclass=ol_bgclass;o3_textfontclass=ol_textfontclass;o3_captionfontclass=ol_captionfontclass;o3_closefontclass=ol_closefontclass; +setRunTimeVariables(); +fnRef=''; +o3_frame=ol_frame; +if(!(over=createDivContainer()))return false; +parseTokens('o3_',overlib.arguments);if(!postParseChecks())return false; +if(o3_delay==0){return runHook("olMain",FREPLACE);}else{o3_delayid=setTimeout("runHook('olMain',FREPLACE)",o3_delay);return false;}} +function nd(time){if(olLoaded&&!isExclusive()){hideDelay(time); +if(o3_removecounter>=1){o3_showingsticky=0 }; +if(o3_showingsticky==0){o3_allowmove=0;if(over!=null&&o3_timerid==0)runHook("hideObject",FREPLACE,over);}else{o3_removecounter++;}} +return true;} +function cClick(){if(olLoaded){runHook("hideObject",FREPLACE,over);o3_showingsticky=0;} +return false;} +function overlib_pagedefaults(){parseTokens('ol_',overlib_pagedefaults.arguments);} +function olMain(){var layerhtml,styleType;runHook("olMain",FBEFORE); +if(o3_background!=""||o3_fullhtml){ +layerhtml=runHook('ol_content_background',FALTERNATE,o3_css,o3_text,o3_background,o3_fullhtml);}else{ +styleType=(pms[o3_css-1-pmStart]=="cssoff"||pms[o3_css-1-pmStart]=="cssclass"); +if(o3_fgbackground!="")o3_fgbackground="background=\""+o3_fgbackground+"\"";if(o3_bgbackground!="")o3_bgbackground=(styleType?"background=\""+o3_bgbackground+"\"":o3_bgbackground); +if(o3_fgcolor!="")o3_fgcolor=(styleType?"bgcolor=\""+o3_fgcolor+"\"":o3_fgcolor);if(o3_bgcolor!="")o3_bgcolor=(styleType?"bgcolor=\""+o3_bgcolor+"\"":o3_bgcolor); +if(o3_height>0)o3_height=(styleType?"height=\""+o3_height+"\"":o3_height);else o3_height=""; +if(o3_cap==""){ +layerhtml=runHook('ol_content_simple',FALTERNATE,o3_css,o3_text);}else{ +if(o3_sticky){ +layerhtml=runHook('ol_content_caption',FALTERNATE,o3_css,o3_text,o3_cap,o3_close);}else{ +layerhtml=runHook('ol_content_caption',FALTERNATE,o3_css,o3_text,o3_cap,"");}}} +if(o3_sticky){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0;} +o3_showingsticky=1;o3_removecounter=0;} +if(!runHook("createPopup",FREPLACE,layerhtml))return false; +if(o3_autostatus>0){o3_status=o3_text;if(o3_autostatus>1)o3_status=o3_cap;} +o3_allowmove=0; +if(o3_timeout>0){if(o3_timerid>0)clearTimeout(o3_timerid);o3_timerid=setTimeout("cClick()",o3_timeout);} +runHook("disp",FREPLACE,o3_status);runHook("olMain",FAFTER); +return(olOp&&event&&event.type=='mouseover'&&!o3_status)?'':(o3_status!='');} +function ol_content_simple(text){var cpIsMultiple=/,/.test(o3_cellpad);var txt='
':((!olNs4&&cpIsMultiple)?' style="'+setCellPadStr(o3_cellpad)+'">':'>'))+(o3_textfontclass?'':wrapStr(0,o3_textsize,'text'))+text+(o3_textfontclass?'':wrapStr(1,o3_textsize))+'
'; +set_background("");return txt;} +function ol_content_caption(text,title,close){var nameId,txt,cpIsMultiple=/,/.test(o3_cellpad);var closing,closeevent; +closing="";closeevent="onmouseover";if(o3_closeclick==1)closeevent=(o3_closetitle?"title='"+o3_closetitle+"'":"")+" onclick";if(o3_capicon!=""){nameId=' hspace=\"5\"'+' align=\"middle\" alt=\"\"';if(typeof o3_dragimg!='undefined'&&o3_dragimg)nameId=' hspace=\"5\"'+' name=\"'+o3_dragimg+'\" id=\"'+o3_dragimg+'\" align=\"middle\" alt=\"Drag Enabled\" title=\"Drag Enabled\"';o3_capicon='';} +if(close!="") +closing=''+(o3_closefontclass?'':wrapStr(0,o3_closesize,'close'))+close+(o3_closefontclass?'':wrapStr(1,o3_closesize,'close'))+'';txt='
':'>')+(o3_captionfontclass?'':''+wrapStr(0,o3_captionsize,'caption'))+o3_capicon+title+(o3_captionfontclass?'':wrapStr(1,o3_captionsize)+'')+''+closing+'
' :((!olNs4&&cpIsMultiple)?' style="'+setCellPadStr(o3_cellpad)+'">':'>'))+(o3_textfontclass?'':wrapStr(0,o3_textsize,'text'))+text+(o3_textfontclass?'':wrapStr(1,o3_textsize))+'
'; +set_background("");return txt;} +function ol_content_background(text,picture,hasfullhtml){if(hasfullhtml){txt=text;}else{txt='
'+(o3_textfontclass?'':wrapStr(0,o3_textsize,'text'))+text+(o3_textfontclass?'':wrapStr(1,o3_textsize))+'
';} +set_background(picture);return txt;} +function set_background(pic){if(pic==""){if(olNs4){over.background.src=null;}else if(over.style){over.style.backgroundImage="none";} +}else{if(olNs4){over.background.src=pic;}else if(over.style){over.style.width=o3_width+'px';over.style.backgroundImage="url("+pic+")";}}} +var olShowId=-1; +function disp(statustext){runHook("disp",FBEFORE); +if(o3_allowmove==0){runHook("placeLayer",FREPLACE);(olNs6&&olShowId<0)?olShowId=setTimeout("runHook('showObject',FREPLACE,over)",1):runHook("showObject",FREPLACE,over);o3_allowmove=(o3_sticky||o3_followmouse==0)?0:1;} +runHook("disp",FAFTER); +if(statustext!="")self.status=statustext;} +function createPopup(lyrContent){runHook("createPopup",FBEFORE); +if(o3_wrap){var wd,ww,theObj=(olNs4?over:over.style);theObj.top=theObj.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?'px':0);layerWrite(lyrContent);wd=(olNs4?over.clip.width:over.offsetWidth);if(wd>(ww=windowWidth())){lyrContent=lyrContent.replace(/\ /g,' ');o3_width=ww;o3_wrap=0;}} +layerWrite(lyrContent); +if(o3_wrap)o3_width=(olNs4?over.clip.width:over.offsetWidth); +runHook("createPopup",FAFTER,lyrContent); +return true;} +function placeLayer(){var placeX,placeY,widthFix=0; +if(o3_frame.innerWidth)widthFix=18;iwidth=windowWidth(); +winoffset=(olIe4)?eval('o3_frame.'+docRoot+'.scrollLeft'):o3_frame.pageXOffset; +placeX=runHook('horizontalPlacement',FCHAIN,iwidth,winoffset,widthFix); +if(o3_frame.innerHeight){iheight=o3_frame.innerHeight;}else if(eval('o3_frame.'+docRoot)&&eval("typeof o3_frame."+docRoot+".clientHeight=='number'")&&eval('o3_frame.'+docRoot+'.clientHeight')){iheight=eval('o3_frame.'+docRoot+'.clientHeight');} +scrolloffset=(olIe4)?eval('o3_frame.'+docRoot+'.scrollTop'):o3_frame.pageYOffset;placeY=runHook('verticalPlacement',FCHAIN,iheight,scrolloffset); +repositionTo(over,placeX,placeY);} +function olMouseMove(e){var e=(e)?e:event; +if(e.pageX){o3_x=e.pageX;o3_y=e.pageY;}else if(e.clientX){o3_x=eval('e.clientX+o3_frame.'+docRoot+'.scrollLeft');o3_y=eval('e.clientY+o3_frame.'+docRoot+'.scrollTop');} +if(o3_allowmove==1)runHook("placeLayer",FREPLACE); +if(hoveringSwitch&&!olNs4&&runHook("cursorOff",FREPLACE)){(olHideDelay?hideDelay(olHideDelay):cClick());hoveringSwitch=!hoveringSwitch;}} +function no_overlib(){return ver3fix;} +function olMouseCapture(){capExtent=document;var fN,str='',l,k,f,wMv,sS,mseHandler=olMouseMove;var re=/function[ ]*(\w*)\(/; +wMv=(!olIe4&&window.onmousemove);if(document.onmousemove||wMv){if(wMv)capExtent=window;f=capExtent.onmousemove.toString();fN=f.match(re);if(fN==null){str=f+'(e);';}else if(fN[1]=='anonymous'||fN[1]=='olMouseMove'||(wMv&&fN[1]=='onmousemove')){if(!olOp&&wMv){l=f.indexOf('{')+1;k=f.lastIndexOf('}');sS=f.substring(l,k);if((l=sS.indexOf('('))!=-1){sS=sS.substring(0,l).replace(/^\s+/,'').replace(/\s+$/,'');if(eval("typeof "+sS+"=='undefined'"))window.onmousemove=null;else str=sS+'(e);';}} +if(!str){olCheckMouseCapture=false;return;} +}else{if(fN[1])str=fN[1]+'(e);';else{l=f.indexOf('{')+1;k=f.lastIndexOf('}');str=f.substring(l,k)+'\n';}} +str+='olMouseMove(e);';mseHandler=new Function('e',str);} +capExtent.onmousemove=mseHandler;if(olNs4)capExtent.captureEvents(Event.MOUSEMOVE);} +function parseTokens(pf,ar){ +var v,i,mode=-1,par=(pf!='ol_'),fnMark=(par&&!ar.length?1:0); +for(i=0;ipmStart&&ar[i]=pmCount||ar[i]==DONOTHING){continue;} +if(ar[i]==INARRAY){fnMark=0;eval(pf+'text=ol_texts['+ar[++i]+'].toString()');continue;} +if(ar[i]==CAPARRAY){eval(pf+'cap=ol_caps['+ar[++i]+'].toString()');continue;} +if(ar[i]==STICKY){if(pf!='ol_')eval(pf+'sticky=1');continue;} +if(ar[i]==BACKGROUND){eval(pf+'background="'+ar[++i]+'"');continue;} +if(ar[i]==NOCLOSE){if(pf!='ol_')opt_NOCLOSE();continue;} +if(ar[i]==CAPTION){eval(pf+"cap='"+escSglQuote(ar[++i])+"'");continue;} +if(ar[i]==CENTER||ar[i]==LEFT||ar[i]==RIGHT){eval(pf+'hpos='+ar[i]);if(pf!='ol_')olHautoFlag=1;continue;} +if(ar[i]==OFFSETX){eval(pf+'offsetx='+ar[++i]);continue;} +if(ar[i]==OFFSETY){eval(pf+'offsety='+ar[++i]);continue;} +if(ar[i]==FGCOLOR){eval(pf+'fgcolor="'+ar[++i]+'"');continue;} +if(ar[i]==BGCOLOR){eval(pf+'bgcolor="'+ar[++i]+'"');continue;} +if(ar[i]==TEXTCOLOR){eval(pf+'textcolor="'+ar[++i]+'"');continue;} +if(ar[i]==CAPCOLOR){eval(pf+'capcolor="'+ar[++i]+'"');continue;} +if(ar[i]==CLOSECOLOR){eval(pf+'closecolor="'+ar[++i]+'"');continue;} +if(ar[i]==WIDTH){eval(pf+'width='+ar[++i]);continue;} +if(ar[i]==BORDER){eval(pf+'border='+ar[++i]);continue;} +if(ar[i]==CELLPAD){i=opt_MULTIPLEARGS(++i,ar,(pf+'cellpad'));continue;} +if(ar[i]==STATUS){eval(pf+"status='"+escSglQuote(ar[++i])+"'");continue;} +if(ar[i]==AUTOSTATUS){eval(pf+'autostatus=('+pf+'autostatus==1)?0:1');continue;} +if(ar[i]==AUTOSTATUSCAP){eval(pf+'autostatus=('+pf+'autostatus==2)?0:2');continue;} +if(ar[i]==HEIGHT){eval(pf+'height='+pf+'aboveheight='+ar[++i]);continue;} +if(ar[i]==CLOSETEXT){eval(pf+"close='"+escSglQuote(ar[++i])+"'");continue;} +if(ar[i]==SNAPX){eval(pf+'snapx='+ar[++i]);continue;} +if(ar[i]==SNAPY){eval(pf+'snapy='+ar[++i]);continue;} +if(ar[i]==FIXX){eval(pf+'fixx='+ar[++i]);continue;} +if(ar[i]==FIXY){eval(pf+'fixy='+ar[++i]);continue;} +if(ar[i]==RELX){eval(pf+'relx='+ar[++i]);continue;} +if(ar[i]==RELY){eval(pf+'rely='+ar[++i]);continue;} +if(ar[i]==FGBACKGROUND){eval(pf+'fgbackground="'+ar[++i]+'"');continue;} +if(ar[i]==BGBACKGROUND){eval(pf+'bgbackground="'+ar[++i]+'"');continue;} +if(ar[i]==PADX){eval(pf+'padxl='+ar[++i]);eval(pf+'padxr='+ar[++i]);continue;} +if(ar[i]==PADY){eval(pf+'padyt='+ar[++i]);eval(pf+'padyb='+ar[++i]);continue;} +if(ar[i]==FULLHTML){if(pf!='ol_')eval(pf+'fullhtml=1');continue;} +if(ar[i]==BELOW||ar[i]==ABOVE){eval(pf+'vpos='+ar[i]);if(pf!='ol_')olVautoFlag=1;continue;} +if(ar[i]==CAPICON){eval(pf+'capicon="'+ar[++i]+'"');continue;} +if(ar[i]==TEXTFONT){eval(pf+"textfont='"+escSglQuote(ar[++i])+"'");continue;} +if(ar[i]==CAPTIONFONT){eval(pf+"captionfont='"+escSglQuote(ar[++i])+"'");continue;} +if(ar[i]==CLOSEFONT){eval(pf+"closefont='"+escSglQuote(ar[++i])+"'");continue;} +if(ar[i]==TEXTSIZE){eval(pf+'textsize="'+ar[++i]+'"');continue;} +if(ar[i]==CAPTIONSIZE){eval(pf+'captionsize="'+ar[++i]+'"');continue;} +if(ar[i]==CLOSESIZE){eval(pf+'closesize="'+ar[++i]+'"');continue;} +if(ar[i]==TIMEOUT){eval(pf+'timeout='+ar[++i]);continue;} +if(ar[i]==FUNCTION){if(pf=='ol_'){if(typeof ar[i+1]!='number'){v=ar[++i];ol_function=(typeof v=='function'?v:null);}}else{fnMark=0;v=null;if(typeof ar[i+1]!='number')v=ar[++i]; opt_FUNCTION(v);} continue;} +if(ar[i]==DELAY){eval(pf+'delay='+ar[++i]);continue;} +if(ar[i]==HAUTO){eval(pf+'hauto=('+pf+'hauto==0)?1:0');continue;} +if(ar[i]==VAUTO){eval(pf+'vauto=('+pf+'vauto==0)?1:0');continue;} +if(ar[i]==CLOSECLICK){eval(pf+'closeclick=('+pf+'closeclick==0)?1:0');continue;} +if(ar[i]==WRAP){eval(pf+'wrap=('+pf+'wrap==0)?1:0');continue;} +if(ar[i]==FOLLOWMOUSE){eval(pf+'followmouse=('+pf+'followmouse==1)?0:1');continue;} +if(ar[i]==MOUSEOFF){eval(pf+'mouseoff=('+pf+'mouseoff==0)?1:0');v=ar[i+1];if(pf!='ol_'&&eval(pf+'mouseoff')&&typeof v=='number'&&(vpmUpper))olHideDelay=ar[++i];continue;} +if(ar[i]==CLOSETITLE){eval(pf+"closetitle='"+escSglQuote(ar[++i])+"'");continue;} +if(ar[i]==CSSOFF||ar[i]==CSSCLASS){eval(pf+'css='+ar[i]);continue;} +if(ar[i]==COMPATMODE){eval(pf+'compatmode=('+pf+'compatmode==0)?1:0');continue;} +if(ar[i]==FGCLASS){eval(pf+'fgclass="'+ar[++i]+'"');continue;} +if(ar[i]==BGCLASS){eval(pf+'bgclass="'+ar[++i]+'"');continue;} +if(ar[i]==TEXTFONTCLASS){eval(pf+'textfontclass="'+ar[++i]+'"');continue;} +if(ar[i]==CAPTIONFONTCLASS){eval(pf+'captionfontclass="'+ar[++i]+'"');continue;} +if(ar[i]==CLOSEFONTCLASS){eval(pf+'closefontclass="'+ar[++i]+'"');continue;} +i=parseCmdLine(pf,i,ar);}} +if(fnMark&&o3_function)o3_text=o3_function(); +if((pf=='o3_')&&o3_wrap){o3_width=0; +var tReg=/<.*\n*>/ig;if(!tReg.test(o3_text))o3_text=o3_text.replace(/[ ]+/g,' ');if(!tReg.test(o3_cap))o3_cap=o3_cap.replace(/[ ]+/g,' ');} +if((pf=='o3_')&&o3_sticky){if(!o3_close&&(o3_frame!=ol_frame))o3_close=ol_close;if(o3_mouseoff&&(o3_frame==ol_frame))opt_NOCLOSE(' ');}} +function layerWrite(txt){txt+="\n";if(olNs4){var lyr=o3_frame.document.layers['overDiv'].document +lyr.write(txt) +lyr.close() +}else if(typeof over.innerHTML!='undefined'){if(olIe5&&isMac)over.innerHTML='';over.innerHTML=txt;}else{range=o3_frame.document.createRange();range.setStartAfter(over);domfrag=range.createContextualFragment(txt); +while(over.hasChildNodes()){over.removeChild(over.lastChild);} +over.appendChild(domfrag);}} +function showObject(obj){runHook("showObject",FBEFORE); +var theObj=(olNs4?obj:obj.style);theObj.visibility='visible'; +runHook("showObject",FAFTER);} +function hideObject(obj){runHook("hideObject",FBEFORE); +var theObj=(olNs4?obj:obj.style);if(olNs6&&olShowId>0){clearTimeout(olShowId);olShowId=0;} +theObj.visibility='hidden';theObj.top=theObj.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?'px':0); +if(o3_timerid>0)clearTimeout(o3_timerid);if(o3_delayid>0)clearTimeout(o3_delayid); +o3_timerid=0;o3_delayid=0;self.status=""; +if(obj.onmouseout||obj.onmouseover){if(olNs4)obj.releaseEvents(Event.MOUSEOUT||Event.MOUSEOVER);obj.onmouseout=obj.onmouseover=null;} +runHook("hideObject",FAFTER);} +function repositionTo(obj,xL,yL){var theObj=(olNs4?obj:obj.style);theObj.left=xL+(!olNs4?'px':0);theObj.top=yL+(!olNs4?'px':0);} +function cursorOff(){var left=parseInt(over.style.left);var top=parseInt(over.style.top);var right=left+(over.offsetWidth>=parseInt(o3_width)?over.offsetWidth:parseInt(o3_width));var bottom=top+(over.offsetHeight>=o3_aboveheight?over.offsetHeight:o3_aboveheight); +if(o3_xright||o3_ybottom)return true; +return false;} +function opt_FUNCTION(callme){o3_text=(callme?(typeof callme=='string'?(/.+\(.*\)/.test(callme)?eval(callme):callme):callme()):(o3_function?o3_function():'No Function')); +return 0;} +function opt_NOCLOSE(unused){if(!unused)o3_close=""; +if(olNs4){over.captureEvents(Event.MOUSEOUT||Event.MOUSEOVER);over.onmouseover=function(){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0;} } +over.onmouseout=function(e){if(olHideDelay)hideDelay(olHideDelay);else cClick(e);} +}else{over.onmouseover=function(){hoveringSwitch=true;if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0;} }} +return 0;} +function opt_MULTIPLEARGS(i,args,parameter){var k=i,re,pV,str=''; +for(k=i;kpmStart)break;str+=args[k]+',';} +if(str)str=str.substring(0,--str.length); +k--;pV=(olNs4&&/cellpad/i.test(parameter))?str.split(',')[0]:str;eval(parameter+'="'+pV+'"'); +return k;} +function nbspCleanup(){if(o3_wrap){o3_text=o3_text.replace(/\ /g,' ');o3_cap=o3_cap.replace(/\ /g,' ');}} +function escSglQuote(str){return str.toString().replace(/'/g,"\\'");} +function OLonLoad_handler(e){var re=/\w+\(.*\)[;\s]+/g,olre=/overlib\(|nd\(|cClick\(/,fn,l,i; +if(!olLoaded)olLoaded=1; +if(window.removeEventListener&&e.eventPhase==3)window.removeEventListener("load",OLonLoad_handler,false);else if(window.detachEvent){window.detachEvent("onload",OLonLoad_handler);var fN=document.body.getAttribute('onload');if(fN){fN=fN.toString().match(re);if(fN&&fN.length){for(i=0;i':''):'
';else{fontStr='o3_'+whichString+'font';fontColor='o3_'+((whichString=='caption')? 'cap':whichString)+'color';return(hasDims&&!olNs4)?(isClose?'':'
'):'';}} +function quoteMultiNameFonts(theFont){var v,pM=theFont.split(',');for(var i=0;i0)clearTimeout(o3_timerid); +o3_timerid=setTimeout("cClick()",(o3_timeout=time));}} +function horizontalPlacement(browserWidth,horizontalScrollAmount,widthFix){var placeX,iwidth=browserWidth,winoffset=horizontalScrollAmount;var parsedWidth=parseInt(o3_width); +if(o3_fixx>-1||o3_relx!=null){ +placeX=(o3_relx!=null?( o3_relx<0?winoffset+o3_relx+iwidth-parsedWidth-widthFix:winoffset+o3_relx):o3_fixx);}else{ +if(o3_hauto==1){if((o3_x-winoffset)>(iwidth/2)){o3_hpos=LEFT;}else{o3_hpos=RIGHT;}} +if(o3_hpos==CENTER){placeX=o3_x+o3_offsetx-(parsedWidth/2); +if(placeX(winoffset+iwidth-widthFix)){placeX=iwidth+winoffset-parsedWidth-widthFix;if(placeX<0)placeX=0;}} +if(o3_hpos==LEFT){placeX=o3_x-o3_offsetx-parsedWidth;if(placeX1){var snapping=placeX % o3_snapx; +if(o3_hpos==LEFT){placeX=placeX-(o3_snapx+snapping);}else{ +placeX=placeX+(o3_snapx-snapping);} +if(placeX-1||o3_rely!=null){ +placeY=(o3_rely!=null?(o3_rely<0?scrolloffset+o3_rely+iheight-parsedHeight:scrolloffset+o3_rely):o3_fixy);}else{ +if(o3_vauto==1){if((o3_y-scrolloffset)>(iheight/2)&&o3_vpos==BELOW&&(o3_y+parsedHeight+o3_offsety-(scrolloffset+iheight)>0)){o3_vpos=ABOVE;}else if(o3_vpos==ABOVE&&(o3_y-(parsedHeight+o3_offsety)-scrolloffset<0)){o3_vpos=BELOW;}} +if(o3_vpos==ABOVE){if(o3_aboveheight==0)o3_aboveheight=parsedHeight; +placeY=o3_y-(o3_aboveheight+o3_offsety);if(placeY1){var snapping=placeY % o3_snapy; +if(o3_aboveheight>0&&o3_vpos==ABOVE){placeY=placeY-(o3_snapy+snapping);}else{placeY=placeY+(o3_snapy-snapping);} +if(placeY
');divContainer=layerReference(id);}else{divContainer=frm.document.createElement("DIV");divContainer.id=id;body.appendChild(divContainer);} +objRef=divContainer.style;} +objRef.position='absolute';objRef.visibility='hidden';objRef.zIndex=zValue;if(olIe4&&!olOp)objRef.left=objRef.top='0px';else objRef.left=objRef.top=-10000+(!olNs4?'px':0);} +return divContainer;} +function layerReference(id){return(olNs4?o3_frame.document.layers[id]:(document.all?o3_frame.document.all[id]:o3_frame.document.getElementById(id)));} +function isFunction(fnRef){var rtn=true; +if(typeof fnRef=='object'){for(var i=0;ijS){for(var k=jS;k-1){i=j;break;}}} +return i;} +function postParseChecks(pf,args){if(typeof postParse!='undefined'&&postParse.length){for(var k=0;k-1)hookPt.alt[pms[CSSOFF-1-pmStart]]=fnRef; +}else if(hookType==FBEFORE||hookType==FAFTER){var hookPt=(hookType==1?hookPt.before:hookPt.after); +if(typeof fnRef=='object'){hookPt=hookPt.concat(fnRef);}else{hookPt[hookPt.length++]=fnRef;} +if(optPm)hookPt=reOrder(hookPt,fnRef,optPm); +}else if(hookType==FALTERNATE){if(last=='number')hookPt.alt[pms[optPm-1-pmStart]]=fnRef;}else if(hookType==FCHAIN){hookPt=hookPt.chain;if(typeof fnRef=='object')hookPt=hookPt.concat(fnRef);else hookPt[hookPt.length++]=fnRef;} +return;}} +function registerRunTimeFunction(fn){if(isFunction(fn)){if(typeof fn=='object'){runTime=runTime.concat(fn);}else{runTime[runTime.length++]=fn;}}} +function registerCmdLineFunction(fn){if(isFunction(fn)){if(typeof fn=='object'){cmdLine=cmdLine.concat(fn);}else{cmdLine[cmdLine.length++]=fn;}}} +function registerPostParseFunction(fn){if(isFunction(fn)){if(typeof fn=='object'){postParse=postParse.concat(fn);}else{postParse[postParse.length++]=fn;}}} +function runHook(fnHookTo,hookType){var l=hookPts[fnHookTo],k,rtnVal=null,optPm,arS,ar=runHook.arguments; +if(hookType==FREPLACE){arS=argToString(ar,2); +if(typeof l=='undefined'||!(l=l.ovload))rtnVal=eval(fnHookTo+'('+arS+')');else rtnVal=eval('l('+arS+')'); +}else if(hookType==FBEFORE||hookType==FAFTER){if(typeof l!='undefined'){l=(hookType==1?l.before:l.after); +if(l.length){arS=argToString(ar,2);for(var k=0;k0;k--)if((rtnVal=eval('l[k-1]('+arS+')'))!=void(0))break;} +return rtnVal;} +function FunctionReference(){this.ovload=null;this.before=new Array();this.after=new Array();this.alt=new Array();this.chain=new Array();} +function Info(version,prerelease){this.version=version;this.prerelease=prerelease; +this.simpleversion=Math.round(this.version*100);this.major=parseInt(this.simpleversion/100);this.minor=parseInt(this.simpleversion/10)-this.major * 10;this.revision=parseInt(this.simpleversion)-this.major * 100-this.minor * 10;this.meets=meets;} +function meets(reqdVersion){return(!reqdVersion)?false:this.simpleversion>=Math.round(100*parseFloat(reqdVersion));} +registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSOFF);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSOFF);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSOFF);registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSCLASS);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSCLASS);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSCLASS);registerPostParseFunction(checkPositionFlags);registerHook("hideObject",nbspCleanup,FAFTER);registerHook("horizontalPlacement",horizontalPlacement,FCHAIN);registerHook("verticalPlacement",verticalPlacement,FCHAIN);if(olNs4||(olIe5&&isMac)||olKq)olLoaded=1;registerNoParameterCommands('sticky,autostatus,autostatuscap,fullhtml,hauto,vauto,closeclick,wrap,followmouse,mouseoff,compatmode'); +var olCheckMouseCapture=true;if((olNs4||olNs6||olIe4)){olMouseCapture();}else{overlib=no_overlib;nd=no_overlib;ver3fix=true;} diff --git a/overlib/Mini/overlib_setonoff_mini.js b/overlib/Mini/overlib_setonoff_mini.js new file mode 100755 index 0000000..114948e --- /dev/null +++ b/overlib/Mini/overlib_setonoff_mini.js @@ -0,0 +1,32 @@ +//\///// +//\ overLIB Set On/Off Plugin +//\ This file requires overLIB 4.10 or later. +//\ +//\ overLIB 4.10 - You may not remove or change this notice. +//\ Copyright Erik Bosrup 1998-2003. All rights reserved. +//\ Contributors are listed on the homepage. +//\ See https://www.bosrup.com/web/overlib/ for details. +//\///// +//\ THIS IS A VERY MODIFIED VERSION. DO NOT EDIT OR PUBLISH. GET THE ORIGINAL! +if(typeof olInfo=='undefined'||typeof olInfo.meets=='undefined'||!olInfo.meets(4.10))alert('overLIB 4.10 or later is required for the Set On/Off Plugin.');else{registerCommands('seton,setoff');var olSetType; +function setOnOffVariables(){olSetType=0;} +function parseOnOffExtras(pf,i,ar){var k=i,v; +if(k-1){je=opt_MULTICOMMANDS(k+1,args);for(j=k+1;j<(k+je);j++)setNoParamCommand(1,pf,args[j]);k+=(je-1);} +k=-1;while((k=hasCommand(++k,args,SETOFF))-1){je=opt_MULTICOMMANDS(k+1,args);for(j=k+1;j<(k+je);j++)setNoParamCommand(0,pf,args[j]);k+=(je-1);}} +return true;} +var olRe; +function setNoParamCommand(whichType,pf,COMMAND){var v=pms[COMMAND-1-pmStart]; +if(pmt&&!olRe)olRe=eval('/'+pmt.split(',').join('|')+'/');if(pf!='ol_'&& /capturefirst/.test(v))return;if(pf!='ol_'&& /wrap/.test(v)&& eval(pf+'wrap')&&(whichType==0)){nbspCleanup();o3_width=ol_width;} +if(olRe.test(v))eval(pf+v+'='+((whichType&&COMMAND==AUTOSTATUSCAP)?whichType++:whichType));} +function opt_MULTICOMMANDS(i,ar){var k=i; +while(kpmStart){k++;if(ar[k-1]=='SETON'||ar[k-1]=='SETOFF')break;} +k-=(kright||o3_ybottom)return true;return false;} +function checkShadowPreHide(){if(o3_shadow&&o3_shadowopacity)cleanUpShadowEffects();if(o3_shadow&&(olIe4&&isMac) )over.style.pixelWidth=over.style.pixelHeight=0;} +function generateShadow(content){var wd,ht,X=0,Y=0,zIdx=0,txt,dpObj,puObj,bS='',aPos,posStr=new Array(); +if(!o3_shadow||(o3_shadowx==0&&o3_shadowy==0))return; +X=Math.abs(o3_shadowx);Y=Math.abs(o3_shadowy);wd=parseInt(o3_width);ht=(olNs4)?over.clip.height:over.offsetHeight; +if(o3_shadowx==0){if(o3_shadowy<0){posStr[0]=' left:0;top: 0';posStr[1]=' left:0;top: '+Y+'px';}else if(o3_shadowy>0){posStr[0]=' left:0;top: '+Y+'px';posStr[1]=' left:0;top:0';} +}else if(o3_shadowy==0){if(o3_shadowx<0){posStr[0]=' left:0;top: 0';posStr[1]=' left: '+X+'px';}else if(o3_shadowx>0){posStr[0]=' left: '+X+'px;top: 0';posStr[1]=' left:0;top:0';} +}else if(o3_shadowx>0){if(o3_shadowy>0){posStr[0]=' left:'+X+'px;top:'+Y+'px';posStr[1]=' left:0;top:0';}else if(o3_shadowy<0){posStr[0]=' left:'+X+'px;top:0';posStr[1]=' left:0;top: '+Y+'px';} +}else if(o3_shadowx<0){if(o3_shadowy>0){posStr[0]=' left:0;top:'+Y+'px';posStr[1]=' left:'+X+'px;top:0';}else if(o3_shadowy<0){posStr[0]=' left:0;top:0';posStr[1]=' left:'+X+'px;top:'+Y+'px';}} +txt=(olNs4)?'
':((olIe55&&olHideForm)?backDropSource(wd+X,ht+Y,zIdx++):'')+'
'+content+'
';}else{txt+=bS+'">
'+content+'
';} +layerWrite(txt); +if(olNs4&&bkSet){dpObj=over.document.layers['backdrop'];if(typeof dpObj=='undefined')return; +puObj=over.document.layers['PUContent'];wd=puObj.clip.width;ht=puObj.clip.height;aPos=posStr[0].split(';'); +dpObj.clip.width=wd;dpObj.clip.height=ht;dpObj.left=parseInt(aPos[0].split(':')[1]);dpObj.top=parseInt(aPos[1].split(':')[1]); +dpObj.bgColor=(bkSet==1)?null:o3_shadowcolor;dpObj.background.src=(bkSet==2)?null:o3_shadowimage;dpObj.zIndex=0; +aPos=posStr[1].split(';');puObj.left=parseInt(aPos[0].split(':')[1]);puObj.top=parseInt(aPos[1].split(':')[1]);puObj.zIndex=1; +}else{puObj=(olIe4?o3_frame.document.all['PUContent']:o3_frame.document.getElementById('PUContent'));dpObj=(olIe4?o3_frame.document.all['backdrop']:o3_frame.document.getElementById('backdrop'));ht=puObj.offsetHeight;dpObj.style.height=ht+'px'; +if(o3_shadowopacity){var op=o3_shadowopacity;op=(op<=100?op:100); +setBrowserOpacity(op,dpObj);}} +o3_width=wd+X;o3_aboveheight=ht+Y;} +function cleanUpShadowEffects(){if(olNs4||olOp)return;var dpObj=(olIe4?o3_frame.document.all['backdrop']:o3_frame.document.getElementById('backdrop'));cleanUpBrowserOpacity(dpObj);} +function setBrowserOpacity(op,lyr){if(olNs4||!op)return;lyr=(lyr)?lyr:over;if(olIe4&&typeof lyr.filters!='undefined'){lyr.style.filter='Alpha(Opacity='+op+')';lyr.filters.alpha.enabled=true;}else{var sOp=(typeof(lyr.style.MozOpacity)!='undefined')?'MozOpacity':(typeof(lyr.style.KhtmlOpacity)!='undefined'?'KhtmlOpacity':(typeof(lyr.style.opacity)!='undefined'?'opacity':''));if(sOp)eval('lyr.style.'+sOp+'=op/100');}} +function cleanUpBrowserOpacity(lyr){if(olNs4)return;lyr=(lyr)?lyr:over;if(olIe4&&(typeof lyr.filters!='undefined'&&lyr.filters.alpha.enabled)){lyr.style.filter='Alpha(Opacity=100)';lyr.filters.alpha.enabled=false;}else{var sOp=(typeof(lyr.style.MozOpacity)!='undefined')?'MozOpacity':(typeof(lyr.style.KhtmlOpacity)!='undefined'?'KhtmlOpacity':(typeof(lyr.style.opacity)!='undefined'?'opacity':''));if(sOp)eval('lyr.style.'+sOp+'=1.0');}} +function shadowAdjust(){if(!olNs4)return;var fac=ol_shadowadjust;if(olNs4){document.write(' + + + + + + + + + + + + + + + + + + +
+   + +
+
+
{$index_titel}
+
+
+
+

+ {if $index_error == '1'} + + + + + +
+ + Achtung!
+ {$index_error_text} +
+
+ {/if} + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ {$index_field_user} + +
+ {$index_field_pass} + +
+   +
+   + + +
+
+

+ {$index_register} + +

+
+
+ + +
+
+   +
+ + + +{/if} \ No newline at end of file diff --git a/templates/#login/index_ad.html b/templates/#login/index_ad.html new file mode 100755 index 0000000..9c4d6c4 --- /dev/null +++ b/templates/#login/index_ad.html @@ -0,0 +1,95 @@ +{if $action == ''} + + + {$index_titel} + + + + + + + + + + + +
+   + +
+
+
{$index_titel}
+
+
+
+

+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ {$index_field_user} + +
+ {$index_field_pass} + +
+ {$index_field_domain} + + +
+ + {if $index_error == '1'}{$index_mandatory_text}{/if} + {if $index_error == '2'}{$index_userunknown_text}{/if} + +   +
+   + + +
+
+
+
+

+
+   +
+ + + +{/if} \ No newline at end of file diff --git a/templates/#login/index_db.html b/templates/#login/index_db.html new file mode 100755 index 0000000..7253df9 --- /dev/null +++ b/templates/#login/index_db.html @@ -0,0 +1,12 @@ + +{if $action == ''} {$index_titel} + + + +
 
{$index_titel}

{if $index_error == '1'}
Achtung!
{$index_error_text}

{/if}
+ +
{$index_field_user}
{$index_field_pass}
 
 

{$index_register}

Registrierung



+ +
 
{/if} +{if $action == 'anmeld'} {if $index_login == '1'} {/if} +{/if} \ No newline at end of file diff --git a/templates/#login/index_ldap.html b/templates/#login/index_ldap.html new file mode 100755 index 0000000..3049247 --- /dev/null +++ b/templates/#login/index_ldap.html @@ -0,0 +1,332 @@ + +{if $action == ''} + + + {$index_titel} + + + + + + + + + + + + + + + + + + + + + +
+   + +
+
+
{$index_titel}
+
+
+
+

+ {if $index_error == '1'} + + + + + +
+ + Achtung!
+ {$index_error_text} +
+
+ {/if} + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ {$index_field_user} + +
+ {$index_field_pass} + +
+   +
+   + + +
+
+

+ {$index_register} + +

+
+
+ + +
+
+   +
+ + + +{/if} + +{if $action == 'anmeld'} + {if $index_login == '1'} + + {/if} +{/if} + + +{if $action == 'register'} + + + {if $register_adir == 'hsnet'} + + + {$register_titel} + + + + + + + + + + + + +
+   + + +
+
+
{$register_titel}
+
+
+
+

+ +

+ + {if $index_error == '1'} + + + + + +
+ + Achtung!
+ {$register_error_text} +

+ {/if} + + + + + + + + + + + + + +
+ {$register_field_beziehung} + + +
+ {$register_field_fakultaet} + + +
+
+ +

+ +

+
+
+
+   +
+ + + {/if} + + {if $register_adir == 'studnet'} + + + {$register_titel} + + + + + + + + + + + + +
+   + + +
+
+
{$register_titel}
+
+
+
+

+ +

+ + + {if $index_error == '1'} + + + + + +
+ + Achtung!
+ {$register_error_text} +

+ {/if} + + + + + + + +
+ {$register_field_ag} + / + {$register_field_jahrgang} + + / + +
+
+ +

+ +

+
+
+
+   +
+ + + {/if} +{/if} + + +{if $action == 'register2'} + {if $index_login == '1'} + + {/if} +{/if} \ No newline at end of file diff --git a/templates/#login/passwort_vergessen.html b/templates/#login/passwort_vergessen.html new file mode 100755 index 0000000..ed3af09 --- /dev/null +++ b/templates/#login/passwort_vergessen.html @@ -0,0 +1,309 @@ +{if $action == ''} + + + {$passwort_vergessen_titel} + + + + + + + + + + + + + + +
+   + +
+
+
{$passwort_vergessen_titel}
+
+
+
+

+ {if $passwort_vergessen_error == '1'} + + + + + +
+ + Achtung!
+ {$passwort_vergessen_error_text} +
+
+ {/if} + + + + + +
+ + + {$passwort_vergessen_text1} + + + + + + + + + + + + + + + + + + + + +
+   + +   +
+ {if $passwort_vergessen_mail_ico == '1'}{/if} + {if $passwort_vergessen_mail_ico == '1'}{/if} + {$passwort_vergessen_field_mail} + {if $passwort_vergessen_mail_ico == '1'}{/if} + +
+   +
+   + +   +
+
+

+ +

+
+
+
+   +
+ + + +{/if} + + + +{if $action == 'pwback'} + {if $passwort_vergessen_anfordern_erfolg == '1'} + + + {$passwort_vergessen_anfordern_titel} + + + + + + + + + + + + +
+   + +
+
+
{$passwort_vergessen_anfordern_titel}
+
+
+
+

+ + + + + +
+ + + {$passwort_vergessen_anfordern_text} +
+

+
+   +
+ + + + {/if} + + {if $passwort_vergessen_anfordern_erfolg == '2'} + + + {$passwort_vergessen_keinanfordern_titel} + + + + + + + + + + + + +
+   + +
+
+
{$passwort_vergessen_keinanfordern_titel}
+
+
+
+

+ + + + + +
+ + + {$passwort_vergessen_keinanfordern_text} +
+

+
+   +
+ + + + {/if} +{/if} + + + + +{if $action == 'pwneu'} + {if $passwort_vergessen_erfolg == '1'} + + + {$passwort_vergessen_erfolg_titel} + + + + + + + + + + + + +
+   + +
+
+
{$passwort_vergessen_erfolg_titel}
+
+
+
+

+ + + + + +
+ + + {$passwort_vergessen_erfolg_text} +
+

+
+   +
+ + + + {/if} + + {if $passwort_vergessen_erfolg == '2'} + + + {$passwort_vergessen_keinerfolg_titel} + + + + + + + + + + + + +
+   + +
+
+
{$passwort_vergessen_keinerfolg_titel}
+
+
+
+

+ + + + + +
+ + + {$passwort_vergessen_keinerfolg_text} +
+

+
+   +
+ + + + {/if} +{/if} \ No newline at end of file diff --git a/templates/#login/register.html b/templates/#login/register.html new file mode 100755 index 0000000..be2e106 --- /dev/null +++ b/templates/#login/register.html @@ -0,0 +1,445 @@ +{if $action == ''} + + + {if $register_aktivierung == '1'} + + + {$register_aktivierung_erfolg_titel} + + + + + + + + + + + + +
+   + +
+
+
{$register_aktivierung_erfolg_titel}
+
+
+
+

+ + + + + +
+ + + {$register_aktivierung_erfolg_text} +

+

+ Login +

+
+

+
+   +
+ + + + {/if} + + {if $register_aktivierung == '2'} + + + + {$register_aktivierung_keinerfolg_titel} + + + + + + + + + + + + +
+   + +
+
+
{$register_aktivierung_keinerfolg_titel}
+
+
+
+

+ + + + + +
+ + + {$register_aktivierung_keinerfolg_text} +

+

+ Login +

+
+

+
+   +
+ + + + {/if} + + {if $register_aktivierung == '3'} + + + {$register_titel} + + + + + + + + + + + + + + + + + + +
+   + + +
+
+
{$register_titel}
+
+
+
+

+ +

+ + {if $register_pflichtfelder == '1'} + + + + + +
+ + Achtung!
+ {$register_error_text} +

+ {/if} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ {if $register_vorname_ico == '1'}{/if} + {if $register_vorname_ico == '1'}{/if} + {$register_field_vorname} + {if $register_vorname_ico == '1'}{/if} + + +
+ {if $register_nachname_ico == '1'}{/if} + {if $register_nachname_ico == '1'}{/if} + {$register_field_nachname} + {if $register_nachname_ico == '1'}{/if} + + +
+ {if $register_mail_ico == '1'}{/if} + {if $register_mail_ico == '1'}{/if} + {$register_field_mail} + {if $register_mail_ico == '1'}{/if} + + + +
+   + +

+
+ {if $register_beziehung_ico == '1'}{/if} + {if $register_beziehung_ico == '1'}{/if} + {$register_field_beziehung} + {if $register_beziehung_ico == '1'}{/if} + + + +
+ + + + + +
+
+ +

+ +

+
+
+
+   +
+ + + {/if} +{/if} + +{if $action == 'register'} + {if $register_registrierung == '1'} + + + {$register_registrierung_erfolg_titel} + + + + + + + + + + + + +
+   + +
+
+
{$register_registrierung_erfolg_titel}
+
+
+
+

+ + + + + +
+ + + {$register_registrierung_erfolg_text} +
+
+

+
+   +
+ + + + + {/if} + + {if $register_registrierung == '2'} + + + + {$register_registrierung_keinerfolg_titel} + + + + + + + + + + + + +
+   + +
+
+
{$register_registrierung_keinerfolg_titel}
+
+
+
+

+ + + + + +
+ + + {$register_registrierung_keinerfolg_text} +
+
+

+
+   +
+ + + + + {/if} + +{/if} \ No newline at end of file diff --git a/templates/modern/#erm_freist_forschung.html b/templates/modern/#erm_freist_forschung.html new file mode 100755 index 0000000..53c6019 --- /dev/null +++ b/templates/modern/#erm_freist_forschung.html @@ -0,0 +1,334 @@ +{if $action == ''} + + + + + + + + + + + + + + + + + + + + + + {if $freistrekto_status == 'edit'} + + {/if} + + + +
+ + {if $freistrekto_error == '1'} + + + + + +
+ + Achtung!
+ {$freistrekto_error_text} +
+
+ {/if} + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist tagesgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Rechenweg: SWS x Semesterwochen x ausgeübte Tage der Funktion x Anzahl der Tage im Jahr (365 bzw. 366)
  • +
+
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + + {/if} + {/section} + + + + + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Ermäßigung LVS + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].funktion} + + {$table_data2[table_data2].beginn} + + {$table_data2[table_data2].ende} + + {$table_data2[table_data2].sws} + + {$table_data2[table_data2].lvs} + + +   + +
 Summe: {$freistrekto_value_summe_jahr} 
+
+ +
+
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/#erm_freist_funktion.html b/templates/modern/#erm_freist_funktion.html new file mode 100755 index 0000000..8c1da8e --- /dev/null +++ b/templates/modern/#erm_freist_funktion.html @@ -0,0 +1,332 @@ +{if $action == ''} + + + + + + + + + + + + + + + + + + + + {if $freistrekto_status == 'edit'} + + {/if} + + + +
+ + {if $freistrekto_error == '1'} + + + + + +
+ + Achtung!
+ {$freistrekto_error_text} +
+
+ {/if} + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist tagesgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Rechenweg: SWS x Semesterwochen x ausgeübte Tage der Funktion x Anzahl der Tage im Jahr (365 bzw. 366)
  • +
+
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + + {/if} + {/section} + + + + + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Ermäßigung LVS + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].funktion} + + {$table_data2[table_data2].beginn} + + {$table_data2[table_data2].ende} + + {$table_data2[table_data2].sws} + + {$table_data2[table_data2].lvs} + + +   + +
 Summe: {$freistrekto_value_summe_jahr} 
+
+ +
+
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/#erm_mutterschutz.html b/templates/modern/#erm_mutterschutz.html new file mode 100755 index 0000000..c78c6ba --- /dev/null +++ b/templates/modern/#erm_mutterschutz.html @@ -0,0 +1,253 @@ +{if $action == ''} + + + + + + + + + + + + + + + {if $muschu_status == 'edit'} + + {/if} + + + +
+ + {if $muschu_error == '1'} + + + + + +
+ + Achtung!
+ {$muschu_error_text} +
+
+ {/if} + +
+ + Mutterschutz/Elternzeit erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + +
+ Beginn des Mutterschutzes / der Elternzeit + + +
  +   +
+ Ende des Mutterschutzes / der Elternzeit + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist tagesgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Rechenweg: LVS-(Anzahl der Mutterschutztage / Anzahl der Tage im Jahr x LVS)
  • +
+
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Mutterschutzeit / Elternzeit / Pflegezeit + + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + {/if} + {/section} + + + + + +
+ lfd.Nr. + + Art + + Beginn + + Ende + + Ermäßigung LVS + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].art} + + {$table_data2[table_data2].beginn} + + {$table_data2[table_data2].ende} + + {$table_data2[table_data2].lvs} + + +   + +
 Summe: {$muschu_value_summe_jahr} 
+
+ +
+
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/abschlussarbeiten.html b/templates/modern/abschlussarbeiten.html new file mode 100755 index 0000000..3e11432 --- /dev/null +++ b/templates/modern/abschlussarbeiten.html @@ -0,0 +1,323 @@ +{if $action == ''} + + + + + + + + + + + + + + + +
+
+
+
+
{$abschluss_titel}
+
+
+
+
+ {if $abschluss_error == '1'} + + + + + +
+ + Achtung!
+ {$abschluss_error_text} +
+
+ {/if} + {if $abschluss_abschluss == '0'} +
+ + Abschlussarbeit erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ Name des Studierenden + + +
+ Art der Abschlussarbeit + + +
+ Betreuungspauschale (LVS) + + +
+   + +   +
+ Semester + + +
+   + +
+ + + + +
+ Informationen
+
    +
  • Es können höchstens {$abschluss_value_max_arbeiten} Abschlussarbeiten pro Semester erfasst werden.
  • +
+
+
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Abschlussarbeiten im Wintersemester + + + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + + {/if} + {/section} + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + Betreuungspauschale + + LVS + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].name} + + {$table_data2[table_data2].abschlussarbeit} + + {$table_data2[table_data2].semesterbez} + + {$table_data2[table_data2].pauschale} + + {$table_data2[table_data2].lvs} + + +   + +
 Summe: {$abschluss_value_ws_summe_lvs} 
+
+
+
+ + Erfasste Abschlussarbeiten im Sommersemester + + + + + + + + + + + + {section name=table_data3 loop=$table_data3} + {if $smarty.section.table_data3.rownum != ''} + + + + + + + + + + {/if} + {/section} + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + Betreuungspauschale + + LVS + + Edit +
+ {$smarty.section.table_data3.rownum} + + {$table_data3[table_data3].name} + + {$table_data3[table_data3].abschlussarbeit} + + {$table_data3[table_data3].semesterbez} + + {$table_data3[table_data3].pauschale} + + {$table_data3[table_data3].lvs} + + +   + +
 Summe: {$abschluss_value_ss_summe_lvs} 
+
+ {/if} +
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/admin_frame.html b/templates/modern/admin_frame.html new file mode 100755 index 0000000..d728169 --- /dev/null +++ b/templates/modern/admin_frame.html @@ -0,0 +1,22 @@ + + +Deputatverwaltung + + + + + + + + + + +<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> + +<p>To view this page correctly, you need a Web browser that supports frames.</p> + +</body> + + + \ No newline at end of file diff --git a/templates/modern/css/ajaxtabs.css b/templates/modern/css/ajaxtabs.css new file mode 100755 index 0000000..1526fe4 --- /dev/null +++ b/templates/modern/css/ajaxtabs.css @@ -0,0 +1,3 @@ +.tabcontentiframe{ +height:2000px; +} \ No newline at end of file diff --git a/templates/modern/css/java-tooltip.css b/templates/modern/css/java-tooltip.css new file mode 100755 index 0000000..aaef2fa --- /dev/null +++ b/templates/modern/css/java-tooltip.css @@ -0,0 +1,9 @@ +* {margin:0; padding:0} +body {font:11px/1.5 Verdana, Arial, Helvetica, sans-serif; background:#FFF} +#text {margin:50px auto; width:500px} +.hotspot {color:#900; padding-bottom:1px; border-bottom:0px dotted #900; cursor:pointer} + +#tt {position:absolute; display:block; background:url(images/tt_left.gif) top left no-repeat} +#tttop {display:block; height:5px; margin-left:5px; background:url(images/tt_top.gif) top right no-repeat; overflow:hidden} +#ttcont {display:block; padding:2px 12px 3px 7px; margin-left:5px; background:#666; color:#FFF} +#ttbot {display:block; height:5px; margin-left:5px; background:url(images/tt_bottom.gif) top right no-repeat; overflow:hidden} \ No newline at end of file diff --git a/templates/modern/css/styles_login.css b/templates/modern/css/styles_login.css new file mode 100755 index 0000000..790c6bb --- /dev/null +++ b/templates/modern/css/styles_login.css @@ -0,0 +1,121 @@ +body { + margin-top : 10px; + margin-bottom : 10px; + font-family : Arial; + font-size : 12px; + color : #000000; + +} + +td { + font-family : verdana, arial; + font-size : 9pt; + color : #000000; +} + +.Header { + background: url(../images/left.png) no-repeat; + font-family : Arial; + font-size : 18px; + font-weight : bold; + color : #FFFFFF; + + padding : 0px 0 0 14px; + margin : 0 10px 0 10px; /* Rand x rechts x links */ + + +} +.Header div { + background: url(../images/right.png) top right no-repeat; + padding-right: 13px; +} +.Header div div { + background: url(../images/center.png) repeat-x; + padding: 0; + +} + +.pat_list_box { + font-size : 14px; + + border : 1px solid gray; + /*border-top-color : transparent;*/ + background : url(../images/box-u.png) repeat-x left bottom; + margin : 0 10px 0 10px; /* Rand x rechts x links */ +} + + +/* Textfeldformatierung stammen von: https://www.web-toolbox.net/webtoolbox/css/css-formularfeld.htm#ixzz1EmDPi3Ti */ +.eingabe { + font-family : Verdana,Arial,Helvetica,sans-serif; + font-weight : bold; + color : #002276; + font-size : 11px; + border : none; + border-bottom : 1px dotted #0050A0; + background-color : #FFFFFF; + width : 170px; + padding : 3px; +} + +select { + font-family : Verdana,Arial,Helvetica,sans-serif; + font-weight : bold; + color : #002276; + font-size : 11px; +} + +.select1 { + width : 267px; +} + + +a.squarebutton_blue{ +background: transparent url('../images/button/square-blue-left.gif') no-repeat top left; +display: block; +font: normal 12px Arial; /* Change 12px as desired */ +line-height: 15px; /* This value + 4px + 4px (top and bottom padding of SPAN) must equal height of button background (default is 23px) */ +height: 23px; /* Height of button background height */ +padding-left: 9px; /* Width of left menu image */ +text-decoration: none; +} + +a:link.squarebutton_blue, a:visited.squarebutton_blue, a:active.squarebutton_blue{ +color: #494949; /*button text color*/ +} + +a.squarebutton_blue span{ +background: transparent url('../images/button/square-blue-right.gif') no-repeat top right; +display: block; +padding: 4px 9px 4px 0; /*Set 9px below to match value of 'padding-left' value above*/ +} + +a.squarebutton_blue:hover{ /* Hover state CSS */ +background-position: bottom left; +} + +a.squarebutton_blue:hover span{ /* Hover state CSS */ +background-position: bottom right; +color: black; +} + + +/* Pflichtfeldverletzung */ +.errorTable +{ + BORDER-RIGHT: #9F0004 1px solid; + BORDER-TOP: #9F0004 1px solid; + BORDER-LEFT: #9F0004 1px solid; + BORDER-BOTTOM: #9F0004 1px solid; + FONT-SIZE: 9px; + background-color: #E2E1E1; +} + +.errorField +{ + BORDER-RIGHT: #9F0004 1px solid; + BORDER-TOP: #9F0004 1px solid; + BORDER-LEFT: #9F0004 1px solid; + BORDER-BOTTOM: #9F0004 1px solid; + background-color: #FFFFCC; +} \ No newline at end of file diff --git a/templates/modern/css/styles_refill.css b/templates/modern/css/styles_refill.css new file mode 100755 index 0000000..3f31187 --- /dev/null +++ b/templates/modern/css/styles_refill.css @@ -0,0 +1,591 @@ +/* +https://jigsaw.w3.org/css-validator/validator +https://www.w3.org/TR/CSS21/syndata.html#color-units +*/ + +font.hd { /* berschrifteinstellungen */ + font-family : Verdana,Arial,Helvetica,sans-serif; + font-size : 17px; + font-weight : bold; + color : #002276; +} + +.sh { /* Subheader */ + font-weight : normal; + font-size : 12px; + color : rgb(101, 101, 101); + font-family : Arial,Helvetica,sans-serif; +} + +li { /* Aufzhlungen */ + font-weight : normal; + font-size : 12px; + font-family : Arial,Helvetica,sans-serif; +} + + +.formdesc { + padding-left : 10px; + width : 33%; + color : rgb(255, 255, 255); + background-color : rgb(146, 155, 171); + font-weight : bold; +} + +.login { + background-color : #f1f2f6; +} + + +a { + font-family : verdana, arial; + font-weight : normal; + color : #000066; +} + + + + + + +body { + margin-top : 10px; + margin-bottom : 10px; + font : 12px Arial; + color : #000000; + +} + + + +td { + font-family : verdana, arial; + font-size : 9pt; + color : #000000; +} + + +h1 { + font-family : verdana, arial; + font-size : 16pt; + font-weight : bold; +} + +h2 { + font-family : verdana, arial; + font-size : 16pt; + color : #277DA8; +} + + +.uberschrift { + font-family : verdana, arial; + font-size : 12pt; + font-weight : bold; + color : #006699; +} + + +.bemerkung { + font-family : verdana, arial; + font-size : 8pt; + font-weight : bold; + color : #FF0000; + text-transform : uppercase; /* Grobuchstaben */ +} + + +.farbe { /* Hintergrundsfarbe im Titel bei Export Word, Aushnge */ + background-color : #6487DC; +} + + +.contentfarbe { /* Hintergrundsfarbe in Tabellen bei Inhalten */ + background-color : #DEDEDE; +} + + +.titel { /* Kopfframe */ + font-weight : bold; + text-decoration : none; + font-family : verdana, arial; + font-size : 16pt; + color : #FFFFFF; +} + + +.footer { /* Fuzeile (Copyright) */ + text-decoration : none; + font-family : verdana, arial; + font-size : 8pt; +} + + +.nav_link { /* Hyperlinks in der Navigation */ + text-decoration : none; + font-family : verdana, arial; + font-size : 8pt; + height : 13pt; +} + + +.nav_head { /* berschriften in der Navigation */ + font-weight : bold; + text-decoration : none; + font-family : verdana, arial; + font-size : 9pt; +} + + + +.nextprev:link, .nextprev:visited { + background-color: #D6DFF7; + color: black; + font-weight:bold; + text-decoration: none; + display: block; + font-size: 8pt; + text-align: center; + padding: 20px 5px 20px 5px; +} +.nextprev:active, .nextprev:hover { + background-color: #6487DC; + color: #FFFFFF; + font-weight:bold; + text-decoration: none; + display: block; + font-size: 8pt; + text-align: center; + padding: 20px 5px 20px 5px; +} + +.nextprevdet:link, .nextprevdet:visited { + background-color: #D6DFF7; + color: black; + font-weight:bold; + text-decoration: none; + display: block; + font-size: 8pt; + text-align: center; + padding: 1px; +} +.nextprevdet:active, .nextprevdet:hover { + background-color: #6487DC; + color: #FFFFFF; + font-weight:bold; + text-decoration: none; + display: block; + font-size: 8pt; + text-align: center; + padding: 1px; +} + +.button_left:link, .button_left:visited { + background-color: #D6DFF7; + color: black; + text-decoration: none; + display: block; + font-size: 8pt; + text-align: left; + padding: 1px; +} +.button_left:active, .button_left:hover { + background-color: #6487DC; + color: #FFFFFF; + text-decoration: none; + display: block; + font-size: 8pt; + text-align: left; + padding: 1px; +} + + +/*++++++++++++++++++++++ Meine Eigenen CSS +++++++++++++++++++++++++++++*/ + +.navbar { /* Nav-Leiste in Titel-Frame */ + font-family : Verdana,Arial,Helvetica,sans-serif; + font-size : 16px; +} +.navbar:link { font-weight:normal; color:gray; text-decoration:none; } +.navbar:visited { font-weight:normal; color:gray; text-decoration:none; } +.navbar:focus { font-weight:normal; color:black; text-decoration:none; } +.navbar:hover { font-weight:normal; color:black; text-decoration:none; } +.navbar:active { font-weight:normal; color:gray; text-decoration:none; } + + +.leiste-o { + font-family : Verdana; + font-size : 18px; + font-weight : bold; + color : white; + height : 29px; /* Hhe des ../images * + padding : 0 0 0 5px; + margin : 0 10px 0 0px; /* Rand oben rechts unten links */ + background : url('../images/leiste-o.png') no-repeat; +} + +.leiste-o span { + display : block; + height : 29px; + /*margin-top:-5px;*/ + padding : 6px 0 0 15px; + background : url('../images/leiste-o-right.png') no-repeat right 0; +} + + + +/* Accordion Menu */ + +.accordion2 { + width: 225px; +} + +.accordion2 h3 { + width:195px; + height:30px; + padding:5px 0 0 15px; + margin:0 0 0 10px; + background:url('../images/accord/item.png') no-repeat; + font-size:12px; + font-weight:bold; + color:rgb(100,100,100); + cursor:pointer; +} + +.accordion2 > h3:hover { + background:url('../images/accord/mo-item.png') no-repeat; +} + +.accordion2 span { + display:block; + height:30px; + margin-top:-5px; + padding:6px 0 0 15px; + background:url('../images/accord/item-right.png') no-repeat right 0; +} + +.accordion2 span:hover { + background:url('../images/accord/mo-item-right.png') no-repeat right 0; +} + +.accordion2 ul{ /*CSS for UL of each sub menu*/ + list-style-type: none; + margin: 0; + display: none; +} + +.accordion2 ul li a { + width:170px; + display:block; + height:30px; + background:url('../images/accord/item.png') no-repeat; + padding:5px 0 0px 20px; /* Abstand Text Submen?> pading oben, rechts, unten, links*/ + font-size:12px; + font-weight:bold; + color: #A70303; + text-decoration: none; + cursor:pointer; +} + +.accordion2 ul li a:hover { + background:url('../images/accord/mo-item.png') no-repeat; +} + +.accordion2 ul li a span { + display:block; + height:30px; + margin-top:-5px; + padding:6px 0 0 0px; + background:url('../images/accord/item-right.png') no-repeat right 0; +} + +.accordion2 ul li a:hover span { + background:url('../images/accord/mo-item-right.png') no-repeat right 0; +} + +.accordion2 ul { + margin: 0; + padding: 10px 15px 20px; + display: none; +} + +li.abstand { + margin-left: 10px; +} + + + + +/*********************** Animated Tabs ************************/ +/*Credits: Dynamic Drive CSS Library */ +/*URL: https://www.dynamicdrive.com/style/ */ + + +.animatedtabs{ +/*border-bottom: 1px solid gray;*/ +overflow: hidden; +width: 100%; +font-size: 14px; /*font of menu text*/ +} + +.animatedtabs ul{ +list-style-type: none; +margin: 0; +margin-left: 10px; /*offset of first tab relative to page left edge*/ +padding: 0; +} + +.animatedtabs li{ +float: left; +margin: 0; +padding: 0; +} + +.animatedtabs a{ +float: left; +position: relative; +top: 5px; /* 1) Number of pixels to protrude up for selected tab. Should equal (3) MINUS (2) below */ +background: url(../images/tabs/tab-blue-left.gif) no-repeat left top; +margin: 0; +margin-right: 3px; /*Spacing between each tab*/ +padding: 0 0 0 9px; +text-decoration: none; +} + +.animatedtabs a span{ +float: left; +position: relative; +display: block; +background: url(../images/tabs/tab-blue-right.gif) no-repeat right top; +padding: 5px 14px 3px 5px; /* 2) Padding within each tab. The 3rd value, or 3px, should equal (1) MINUS (3) */ +font-weight: normal; +color: grey; +} + +/* Commented Backslash Hack hides rule from IE5-Mac \*/ +.animatedtabs a span {float:none;} +/* End IE5-Mac hack */ + + /* nderung hier by Ali */ +.animatedtabs a.selected { +background-position: 0 -125px; +top: 0; +} + + /* und hier by Ali*/ +/* Format fr ausgewaehlten Tab */ +.animatedtabs a.selected span{ +background-position: 100% -125px; +color: black; +font-weight: normal; +padding-bottom: 8px; /* 3) Bottom padding of selected tab. Should equal (1) PLUS (2) above */ +top: 0; +} + +.animatedtabs a:hover{ +background-position: 0% -125px; +top: 0; +} + +.animatedtabs a:hover span{ +background-position: 100% -125px; +padding-bottom: 8px; /* 3) Bottom padding of selected tab. Should equal (1) PLUS (2) above */ +top: 0; +} + + + +/******************* Feld in Patronenliste **********************/ +.pat_list_box { + font-size : 12px; + padding : 10px; + border : 1px solid gray; + /*border-top-color : transparent;*/ + border-top : none; + margin-top : 0px; + margin-left : 10px; + margin-right : 10px; + margin-bottom : 0px; + background : url(../images/box-u.png) repeat-x left bottom; +} + +.tab_box { + font-size : 12px; + height : 27px; + padding-top : 10px; + border : 1px solid gray; + border-top : none; + border-bottom : none; + margin-top : 0px; + margin-left : 10px; + margin-right : 10px; + margin-bottom : 0px; + background : url(../images/tab-box-u.png) repeat-x left bottom; +} + + + +/************************** Scuarebutton ********************************/ + +/*Credits: Dynamic Drive CSS Library */ +/*URL: https://www.dynamicdrive.com/style/ */ + +a.squarebutton_blue{ +background: transparent url('../images/button/square-blue-left.gif') no-repeat top left; +display: block; +font: normal 12px Arial; /* Change 12px as desired */ +line-height: 15px; /* This value + 4px + 4px (top and bottom padding of SPAN) must equal height of button background (default is 23px) */ +height: 23px; /* Height of button background height */ +padding-left: 9px; /* Width of left menu image */ +text-decoration: none; +} + +a:link.squarebutton_blue, a:visited.squarebutton_blue, a:active.squarebutton_blue{ +color: #494949; /*button text color*/ +} + +a.squarebutton_blue span{ +background: transparent url('../images/button/square-blue-right.gif') no-repeat top right; +display: block; +padding: 4px 9px 4px 0; /*Set 9px below to match value of 'padding-left' value above*/ +} + +a.squarebutton_blue:hover{ /* Hover state CSS */ +background-position: bottom left; +} + +a.squarebutton_blue:hover span{ /* Hover state CSS */ +background-position: bottom right; +color: black; +} + +.buttonwrapper{ /* Container you can use to surround a CSS button to clear float */ +overflow: hidden; /*See: https://www.quirksmode.org/css/clearing.html */ +width: 100%; +} + + + + + +/* by Ali */ + +#ajax_listOfOptions{ + position:absolute; + width:198px; + height:200px; + overflow:auto; + border:1px solid #6487DC; + background-color:#FFF; + text-align:left; + font-family : verdana, arial; + z-index:10000; + font-size : 11px; +} +#ajax_listOfOptions div{ + margin:1px; + padding:1px; + cursor:pointer; + font-size:0.9em; + +} +#ajax_listOfOptions .optionDiv{ // Div for each item in list + +} +#ajax_listOfOptions .optionDivSelected{ // Selected item in the list + background-color:#D6DFF7; + color:#002276; + font-weight : bold; +} +#ajax_listOfOptions_iframe{ + background-color:#F00; + position:absolute; + z-index:500; +} + + +/* Textfeldformatierung stammen von: https://www.web-toolbox.net/webtoolbox/css/css-formularfeld.htm#ixzz1EmDPi3Ti */ +.eingabe_search { + font-family : Verdana,Arial,Helvetica,sans-serif; + font-weight : bold; + color : #002276; + font-size : 11px; + border : none; + border-top : 1px dotted #0050A0; + border-bottom : 1px dotted #0050A0; + background-color : #FFFFFF; + width : 170px; + padding : 3px; +} + + +.header { + background: url(../images/left.png) no-repeat; + font-family : Verdana; + font-size : 18px; + font-weight : bold; + color : #FFFFFF; + padding : 0px 0 0 14px; + margin : 0 10px 0 10px; /* Rand x rechts x links */ +} + +.header div { + background: url(../images/right.png) top right no-repeat; + padding-right: 13px; +} + +.header div div { + background: url(../images/center.png) repeat-x; + padding: 0; +} + + +/* Pflichtfeldverletzung */ +.errorTable +{ + BORDER-RIGHT: #9F0004 1px solid; + BORDER-TOP: #9F0004 1px solid; + BORDER-LEFT: #9F0004 1px solid; + BORDER-BOTTOM: #9F0004 1px solid; + FONT-SIZE: 9px; + background-color: #E2E1E1; +} + +.errorField +{ + BORDER-RIGHT: #9F0004 1px solid; + BORDER-TOP: #9F0004 1px solid; + BORDER-LEFT: #9F0004 1px solid; + BORDER-BOTTOM: #9F0004 1px solid; + background-color: #FFFFCC; +} + + +.vvsuccess +{ + BORDER-RIGHT: #9F0004 2px solid; + BORDER-TOP: #9F0004 2px solid; + BORDER-LEFT: #9F0004 2px solid; + BORDER-BOTTOM: #9F0004 2px solid; + FONT-SIZE: 9px; + background-color: #E2E1E1; +} + + + +.gutachten_antwort +{ + BORDER-RIGHT: #dfec17 1px solid; + BORDER-TOP: #dfec17 1px solid; + BORDER-LEFT: #dfec17 1px solid; + BORDER-BOTTOM: #dfec17 1px solid; + FONT-SIZE: 9px; + background-color: #E2E1E1; +} + +.aformlink{ + text-decoration: none; + border-bottom: 1px dotted red; + background-image: none; + padding-left: 0; + } \ No newline at end of file diff --git a/templates/modern/eingabe_frame.html b/templates/modern/eingabe_frame.html new file mode 100755 index 0000000..cc76fbb --- /dev/null +++ b/templates/modern/eingabe_frame.html @@ -0,0 +1,20 @@ + + +Deputatverwaltung + + + + + + + + + +<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> + +<p>To view this page correctly, you need a Web browser that supports frames.</p> + +</body> + + + \ No newline at end of file diff --git a/templates/modern/erf_fz.html b/templates/modern/erf_fz.html new file mode 100755 index 0000000..9326b4b --- /dev/null +++ b/templates/modern/erf_fz.html @@ -0,0 +1,275 @@ + {if $action == ''} + + + + + +
+
+
+
+
{$fz_titel}
+
+
+
+
+
+ + Funktion auswählen + +
+
+

+ +
+
+
+ +

+
+
+ +
+
+ + +{/if} + + +{if $action == 'lbfzerf'} + + + + + + + + + + + + +
+
+
+
+
{$fz_titel}
+
+
+
+
+
+ Erfassung +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ {$fz_field_betrag}* + + € +
+ {$fz_field_starttag}* + + .. + +
+ {$fz_field_endtag} + + .. + +
+ {$fz_field_prof} + + +
+ * = Pflichtfelder + +   +
+
+
+
+ Gespeicherte Zulagen + + + + + + + + + {section name=table_data2 loop=$table_data2} + + + + + + + + {/section} +
+ {$fz_field_starttag} + + {$fz_field_betrag} + + {$fz_field_name} + + {$fz_field_endtag} + + {$fz_field_aktionen} +
+ {$table_data2[table_data2].startdat_form} + + {$table_data2[table_data2].wert} € + + {$table_data2[table_data2].name} + + {$table_data2[table_data2].enddat_form} + + +   + +
+
+
+

+ +

+
+
+
+ + +{/if} +{if $action == 'save'} + + + + + {$fz_inserterr_titel} + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+ + +
+ {$fz_save_titel}
+ +
+ +
+ + +
+

{$fz_save_text}

+

+
+

+

+

+

+

+


+

+
+ +
+ + + + + +
+
+
+ + +{/if} + diff --git a/templates/modern/erfassen_eingabe - Kopie.html b/templates/modern/erfassen_eingabe - Kopie.html new file mode 100755 index 0000000..7ef84f1 --- /dev/null +++ b/templates/modern/erfassen_eingabe - Kopie.html @@ -0,0 +1,489 @@ +{if $action == ''} + + + + + + + + +
+
+
+
+
{$erf_titel}
+
+
+
+
+ {if $erf_error == '1'} + + + + + +
+ + Achtung!
+ {$erf_error_text} +
+
+ {/if} + {if $erf_abschluss == '0'} +
+ + Lehrveranstaltung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Studiengang + + +
  +   +
+ Art der LV + + +
  +   +
+ Titel der Lehrveranstaltung (LV) + + + + + +
  +   +
+ Anzahl der Arbeitsgemeinschaften (AG) + + + +
  +   +
+   + + + + + +
+ Extracurricularer Klausurenkurs
+
    +
  • Es dürfen höchstens {$abschluss_value_max_extracur} Lehrstunden (LVS) pro {$abschluss_einheit_max_extracur} erfasst werden.
  • +
+
+
+
Krankheitsbedingte Merkmale +
+
+ +
  +   +
+
+ Teamteaching + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ gemeinsame LV + + +
+ fachübergreifende LV + + +
+ Anzahl der Lehrenden + + +
+ Namen der Lehrenden + + +
+ Basiswert (LVS) der LV + + +
+ Teachingfaktor + + +
+   + +   +
+   + + + + + +
+ Gesamtvolumen
+
    +
  • Der Teachingfaktor gibt vor, zu wieviel Prozent einer Lehrveranstaltung Lehrende gemeinsam lehren dürfen.
  • +
  • Bei einem Faktor von 0,5 dürfen also bis zu 50 % einer Veranstaltung von zwei Lehrenden miteinander gestaltet werden.
  • +
  • Bsp: Sind für ein Fachprojekt 56 LVS vorgesehen, gilt der Faktor 0,5.
    + Das bedeutet, dass höchstens 28 LVS gemeinsam gestaltet werden dürfen.
    + Daraus resultiert ein Gesamtvolumen von 56 LVS + (0,5 Faktor x 56 LVS) = 84 LVS.
    + Das Gesamtvolumen steht den beiden Dozierenden zur Aufteilung (nach eigenem Ermessen) zu.
    + Der einzelne Dozent darf sich aber nicht mehr als 56 LVS zurechnen +
  • +
  • Der Basiswert dient nur zur Berechnung des Gesamtvolumens.
    Die tatsächliche LVS bitte in das Feld "Summe eigene Lehrstunden" eintragen!
  • +
+
Aktuelles Gesamtvolumen: 
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
  +   +
+ Exkursionsstunden + +
+ + + + + + + + + + + + + +
Datum:
Beschreibung/Ort:
Stunden:
+

+
+ + + + + + + + + + + + + + + + + + + + + +
Datum von:
Datum bis:
Beschreibung/Ort:
Stunden Anreisetag:
Stunden Ankunftstag:
+
+ + + + +
+ Informationen
+
    +
  • Die Stunden werden mit dem Faktor {$erf_value_exk_faktor} multipliziert, um die LVS zu erhalten.
  • +
  • Tageshöchstsatz liegt bei 10 Std. Das entspricht {$erf_value_exk_max_tag} LVS.
  • +
  • Ganze Tage werden mit dem Höchstsatz {$erf_value_exk_max_tag} LVS berechnet.
  • +
+
+
+ Summe eigene Lehrstunden (LVS) + + + +
  +   +
+ Hinweise + + +
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + + + + + {/if} + {/section} + + + + + +
+ lfd.Nr. + + Studiengang (LV) + + Art der LV + + Titel der Lehrveranstaltung (LV) + + Krankheitsbedingte Merkmale + + gemeinsame LV + + Summe eigene
Lehrstunden (LVS)
+
+ Hinweise + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].studiengang} + + {$table_data2[table_data2].veranstaltung} + + {$table_data2[table_data2].titel} + + {$table_data2[table_data2].krankheitsmerkmal} + + {$table_data2[table_data2].gemlv_form} + + {$table_data2[table_data2].std} + + {$table_data2[table_data2].hinweise} + +   +
 Summe: {$erf_value_summe_jahr} 
+
+ {/if} +
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/erfassen_eingabe.html b/templates/modern/erfassen_eingabe.html new file mode 100755 index 0000000..14df6f3 --- /dev/null +++ b/templates/modern/erfassen_eingabe.html @@ -0,0 +1,585 @@ +{if $action == ''} + + + + + + + + + + + + + + + + +
+
+
+
+
{$erf_titel}
+
+
+
+
+ {if $erf_error == '1'} + + + + + +
+ + Achtung!
+ {$erf_error_text} +
+
+ {/if} + {if $erf_abschluss == '0'} +
+ + Lehrveranstaltung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ {if $erf_studiengang_hig == 1}* {/if}Studiengang{if $erf_studiengang_hig == 1}{/if} + + +
  +   +
+ {if $erf_art_hig == 1}* {/if}Art der LV{if $erf_art_hig == 1}{/if} + + + + +
  +   +
+ {if $erf_titel_hig == 1}* {/if}Titel der Lehrveranstaltung (LV){if $erf_titel_hig == 1}{/if} + + + + + +
  +   +
+ Anzahl der Arbeitsgemeinschaften (AG) + + + +
  +   +
+   + + + + + +
+ Extracurricularer Klausurenkurs
+
    +
  • Es dürfen höchstens {$abschluss_value_max_extracur} Lehrstunden (LVS) pro {$abschluss_einheit_max_extracur} erfasst werden.
  • +
+
+
+
Krankheitsbedingte Merkmale +
+
+ +
  +   +
+
+ Teamteaching + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ gemeinsame LV + + +
+ fachübergreifende LV + + +
+ {if $erf_anzgemlv_hig == 1}* {/if}Anzahl der Lehrenden{if $erf_anzgemlv_hig == 1}{/if} + + +
+ {if $erf_namegemlv_hig == 1}* {/if}Namen der Lehrenden{if $erf_namegemlv_hig == 1}{/if} + + +
+ {if $erf_basislvsgemlv_hig == 1}* {/if}Basiswert (LVS) der LV{if $erf_basislvsgemlv_hig == 1}{/if} + + + + +
+ {if $erf_teamteaching_hig == 1}* {/if}Teachingfaktor{if $erf_teamteaching_hig == 1}{/if} + + +
+   + +   +
+   + + + + + +
+ Gesamtvolumen
+
    +
  • Der Teachingfaktor gibt vor, zu wieviel Prozent einer Lehrveranstaltung Lehrende gemeinsam lehren dürfen.
  • +
  • Bei einem Faktor von 0,5 dürfen also bis zu 50 % einer Veranstaltung von zwei Lehrenden miteinander gestaltet werden.
  • +
  • Bsp: Sind für ein Fachprojekt 56 LVS vorgesehen, gilt der Faktor 0,5.
    + Das bedeutet, dass höchstens 28 LVS gemeinsam gestaltet werden dürfen.
    + Daraus resultiert ein Gesamtvolumen von 56 LVS + (0,5 Faktor x 56 LVS) = 84 LVS.
    + Das Gesamtvolumen steht den beiden Dozierenden zur Aufteilung (nach eigenem Ermessen) zu.
    + Der einzelne Dozent darf sich aber nicht mehr als 56 LVS zurechnen +
  • +
  • Der Basiswert dient nur zur Berechnung des Gesamtvolumens.
    Die tatsächliche LVS bitte in das Feld "Summe eigene Lehrstunden" eintragen!
  • +
+
Aktuelles Gesamtvolumen: 
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
  +   +
+ {if $erf_tage_exkursion_hig == 1}* {/if}Exkursionsstunden{if $erf_tage_exkursion_hig == 1}{/if} + +
+ + + + + + + + + + + + + + +
Datum:
Beschreibung/Ort:
Stunden:
+

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Datum von:
Datum bis:
Beschreibung/Ort:
Stunden Anreisetag:
Stunden Abreisetag:
+
+ + + + +
+ Informationen
+
    +
  • Die Stunden werden mit dem Faktor {$erf_value_exk_faktor} multipliziert, um die LVS zu erhalten.
  • +
  • Tageshöchstsatz liegt bei 10 Std. Das entspricht {$erf_value_exk_max_tag} LVS.
  • +
  • Ganze Tage werden mit dem Höchstsatz {$erf_value_exk_max_tag} LVS berechnet.
  • +
  • Bei mehrtägigen Exkursionen: Geben Sie immer die Stunden am Anreise- und Abreisetag an, sonst werden diese Tage nicht berechnet!
  • +
+
+
+ {if $erf_std_hig == 1}* {/if}Summe eigene Lehrstunden (LVS){if $erf_std_hig == 1}{/if} + + + + +
  +   +
+ Hinweise + + +
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + + + + + {/if} + {/section} + + + + + +
+ lfd.Nr. + + Studiengang (LV) + + Art der LV + + Titel der Lehrveranstaltung (LV) + + Krankheitsbedingte Merkmale + + gemeinsame LV + + Summe eigene
Lehrstunden (LVS)
+
+ Hinweise + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].studiengang} + + {$table_data2[table_data2].veranstaltung} + + {$table_data2[table_data2].titel} + + {$table_data2[table_data2].krankheitsmerkmal} + + {$table_data2[table_data2].gemlv_form} + + {$table_data2[table_data2].std} + + {$table_data2[table_data2].hinweise} + +   +
 Summe: {$erf_value_summe_jahr} 
+
+ {/if} +
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/erfassen_sonstige - Kopie.html b/templates/modern/erfassen_sonstige - Kopie.html new file mode 100755 index 0000000..4b02d2e --- /dev/null +++ b/templates/modern/erfassen_sonstige - Kopie.html @@ -0,0 +1,579 @@ +{if $action == ''} + + + + + + + + + +
+
+
+
+
{$erfs_titel}
+
+
+
+
+ {if $erfs_error == '1'} + + + + + +
+ + Achtung!
+ {$erfs_error_text} +
+
+ {/if} + {if $erfs_abschluss == '0'} +
+ + Lehrveranstaltung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Titel der Lehrveranstaltung (LV) + + + +
  +   +
+ Art der LV + + +
  +   +
+ Summe eigene Lehrstunden (LVS) + + +
  +   +
+ Hinweise + + +
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + + {/if} + {/section} + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Summe eigene Lehrstunden (LVS) + + Hinweise + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].titel} + + {$table_data2[table_data2].veranstaltung} + + {$table_data2[table_data2].lvs} + + {$table_data2[table_data2].hinweise} + + +   + +
 Summe: {$erfs_value_summe_jahr} 
+
+ {/if} +
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/erfassen_sonstige.html b/templates/modern/erfassen_sonstige.html new file mode 100755 index 0000000..57d03f9 --- /dev/null +++ b/templates/modern/erfassen_sonstige.html @@ -0,0 +1,310 @@ +{if $action == ''} + + + + + + + + + + + + + + +
+
+
+
+
{$erfs_titel}
+
+
+
+
+ {if $erfs_error == '1'} + + + + + +
+ + Achtung!
+ {$erfs_error_text} +
+
+ {/if} + {if $erfs_abschluss == '0'} +
+ + Lehrveranstaltung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Titel der Lehrveranstaltung (LV) + + + +
  +   +
+ Art der LV + + +
  +   +
+ Summe eigene Lehrstunden (LVS) + + + +
  +   +
+ Hinweise + + +
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + + {/if} + {/section} + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Summe eigene Lehrstunden (LVS) + + Hinweise + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].titel} + + {$table_data2[table_data2].veranstaltung} + + {$table_data2[table_data2].lvs} + + {$table_data2[table_data2].hinweise} + + +   + +
 Summe: {$erfs_value_summe_jahr} 
+
+ {/if} +
+
+
+ + +{/if} + diff --git a/templates/modern/erm_abordnung.html b/templates/modern/erm_abordnung.html new file mode 100755 index 0000000..3526c88 --- /dev/null +++ b/templates/modern/erm_abordnung.html @@ -0,0 +1,336 @@ +{if $action == ''} + + + + + + + + + + + + + + + + + + + + +
+ + {if $abord_error == '1'} + + + + + +
+ + Achtung!
+ {$abord_error_text} +
+
+ {/if} + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + +
+ Beginn des Forschungssemesters / Praxissemesters / der Abordnungen, falls nicht ganzjährig + + + +
  +   +
+ Ende des Forschungssemesters / Praxissemesters / der Abordnungen, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + + {/if} + {/section} + +
+ lfd.Nr. + + Beginn + + Ende + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].beginn} + + {$table_data2[table_data2].ende} + + +   + +
+
+ +
+
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/erm_abw_lehrbedarf.html b/templates/modern/erm_abw_lehrbedarf.html new file mode 100755 index 0000000..f6ab692 --- /dev/null +++ b/templates/modern/erm_abw_lehrbedarf.html @@ -0,0 +1,307 @@ +{if $action == ''} + + + + + + + + + + + + + + + + + + + + + + + +
+ + {if $abwlehrb_error == '1'} + + + + + +
+ + Achtung!
+ {$abwlehrb_error_text} +
+
+ {/if} + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ Abweichender Lehrbedarf in LVS eintragen + + + +
  +   +
+ Befristung bis: + + +
  +   +
+   + + + + + +
+ Hinweise
+
    +
  • § 6 LVVO regelt einen abweichenden Lehrbedarf.
  • +
  • Der eingegebene Wert wird für die manuelle Berechnung zugrunde gelegt
  • + +
  • Falls die Lehrverpflichtung in Absprache mit dem Dekanat zeitlich befristet erhöht worden ist, bitte das Forumlar ausfüllen und absenden
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + {/if} + {/section} + +
+ lfd.Nr. + + Befristung bis + + Beantragung in LVS + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].ende} + + {$table_data2[table_data2].lvs} + + +   + +
+
+ +
+
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/erm_behinderung.html b/templates/modern/erm_behinderung.html new file mode 100755 index 0000000..eb92df8 --- /dev/null +++ b/templates/modern/erm_behinderung.html @@ -0,0 +1,227 @@ +{if $action == ''} + + + + + + + + + + + + + + + + + +
+ + {if $beh_error == '1'} + + + + + +
+ + Achtung!
+ {$beh_error_text} +
+
+
+ {/if} + +
+ + Höhe der prozentualen Ermäßigung + +
+
+ + + + + + + + + + + + + + + + + +
+ Höhe der Ermäßigung in Prozent angeben.
+ (Von der Personalabteilung gewährte Höhe) +
+ + % +
+ Beginn der Ermäßigung + + +
  +   +
+   + + + + + +
+ Hinweis
+
    +
  • Eine Schwerbehinderung wird monatsgenau gewährt.
  • +
  • Nimmt eine Ermäßigung der Schwerbehinderung zu bzw. ab, ist die Ermäßigung auf Monatsersten zu erfassen.
  • +
  • Die prozentulae Ermäßigung wird mit der LVS verrechnet (594LVS x 12% Ermäßigung aufgrund Behinderung => 522,72 Soll-LVS).
  • +
  • Betrachtet werden Zeiträume des Studienjahres: 01.09 - 31.08
  • +
+
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigung + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + {/if} + {/section} +
+ lfd.Nr. + + Beginn + + Prozent + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].beginn_form} + + {$table_data2[table_data2].behinderungsgrad} % + + +   + {if $table_data2[table_data2].nodel != 1} + + {else} + + + {/if} +
+
+ +
+
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/erm_freist_forschung.html b/templates/modern/erm_freist_forschung.html new file mode 100755 index 0000000..a18ee60 --- /dev/null +++ b/templates/modern/erm_freist_forschung.html @@ -0,0 +1,360 @@ +{if $action == ''} + + + + + + + + + + + + + + + + + + + + + +
+ + {if $freistrekto_error == '1'} + + + + + +
+ + Achtung!
+ {$freistrekto_error_text} +
+
+ {/if} + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + + {/if} + {/section} + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].funktion} + + {$table_data2[table_data2].beginn} + + {$table_data2[table_data2].ende} + + {$table_data2[table_data2].sws} + + +   + +
+
+ +
+
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/erm_freist_funktion - Kopie.html b/templates/modern/erm_freist_funktion - Kopie.html new file mode 100755 index 0000000..6b3481c --- /dev/null +++ b/templates/modern/erm_freist_funktion - Kopie.html @@ -0,0 +1,256 @@ +{if $action == ''} + + + + + + + + + + + + {if $freistrekto_status == 'edit'} + + {/if} + + + +
+ + {if $freistrekto_error == '1'} +
+ + + + + +
+ + Achtung!
+ {$freistrekto_error_text} +
+
+
+ {/if} + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist tagesgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Rechenweg: SWS x Semesterwochen x ausgeübte Tage der Funktion x Anzahl der Tage im Jahr (365 bzw. 366)
  • +
+
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + + {/if} + {/section} + + + + + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Ermäßigung LVS + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].funktion} + + {$table_data2[table_data2].beginn} + + {$table_data2[table_data2].ende} + + {$table_data2[table_data2].sws} + + {$table_data2[table_data2].lvs} + + +   + +
 Summe: {$freistrekto_value_summe_jahr} 
+
+ +
+
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/erm_freist_funktion.html b/templates/modern/erm_freist_funktion.html new file mode 100755 index 0000000..a18ee60 --- /dev/null +++ b/templates/modern/erm_freist_funktion.html @@ -0,0 +1,360 @@ +{if $action == ''} + + + + + + + + + + + + + + + + + + + + + +
+ + {if $freistrekto_error == '1'} + + + + + +
+ + Achtung!
+ {$freistrekto_error_text} +
+
+ {/if} + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + + {/if} + {/section} + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].funktion} + + {$table_data2[table_data2].beginn} + + {$table_data2[table_data2].ende} + + {$table_data2[table_data2].sws} + + +   + +
+
+ +
+
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/erm_freist_rektorat_dekanat.html b/templates/modern/erm_freist_rektorat_dekanat.html new file mode 100755 index 0000000..a18ee60 --- /dev/null +++ b/templates/modern/erm_freist_rektorat_dekanat.html @@ -0,0 +1,360 @@ +{if $action == ''} + + + + + + + + + + + + + + + + + + + + + +
+ + {if $freistrekto_error == '1'} + + + + + +
+ + Achtung!
+ {$freistrekto_error_text} +
+
+ {/if} + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + + {/if} + {/section} + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].funktion} + + {$table_data2[table_data2].beginn} + + {$table_data2[table_data2].ende} + + {$table_data2[table_data2].sws} + + +   + +
+
+ +
+
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/erm_mutterschutz.html b/templates/modern/erm_mutterschutz.html new file mode 100755 index 0000000..ec128e6 --- /dev/null +++ b/templates/modern/erm_mutterschutz.html @@ -0,0 +1,172 @@ +{if $action == ''} + + + + + + + + + + + + + + + {if $muschu_status == 'edit'} + + {/if} + + + +
+ + {if $muschu_error == '1'} + + + + + +
+ + Achtung!
+ {$muschu_error_text} +
+
+ {/if} + +
+ + Mutterschutz/Elternzeit erfassen + +
+
+ + + + + + +
+   + + + + + +
+ Hinweis
+
    +
  • Das Dekanat wird sich mit Ihnen bezüglich der Berechnung Ihrer LVS aufgrund Ihrer Mutterschutz/Elterzeiten in Verbindung setzen + und mit Ihnen die Berechnung besprechen.
  • +
  • Danach wird die LVS-Stundenanzahl aufgrund Ihrer Mutterschutz/Elternzeit in das Programm vom Dekanat eingetragen.
  • +
+
+ +
+
+
+
+

+ {if $muschu_erf == 1} + + {elseif $muschu_erf == 2} + + {else} + + {/if} +

+
+
+
+
+
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/erm_ruhestand.html b/templates/modern/erm_ruhestand.html new file mode 100755 index 0000000..f975cec --- /dev/null +++ b/templates/modern/erm_ruhestand.html @@ -0,0 +1,287 @@ +{if $action == ''} + + + + + + + + + + + + + + + + + + + + +
+ + {if $ruhestand_error == '1'} + + + + + +
+ + Achtung!
+ {$ruhestand_error_text} +
+
+ {/if} + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + +
+ Letzter Arbeitstag (Monatsende): + + + +
  +   +
+   + + + + + +
+ Hinweise
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Professoren*Professorinnen gehen immer zu Semesterende in Pension (entweder 31.08. oder 28.02.)
  • +
  • Dauerhaft abgeordnete Dozierende können immer zum Monatsende in Pension eintreten.
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + {/if} + {/section} + +
+ lfd.Nr. + + Letzter Arbeitstag + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].beginn} + + +   + +
+
+ +
+
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/erm_teilzeit.html b/templates/modern/erm_teilzeit.html new file mode 100755 index 0000000..0eb112c --- /dev/null +++ b/templates/modern/erm_teilzeit.html @@ -0,0 +1,228 @@ +{if $action == ''} + + + + + + + + + + + +
+ + {if $tz_error == '1'} + + + + + +
+ + Achtung!
+ {$tz_error_text} +
+
+
+ {/if} + +
+ + Teilzeit erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ Prozent + + +
  +   +
+ Beginn der Teilzeit + + +
  +   +
+   + + + + + +
+ Hinweis
+
    +
  • Eine ältere Teilzeit endet dann, wenn eine neue Teilzeit erfasst wird.
  • +
  • Es wird immer der Monatserste als Beginntag festgelegt!
  • +
  • Betrachtet werden Zeiträume des Studienjahres: 01.09 - 31.08
  • +
+
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Teilzeit + +
+ Basiswert der Lehrveranstaltungsstunden in diesem Studienjahr: {$tz_baselvs} +
+ + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + {/if} + {/section} + +
+ lfd.Nr. + + Beginn + + Prozent + + Edit +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].beginn_form} + + {$table_data2[table_data2].prozent} % + + +   + +
+
+ +
+
+
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/ermaessigung.html b/templates/modern/ermaessigung.html new file mode 100755 index 0000000..8b96be7 --- /dev/null +++ b/templates/modern/ermaessigung.html @@ -0,0 +1,139 @@ + + + + + + + + + +
+
+
+
+
Ermäßigungen {$erm_jahrgang}
+
+
+
+ {if $erm_error == '1'} + + + + + +
+ + Achtung!
+ {$erm_error_text} +
+
+ {/if} + {if $erm_abschluss == '0'} +

Indem Sie auf die Überschriften klicken können Sie die Teilbereiche auf- und zuklappen.

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ {/if} +
+
+
+ + + + + \ No newline at end of file diff --git a/templates/modern/freischaltung.html b/templates/modern/freischaltung.html new file mode 100755 index 0000000..f447fb9 --- /dev/null +++ b/templates/modern/freischaltung.html @@ -0,0 +1,118 @@ +{if $action == ''} + + + + + + +
+
+
+
+
{$access_titel}
+
+
+
+
+ +
+ + Dozenten hinzufügen (Diese können sich am System anmelden) + +
+
+ + + + + + + + + + + + +
+ {$access_mitgl_ausw} + + +
+   +
+   + + +
+
+
+ +
+ +
+
+
+ + Dozenten im System + + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + {/if} + {/section} +
+ Anrede + + Name + + Vorname + + Benutzerkennung + + Fakultät + + Löschen +
+ + + {$table_data2[table_data2].nachname} + + {$table_data2[table_data2].vorname} + + {$table_data2[table_data2].uid} + + + + +
+
+
+
+
+ + + +{/if} \ No newline at end of file diff --git a/templates/modern/hauptframe.html b/templates/modern/hauptframe.html new file mode 100755 index 0000000..c9c1e7c --- /dev/null +++ b/templates/modern/hauptframe.html @@ -0,0 +1,31 @@ + + +{$hauptframe_titel} + + + + + +
+
+
{$global_titel}
+
+
+ +
+

+ + + + +
+ {$hauptframe_text1} {$hauptframe_cur_jahrgang}/{$hauptframe_cur_jahrgang+1} +
+
+
+ {$hauptframe_text2} +
+

+ + + \ No newline at end of file diff --git a/templates/modern/hauptframe_admin.html b/templates/modern/hauptframe_admin.html new file mode 100755 index 0000000..29aea12 --- /dev/null +++ b/templates/modern/hauptframe_admin.html @@ -0,0 +1,31 @@ + + +{$hauptframe_admin_titel} + + + + + +
+
+
{$hauptframe_admin_titel}
+
+
+ +
+

+ + + + +
+ {$hauptframe_admin_text1} +
+
+
+ {$hauptframe_admin_text2} +
+

+ + + \ No newline at end of file diff --git a/templates/modern/hauptframe_eingabe.html b/templates/modern/hauptframe_eingabe.html new file mode 100755 index 0000000..243a2a5 --- /dev/null +++ b/templates/modern/hauptframe_eingabe.html @@ -0,0 +1,31 @@ + + +{$hauptframe_eingabe_titel} + + + + + +
+
+
{$hauptframe_eingabe_titel}
+
+
+ +
+

+ + + + +
+ {$hauptframe_eingabe_text1} {$hauptframe_eingabe_cur_jahrgang}/{$hauptframe_eingabe_cur_jahrgang+1} +
+
+
+ {$hauptframe_eingabe_text2} +
+

+ + + \ No newline at end of file diff --git a/templates/modern/images/Thumbs.db b/templates/modern/images/Thumbs.db new file mode 100755 index 0000000..3f96765 Binary files /dev/null and b/templates/modern/images/Thumbs.db differ diff --git a/templates/modern/images/accord/item-right.png b/templates/modern/images/accord/item-right.png new file mode 100755 index 0000000..810c135 Binary files /dev/null and b/templates/modern/images/accord/item-right.png differ diff --git a/templates/modern/images/accord/item.png b/templates/modern/images/accord/item.png new file mode 100755 index 0000000..b2a0b57 Binary files /dev/null and b/templates/modern/images/accord/item.png differ diff --git a/templates/modern/images/accord/mo-item-right.png b/templates/modern/images/accord/mo-item-right.png new file mode 100755 index 0000000..089f9a8 Binary files /dev/null and b/templates/modern/images/accord/mo-item-right.png differ diff --git a/templates/modern/images/accord/mo-item.png b/templates/modern/images/accord/mo-item.png new file mode 100755 index 0000000..2242295 Binary files /dev/null and b/templates/modern/images/accord/mo-item.png differ diff --git a/templates/modern/images/backgr/Thumbs.db b/templates/modern/images/backgr/Thumbs.db new file mode 100755 index 0000000..04bf10f Binary files /dev/null and b/templates/modern/images/backgr/Thumbs.db differ diff --git a/templates/modern/images/backgr/ground.png b/templates/modern/images/backgr/ground.png new file mode 100755 index 0000000..2372997 Binary files /dev/null and b/templates/modern/images/backgr/ground.png differ diff --git a/templates/modern/images/backgr/sprites_general_1.png b/templates/modern/images/backgr/sprites_general_1.png new file mode 100755 index 0000000..1f291c0 Binary files /dev/null and b/templates/modern/images/backgr/sprites_general_1.png differ diff --git a/templates/modern/images/backgr/sprites_general_2.png b/templates/modern/images/backgr/sprites_general_2.png new file mode 100755 index 0000000..f601cfb Binary files /dev/null and b/templates/modern/images/backgr/sprites_general_2.png differ diff --git a/templates/modern/images/backgr/sprites_general_home_2.png b/templates/modern/images/backgr/sprites_general_home_2.png new file mode 100755 index 0000000..9fb5f56 Binary files /dev/null and b/templates/modern/images/backgr/sprites_general_home_2.png differ diff --git a/templates/modern/images/box-u.png b/templates/modern/images/box-u.png new file mode 100755 index 0000000..68ae92c Binary files /dev/null and b/templates/modern/images/box-u.png differ diff --git a/templates/modern/images/button/square-blue-left.gif b/templates/modern/images/button/square-blue-left.gif new file mode 100755 index 0000000..cbbc1aa Binary files /dev/null and b/templates/modern/images/button/square-blue-left.gif differ diff --git a/templates/modern/images/button/square-blue-right.gif b/templates/modern/images/button/square-blue-right.gif new file mode 100755 index 0000000..7f5a467 Binary files /dev/null and b/templates/modern/images/button/square-blue-right.gif differ diff --git a/templates/modern/images/button/square-gray-left.gif b/templates/modern/images/button/square-gray-left.gif new file mode 100755 index 0000000..bd6523d Binary files /dev/null and b/templates/modern/images/button/square-gray-left.gif differ diff --git a/templates/modern/images/button/square-gray-right.gif b/templates/modern/images/button/square-gray-right.gif new file mode 100755 index 0000000..27ebea4 Binary files /dev/null and b/templates/modern/images/button/square-gray-right.gif differ diff --git a/templates/modern/images/button/square-green-left.gif b/templates/modern/images/button/square-green-left.gif new file mode 100755 index 0000000..98a6ad9 Binary files /dev/null and b/templates/modern/images/button/square-green-left.gif differ diff --git a/templates/modern/images/button/square-green-right.gif b/templates/modern/images/button/square-green-right.gif new file mode 100755 index 0000000..b1c6c38 Binary files /dev/null and b/templates/modern/images/button/square-green-right.gif differ diff --git a/templates/modern/images/button/square-orange-left.gif b/templates/modern/images/button/square-orange-left.gif new file mode 100755 index 0000000..81b3cf8 Binary files /dev/null and b/templates/modern/images/button/square-orange-left.gif differ diff --git a/templates/modern/images/button/square-orange-right.gif b/templates/modern/images/button/square-orange-right.gif new file mode 100755 index 0000000..9204af5 Binary files /dev/null and b/templates/modern/images/button/square-orange-right.gif differ diff --git a/templates/modern/images/button/square-red-left.gif b/templates/modern/images/button/square-red-left.gif new file mode 100755 index 0000000..14e4ad4 Binary files /dev/null and b/templates/modern/images/button/square-red-left.gif differ diff --git a/templates/modern/images/button/square-red-right.gif b/templates/modern/images/button/square-red-right.gif new file mode 100755 index 0000000..02cb76a Binary files /dev/null and b/templates/modern/images/button/square-red-right.gif differ diff --git a/templates/modern/images/center.png b/templates/modern/images/center.png new file mode 100755 index 0000000..86841e1 Binary files /dev/null and b/templates/modern/images/center.png differ diff --git a/templates/modern/images/cross.jpg b/templates/modern/images/cross.jpg new file mode 100755 index 0000000..49832ed Binary files /dev/null and b/templates/modern/images/cross.jpg differ diff --git a/templates/modern/images/deputat_icon.svg b/templates/modern/images/deputat_icon.svg new file mode 100755 index 0000000..0f7bab1 --- /dev/null +++ b/templates/modern/images/deputat_icon.svg @@ -0,0 +1,53 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/templates/modern/images/drop.png b/templates/modern/images/drop.png new file mode 100755 index 0000000..6fc4d3b Binary files /dev/null and b/templates/modern/images/drop.png differ diff --git a/templates/modern/images/drop2.png b/templates/modern/images/drop2.png new file mode 100755 index 0000000..2126c96 Binary files /dev/null and b/templates/modern/images/drop2.png differ diff --git a/templates/modern/images/drop2_grey.png b/templates/modern/images/drop2_grey.png new file mode 100755 index 0000000..390c8b2 Binary files /dev/null and b/templates/modern/images/drop2_grey.png differ diff --git a/templates/modern/images/drop_grey.png b/templates/modern/images/drop_grey.png new file mode 100755 index 0000000..1a769f7 Binary files /dev/null and b/templates/modern/images/drop_grey.png differ diff --git a/templates/modern/images/edit.png b/templates/modern/images/edit.png new file mode 100755 index 0000000..05711a0 Binary files /dev/null and b/templates/modern/images/edit.png differ diff --git a/templates/modern/images/edit_grey.png b/templates/modern/images/edit_grey.png new file mode 100755 index 0000000..2a146c8 Binary files /dev/null and b/templates/modern/images/edit_grey.png differ diff --git a/templates/modern/images/hakengruen.png b/templates/modern/images/hakengruen.png new file mode 100755 index 0000000..c29abf1 Binary files /dev/null and b/templates/modern/images/hakengruen.png differ diff --git a/templates/modern/images/hakenrot.png b/templates/modern/images/hakenrot.png new file mode 100755 index 0000000..c36deb2 Binary files /dev/null and b/templates/modern/images/hakenrot.png differ diff --git a/templates/modern/images/i.jpg b/templates/modern/images/i.jpg new file mode 100755 index 0000000..406b20b Binary files /dev/null and b/templates/modern/images/i.jpg differ diff --git a/templates/modern/images/ico_pdf.gif b/templates/modern/images/ico_pdf.gif new file mode 100755 index 0000000..d76e065 Binary files /dev/null and b/templates/modern/images/ico_pdf.gif differ diff --git a/templates/modern/images/ja.gif b/templates/modern/images/ja.gif new file mode 100755 index 0000000..d54c74b Binary files /dev/null and b/templates/modern/images/ja.gif differ diff --git a/templates/modern/images/left.png b/templates/modern/images/left.png new file mode 100755 index 0000000..cb71d8d Binary files /dev/null and b/templates/modern/images/left.png differ diff --git a/templates/modern/images/leiste-u.cpt b/templates/modern/images/leiste-u.cpt new file mode 100755 index 0000000..33abb5c Binary files /dev/null and b/templates/modern/images/leiste-u.cpt differ diff --git a/templates/modern/images/mail_icon.jpg b/templates/modern/images/mail_icon.jpg new file mode 100755 index 0000000..3cb792f Binary files /dev/null and b/templates/modern/images/mail_icon.jpg differ diff --git a/templates/modern/images/message_login.gif b/templates/modern/images/message_login.gif new file mode 100755 index 0000000..a27692f Binary files /dev/null and b/templates/modern/images/message_login.gif differ diff --git a/templates/modern/images/message_login2.gif b/templates/modern/images/message_login2.gif new file mode 100755 index 0000000..1fd92ae Binary files /dev/null and b/templates/modern/images/message_login2.gif differ diff --git a/templates/modern/images/nein.gif b/templates/modern/images/nein.gif new file mode 100755 index 0000000..c5828cc Binary files /dev/null and b/templates/modern/images/nein.gif differ diff --git a/templates/modern/images/pflichtfelder/achtung_gross.gif b/templates/modern/images/pflichtfelder/achtung_gross.gif new file mode 100755 index 0000000..6051186 Binary files /dev/null and b/templates/modern/images/pflichtfelder/achtung_gross.gif differ diff --git a/templates/modern/images/pflichtfelder/achtung_klein.gif b/templates/modern/images/pflichtfelder/achtung_klein.gif new file mode 100755 index 0000000..a392f8b Binary files /dev/null and b/templates/modern/images/pflichtfelder/achtung_klein.gif differ diff --git a/templates/modern/images/right.png b/templates/modern/images/right.png new file mode 100755 index 0000000..2c1d428 Binary files /dev/null and b/templates/modern/images/right.png differ diff --git a/templates/modern/images/tab-box-u.png b/templates/modern/images/tab-box-u.png new file mode 100755 index 0000000..dc01095 Binary files /dev/null and b/templates/modern/images/tab-box-u.png differ diff --git a/templates/modern/images/tabs/tab-blue-left.cpt b/templates/modern/images/tabs/tab-blue-left.cpt new file mode 100755 index 0000000..29cadcc Binary files /dev/null and b/templates/modern/images/tabs/tab-blue-left.cpt differ diff --git a/templates/modern/images/tabs/tab-blue-left.gif b/templates/modern/images/tabs/tab-blue-left.gif new file mode 100755 index 0000000..f8579db Binary files /dev/null and b/templates/modern/images/tabs/tab-blue-left.gif differ diff --git a/templates/modern/images/tabs/tab-blue-right.cpt b/templates/modern/images/tabs/tab-blue-right.cpt new file mode 100755 index 0000000..1e9902b Binary files /dev/null and b/templates/modern/images/tabs/tab-blue-right.cpt differ diff --git a/templates/modern/images/tabs/tab-blue-right.gif b/templates/modern/images/tabs/tab-blue-right.gif new file mode 100755 index 0000000..749e97d Binary files /dev/null and b/templates/modern/images/tabs/tab-blue-right.gif differ diff --git a/templates/modern/index.html b/templates/modern/index.html new file mode 100755 index 0000000..200abb9 --- /dev/null +++ b/templates/modern/index.html @@ -0,0 +1,127 @@ + +{if $action == ''} + + + {$index_titel} + + + + + + + + + + + + + + + + + + + + + +
+   + +
+
+
{$index_titel}
+
+
+
+

+ {if $index_error == '1'} + + + + + +
+ + Achtung!
+ {$index_error_text} +
+
+ {/if} + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ {$index_field_user} + +
+ {$index_field_pass} + +
+   +
+   + + +
+
+

+ {$index_register} + +

+
+
+ + +
+
+   +
+ + + +{/if} \ No newline at end of file diff --git a/templates/modern/indexframe.html b/templates/modern/indexframe.html new file mode 100755 index 0000000..f0638d4 --- /dev/null +++ b/templates/modern/indexframe.html @@ -0,0 +1,23 @@ + + +{$global_titel} + + + + + + + + + + + +<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> + +<p>To view this page correctly, you need a Web browser that supports frames.</p> + +</body> + + + \ No newline at end of file diff --git a/templates/modern/jahresabschluss.html b/templates/modern/jahresabschluss.html new file mode 100755 index 0000000..6491b3e --- /dev/null +++ b/templates/modern/jahresabschluss.html @@ -0,0 +1,650 @@ +{if $action == ''} + + + + + + +
+
+
+
+
{$jaabschl_titel} {$jaabschl_jahrgang}
+
+
+
+
+ {if $jaabschl_error == '1'} + + + + + +
+ + Achtung!
+ {$jaabschl_error_text} +
+ {/if} +
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + + + {section name=table_data0 loop=$table_data0} + {if $smarty.section.table_data0.rownum != ''} + + + + + + + + + + + + + {/if} + {/section} + + + + + + + + + +
+ lfd.Nr. + + Art + + Hinweis + + Beginn + + Ende + + Berechnungszeitraum + + SWS + + Ermäßigung in LVS + + Berechnung (Soll-LVS: {$erf_value_soll_lvs}) +
+ {$smarty.section.table_data0.rownum} + + {$table_data0[table_data0].art} + + {$table_data0[table_data0].hinweis} + + {$table_data0[table_data0].beginn_form} + + {$table_data0[table_data0].ende_form} + + {if $table_data0[table_data0].monate > 0} + {$table_data0[table_data0].monate} Monat(e) + {/if} + {if $table_data0[table_data0].tage > 0} + {$table_data0[table_data0].tage} Tag(e) + {/if} + + {$table_data0[table_data0].sws} + + {$table_data0[table_data0].anz_lvs} + + {$table_data0[table_data0].cur_lvs} - {$table_data0[table_data0].ber_lvs} = {$table_data0[table_data0].erg_lvs} +
  + Summe: {$erf_value_summe_jahr_erm} + + Zu leistende LVS: {$erf_value_zu_leisten}
+ (Rechenweg: {$erf_value_soll_lvs} - {$erf_value_summe_jahr_erm}) +
+
+
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + + {section name=table_data1 loop=$table_data1} + {if $smarty.section.table_data1.rownum != ''} + + + + + + + + + + + {/if} + {/section} + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Krankheitsbedingte Merkmale + + gemeinsame LV + + Summe eigene Lehrstunden (LVS) + + Hinweise +
+ {$smarty.section.table_data1.rownum} + + {$table_data1[table_data1].titel} + + {$table_data1[table_data1].veranstaltung} + + {$table_data1[table_data1].krankheitsmerkmal} + + {$table_data1[table_data1].gemlv_form} + + {$table_data1[table_data1].std} + + {$table_data1[table_data1].hinweise} +
 Summe: {$erf_value_summe_jahr} 
+
+
+
+
+ + Sonstige Lehrveranstaltungen + + + + + + + + + + {section name=table_data2 loop=$table_data2} + {if $smarty.section.table_data2.rownum != ''} + + + + + + + + + {/if} + {/section} + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Summe eigene Lehrstunden (LVS) + + Hinweise +
+ {$smarty.section.table_data2.rownum} + + {$table_data2[table_data2].titel} + + {$table_data2[table_data2].veranstaltung} + + {$table_data2[table_data2].lvs} + + {$table_data2[table_data2].hinweise} +
 Summe: {$erfs_value_summe_jahr} 
+
+
+
+
+ + Erfasste Abschlussarbeiten + + + + + + + + + + + {section name=table_data3 loop=$table_data3} + {if $smarty.section.table_data3.rownum != ''} + + + + + + + + + {/if} + {/section} + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + LVS + +   +
+ {$smarty.section.table_data3.rownum} + + {$table_data3[table_data3].name} + + {$table_data3[table_data3].abschlussarbeit} + + {$table_data3[table_data3].semesterbez} + + {$table_data3[table_data3].lvs} + +   +
 Summe: {$abschluss_value_summe_lvs} 
+
+
+
+
+ + Gesamtbetrachtung + + + + + + + + + + + + + + + + + + + + + + +
+ Erfasste Deputate + + {$erf_value_summe_jahr} +  
+ Sonstige Deputate + + {$erfs_value_summe_jahr} +  
+ Erfasste Abschlussarbeiten + + {$abschluss_value_summe_lvs} +  
+ Jahressumme + + {$abschluss_gesamt} +  
+
+
+
+
+ + Synopse {$jaabschl_jahrgang} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {section name=table_data4 loop=$table_data4} + + + + + + + + + + + + + {/section} + +
+ Jahr + + Anfangsstand + + Deputatsumme Soll + + Deputatsumme Ist + + Über-/Unterdeputat im aktuellen Jahr + + Abbau Unterdeputat durch Überdeputat Vorjahre + + Verfall aus Jahr + + Verfallene Std + + Über- Unterdeputat des Jahres + + Übertrag Folgejahr +
+ {$jaabschl_jahrgang} + + {$jaabschl_endwert_vorjahr} + + {$jaabschl_soll} + + {$jaabschl_ist} + + {$jaabschl_uber_unter_jahr} + + {$jaabschl_abbau_jahr} + + {$jaabschl_verfall_jahr} + + {$jaabschl_dep_verfall} + + {$jaabschl_dep_gesamt} + + {$jaabschl_dep_gesamt_nach_verfall} +
+
+ Veränderungen der Vorjahre durch das aktuelle Jahr +
+ Jahr + + Jahresendstand bisher + + Deputatsumme Soll + + Deputatsumme Ist + + Über-/Unterdeputat im aktuellen Jahr + + Abbau Unterdeputat durch Überdeputat Vorjahre + + Verfall aus Jahr + + Verfallene Std + + Über- Unterdeputat des Jahres alt + + Über- Unterdeputat des Jahres neu +
+ {$table_data4[table_data4].vorjahr} + + {$table_data4[table_data4].dep_gesamt_nach_verfall} + + {$table_data4[table_data4].soll} + + {$table_data4[table_data4].ist} + + {$table_data4[table_data4].uber_unter_jahr} + + {$table_data4[table_data4].differenz} + + {$table_data4[table_data4].dep_verfall_jahr} + + {$table_data4[table_data4].dep_verfall} + + {$table_data4[table_data4].dep_gesamt} + + {$table_data4[table_data4].endwert} +
+
+
+ {if $jaabschl_closed == 0} + + + + + + +
+  Studienjahr abschließen und absenden  +
+ {/if} +
+
+ + +{/if} +{if $action == 'abschluss'} + + + + + +
+
+
+
+
Jahrgang abschließen
+
+
+ +
+

+Sind Sie sicher, dass sie das aktuelle Jahr {$jaabschl_jahrgang} abschließen möchten? +
+Danach sind keine Änderungen mehr möglich! +
+
+  +

+
+ + +
+
+ + +{/if} +{if $action == 'abschluss2'} + + + + + +
+
+
+
+
Jahrgang abschließen
+
+
+
+
+

+ Der Jahrgang {$jaabschl_jahrgang} wurde gespeichert! +
+
+

+
+ + +
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/jahrgang.html b/templates/modern/jahrgang.html new file mode 100755 index 0000000..661fffb --- /dev/null +++ b/templates/modern/jahrgang.html @@ -0,0 +1,34 @@ +{if $action== ''} + + + + + +
+
+
+
+
{$jahrgang_titel}
+
+
+
+
+

+ +
+
+

+ +
+ + +
+
+ + +{/if} \ No newline at end of file diff --git a/templates/modern/js/accordion.js b/templates/modern/js/accordion.js new file mode 100755 index 0000000..04e9e7d --- /dev/null +++ b/templates/modern/js/accordion.js @@ -0,0 +1,13 @@ +$(document).ready(function(){ + + $(".accordion2 h3").eq(0).addClass("active"); + $(".accordion2 ul").eq(0).show(); + + $(".accordion2 h3").click(function(){ + $(this).next("ul").slideToggle(400) //auch "fast" und "slow" m?ich, oder den Wert in ms + .siblings("ul:visible").slideUp(400); //auch "fast" und "slow" m?ich, oder den Wert in ms + $(this).toggleClass("active"); + $(this).siblings("h3").removeClass("active"); + }); + +}); \ No newline at end of file diff --git a/templates/modern/js/ajaxtabs.js b/templates/modern/js/ajaxtabs.js new file mode 100755 index 0000000..f14088e --- /dev/null +++ b/templates/modern/js/ajaxtabs.js @@ -0,0 +1,230 @@ +//** Ajax Tabs Content script v2.0- Dynamic Drive DHTML code library (https://www.dynamicdrive.com) +//** Updated Oct 21st, 07 to version 2.0. Contains numerous improvements +//** Updated Feb 18th, 08 to version 2.1: Adds a public "tabinstance.cycleit(dir)" method to cycle forward or backward between tabs dynamically. Only .js file changed from v2.0. +//** Updated April 8th, 08 to version 2.2: +// -Adds support for expanding a tab using a URL parameter (ie: https://mysite.com/tabcontent.htm?tabinterfaceid=0) +// -Modified Ajax routine so testing the script out locally in IE7 now works + +var ddajaxtabssettings={} +ddajaxtabssettings.bustcachevar=1 //bust potential caching of external pages after initial request? (1=yes, 0=no) +ddajaxtabssettings.loadstatustext="" + + +////NO NEED TO EDIT BELOW//////////////////////// + + + +function ddajaxtabs(tabinterfaceid, contentdivid){ + this.tabinterfaceid=tabinterfaceid //ID of Tab Menu main container + this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a") //Get all tab links within container + this.enabletabpersistence=true + this.hottabspositions=[] //Array to store position of tabs that have a "rel" attr defined, relative to all tab links, within container + this.currentTabIndex=0 //Index of currently selected hot tab (tab with sub content) within hottabspositions[] array + this.contentdivid=contentdivid + + this.defaultHTML="" + this.defaultIframe='' + this.defaultIframe=this.defaultIframe.replace(/ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ + +> + var acc = document.getElementsByClassName("accordion"); + var i; + + for (i = 0; i < acc.length; i++) { + acc[i].addEventListener("click", function() { + this.classList.toggle("active"); + var panel = this.nextElementSibling; + if (panel.style.maxHeight){ + panel.style.maxHeight = null; + } else { + panel.style.maxHeight = panel.scrollHeight + "px"; + } + }); + } + +> + +>iFrameResize({ + log : false, // Enable console logging + heightCalculationMethod : 'documentElementOffset', + autoResize : true, + scrolling : true, + tolerance : 1000, + sizeHeight : true, + }); +> + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62b9b321876b87_36837632', + 'file_dependency' => + array ( + '048dc9555eac9fdbacf2cb730d8717ea9d6d2344' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\menu_eingabe.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62b9b321876b87_36837632 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + +Menu + + + type="text/javascript" src="templates/tpl_vars['global_template']->value;?> +/js/jquery.js"> +> + + type="text/javascript" src="templates/tpl_vars['global_template']->value;?> +/js/accordion.js"> +> + + type="text/javascript" src="livesearch/ajax.js"> +> + + type="text/javascript" src="livesearch/ajax-dynamic-list.js"> +> + + + + +
+ + +
+ + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62e27b32399598_40083610', + 'file_dependency' => + array ( + '0604a69f128a80df368d8ed2e6788c4d3efc77c4' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/menu_eingabe.html', + 1 => 1659009819, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62e27b32399598_40083610 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + +Menu + + + type="text/javascript" src="templates/tpl_vars['global_template']->value;?> +/js/jquery.js"> +> + + type="text/javascript" src="templates/tpl_vars['global_template']->value;?> +/js/accordion.js"> +> + + type="text/javascript" src="livesearch/ajax.js"> +> + + type="text/javascript" src="livesearch/ajax-dynamic-list.js"> +> + + + + +
+ + +
+ + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5aab91fcc25b39_43029372', + 'file_dependency' => + array ( + '09c365e9363209630a38920452fd9d0dc5e8ff3e' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\freischaltung.html', + 1 => 1521021772, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5aab91fcc25b39_43029372 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + +
+
+
+
+
tpl_vars['access_titel']->value;?> +
+
+
+
+
+ +
+ + Dozenten hinzufügen (Diese können sich am System anmelden) + +
+
+ + + + + + + + + + + + +
';?> + tpl_vars['access_mitgl_ausw']->value;?> + + + +
+   +
';?> +   + + +
+
+
+ +
+ +
+
+
+ + Dozenten im System + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> +
';?> + Anrede + ';?> + Name + ';?> + Vorname + ';?> + Benutzerkennung + ';?> + Fakultät + ';?> + Löschen +
';?> + + ';?> + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['nachname'];?> + + ';?> + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['vorname'];?> + + ';?> + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['uid'];?> + + ';?> + + ';?> + +
+
+
+
+
+ + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d8eb3ac7e9e4_11314134', + 'file_dependency' => + array ( + '0dddb66528030c9a11c7b96a258999a643698e2e' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/erm_freist_forschung.html', + 1 => 1656405946, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d8eb3ac7e9e4_11314134 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.5, + numberFormat: "i", + min:0, + max:25, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['freistrekto_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['freistrekto_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['funktion'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_6298430e891475_15712244', + 'file_dependency' => + array ( + '0f666404f4bef42d1bc1d442f008d07b43fa1202' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\abschlussarbeiten.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_6298430e891475_15712244 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + change: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + spin: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + start: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + stop: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + + step: 0.1, + numberFormat: "i", + min:0, + decimals:0 + }); + Globalize.culture( "de-DE" ); + } ); + + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + +> + function felder_einblenden() { + /* Bei Master darf eine Betreuungspauschle eingegeben werden */ + if (document.getElementById("kaid").value == "2") { + // + }else{ + // + } + } + +> + + +
+
+
+
+
tpl_vars['abschluss_titel']->value;?> +
+
+
+
+
+ tpl_vars['abschluss_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['abschluss_error_text']->value;?> + +
+
+ + tpl_vars['abschluss_abschluss']->value == '0') {?> +
+ + Abschlussarbeit erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ Name des Studierenden + + +
+ Art der Abschlussarbeit + + +
+ Betreuungspauschale (LVS) + + +
+   + +   +
+ Semester + + +
+   + +
+ + + + +
+ Informationen
+
    +
  • Es können höchstens tpl_vars['abschluss_value_max_arbeiten']->value;?> + Abschlussarbeiten pro Semester erfasst werden.
  • +
+
+
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Abschlussarbeiten im Wintersemester + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + Betreuungspauschale + + LVS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['name'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['abschlussarbeit'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['semesterbez'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['pauschale'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['daid'];?> +> +   + +
 Summe: tpl_vars['abschluss_value_ws_summe_lvs']->value;?> + 
+
+
+
+ + Erfasste Abschlussarbeiten im Sommersemester + + + + + + + + + + + + tpl_vars['__smarty_section_table_data3']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3'] : false; +$__section_table_data3_2_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data3']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data3_2_total = $__section_table_data3_2_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data3'] = new Smarty_Variable(array()); +if ($__section_table_data3_2_total != 0) { +for ($__section_table_data3_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] = 0; $__section_table_data3_2_iteration <= $__section_table_data3_2_total; $__section_table_data3_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] = $__section_table_data3_2_iteration; +?> + tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data3'] = $__section_table_data3_2_saved; +} +?> + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + Betreuungspauschale + + LVS + + Edit +
+ tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null);?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['name'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['abschlussarbeit'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['semesterbez'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['pauschale'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['daid'];?> +> +   + +
 Summe: tpl_vars['abschluss_value_ss_summe_lvs']->value;?> + 
+
+ +
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc3b670c02e01_90885180', + 'file_dependency' => + array ( + '1002c6e80a3b99c2ce984cf946c69880ce0fc00b' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/hauptframe.html', + 1 => 1523279530, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc3b670c02e01_90885180 ($_smarty_tpl) { +?> + + +<?php echo $_smarty_tpl->tpl_vars['hauptframe_titel']->value;?> + + + + + + +
+
+
tpl_vars['global_titel']->value;?> +
+
+
+ +
+

+ + + + +
+ tpl_vars['hauptframe_text1']->value;?> + tpl_vars['hauptframe_cur_jahrgang']->value;?> +/tpl_vars['hauptframe_cur_jahrgang']->value+1;?> + +
+
+
+ tpl_vars['hauptframe_text2']->value;?> + +
+

+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc3b6733ea5c6_29567260', + 'file_dependency' => + array ( + '1737584bde5dceaf44bccc0a6e1015da2a0e8e49' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/jahrgang.html', + 1 => 1561639084, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc3b6733ea5c6_29567260 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + +
+
+
+
+
tpl_vars['jahrgang_titel']->value;?> +
+
+
+
+
+

+ +
+
+

+ +
+ + +
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d7b3b081d1c30_80129803', + 'file_dependency' => + array ( + '1bba41cd56a02be8ccd960f01fafed0ff4c560cf' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\erm_freist_rektorat_dekanat.html', + 1 => 1568357121, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d7b3b081d1c30_80129803 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + change: function (event, ui) { + calc_erm_78(); + }, + spin: function (event, ui) { + calc_erm_78(); + }, + start: function (event, ui) { + calc_erm_78(); + }, + stop: function (event, ui) { + calc_erm_78(); + }, + step: 0.1, + numberFormat: "i", + min:0, + decimals:0 + }); + Globalize.culture( "de-DE" ); + } ); + + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + type="text/javascript"> + function calc_erm_78() { + /* + Diese Funktion berechnet die LVS + */ + var sws = document.getElementById('sws').value; + var beginn_funktion = document.getElementById('beginn_funktion').value; + var ende_funktion = document.getElementById('ende_funktion').value; + + $.ajax({ + type: 'POST', + url: 'fetch_lvs_erm_7-8.php', + data: { + get_option: sws, + get_beginn_funktion: beginn_funktion, + get_ende_funktion: ende_funktion + }, + success: function (response) { + var str1 = response.split("||"); + document.getElementById("gesamtvolumen_count").innerHTML = "" + str1[0] + ""; + + /* LVS Wert in hidden Inputfeld setzen, damit es mit $_POST übertragen wird beim speichern*/ + document.getElementById("lvs").value = str1[1]; + } + }); + } + +> + + + + + tpl_vars['freistrekto_status']->value == 'edit') {?> + + type="text/javascript"> + setTimeout(calc_erm_78, 100); + +> + + + +
+ + tpl_vars['freistrekto_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['freistrekto_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist tagesgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Rechenweg: SWS x Semesterwochen x ausgeübte Tage der Funktion x Anzahl der Tage im Jahr (365 bzw. 366)
  • +
+
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + + + + + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Ermäßigung LVS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['funktion'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
 Summe: tpl_vars['freistrekto_value_summe_jahr']->value;?> + 
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d8eb3ab5aa37_56725878', + 'file_dependency' => + array ( + '1caee6addfeb34afebcc0bf7a58194d1a40742c1' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/erm_behinderung.html', + 1 => 1656339888, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d8eb3ab5aa37_56725878 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.5, + numberFormat: "i", + min:0, + max:25, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + +
+ + tpl_vars['beh_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['beh_error_text']->value;?> + +
+
+
+ + +
+ + Höhe der prozentualen Ermäßigung + +
+
+ + + + + + + + + + + + + + + + + +
+ Höhe der Ermäßigung in Prozent angeben.
+ (Von der Personalabteilung gewährte Höhe) +
+ + % +
+ Beginn der Ermäßigung + + +
  +   +
+   + + + + + +
+ Hinweis
+
    +
  • Eine Schwerbehinderung wird monatsgenau gewährt.
  • +
  • Nimmt eine Ermäßigung der Schwerbehinderung zu bzw. ab, ist die Ermäßigung auf Monatsersten zu erfassen.
  • +
  • Die prozentulae Ermäßigung wird mit der LVS verrechnet (594LVS x 12% Ermäßigung aufgrund Behinderung => 522,72 Soll-LVS).
  • +
  • Betrachtet werden Zeiträume des Studienjahres: 01.09 - 31.08
  • +
+
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigung + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> +
+ lfd.Nr. + + Beginn + + Prozent + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn_form'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['behinderungsgrad'];?> + % + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['nodel'] != 1) {?> + + + + + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62b9bdb74a9ed4_28355870', + 'file_dependency' => + array ( + '2775f215a21e80ac664dca97737ca805a207b729' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\erm_behinderung.html', + 1 => 1656339889, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62b9bdb74a9ed4_28355870 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.5, + numberFormat: "i", + min:0, + max:25, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + +
+ + tpl_vars['beh_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['beh_error_text']->value;?> + +
+
+
+ + +
+ + Höhe der prozentualen Ermäßigung + +
+
+ + + + + + + + + + + + + + + + + +
+ Höhe der Ermäßigung in Prozent angeben.
+ (Von der Personalabteilung gewährte Höhe) +
+ + % +
+ Beginn der Ermäßigung + + +
  +   +
+   + + + + + +
+ Hinweis
+
    +
  • Eine Schwerbehinderung wird monatsgenau gewährt.
  • +
  • Nimmt eine Ermäßigung der Schwerbehinderung zu bzw. ab, ist die Ermäßigung auf Monatsersten zu erfassen.
  • +
  • Die prozentulae Ermäßigung wird mit der LVS verrechnet (594LVS x 12% Ermäßigung aufgrund Behinderung => 522,72 Soll-LVS).
  • +
  • Betrachtet werden Zeiträume des Studienjahres: 01.09 - 31.08
  • +
+
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigung + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> +
+ lfd.Nr. + + Beginn + + Prozent + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn_form'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['behinderungsgrad'];?> + % + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['nodel'] != 1) {?> + + + + + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dcea67b3ad4e7_88391242', + 'file_dependency' => + array ( + '2b0c8a07fa8c2b6c01ef339cb420b2176d0f7172' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/freischaltung.html', + 1 => 1521021772, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dcea67b3ad4e7_88391242 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + +
+
+
+
+
tpl_vars['access_titel']->value;?> +
+
+
+
+
+ +
+ + Dozenten hinzufügen (Diese können sich am System anmelden) + +
+
+ + + + + + + + + + + + +
';?> + tpl_vars['access_mitgl_ausw']->value;?> + + + +
+   +
';?> +   + + +
+
+
+ +
+ +
+
+
+ + Dozenten im System + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> +
';?> + Anrede + ';?> + Name + ';?> + Vorname + ';?> + Benutzerkennung + ';?> + Fakultät + ';?> + Löschen +
';?> + + ';?> + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['nachname'];?> + + ';?> + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['vorname'];?> + + ';?> + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['uid'];?> + + ';?> + + ';?> + +
+
+
+
+
+ + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d8eb3ab30778_39042746', + 'file_dependency' => + array ( + '30472568dadb7d9d426587cc8fcdf8d5004f9f2c' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/erm_teilzeit.html', + 1 => 1657864750, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d8eb3ab30778_39042746 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + +
+ + tpl_vars['tz_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['tz_error_text']->value;?> + +
+
+
+ + +
+ + Teilzeit erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ Prozent + + +
  +   +
+ Beginn der Teilzeit + + +
  +   +
+   + + + + + +
+ Hinweis
+
    +
  • Eine ältere Teilzeit endet dann, wenn eine neue Teilzeit erfasst wird.
  • +
  • Es wird immer der Monatserste als Beginntag festgelegt!
  • +
  • Betrachtet werden Zeiträume des Studienjahres: 01.09 - 31.08
  • +
+
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Teilzeit + +
+ Basiswert der Lehrveranstaltungsstunden in diesem Studienjahr: tpl_vars['tz_baselvs']->value;?> + +
+ + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + +
+ lfd.Nr. + + Beginn + + Prozent + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn_form'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['prozent'];?> + % + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62bbe5b90cd454_62297206', + 'file_dependency' => + array ( + '31f32d36c21f2f7a61e7ecad517e440dd24d48a0' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\erm_freist_funktion.html', + 1 => 1656405400, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62bbe5b90cd454_62297206 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.5, + numberFormat: "i", + min:0, + max:25, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['freistrekto_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['freistrekto_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['funktion'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc2bebdcfc9d8_10338042', + 'file_dependency' => + array ( + '3298107f941b705098acff2041b61663d59aa5f3' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\erfassen_eingabe.html', + 1 => 1573043846, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc2bebdcfc9d8_10338042 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + change: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + spin: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + start: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + stop: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + + step: 0.1, + numberFormat: "i", + min:0, + decimals:0 + }); + Globalize.culture( "de-DE" ); + } ); + + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + type="text/javascript" src="erfassen_eingabe.js"> +> + + + +
+
+
+
+
tpl_vars['erf_titel']->value;?> +
+
+
+
+
+ tpl_vars['erf_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['erf_error_text']->value;?> + +
+
+ + tpl_vars['erf_abschluss']->value == '0') {?> +
+ + Lehrveranstaltung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ tpl_vars['erf_studiengang_hig']->value == 1) {?>* Studiengangtpl_vars['erf_studiengang_hig']->value == 1) {?> + + +
  +   +
+ tpl_vars['erf_art_hig']->value == 1) {?>* Art der LVtpl_vars['erf_art_hig']->value == 1) {?> + + + + +
  +   +
+ tpl_vars['erf_titel_hig']->value == 1) {?>* Titel der Lehrveranstaltung (LV)tpl_vars['erf_titel_hig']->value == 1) {?> + + + + + +
  +   +
+ Anzahl der Arbeitsgemeinschaften (AG) + + + +
  +   +
+   + + + + + +
+ Extracurricularer Klausurenkurs
+
    +
  • Es dürfen höchstens tpl_vars['abschluss_value_max_extracur']->value;?> + Lehrstunden (LVS) pro tpl_vars['abschluss_einheit_max_extracur']->value;?> + erfasst werden.
  • +
+
+
+
Krankheitsbedingte Merkmale +
+
+ +
  +   +
+
+ Teamteaching + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ gemeinsame LV + + +
+ fachübergreifende LV + + +
+ tpl_vars['erf_anzgemlv_hig']->value == 1) {?>* Anzahl der Lehrendentpl_vars['erf_anzgemlv_hig']->value == 1) {?> + + +
+ tpl_vars['erf_namegemlv_hig']->value == 1) {?>* Namen der Lehrendentpl_vars['erf_namegemlv_hig']->value == 1) {?> + + +
+ tpl_vars['erf_basislvsgemlv_hig']->value == 1) {?>* Basiswert (LVS) der LVtpl_vars['erf_basislvsgemlv_hig']->value == 1) {?> + + + + +
+ tpl_vars['erf_teamteaching_hig']->value == 1) {?>* Teachingfaktortpl_vars['erf_teamteaching_hig']->value == 1) {?> + + +
+   + +   +
+   + + + + + +
+ Gesamtvolumen
+
    +
  • Der Teachingfaktor gibt vor, zu wieviel Prozent einer Lehrveranstaltung Lehrende gemeinsam lehren dürfen.
  • +
  • Bei einem Faktor von 0,5 dürfen also bis zu 50 % einer Veranstaltung von zwei Lehrenden miteinander gestaltet werden.
  • +
  • Bsp: Sind für ein Fachprojekt 56 LVS vorgesehen, gilt der Faktor 0,5.
    + Das bedeutet, dass höchstens 28 LVS gemeinsam gestaltet werden dürfen.
    + Daraus resultiert ein Gesamtvolumen von 56 LVS + (0,5 Faktor x 56 LVS) = 84 LVS.
    + Das Gesamtvolumen steht den beiden Dozierenden zur Aufteilung (nach eigenem Ermessen) zu.
    + Der einzelne Dozent darf sich aber nicht mehr als 56 LVS zurechnen +
  • +
  • Der Basiswert dient nur zur Berechnung des Gesamtvolumens.
    Die tatsächliche LVS bitte in das Feld "Summe eigene Lehrstunden" eintragen!
  • +
+
Aktuelles Gesamtvolumen: 
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
  +   +
+ tpl_vars['erf_tage_exkursion_hig']->value == 1) {?>* Exkursionsstundentpl_vars['erf_tage_exkursion_hig']->value == 1) {?> + +
+ + + + + + + + + + + + + + +
Datum:
Beschreibung/Ort:
Stunden:
+

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Datum von:
Datum bis:
Beschreibung/Ort:
Stunden Anreisetag:
Stunden Abreisetag:
+
+ + + + +
+ Informationen
+
    +
  • Die Stunden werden mit dem Faktor tpl_vars['erf_value_exk_faktor']->value;?> + multipliziert, um die LVS zu erhalten.
  • +
  • Tageshöchstsatz liegt bei 10 Std. Das entspricht tpl_vars['erf_value_exk_max_tag']->value;?> + LVS.
  • +
  • Ganze Tage werden mit dem Höchstsatz tpl_vars['erf_value_exk_max_tag']->value;?> + LVS berechnet.
  • +
  • Bei mehrtägigen Exkursionen: Geben Sie immer die Stunden am Anreise- und Abreisetag an, sonst werden diese Tage nicht berechnet!
  • +
+
+
+ tpl_vars['erf_std_hig']->value == 1) {?>* Summe eigene Lehrstunden (LVS)tpl_vars['erf_std_hig']->value == 1) {?> + + + + +
  +   +
+ Hinweise + + +
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_3_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_3_total = $__section_table_data2_3_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_3_total != 0) { +for ($__section_table_data2_3_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_3_iteration <= $__section_table_data2_3_total; $__section_table_data2_3_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_3_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_3_saved; +} +?> + + + + + +
+ lfd.Nr. + ';?> + Studiengang (LV) + + Art der LV + ';?> + Titel der Lehrveranstaltung (LV) + + Krankheitsbedingte Merkmale + + gemeinsame LV + + Summe eigene
Lehrstunden (LVS)
+
+ Hinweise + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['studiengang'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['veranstaltung'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['titel'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['krankheitsmerkmal'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['gemlv_form'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['std'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['hinweise'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['did'];?> +>  +
 Summe: tpl_vars['erf_value_summe_jahr']->value;?> + 
+
+ +
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62b9c9842dbb44_29249872', + 'file_dependency' => + array ( + '345bdd93d869b31aec5b71220e4fb057aa2f5585' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\abschlussarbeiten.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62b9c9842dbb44_29249872 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + change: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + spin: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + start: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + stop: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + + step: 0.1, + numberFormat: "i", + min:0, + decimals:0 + }); + Globalize.culture( "de-DE" ); + } ); + + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + +> + function felder_einblenden() { + /* Bei Master darf eine Betreuungspauschle eingegeben werden */ + if (document.getElementById("kaid").value == "2") { + // + }else{ + // + } + } + +> + + +
+
+
+
+
tpl_vars['abschluss_titel']->value;?> +
+
+
+
+
+ tpl_vars['abschluss_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['abschluss_error_text']->value;?> + +
+
+ + tpl_vars['abschluss_abschluss']->value == '0') {?> +
+ + Abschlussarbeit erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ Name des Studierenden + + +
+ Art der Abschlussarbeit + + +
+ Betreuungspauschale (LVS) + + +
+   + +   +
+ Semester + + +
+   + +
+ + + + +
+ Informationen
+
    +
  • Es können höchstens tpl_vars['abschluss_value_max_arbeiten']->value;?> + Abschlussarbeiten pro Semester erfasst werden.
  • +
+
+
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Abschlussarbeiten im Wintersemester + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + Betreuungspauschale + + LVS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['name'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['abschlussarbeit'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['semesterbez'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['pauschale'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['daid'];?> +> +   + +
 Summe: tpl_vars['abschluss_value_ws_summe_lvs']->value;?> + 
+
+
+
+ + Erfasste Abschlussarbeiten im Sommersemester + + + + + + + + + + + + tpl_vars['__smarty_section_table_data3']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3'] : false; +$__section_table_data3_2_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data3']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data3_2_total = $__section_table_data3_2_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data3'] = new Smarty_Variable(array()); +if ($__section_table_data3_2_total != 0) { +for ($__section_table_data3_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] = 0; $__section_table_data3_2_iteration <= $__section_table_data3_2_total; $__section_table_data3_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] = $__section_table_data3_2_iteration; +?> + tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data3'] = $__section_table_data3_2_saved; +} +?> + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + Betreuungspauschale + + LVS + + Edit +
+ tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null);?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['name'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['abschlussarbeit'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['semesterbez'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['pauschale'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['daid'];?> +> +   + +
 Summe: tpl_vars['abschluss_value_ss_summe_lvs']->value;?> + 
+
+ +
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5aab93c72eb0c1_12133556', + 'file_dependency' => + array ( + '347a4e682ce53e8effd76310ed0169aad045dd46' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\logout.html', + 1 => 1520417784, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5aab93c72eb0c1_12133556 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + <?php echo $_smarty_tpl->tpl_vars['logout_titel']->value;?> + + + + + + + + + + + + + +
+   + +
+
+
tpl_vars['logout_titel']->value;?> +
+
+
+
+

+ + + + + +
+ + + + + + + + + + + + + + + +
+ tpl_vars['logout_text']->value;?> + +
+   +
+ Login +
+ +
+ +
+
+

+
+   + +
+ + + + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5aab91f807d839_73769182', + 'file_dependency' => + array ( + '36f10f357b07aeb497a9007bbb85b357b1187f67' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\titel.html', + 1 => 1520413432, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5aab91f807d839_73769182 ($_smarty_tpl) { +?> + + +Testseite + + + + + + + type="text/javascript" src="ajaxtabs/ajaxtabs.js"> + +/*********************************************** +* Ajax Tabs Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com) +* This notice MUST stay intact for legal use +* Visit Dynamic Drive at https://www.dynamicdrive.com/ for full source code +***********************************************/ + + +> + + + + + + + + + + + + + + + + + + + + +
+

Deputatverwaltung

+
      +

Logout

+
 
+ +
+ +
+ + + + + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62983f9de209b9_07468097', + 'file_dependency' => + array ( + '374623944c6a14cc18e198f9745a709421b2a18a' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\eingabe_frame.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62983f9de209b9_07468097 ($_smarty_tpl) { +?> + + +Deputatverwaltung + + + + + + + + + +<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> + +<p>To view this page correctly, you need a Web browser that supports frames.</p> + +</body> + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62e27bc36499e6_00908910', + 'file_dependency' => + array ( + '39b78d59d1632c26b8c8c78f10c3614b33f49c4c' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/krankheit.html', + 1 => 1659009971, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62e27bc36499e6_00908910 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + +
+
+
+
+
tpl_vars['krank_titel']->value;?> +
+
+
+
+
+ tpl_vars['krank_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['krank_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + +
+ Beginn des Forschungssemesters / Praxissemesters / der Abordnungen, falls nicht ganzjährig + + + +
  +   +
+ Ende des Forschungssemesters / Praxissemesters / der Abordnungen, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Hinweise zu längerer Krankheit
+
    +
  • Längere Krankheitstage sind Krankheitstage größer 28 Tage am Stück
  • +
  • Die Krankheitstage müssen innerhalb der Vorlesungszeit liegen
  • +
  • Erfasst wird ein Zeitraum inklusive Wochenende
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
+
+
+
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Krankheitstage + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + +
+ lfd.Nr. + + Beginn + + Ende + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['krid'];?> +> +   + +
+
+ +
+
+
+
+
+ + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62b9b3217e8ae4_52069589', + 'file_dependency' => + array ( + '39fd4dce536474ceb379cc16b71465f1d467c2ba' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\jahrgang.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62b9b3217e8ae4_52069589 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + +
+
+
+
+
tpl_vars['jahrgang_titel']->value;?> +
+
+
+
+
+

+ +
+
+

+ +
+ + +
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d14a48f74b106_57775178', + 'file_dependency' => + array ( + '3aa0ca45f68dd071b8eaf6c7cdd725ef10c3c0ca' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\admin_frame.html', + 1 => 1561633111, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d14a48f74b106_57775178 ($_smarty_tpl) { +?> + + +Deputatverwaltung + + + + + + + + + + +<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> + +<p>To view this page correctly, you need a Web browser that supports frames.</p> + +</body> + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d70d06f830a84_17659709', + 'file_dependency' => + array ( + '3e23f94cdba4d8de253e863b4831f922cbd6c703' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\erm_mutterschutz.html', + 1 => 1567674437, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d70d06f830a84_17659709 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + type="text/javascript"> + function calc_muschu() { + /* + Diese Funktion berechnet die LVS + */ + var sws = 1; + var beginn_funktion = document.getElementById('beginn_funktion').value; + var ende_funktion = document.getElementById('ende_funktion').value; + + $.ajax({ + type: 'POST', + url: 'fetch_mutterschutz.php', + data: { + get_beginn_funktion: beginn_funktion, + get_ende_funktion: ende_funktion + }, + success: function (response) { + var str1 = response.split("||"); + document.getElementById("gesamtvolumen_count").innerHTML = "" + str1[0] + ""; + + /* LVS Wert in hidden Inputfeld setzen, damit es mit $_POST übertragen wird beim speichern*/ + document.getElementById("lvs").value = str1[1]; + } + }); + } + +> + + + + + type="text/javascript" > + function loader(){ + if(document.erfassen)document.erfassen.sws.focus();return false; + } + +> + + tpl_vars['muschu_status']->value == 'edit') {?> + + type="text/javascript"> + setTimeout(calc_muschu, 100); + +> + + + + +
+ + tpl_vars['muschu_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['muschu_error_text']->value;?> + +
+
+ + +
+ + Mutterschutz/Elternzeit/Pflegezeit erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + +
+ Beginn des Mutterschutzes / der Elternzeit / Pflegezeit + + +
  +   +
+ Ende des Mutterschutzes / der Elternzeit / Pflegezeit + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist tagesgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Rechenweg: LVS-(Anzahl der Mutterschutztage / Anzahl der Tage im Jahr x LVS)
  • +
+
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Mutterschutzeit / Elternzeit / Pflegezeit + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + + + + + +
+ lfd.Nr. + + Art + + Beginn + + Ende + + Ermäßigung LVS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['art'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
 Summe: tpl_vars['muschu_value_summe_jahr']->value;?> + 
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d12bf0cc33b5_47425129', + 'file_dependency' => + array ( + '3f759d3f1692eb1a9fe8d745a4ae9b60634f2476' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\menu_admin.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d12bf0cc33b5_47425129 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + +Menu + + + type="text/javascript" src="templates/tpl_vars['global_template']->value;?> +/js/jquery.js"> +> + + type="text/javascript" src="templates/tpl_vars['global_template']->value;?> +/js/accordion.js"> +> + + type="text/javascript" src="livesearch/ajax.js"> +> + + type="text/javascript" src="livesearch/ajax-dynamic-list_admin.js"> +> + + + + +
+
+ tpl_vars['menu_admin_bearb']->value == '1') {?> +

Bearbeitung

+ + + + + + tpl_vars['menu_admin_bearb']->value == '1') {?> +

Administration

+ + + + +
+ +
+ + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d394036c7f0e3_94448355', + 'file_dependency' => + array ( + '409d878e394256c48c7dd91598dbbe8e407c930c' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\behinderung.html', + 1 => 1564033069, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d394036c7f0e3_94448355 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + type="text/javascript" src="jquery/jquery-1.9.1.js"> +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + +
+ + tpl_vars['beh_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['beh_error_text']->value;?> + +
+
+
+ + +
+ + Behinderungsgrad erfassen + +
+
+ + + + + + + + + + + + + +
+ behinderungsgrad der Behinderung + + % +
  +   +
+   + + + + + +
+ Hinweis
+
    +
  • Eine Schwerbehinderung wird rückwirkend auf das Studienjahr gewährt.
  • +
  • Der Behinderungsgrad wird mit der LVS verrechnet (594LVS x 50% Behinderung = 297 LVS neu)
  • +
  • Betrachtet werden Zeiträume des Studienjahres: 01.09 - 31.08
  • +
+
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasster Behinderungsgrad + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> +
+ lfd.Nr. + + behinderungsgrad + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['behinderungsgrad'];?> + % + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['nodel'] != 1) {?> + + + + + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d8eb5dc571b3_51266393', + 'file_dependency' => + array ( + '43a2dcac68acd6dece6d74de95c4f9d65b3897f0' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/jahresabschluss.html', + 1 => 1657878114, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d8eb5dc571b3_51266393 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + +
+
+
+
+
tpl_vars['jaabschl_titel']->value;?> + tpl_vars['jaabschl_jahrgang']->value;?> +
+
+
+
+
+ tpl_vars['jaabschl_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['jaabschl_error_text']->value;?> + +
+ +
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data0']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0'] : false; +$__section_table_data0_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data0']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data0_0_total = $__section_table_data0_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data0'] = new Smarty_Variable(array()); +if ($__section_table_data0_0_total != 0) { +for ($__section_table_data0_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] = 0; $__section_table_data0_0_iteration <= $__section_table_data0_0_total; $__section_table_data0_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['rownum'] = $__section_table_data0_0_iteration; +?> + tpl_vars['__smarty_section_table_data0']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['rownum'] : null) != '') {?> + + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data0'] = $__section_table_data0_0_saved; +} +?> + + + + + + + + + +
+ lfd.Nr. + + Art + + Hinweis + + Beginn + + Ende + + Berechnungszeitraum + + SWS + + Ermäßigung in LVS + + Berechnung (Soll-LVS: tpl_vars['erf_value_soll_lvs']->value;?> +) +
+ tpl_vars['__smarty_section_table_data0']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['rownum'] : null);?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['art'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['hinweis'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['beginn_form'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['ende_form'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['monate'] > 0) {?> + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['monate'];?> + Monat(e) + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['tage'] > 0) {?> + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['tage'];?> + Tag(e) + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['anz_lvs'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['cur_lvs'];?> + - tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['ber_lvs'];?> + = tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['erg_lvs'];?> + +
  + Summe: tpl_vars['erf_value_summe_jahr_erm']->value;?> + + + Zu leistende LVS: tpl_vars['erf_value_zu_leisten']->value;?> +
+ (Rechenweg: tpl_vars['erf_value_soll_lvs']->value;?> + - tpl_vars['erf_value_summe_jahr_erm']->value;?> +) +
+
+
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data1']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1'] : false; +$__section_table_data1_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data1_1_total = $__section_table_data1_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = new Smarty_Variable(array()); +if ($__section_table_data1_1_total != 0) { +for ($__section_table_data1_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] = 0; $__section_table_data1_1_iteration <= $__section_table_data1_1_total; $__section_table_data1_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] = $__section_table_data1_1_iteration; +?> + tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null) != '') {?> + + + + + + + + + + + + tpl_vars['__smarty_section_table_data1'] = $__section_table_data1_1_saved; +} +?> + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Krankheitsbedingte Merkmale + + gemeinsame LV + + Summe eigene Lehrstunden (LVS) + + Hinweise +
+ tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null);?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['titel'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['veranstaltung'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['krankheitsmerkmal'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['gemlv_form'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['std'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['hinweise'];?> + +
 Summe: tpl_vars['erf_value_summe_jahr']->value;?> + 
+
+
+
+
+ + Sonstige Lehrveranstaltungen + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_2_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_2_total = $__section_table_data2_2_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_2_total != 0) { +for ($__section_table_data2_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_2_iteration <= $__section_table_data2_2_total; $__section_table_data2_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_2_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_2_saved; +} +?> + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Summe eigene Lehrstunden (LVS) + + Hinweise +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['titel'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['veranstaltung'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['hinweise'];?> + +
 Summe: tpl_vars['erfs_value_summe_jahr']->value;?> + 
+
+
+
+
+ + Erfasste Abschlussarbeiten + + + + + + + + + + + tpl_vars['__smarty_section_table_data3']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3'] : false; +$__section_table_data3_3_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data3']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data3_3_total = $__section_table_data3_3_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data3'] = new Smarty_Variable(array()); +if ($__section_table_data3_3_total != 0) { +for ($__section_table_data3_3_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] = 0; $__section_table_data3_3_iteration <= $__section_table_data3_3_total; $__section_table_data3_3_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] = $__section_table_data3_3_iteration; +?> + tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data3'] = $__section_table_data3_3_saved; +} +?> + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + LVS + +   +
+ tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null);?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['name'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['abschlussarbeit'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['semesterbez'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['lvs'];?> + + +   +
 Summe: tpl_vars['abschluss_value_summe_lvs']->value;?> + 
+
+
+
+
+ + Gesamtbetrachtung + + + + + + + + + + + + + + + + + + + + + + +
+ Erfasste Deputate + + tpl_vars['erf_value_summe_jahr']->value;?> + +  
+ Sonstige Deputate + + tpl_vars['erfs_value_summe_jahr']->value;?> + +  
+ Erfasste Abschlussarbeiten + + tpl_vars['abschluss_value_summe_lvs']->value;?> + +  
+ Jahressumme + + tpl_vars['abschluss_gesamt']->value;?> + +  
+
+
+
+
+ + Synopse tpl_vars['jaabschl_jahrgang']->value;?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data4']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4'] : false; +$__section_table_data4_4_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data4']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data4_4_total = $__section_table_data4_4_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data4'] = new Smarty_Variable(array()); +if ($__section_table_data4_4_total != 0) { +for ($__section_table_data4_4_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] = 0; $__section_table_data4_4_iteration <= $__section_table_data4_4_total; $__section_table_data4_4_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']++){ +?> + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data4'] = $__section_table_data4_4_saved; +} +?> + +
+ Jahr + + Anfangsstand + + Deputatsumme Soll + + Deputatsumme Ist + + Über-/Unterdeputat im aktuellen Jahr + + Abbau Unterdeputat durch Überdeputat Vorjahre + + Verfall aus Jahr + + Verfallene Std + + Über- Unterdeputat des Jahres + + Übertrag Folgejahr +
+ tpl_vars['jaabschl_jahrgang']->value;?> + + + tpl_vars['jaabschl_endwert_vorjahr']->value;?> + + + tpl_vars['jaabschl_soll']->value;?> + + + tpl_vars['jaabschl_ist']->value;?> + + + tpl_vars['jaabschl_uber_unter_jahr']->value;?> + + + tpl_vars['jaabschl_abbau_jahr']->value;?> + + + tpl_vars['jaabschl_verfall_jahr']->value;?> + + + tpl_vars['jaabschl_dep_verfall']->value;?> + + + tpl_vars['jaabschl_dep_gesamt']->value;?> + + + tpl_vars['jaabschl_dep_gesamt_nach_verfall']->value;?> + +
+
+ Veränderungen der Vorjahre durch das aktuelle Jahr +
+ Jahr + + Jahresendstand bisher + + Deputatsumme Soll + + Deputatsumme Ist + + Über-/Unterdeputat im aktuellen Jahr + + Abbau Unterdeputat durch Überdeputat Vorjahre + + Verfall aus Jahr + + Verfallene Std + + Über- Unterdeputat des Jahres alt + + Über- Unterdeputat des Jahres neu +
+ tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['vorjahr'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_gesamt_nach_verfall'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['soll'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['ist'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['uber_unter_jahr'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['differenz'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_verfall_jahr'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_verfall'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_gesamt'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['endwert'];?> + +
+
+
+ tpl_vars['jaabschl_closed']->value == 0) {?> + + + + + + +
+  Studienjahr abschließen und absenden  +
+ +
+
+ + +tpl_vars['action']->value == 'abschluss') {?> + + + + + +
+
+
+
+
Jahrgang abschließen
+
+
+ +
+

+Sind Sie sicher, dass sie das aktuelle Jahr tpl_vars['jaabschl_jahrgang']->value;?> + abschließen möchten? +
+Danach sind keine Änderungen mehr möglich! +
+
+  +

+
+ + +
+
+ + +tpl_vars['action']->value == 'abschluss2') {?> + + + + + +
+
+
+
+
Jahrgang abschließen
+
+
+
+
+

+ Der Jahrgang tpl_vars['jaabschl_jahrgang']->value;?> + wurde gespeichert! +
+
+

+
+ + +
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d12bf0bdfd89_77561589', + 'file_dependency' => + array ( + '44ddd1cda7a0da424ee368f6754191793eaca1e2' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\hauptframe_admin.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d12bf0bdfd89_77561589 ($_smarty_tpl) { +?> + + +<?php echo $_smarty_tpl->tpl_vars['hauptframe_admin_titel']->value;?> + + + + + + +
+
+
tpl_vars['hauptframe_admin_titel']->value;?> +
+
+
+ +
+

+ + + + +
+ tpl_vars['hauptframe_admin_text1']->value;?> + +
+
+
+ tpl_vars['hauptframe_admin_text2']->value;?> + +
+

+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc3b67070bb96_35528966', + 'file_dependency' => + array ( + '478857de9c613a5de5ea1266802bd09636a9515f' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/indexframe.html', + 1 => 1520588406, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc3b67070bb96_35528966 ($_smarty_tpl) { +?> + + +<?php echo $_smarty_tpl->tpl_vars['global_titel']->value;?> + + + + + + + + + + + + +<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> + +<p>To view this page correctly, you need a Web browser that supports frames.</p> + +</body> + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d64e54f33c60_50745280', + 'file_dependency' => + array ( + '478858eb2f2625d1277f982742b1158bff0486a6' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\erm_mutterschutz.html', + 1 => 1658138657, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d64e54f33c60_50745280 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + type="text/javascript"> + function calc_muschu() { + /* + Diese Funktion berechnet die LVS + */ + var sws = 1; + var beginn_funktion = document.getElementById('beginn_funktion').value; + var ende_funktion = document.getElementById('ende_funktion').value; + + $.ajax({ + type: 'POST', + url: 'fetch_mutterschutz.php', + data: { + get_beginn_funktion: beginn_funktion, + get_ende_funktion: ende_funktion + }, + success: function (response) { + var str1 = response.split("||"); + document.getElementById("gesamtvolumen_count").innerHTML = "" + str1[0] + ""; + + /* LVS Wert in hidden Inputfeld setzen, damit es mit $_POST übertragen wird beim speichern*/ + document.getElementById("lvs").value = str1[1]; + } + }); + } + +> + + + + + type="text/javascript" > + function loader(){ + if(document.erfassen)document.erfassen.sws.focus();return false; + } + +> + + tpl_vars['muschu_status']->value == 'edit') {?> + + type="text/javascript"> + setTimeout(calc_muschu, 100); + +> + + + + +
+ + tpl_vars['muschu_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['muschu_error_text']->value;?> + +
+
+ + +
+ + Mutterschutz/Elternzeit erfassen + +
+
+ + + + + + +
+   + + + + + +
+ Hinweis
+
    +
  • Das Dekanat wird sich mit Ihnen bezüglich der Berechnung Ihrer LVS aufgrund Ihrer Mutterschutz/Elterzeiten in Verbindung setzen + und mit Ihnen die Berechnung besprechen.
  • +
  • Danach wird die LVS-Stundenanzahl aufgrund Ihrer Mutterschutz/Elternzeit in das Programm vom Dekanat eingetragen.
  • +
+
+ +
+
+
+
+

+ tpl_vars['muschu_erf']->value == 1) {?> + + tpl_vars['muschu_erf']->value == 2) {?> + + + + +

+
+
+
+
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc3b7f5afc677_47667507', + 'file_dependency' => + array ( + '48804e6c8a7fd478f5de8b5ce684ab13c6aaaac7' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/abschlussarbeiten.html', + 1 => 1573107697, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc3b7f5afc677_47667507 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + change: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + spin: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + start: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + stop: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + + step: 0.1, + numberFormat: "i", + min:0, + decimals:0 + }); + Globalize.culture( "de-DE" ); + } ); + + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + +> + function felder_einblenden() { + /* Bei Master darf eine Betreuungspauschle eingegeben werden */ + if (document.getElementById("kaid").value == "2") { + // + }else{ + // + } + } + +> + + +
+
+
+
+
tpl_vars['abschluss_titel']->value;?> +
+
+
+
+
+ tpl_vars['abschluss_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['abschluss_error_text']->value;?> + +
+
+ + tpl_vars['abschluss_abschluss']->value == '0') {?> +
+ + Abschlussarbeit erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ Name des Studierenden + + +
+ Art der Abschlussarbeit + + +
+ Betreuungspauschale (LVS) + + +
+   + +   +
+ Semester + + +
+   + +
+ + + + +
+ Informationen
+
    +
  • Es können höchstens tpl_vars['abschluss_value_max_arbeiten']->value;?> + Abschlussarbeiten pro Semester erfasst werden.
  • +
+
+
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Abschlussarbeiten im Wintersemester + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + Betreuungspauschale + + LVS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['name'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['abschlussarbeit'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['semesterbez'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['pauschale'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['daid'];?> +> +   + +
 Summe: tpl_vars['abschluss_value_ws_summe_lvs']->value;?> + 
+
+
+
+ + Erfasste Abschlussarbeiten im Sommersemester + + + + + + + + + + + + tpl_vars['__smarty_section_table_data3']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3'] : false; +$__section_table_data3_2_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data3']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data3_2_total = $__section_table_data3_2_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data3'] = new Smarty_Variable(array()); +if ($__section_table_data3_2_total != 0) { +for ($__section_table_data3_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] = 0; $__section_table_data3_2_iteration <= $__section_table_data3_2_total; $__section_table_data3_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] = $__section_table_data3_2_iteration; +?> + tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data3'] = $__section_table_data3_2_saved; +} +?> + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + Betreuungspauschale + + LVS + + Edit +
+ tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null);?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['name'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['abschlussarbeit'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['semesterbez'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['pauschale'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['daid'];?> +> +   + +
 Summe: tpl_vars['abschluss_value_ss_summe_lvs']->value;?> + 
+
+ +
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62b9b818871986_91398157', + 'file_dependency' => + array ( + '503983a8d6b763a642ef5a78cbaa6dc0ffc09273' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\erm_teilzeit.html', + 1 => 1656338451, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62b9b818871986_91398157 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + +
+ + tpl_vars['tz_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['tz_error_text']->value;?> + +
+
+
+ + +
+ + Teilzeit erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ Prozent + + +
  +   +
+ Beginn der Teilzeit + + +
  +   +
+   + + + + + +
+ Hinweis
+
    +
  • Eine ältere Teilzeit endet dann, wenn eine neue Teilzeit erfasst wird.
  • +
  • Es wird immer der Monatserste als Beginntag festgelegt!
  • +
  • Betrachtet werden Zeiträume des Studienjahres: 01.09 - 31.08
  • +
+
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Teilzeit + +
+ Basiswert der Lehrveranstaltungsstunden in diesem Studienjahr: tpl_vars['tz_baselvs']->value;?> + +
+ + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + +
+ lfd.Nr. + + Beginn + + Prozent + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn_form'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['prozent'];?> + % + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['nodel'] != 1) {?> + + + + + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5acb6868609e05_87834677', + 'file_dependency' => + array ( + '5496a13970bb6cf0dbfc21ae0017dc877a2c2401' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\hauptframe_eingabe.html', + 1 => 1523279945, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5acb6868609e05_87834677 ($_smarty_tpl) { +?> + + +<?php echo $_smarty_tpl->tpl_vars['hauptframe_eingabe_titel']->value;?> + + + + + + +
+
+
tpl_vars['hauptframe_eingabe_titel']->value;?> +
+
+
+ +
+

+ + + + +
+ tpl_vars['hauptframe_eingabe_text1']->value;?> + tpl_vars['hauptframe_eingabe_cur_jahrgang']->value;?> +/tpl_vars['hauptframe_eingabe_cur_jahrgang']->value+1;?> + +
+
+
+ tpl_vars['hauptframe_eingabe_text2']->value;?> + +
+

+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc46f30f0f2a1_94539830', + 'file_dependency' => + array ( + '57a2099f8319929d5a2416f369ba339de98cc5e7' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/menu_admin.html', + 1 => 1521036708, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc46f30f0f2a1_94539830 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + +Menu + + + type="text/javascript" src="templates/tpl_vars['global_template']->value;?> +/js/jquery.js"> +> + + type="text/javascript" src="templates/tpl_vars['global_template']->value;?> +/js/accordion.js"> +> + + type="text/javascript" src="livesearch/ajax.js"> +> + + type="text/javascript" src="livesearch/ajax-dynamic-list_admin.js"> +> + + + + +
+
+ tpl_vars['menu_admin_bearb']->value == '1') {?> +

Bearbeitung

+ + + + + + tpl_vars['menu_admin_bearb']->value == '1') {?> +

Administration

+ + + + +
+ +
+ + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dcea811919a24_77654731', + 'file_dependency' => + array ( + '57db823cd7c5ca9e95d3167baf7a0d16ba1a7af9' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/rollen.html', + 1 => 1521021854, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dcea811919a24_77654731 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + +
+
+
+
+
tpl_vars['rollen_titel']->value;?> +
+
+
+
+
+ tpl_vars['rollen_pflichtfelder']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['rollen_error_text']->value;?> + +
+
+ +
+ + Rolle auswählen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
';?> + tpl_vars['rollen_field_auswahl']->value;?> + + + +
+   +
';?> + tpl_vars['rollen_field_neu']->value;?> + + + tpl_vars['rollen_field_bez']->value;?> +
+ +
+   +
+   +
';?> +   + + +
+
+
+
+ +
+
+ + +tpl_vars['action']->value == 'admin') {?> + + + + + type='text/javascript' src='./overlib/overlib.js'> +> + + + +
+
+
+
+
tpl_vars['rollen_admin_titel']->value;?> +
+
+
+
+
+ + Rolle bearbeiten + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ tpl_vars['rollen_field_bez']->value;?> + + + tpl_vars['rollen_field_ren']->value;?> + + + tpl_vars['rollen_field_del']->value;?> + + + tpl_vars['rollen_field_zuw']->value;?> + + + tpl_vars['rollen_field_inforights']->value;?> + + + tpl_vars['rollen_field_infouser']->value;?> + + + tpl_vars['rollen_field_ben_zuw']->value;?> + + + tpl_vars['rollen_field_info_ohnerolle']->value;?> + +
+ tpl_vars['rollen_bezeichnung']->value;?> + + + + + + tpl_vars['rollen_button_del']->value == '1') {?> + + + + + + + + (tpl_vars['rollen_anzahl_rechte']->value;?> +) + + (tpl_vars['rollen_anzahl_user']->value;?> +) + + + + (tpl_vars['rollen_anzahl_ohnerechte']->value;?> +) +
+

+

+ +

+
+
+
+
+
+ + +tpl_vars['action']->value == 'edit') {?> + + + + + +
+
+
+
+
tpl_vars['rollen_edit_titel']->value;?> +
+
+
+
+
+ + Rolle umbenennen + +
+
+
+ + + + + +
+ tpl_vars['rollen_edit_field_bez']->value;?> + + + +
+

+

+ +

+
+
+
+
+
+
+ + +tpl_vars['action']->value == 'rechte') {?> + + + + + +
+
+
+
+
tpl_vars['rollen_rechte_titel']->value;?> +
+
+
+
+
+ + Rechte bearbeiten + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
+   +

  +

+

+

+

+

+

+ +
+ tpl_vars['rollen_rechte_subtitel']->value;?> + +

+

+

+

+

+   + +

+

+ + + +
+
+
+
+
+
+
+ + +tpl_vars['action']->value == 'user') {?> + + + + + +
+
+
+
+
tpl_vars['rollen_user_titel']->value;?> +
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
+   +

  +

+

+

+

+

+

+ +
+ tpl_vars['rollen_user_subtitel']->value;?> + +

+

+

+

+

+   + +

+

+ + + +
+
+
+
+ tpl_vars['rollen_rollenanz']->value > '0') {?> + + + + + + + tpl_vars['__smarty_section_outer_loop']) ? $_smarty_tpl->tpl_vars['__smarty_section_outer_loop'] : false; +$__section_outer_loop_3_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['outer_loop']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_outer_loop_3_total = $__section_outer_loop_3_loop; +$_smarty_tpl->tpl_vars['__smarty_section_outer_loop'] = new Smarty_Variable(array()); +if ($__section_outer_loop_3_total != 0) { +for ($__section_outer_loop_3_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index'] = 0; $__section_outer_loop_3_iteration <= $__section_outer_loop_3_total; $__section_outer_loop_3_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index']++){ +?> + + + + + + tpl_vars['__smarty_section_outer_loop'] = $__section_outer_loop_3_saved; +} +?> +
+ Benutzer + + Rollen + + Rolle löschen +
+ tpl_vars['outer_loop']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index'] : null)]['nachname'];?> +, tpl_vars['outer_loop']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index'] : null)]['vorname'];?> + + + tpl_vars['__smarty_section_inner']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner'] : false; +$__section_inner_4_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['outer_loop']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index'] : null)]['inner']) ? count($_loop) : max(0, (int) $_loop)); +$__section_inner_4_total = $__section_inner_4_loop; +$_smarty_tpl->tpl_vars['__smarty_section_inner'] = new Smarty_Variable(array()); +if ($__section_inner_4_total != 0) { +for ($__section_inner_4_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] = 0; $__section_inner_4_iteration <= $__section_inner_4_total; $__section_inner_4_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']++){ +?> + tpl_vars['outer_loop']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index'] : null)]['inner'][(isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] : null)]['bezeichnung'];?> +
+ tpl_vars['__smarty_section_inner'] = $__section_inner_4_saved; +} +?> +
+ tpl_vars['__smarty_section_inner']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner'] : false; +$__section_inner_5_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['outer_loop']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index'] : null)]['inner']) ? count($_loop) : max(0, (int) $_loop)); +$__section_inner_5_total = $__section_inner_5_loop; +$_smarty_tpl->tpl_vars['__smarty_section_inner'] = new Smarty_Variable(array()); +if ($__section_inner_5_total != 0) { +for ($__section_inner_5_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] = 0; $__section_inner_5_iteration <= $__section_inner_5_total; $__section_inner_5_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']++){ +?> +
+ tpl_vars['__smarty_section_inner'] = $__section_inner_5_saved; +} +?> +
+
+
+

+ +   + +

+
+
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62b9b321613f64_27213506', + 'file_dependency' => + array ( + '582dc26987267396089d31cc6fc81ebcad03aec2' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\eingabe_frame.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62b9b321613f64_27213506 ($_smarty_tpl) { +?> + + +Deputatverwaltung + + + + + + + + + +<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> + +<p>To view this page correctly, you need a Web browser that supports frames.</p> + +</body> + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d3992d3087613_80622505', + 'file_dependency' => + array ( + '5dcb141a0245794e020cf894a8248e297dcdee74' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\erm_freist_mutterschutz.html', + 1 => 1564054222, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d3992d3087613_80622505 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + type="text/javascript" src="jquery/jquery-1.9.1.js"> +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + type="text/javascript"> + function calc_muschu() { + /* + Diese Funktion berechnet die LVS + */ + var sws = 1; + var beginn_funktion = document.getElementById('beginn_funktion').value; + var ende_funktion = document.getElementById('ende_funktion').value; + + $.ajax({ + type: 'POST', + url: 'fetch_mutterschutz.php', + data: { + get_beginn_funktion: beginn_funktion, + get_ende_funktion: ende_funktion + }, + success: function (response) { + var str1 = response.split("||"); + document.getElementById("gesamtvolumen_count").innerHTML = "" + str1[0] + ""; + + /* LVS Wert in hidden Inputfeld setzen, damit es mit $_POST übertragen wird beim speichern*/ + document.getElementById("lvs").value = str1[1]; + } + }); + } + +> + + + + + type="text/javascript" > + function loader(){ + if(document.erfassen)document.erfassen.sws.focus();return false; + } + +> + + tpl_vars['muschu_status']->value == 'edit') {?> + + type="text/javascript"> + setTimeout(calc_muschu, 100); + +> + + + + +
+ + tpl_vars['muschu_error']->value == '1') {?> +
+ + + + + +
+ + Achtung!
+ tpl_vars['muschu_error_text']->value;?> + +
+
+
+ + +
+ + Mutterschutz erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + +
+ Beginn des Mutterschutzes + + +
  +   +
+ Ende des Mutterschutzes + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist tagesgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Rechenweg: LVS-(Anzahl der Mutterschutztage / Anzahl der Tage im Jahr x LVS)
  • +
+
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + + + + + +
+ lfd.Nr. + + Art + + Beginn + + Ende + + Ermäßigung LVS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['art'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
 Summe: tpl_vars['muschu_value_summe_jahr']->value;?> + 
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d8eb3ab455f5_98876890', + 'file_dependency' => + array ( + '60131ce480b533c2461b470618e17ce8066a9ebe' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/erm_mutterschutz.html', + 1 => 1658138656, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d8eb3ab455f5_98876890 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + type="text/javascript"> + function calc_muschu() { + /* + Diese Funktion berechnet die LVS + */ + var sws = 1; + var beginn_funktion = document.getElementById('beginn_funktion').value; + var ende_funktion = document.getElementById('ende_funktion').value; + + $.ajax({ + type: 'POST', + url: 'fetch_mutterschutz.php', + data: { + get_beginn_funktion: beginn_funktion, + get_ende_funktion: ende_funktion + }, + success: function (response) { + var str1 = response.split("||"); + document.getElementById("gesamtvolumen_count").innerHTML = "" + str1[0] + ""; + + /* LVS Wert in hidden Inputfeld setzen, damit es mit $_POST übertragen wird beim speichern*/ + document.getElementById("lvs").value = str1[1]; + } + }); + } + +> + + + + + type="text/javascript" > + function loader(){ + if(document.erfassen)document.erfassen.sws.focus();return false; + } + +> + + tpl_vars['muschu_status']->value == 'edit') {?> + + type="text/javascript"> + setTimeout(calc_muschu, 100); + +> + + + + +
+ + tpl_vars['muschu_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['muschu_error_text']->value;?> + +
+
+ + +
+ + Mutterschutz/Elternzeit erfassen + +
+
+ + + + + + +
+   + + + + + +
+ Hinweis
+
    +
  • Das Dekanat wird sich mit Ihnen bezüglich der Berechnung Ihrer LVS aufgrund Ihrer Mutterschutz/Elterzeiten in Verbindung setzen + und mit Ihnen die Berechnung besprechen.
  • +
  • Danach wird die LVS-Stundenanzahl aufgrund Ihrer Mutterschutz/Elternzeit in das Programm vom Dekanat eingetragen.
  • +
+
+ +
+
+
+
+

+ tpl_vars['muschu_erf']->value == 1) {?> + + tpl_vars['muschu_erf']->value == 2) {?> + + + + +

+
+
+
+
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d8eb3ab8e533_87583946', + 'file_dependency' => + array ( + '60c1118676fe033d180d0633de34507f850aebfb' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/erm_freist_rektorat_dekanat.html', + 1 => 1656405392, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d8eb3ab8e533_87583946 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.5, + numberFormat: "i", + min:0, + max:25, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['freistrekto_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['freistrekto_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['funktion'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d8eb3ad16533_71910583', + 'file_dependency' => + array ( + '6232baf6491fd7127634956faad8f47116973a54' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/erm_abw_lehrbedarf.html', + 1 => 1658381468, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d8eb3ad16533_71910583 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.5, + numberFormat: "i", + min:-300, + max:300, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + +> + + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['abwlehrb_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['abwlehrb_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ Abweichender Lehrbedarf in LVS eintragen + + + +
  +   +
+ Befristung bis: + + +
  +   +
+   + + + + + +
+ Hinweise
+
    +
  • § 6 LVVO regelt einen abweichenden Lehrbedarf.
  • +
  • Der eingegebene Wert wird für die manuelle Berechnung zugrunde gelegt
  • + +
  • Falls die Lehrverpflichtung in Absprache mit dem Dekanat zeitlich befristet erhöht worden ist, bitte das Forumlar ausfüllen und absenden
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + +
+ lfd.Nr. + + Befristung bis + + Beantragung in LVS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62983f3505d615_37243608', + 'file_dependency' => + array ( + '632eeb3e7ef8cfb8964b31800a29956af0c83b92' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\titel.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62983f3505d615_37243608 ($_smarty_tpl) { +?> + + +Testseite + + + + + + + type="text/javascript" src="ajaxtabs/ajaxtabs.js"> + +/*********************************************** +* Ajax Tabs Content script v2.2- Dynamic Drive DHTML code library (www.dynamicdrive.com) +* This notice MUST stay intact for legal use +* Visit Dynamic Drive at https://www.dynamicdrive.com/ for full source code +***********************************************/ + + +> + + + + + + + + + + + + + + + + + + + + +
+

Deputatverwaltung

+
      +

Logout

+
 
+ +
+ +
+ + + + + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5aab91ff16d671_95512842', + 'file_dependency' => + array ( + '673788c6acd1ed71f64db45fa3fd9942adbc4728' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\kat_anrede.html', + 1 => 1521026673, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5aab91ff16d671_95512842 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + +
+
+
+
+
tpl_vars['anrede_titel']->value;?> +
+
+
+
+
+ tpl_vars['anrede_pflichtfelder']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['anrede_error_text']->value;?> + +
+
+ +
+ + Anrede erstellen / bearbeiten + +
+
+

+ +
+
+
+ +

+
+
+ +
+
+ + +tpl_vars['action']->value == 'edit') {?> + + + + + +
+
+
+
+
tpl_vars['anrede_edit_titel']->value;?> +
+
+
+
+
+
+
+
+

+ tpl_vars['anrede_new']->value == 1) { +echo $_smarty_tpl->tpl_vars['anrede_edit_desc_new']->value;?> +:  + tpl_vars['anrede_new']->value == 0) { +echo $_smarty_tpl->tpl_vars['anrede_edit_desc_exist']->value;?> +:  + +
+
+ + tpl_vars['anrede_new']->value == 0) {?> + + +   + +

+
+
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d14b8ae2fcd72_34565979', + 'file_dependency' => + array ( + '693777c4549dedf4ed8ac5b7eb4ae194805babe7' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\jahrgang.html', + 1 => 1561639084, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d14b8ae2fcd72_34565979 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + +
+
+
+
+
tpl_vars['jahrgang_titel']->value;?> +
+
+
+
+
+

+ +
+
+

+ +
+ + +
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62983f34e74f74_42568886', + 'file_dependency' => + array ( + '6bb8be7ca37aabb406bd8e4c9e22ff763859742d' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\indexframe.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62983f34e74f74_42568886 ($_smarty_tpl) { +?> + + +<?php echo $_smarty_tpl->tpl_vars['global_titel']->value;?> + + + + + + + + + + + + +<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> + +<p>To view this page correctly, you need a Web browser that supports frames.</p> + +</body> + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62bbe5b8b0a059_92237035', + 'file_dependency' => + array ( + '74824dc37a4737b395d7c00b6bb73e80e0653bcf' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\erm_freist_rektorat_dekanat.html', + 1 => 1656405393, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62bbe5b8b0a059_92237035 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.5, + numberFormat: "i", + min:0, + max:25, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['freistrekto_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['freistrekto_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['funktion'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d8eb3ac33010_92849925', + 'file_dependency' => + array ( + '792ea294c53bc4298417c9d819c94441f67d4c25' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/erm_freist_funktion.html', + 1 => 1656405400, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d8eb3ac33010_92849925 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.5, + numberFormat: "i", + min:0, + max:25, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['freistrekto_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['freistrekto_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['funktion'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62983fa7acac60_39138762', + 'file_dependency' => + array ( + '7e26d0f6b15f169cd37251d922955a78c9509bba' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\erfassen_eingabe.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62983fa7acac60_39138762 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + change: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + spin: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + start: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + stop: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + + step: 0.1, + numberFormat: "i", + min:0, + decimals:0 + }); + Globalize.culture( "de-DE" ); + } ); + + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + type="text/javascript" src="erfassen_eingabe.js"> +> + + + +
+
+
+
+
tpl_vars['erf_titel']->value;?> +
+
+
+
+
+ tpl_vars['erf_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['erf_error_text']->value;?> + +
+
+ + tpl_vars['erf_abschluss']->value == '0') {?> +
+ + Lehrveranstaltung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ tpl_vars['erf_studiengang_hig']->value == 1) {?>* Studiengangtpl_vars['erf_studiengang_hig']->value == 1) {?> + + +
  +   +
+ tpl_vars['erf_art_hig']->value == 1) {?>* Art der LVtpl_vars['erf_art_hig']->value == 1) {?> + + + + +
  +   +
+ tpl_vars['erf_titel_hig']->value == 1) {?>* Titel der Lehrveranstaltung (LV)tpl_vars['erf_titel_hig']->value == 1) {?> + + + + + +
  +   +
+ Anzahl der Arbeitsgemeinschaften (AG) + + + +
  +   +
+   + + + + + +
+ Extracurricularer Klausurenkurs
+
    +
  • Es dürfen höchstens tpl_vars['abschluss_value_max_extracur']->value;?> + Lehrstunden (LVS) pro tpl_vars['abschluss_einheit_max_extracur']->value;?> + erfasst werden.
  • +
+
+
+
Krankheitsbedingte Merkmale +
+
+ +
  +   +
+
+ Teamteaching + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ gemeinsame LV + + +
+ fachübergreifende LV + + +
+ tpl_vars['erf_anzgemlv_hig']->value == 1) {?>* Anzahl der Lehrendentpl_vars['erf_anzgemlv_hig']->value == 1) {?> + + +
+ tpl_vars['erf_namegemlv_hig']->value == 1) {?>* Namen der Lehrendentpl_vars['erf_namegemlv_hig']->value == 1) {?> + + +
+ tpl_vars['erf_basislvsgemlv_hig']->value == 1) {?>* Basiswert (LVS) der LVtpl_vars['erf_basislvsgemlv_hig']->value == 1) {?> + + + + +
+ tpl_vars['erf_teamteaching_hig']->value == 1) {?>* Teachingfaktortpl_vars['erf_teamteaching_hig']->value == 1) {?> + + +
+   + +   +
+   + + + + + +
+ Gesamtvolumen
+
    +
  • Der Teachingfaktor gibt vor, zu wieviel Prozent einer Lehrveranstaltung Lehrende gemeinsam lehren dürfen.
  • +
  • Bei einem Faktor von 0,5 dürfen also bis zu 50 % einer Veranstaltung von zwei Lehrenden miteinander gestaltet werden.
  • +
  • Bsp: Sind für ein Fachprojekt 56 LVS vorgesehen, gilt der Faktor 0,5.
    + Das bedeutet, dass höchstens 28 LVS gemeinsam gestaltet werden dürfen.
    + Daraus resultiert ein Gesamtvolumen von 56 LVS + (0,5 Faktor x 56 LVS) = 84 LVS.
    + Das Gesamtvolumen steht den beiden Dozierenden zur Aufteilung (nach eigenem Ermessen) zu.
    + Der einzelne Dozent darf sich aber nicht mehr als 56 LVS zurechnen +
  • +
  • Der Basiswert dient nur zur Berechnung des Gesamtvolumens.
    Die tatsächliche LVS bitte in das Feld "Summe eigene Lehrstunden" eintragen!
  • +
+
Aktuelles Gesamtvolumen: 
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
  +   +
+ tpl_vars['erf_tage_exkursion_hig']->value == 1) {?>* Exkursionsstundentpl_vars['erf_tage_exkursion_hig']->value == 1) {?> + +
+ + + + + + + + + + + + + + +
Datum:
Beschreibung/Ort:
Stunden:
+

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Datum von:
Datum bis:
Beschreibung/Ort:
Stunden Anreisetag:
Stunden Abreisetag:
+
+ + + + +
+ Informationen
+
    +
  • Die Stunden werden mit dem Faktor tpl_vars['erf_value_exk_faktor']->value;?> + multipliziert, um die LVS zu erhalten.
  • +
  • Tageshöchstsatz liegt bei 10 Std. Das entspricht tpl_vars['erf_value_exk_max_tag']->value;?> + LVS.
  • +
  • Ganze Tage werden mit dem Höchstsatz tpl_vars['erf_value_exk_max_tag']->value;?> + LVS berechnet.
  • +
  • Bei mehrtägigen Exkursionen: Geben Sie immer die Stunden am Anreise- und Abreisetag an, sonst werden diese Tage nicht berechnet!
  • +
+
+
+ tpl_vars['erf_std_hig']->value == 1) {?>* Summe eigene Lehrstunden (LVS)tpl_vars['erf_std_hig']->value == 1) {?> + + + + +
  +   +
+ Hinweise + + +
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_3_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_3_total = $__section_table_data2_3_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_3_total != 0) { +for ($__section_table_data2_3_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_3_iteration <= $__section_table_data2_3_total; $__section_table_data2_3_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_3_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_3_saved; +} +?> + + + + + +
+ lfd.Nr. + ';?> + Studiengang (LV) + + Art der LV + ';?> + Titel der Lehrveranstaltung (LV) + + Krankheitsbedingte Merkmale + + gemeinsame LV + + Summe eigene
Lehrstunden (LVS)
+
+ Hinweise + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['studiengang'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['veranstaltung'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['titel'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['krankheitsmerkmal'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['gemlv_form'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['std'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['hinweise'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['did'];?> +>  +
 Summe: tpl_vars['erf_value_summe_jahr']->value;?> + 
+
+ +
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5aab916680dcc6_44973495', + 'file_dependency' => + array ( + '7ea329229c14491aa4bd27d71734573c06d8dec0' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\menu_admin.html', + 1 => 1521036709, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5aab916680dcc6_44973495 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + +Menu + + + type="text/javascript" src="templates/tpl_vars['global_template']->value;?> +/js/jquery.js"> +> + + type="text/javascript" src="templates/tpl_vars['global_template']->value;?> +/js/accordion.js"> +> + + type="text/javascript" src="livesearch/ajax.js"> +> + + type="text/javascript" src="livesearch/ajax-dynamic-list_admin.js"> +> + + + + +
+
+ tpl_vars['menu_admin_bearb']->value == '1') {?> +

Bearbeitung

+ + + + + + tpl_vars['menu_admin_bearb']->value == '1') {?> +

Administration

+ + + + +
+ +
+ + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5acb0c552556e7_68512854', + 'file_dependency' => + array ( + '7ead1ca12141cb85e2446e5651e2561d11c8ef48' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\erf_fz.html', + 1 => 1523256401, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5acb0c552556e7_68512854 ($_smarty_tpl) { +?> + tpl_vars['action']->value == '') {?> + + + + + +
+
+
+
+
tpl_vars['fz_titel']->value;?> +
+
+
+
+
+
+ + Funktion auswählen + +
+
+

+ +
+
+
+ +

+
+
+ +
+
+ + + + + +tpl_vars['action']->value == 'lbfzerf') {?> + + + + + + + src='./datepicker/browserSniffer.js' type='text/javascript' language='javascript'> +> + + src='./datepicker/dynCalendar.js' type='text/javascript' language='javascript'> +> + + type='text/javascript'> + + + + +> + + + language='JavaScript' type='text/javascript'> + + +> + + +
+
+
+
+
tpl_vars['fz_titel']->value;?> +
+
+
+
+
+
+ Erfassung +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ tpl_vars['fz_field_betrag']->value;?> +* + + value;?> +'> € +
+ tpl_vars['fz_field_starttag']->value;?> +* + + value;?> +' size=1>.value;?> +' size=1>.value;?> +' size=3> + + language='JavaScript' type='text/javascript'> + + +> +
+ tpl_vars['fz_field_endtag']->value;?> + + + value;?> +' size=1>.value;?> +' size=1>.value;?> +' size=3> + + language='JavaScript' type='text/javascript'> + + +> +
+ tpl_vars['fz_field_prof']->value;?> + + + +
+ * = Pflichtfelder + +   +
+
+
+
+ Gespeicherte Zulagen + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_2_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_2_total = $__section_table_data2_2_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_2_total != 0) { +for ($__section_table_data2_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_2_iteration <= $__section_table_data2_2_total; $__section_table_data2_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +?> + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_2_saved; +} +?> +
+ tpl_vars['fz_field_starttag']->value;?> + + + tpl_vars['fz_field_betrag']->value;?> + + + tpl_vars['fz_field_name']->value;?> + + + tpl_vars['fz_field_endtag']->value;?> + + + tpl_vars['fz_field_aktionen']->value;?> + +
+ tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['startdat_form'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['wert'];?> + € + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['name'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['enddat_form'];?> + + + +   + +
+
+
+

+ +

+
+
+
+ + +tpl_vars['action']->value == 'save') {?> + + + + + <?php echo $_smarty_tpl->tpl_vars['fz_inserterr_titel']->value;?> + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+ + +
+ tpl_vars['fz_save_titel']->value;?> +
+ +
+ +
+ + +
+

tpl_vars['fz_save_text']->value;?> +

+

+
+

+

+

+

+

+


+

+
+ +
+ + + + + +
+
+
+ + + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d8e4a5397723_47851058', + 'file_dependency' => + array ( + '83e8c2f33062dfc3ea2b471c290ef267f717dc9b' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\erm_abw_lehrbedarf.html', + 1 => 1658381468, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d8e4a5397723_47851058 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.5, + numberFormat: "i", + min:-300, + max:300, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + +> + + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['abwlehrb_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['abwlehrb_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ Abweichender Lehrbedarf in LVS eintragen + + + +
  +   +
+ Befristung bis: + + +
  +   +
+   + + + + + +
+ Hinweise
+
    +
  • § 6 LVVO regelt einen abweichenden Lehrbedarf.
  • +
  • Der eingegebene Wert wird für die manuelle Berechnung zugrunde gelegt
  • + +
  • Falls die Lehrverpflichtung in Absprache mit dem Dekanat zeitlich befristet erhöht worden ist, bitte das Forumlar ausfüllen und absenden
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + +
+ lfd.Nr. + + Befristung bis + + Beantragung in LVS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d3a8aa9c65776_70956635', + 'file_dependency' => + array ( + '8577b26b452298ddb7c9b67be2a9286cd7a47905' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\ermaessigung.html', + 1 => 1564117628, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d3a8aa9c65776_70956635 ($_smarty_tpl) { +?> + + + + + + src='iframe-resizer-master/js/iframeResizer.min.js'> +> + + + + +
+
+
+
+
Ermäßigungen
+
+
+
+

Indem Sie auf die Überschriften klicken können Sie die Teilbereiche auf- und zuklappen.

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+
+
+ +> + var acc = document.getElementsByClassName("accordion"); + var i; + + for (i = 0; i < acc.length; i++) { + acc[i].addEventListener("click", function() { + this.classList.toggle("active"); + var panel = this.nextElementSibling; + if (panel.style.maxHeight){ + panel.style.maxHeight = null; + } else { + panel.style.maxHeight = panel.scrollHeight + "px"; + } + }); + } + +> + +>iFrameResize({ + log : false, // Enable console logging + enablePublicMethods : true, // Enable methods within iframe hosted page + heightCalculationMethod : 'lowestElement', + }); +> + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc46f30d10d08_23517869', + 'file_dependency' => + array ( + '85d3ca8da1ec4940bd91e2dae28727f9af797901' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/admin_frame.html', + 1 => 1561633110, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc46f30d10d08_23517869 ($_smarty_tpl) { +?> + + +Deputatverwaltung + + + + + + + + + + +<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> + +<p>To view this page correctly, you need a Web browser that supports frames.</p> + +</body> + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62bace620b8017_65558292', + 'file_dependency' => + array ( + '8738ec39812aa4872b72a631f7fb7a77fc9850ef' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\erm_freist_forschung.html', + 1 => 1656405946, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62bace620b8017_65558292 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.5, + numberFormat: "i", + min:0, + max:25, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['freistrekto_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['freistrekto_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['funktion'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62b9b31f198857_07275820', + 'file_dependency' => + array ( + '87edde91c103da72ca78f64b0283d9f02b443091' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\hauptframe.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62b9b31f198857_07275820 ($_smarty_tpl) { +?> + + +<?php echo $_smarty_tpl->tpl_vars['hauptframe_titel']->value;?> + + + + + + +
+
+
tpl_vars['global_titel']->value;?> +
+
+
+ +
+

+ + + + +
+ tpl_vars['hauptframe_text1']->value;?> + tpl_vars['hauptframe_cur_jahrgang']->value;?> +/tpl_vars['hauptframe_cur_jahrgang']->value+1;?> + +
+
+
+ tpl_vars['hauptframe_text2']->value;?> + +
+

+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d136675d4379_49124251', + 'file_dependency' => + array ( + '8c7b6024f61c243469a584cacfbdcb027c13022a' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\jahresabschluss.html', + 1 => 1657878115, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d136675d4379_49124251 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + +
+
+
+
+
tpl_vars['jaabschl_titel']->value;?> + tpl_vars['jaabschl_jahrgang']->value;?> +
+
+
+
+
+ tpl_vars['jaabschl_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['jaabschl_error_text']->value;?> + +
+ +
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data0']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0'] : false; +$__section_table_data0_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data0']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data0_0_total = $__section_table_data0_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data0'] = new Smarty_Variable(array()); +if ($__section_table_data0_0_total != 0) { +for ($__section_table_data0_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] = 0; $__section_table_data0_0_iteration <= $__section_table_data0_0_total; $__section_table_data0_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['rownum'] = $__section_table_data0_0_iteration; +?> + tpl_vars['__smarty_section_table_data0']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['rownum'] : null) != '') {?> + + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data0'] = $__section_table_data0_0_saved; +} +?> + + + + + + + + + +
+ lfd.Nr. + + Art + + Hinweis + + Beginn + + Ende + + Berechnungszeitraum + + SWS + + Ermäßigung in LVS + + Berechnung (Soll-LVS: tpl_vars['erf_value_soll_lvs']->value;?> +) +
+ tpl_vars['__smarty_section_table_data0']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['rownum'] : null);?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['art'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['hinweis'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['beginn_form'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['ende_form'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['monate'] > 0) {?> + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['monate'];?> + Monat(e) + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['tage'] > 0) {?> + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['tage'];?> + Tag(e) + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['anz_lvs'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['cur_lvs'];?> + - tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['ber_lvs'];?> + = tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['erg_lvs'];?> + +
  + Summe: tpl_vars['erf_value_summe_jahr_erm']->value;?> + + + Zu leistende LVS: tpl_vars['erf_value_zu_leisten']->value;?> +
+ (Rechenweg: tpl_vars['erf_value_soll_lvs']->value;?> + - tpl_vars['erf_value_summe_jahr_erm']->value;?> +) +
+
+
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data1']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1'] : false; +$__section_table_data1_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data1_1_total = $__section_table_data1_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = new Smarty_Variable(array()); +if ($__section_table_data1_1_total != 0) { +for ($__section_table_data1_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] = 0; $__section_table_data1_1_iteration <= $__section_table_data1_1_total; $__section_table_data1_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] = $__section_table_data1_1_iteration; +?> + tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null) != '') {?> + + + + + + + + + + + + tpl_vars['__smarty_section_table_data1'] = $__section_table_data1_1_saved; +} +?> + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Krankheitsbedingte Merkmale + + gemeinsame LV + + Summe eigene Lehrstunden (LVS) + + Hinweise +
+ tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null);?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['titel'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['veranstaltung'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['krankheitsmerkmal'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['gemlv_form'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['std'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['hinweise'];?> + +
 Summe: tpl_vars['erf_value_summe_jahr']->value;?> + 
+
+
+
+
+ + Sonstige Lehrveranstaltungen + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_2_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_2_total = $__section_table_data2_2_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_2_total != 0) { +for ($__section_table_data2_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_2_iteration <= $__section_table_data2_2_total; $__section_table_data2_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_2_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_2_saved; +} +?> + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Summe eigene Lehrstunden (LVS) + + Hinweise +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['titel'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['veranstaltung'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['hinweise'];?> + +
 Summe: tpl_vars['erfs_value_summe_jahr']->value;?> + 
+
+
+
+
+ + Erfasste Abschlussarbeiten + + + + + + + + + + + tpl_vars['__smarty_section_table_data3']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3'] : false; +$__section_table_data3_3_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data3']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data3_3_total = $__section_table_data3_3_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data3'] = new Smarty_Variable(array()); +if ($__section_table_data3_3_total != 0) { +for ($__section_table_data3_3_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] = 0; $__section_table_data3_3_iteration <= $__section_table_data3_3_total; $__section_table_data3_3_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] = $__section_table_data3_3_iteration; +?> + tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data3'] = $__section_table_data3_3_saved; +} +?> + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + LVS + +   +
+ tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null);?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['name'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['abschlussarbeit'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['semesterbez'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['lvs'];?> + + +   +
 Summe: tpl_vars['abschluss_value_summe_lvs']->value;?> + 
+
+
+
+
+ + Gesamtbetrachtung + + + + + + + + + + + + + + + + + + + + + + +
+ Erfasste Deputate + + tpl_vars['erf_value_summe_jahr']->value;?> + +  
+ Sonstige Deputate + + tpl_vars['erfs_value_summe_jahr']->value;?> + +  
+ Erfasste Abschlussarbeiten + + tpl_vars['abschluss_value_summe_lvs']->value;?> + +  
+ Jahressumme + + tpl_vars['abschluss_gesamt']->value;?> + +  
+
+
+
+
+ + Synopse tpl_vars['jaabschl_jahrgang']->value;?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data4']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4'] : false; +$__section_table_data4_4_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data4']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data4_4_total = $__section_table_data4_4_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data4'] = new Smarty_Variable(array()); +if ($__section_table_data4_4_total != 0) { +for ($__section_table_data4_4_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] = 0; $__section_table_data4_4_iteration <= $__section_table_data4_4_total; $__section_table_data4_4_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']++){ +?> + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data4'] = $__section_table_data4_4_saved; +} +?> + +
+ Jahr + + Anfangsstand + + Deputatsumme Soll + + Deputatsumme Ist + + Über-/Unterdeputat im aktuellen Jahr + + Abbau Unterdeputat durch Überdeputat Vorjahre + + Verfall aus Jahr + + Verfallene Std + + Über- Unterdeputat des Jahres + + Übertrag Folgejahr +
+ tpl_vars['jaabschl_jahrgang']->value;?> + + + tpl_vars['jaabschl_endwert_vorjahr']->value;?> + + + tpl_vars['jaabschl_soll']->value;?> + + + tpl_vars['jaabschl_ist']->value;?> + + + tpl_vars['jaabschl_uber_unter_jahr']->value;?> + + + tpl_vars['jaabschl_abbau_jahr']->value;?> + + + tpl_vars['jaabschl_verfall_jahr']->value;?> + + + tpl_vars['jaabschl_dep_verfall']->value;?> + + + tpl_vars['jaabschl_dep_gesamt']->value;?> + + + tpl_vars['jaabschl_dep_gesamt_nach_verfall']->value;?> + +
+
+ Veränderungen der Vorjahre durch das aktuelle Jahr +
+ Jahr + + Jahresendstand bisher + + Deputatsumme Soll + + Deputatsumme Ist + + Über-/Unterdeputat im aktuellen Jahr + + Abbau Unterdeputat durch Überdeputat Vorjahre + + Verfall aus Jahr + + Verfallene Std + + Über- Unterdeputat des Jahres alt + + Über- Unterdeputat des Jahres neu +
+ tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['vorjahr'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_gesamt_nach_verfall'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['soll'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['ist'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['uber_unter_jahr'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['differenz'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_verfall_jahr'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_verfall'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_gesamt'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['endwert'];?> + +
+
+
+ tpl_vars['jaabschl_closed']->value == 0) {?> + + + + + + +
+  Studienjahr abschließen und absenden  +
+ +
+
+ + +tpl_vars['action']->value == 'abschluss') {?> + + + + + +
+
+
+
+
Jahrgang abschließen
+
+
+ +
+

+Sind Sie sicher, dass sie das aktuelle Jahr tpl_vars['jaabschl_jahrgang']->value;?> + abschließen möchten? +
+Danach sind keine Änderungen mehr möglich! +
+
+  +

+
+ + +
+
+ + +tpl_vars['action']->value == 'abschluss2') {?> + + + + + +
+
+
+
+
Jahrgang abschließen
+
+
+
+
+

+ Der Jahrgang tpl_vars['jaabschl_jahrgang']->value;?> + wurde gespeichert! +
+
+

+
+ + +
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62babda5acfc60_61396051', + 'file_dependency' => + array ( + '8e8a7d2d06c50c8405ded6643566e35a100d0b11' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\erm_freist_funktion.html', + 1 => 1656405400, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62babda5acfc60_61396051 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.5, + numberFormat: "i", + min:0, + max:25, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['freistrekto_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['freistrekto_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['funktion'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc2d2a019c812_07816864', + 'file_dependency' => + array ( + '9346a7459f32a0e5c9bd059397fafebf21fbf785' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\abschlussarbeiten.html', + 1 => 1573048989, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc2d2a019c812_07816864 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + change: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + spin: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + start: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + stop: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + + step: 0.1, + numberFormat: "i", + min:0, + decimals:0 + }); + Globalize.culture( "de-DE" ); + } ); + + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + +> + function felder_einblenden() { + /* Bei Master darf eine Betreuungspauschle eingegeben werden */ + if (document.getElementById("kaid").value == "2") { + // + }else{ + // + } + } + +> + + +
+
+
+
+
tpl_vars['abschluss_titel']->value;?> +
+
+
+
+
+ tpl_vars['abschluss_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['abschluss_error_text']->value;?> + +
+
+ + tpl_vars['abschluss_abschluss']->value == '0') {?> +
+ + Abschlussarbeit erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ Name des Studierenden + + +
+ Art der Abschlussarbeit + + +
+ Betreuungspauschale (LVS) + + +
+   + +   +
+ Semester + + +
+   + +
+ + + + +
+ Informationen
+
    +
  • Es können höchstens tpl_vars['abschluss_value_max_arbeiten']->value;?> + Abschlussarbeiten pro Semester erfasst werden.
  • +
+
+
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Abschlussarbeiten im Wintersemester + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + Betreuungspauschale + + LVS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['name'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['abschlussarbeit'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['semesterbez'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['pauschale'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['daid'];?> +> +   + +
 Summe: tpl_vars['abschluss_value_ws_summe_lvs']->value;?> + 
+
+
+
+ + Erfasste Abschlussarbeiten im Sommersemester + + + + + + + + + + + + tpl_vars['__smarty_section_table_data3']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3'] : false; +$__section_table_data3_2_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data3']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data3_2_total = $__section_table_data3_2_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data3'] = new Smarty_Variable(array()); +if ($__section_table_data3_2_total != 0) { +for ($__section_table_data3_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] = 0; $__section_table_data3_2_iteration <= $__section_table_data3_2_total; $__section_table_data3_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] = $__section_table_data3_2_iteration; +?> + tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data3'] = $__section_table_data3_2_saved; +} +?> + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + Betreuungspauschale + + LVS + + Edit +
+ tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null);?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['name'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['abschlussarbeit'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['semesterbez'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['pauschale'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['daid'];?> +> +   + +
 Summe: tpl_vars['abschluss_value_ss_summe_lvs']->value;?> + 
+
+ +
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62983d8d09d366_86079654', + 'file_dependency' => + array ( + '94dc780312073f0c47140a9bf5b3885498ea3d3e' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\index.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62983d8d09d366_86079654 ($_smarty_tpl) { +?> + +tpl_vars['action']->value == '') {?> + + + <?php echo $_smarty_tpl->tpl_vars['index_titel']->value;?> + + + + + + + + type="text/javascript" src="./fancybox/jquery-1.5.1.min.js"> +> + + + type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"> +> + + type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"> +> + + + type="text/javascript"> + $(document).ready(function() { + $(".box").fancybox({ + 'width' : '75%', + 'height' : '75%', + 'autoScale' : true, + 'transitionIn' : 'elastic', + 'transitionOut' : 'elastic', + 'type' : 'iframe' + }); + }); + +> + + + + + + + + + + +
+   + +
+
+
tpl_vars['index_titel']->value;?> +
+
+
+
+

+ tpl_vars['index_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['index_error_text']->value;?> + +
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ tpl_vars['index_field_user']->value;?> + + +
+ tpl_vars['index_field_pass']->value;?> + + +
+   +
+   + + +
+
+

+ tpl_vars['index_register']->value;?> + + +

+
+
+ + +
+
+   +
+ + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62b9b24ae1dfb3_13044465', + 'file_dependency' => + array ( + '9a78efd44590e7ffed55df0015b79dae793ccb40' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\index.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62b9b24ae1dfb3_13044465 ($_smarty_tpl) { +?> + +tpl_vars['action']->value == '') {?> + + + <?php echo $_smarty_tpl->tpl_vars['index_titel']->value;?> + + + + + + + + type="text/javascript" src="./fancybox/jquery-1.5.1.min.js"> +> + + + type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"> +> + + type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"> +> + + + type="text/javascript"> + $(document).ready(function() { + $(".box").fancybox({ + 'width' : '75%', + 'height' : '75%', + 'autoScale' : true, + 'transitionIn' : 'elastic', + 'transitionOut' : 'elastic', + 'type' : 'iframe' + }); + }); + +> + + + + + + + + + + +
+   + +
+
+
tpl_vars['index_titel']->value;?> +
+
+
+
+

+ tpl_vars['index_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['index_error_text']->value;?> + +
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ tpl_vars['index_field_user']->value;?> + + +
+ tpl_vars['index_field_pass']->value;?> + + +
+   +
+   + + +
+
+

+ tpl_vars['index_register']->value;?> + + +

+
+
+ + +
+
+   +
+ + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_629844323fe015_64812170', + 'file_dependency' => + array ( + '9b76be132390308f57a6e41752f7d45e7c465d8e' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\erfassen_sonstige.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_629844323fe015_64812170 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.1, + numberFormat: "i", + min:0, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + +
+
+
+
+
tpl_vars['erfs_titel']->value;?> +
+
+
+
+
+ tpl_vars['erfs_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['erfs_error_text']->value;?> + +
+
+ + tpl_vars['erfs_abschluss']->value == '0') {?> +
+ + Lehrveranstaltung erfassen + +
+
+ + + + + + + + + + + language="javascript" type="text/javascript"> + function einblenden ($verid) { + /* Bei Exkursionen Erfassungsfeld einblenden*/ + if (document.getElementById("art").value == "5") { + document.getElementById("exkursion1").style.visibility = "visible"; + document.getElementById("lehrstd1").style.visibility = "hidden"; + document.getElementById("exk_datumvon2").disabled = true; + document.getElementById("exk_datumbis2").disabled = true; + document.getElementById("exk_beschreibung2").disabled = true; + document.getElementById("exk_stdanreise2").disabled = true; + document.getElementById("exk_stdabreise2").disabled = true; + + // + + }else{ + document.getElementById("exkursion1").style.visibility = "hidden"; + document.getElementById("lehrstd1").style.visibility = "visible"; + // + } + if (document.getElementById("art").value == "6") { + /*Hinweis zu Extracurricularer Klausurenkurs einblenden*/ + // + } + } + +> + + + + + + + + + + + + + + + + + + + + +
+ Titel der Lehrveranstaltung (LV) + + + +
  +   +
+ Art der LV + + +
  +   +
+ Summe eigene Lehrstunden (LVS) + + + +
  +   +
+ Hinweise + + +
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Summe eigene Lehrstunden (LVS) + + Hinweise + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['titel'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['veranstaltung'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['hinweise'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['dsid'];?> +> +   + +
 Summe: tpl_vars['erfs_value_summe_jahr']->value;?> + 
+
+ +
+
+
+ + + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d72109903bc97_80419727', + 'file_dependency' => + array ( + '9c718d718c0f612c5c15751e4ebd1d47cb6b9387' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\erm_freist_funktion.html', + 1 => 1567756432, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d72109903bc97_80419727 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + change: function (event, ui) { + calc_erm_78(); + }, + spin: function (event, ui) { + calc_erm_78(); + }, + start: function (event, ui) { + calc_erm_78(); + }, + stop: function (event, ui) { + calc_erm_78(); + }, + step: 0.1, + numberFormat: "i", + min:0, + decimals:0 + }); + Globalize.culture( "de-DE" ); + } ); + + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + type="text/javascript"> + function calc_erm_78() { + /* + Diese Funktion berechnet die LVS + */ + var sws = document.getElementById('sws').value; + var beginn_funktion = document.getElementById('beginn_funktion').value; + var ende_funktion = document.getElementById('ende_funktion').value; + + $.ajax({ + type: 'POST', + url: 'fetch_lvs_erm_7-8.php', + data: { + get_option: sws, + get_beginn_funktion: beginn_funktion, + get_ende_funktion: ende_funktion + }, + success: function (response) { + var str1 = response.split("||"); + document.getElementById("gesamtvolumen_count").innerHTML = "" + str1[0] + ""; + + /* LVS Wert in hidden Inputfeld setzen, damit es mit $_POST übertragen wird beim speichern*/ + document.getElementById("lvs").value = str1[1]; + } + }); + } + +> + + + + + type="text/javascript" > + function loader(){ + if(document.erfassen)document.erfassen.sws.focus();return false; + } + +> + + tpl_vars['freistrekto_status']->value == 'edit') {?> + + type="text/javascript"> + setTimeout(calc_erm_78, 100); + +> + + + + +
+ + tpl_vars['freistrekto_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['freistrekto_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist tagesgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Rechenweg: SWS x Semesterwochen x ausgeübte Tage der Funktion x Anzahl der Tage im Jahr (365 bzw. 366)
  • +
+
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + + + + + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Ermäßigung LVS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['funktion'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
 Summe: tpl_vars['freistrekto_value_summe_jahr']->value;?> + 
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d10232cd7eb8_09241192', + 'file_dependency' => + array ( + '9f79693dfcb6a7fc79d702acd349d9e3eaf9aee4' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\erm_teilzeit.html', + 1 => 1657864750, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d10232cd7eb8_09241192 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + +
+ + tpl_vars['tz_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['tz_error_text']->value;?> + +
+
+
+ + +
+ + Teilzeit erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ Prozent + + +
  +   +
+ Beginn der Teilzeit + + +
  +   +
+   + + + + + +
+ Hinweis
+
    +
  • Eine ältere Teilzeit endet dann, wenn eine neue Teilzeit erfasst wird.
  • +
  • Es wird immer der Monatserste als Beginntag festgelegt!
  • +
  • Betrachtet werden Zeiträume des Studienjahres: 01.09 - 31.08
  • +
+
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Teilzeit + +
+ Basiswert der Lehrveranstaltungsstunden in diesem Studienjahr: tpl_vars['tz_baselvs']->value;?> + +
+ + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + +
+ lfd.Nr. + + Beginn + + Prozent + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn_form'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['prozent'];?> + % + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d70d3f59fba44_69901460', + 'file_dependency' => + array ( + 'a11fc644885a54cf4777c553d86b0a78959c55e5' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\erm_teilzeit.html', + 1 => 1567675370, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d70d3f59fba44_69901460 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + +
+ + tpl_vars['tz_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['tz_error_text']->value;?> + +
+
+
+ + +
+ + Teilzeit erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ Prozent + + +
  +   +
+ Beginn der Funktion + + +
  +   +
+   + + + + + +
+ Hinweis
+
    +
  • Eine ältere Teilzeit endet dann, wenn eine neue Teilzeit erfasst wird.
  • +
  • Es wird immer der Monatserste als Beginntag festgelegt!
  • +
  • Betrachtet werden Zeiträume des Studienjahres: 01.09 - 31.08
  • +
+
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Lehrveranstaltungen + +
+ Basiswert der Lehrveranstaltungsstunden in diesem Studienjahr: tpl_vars['tz_baselvs']->value;?> + +
+ + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + + + + + +
+ lfd.Nr. + + Beginn + + Prozent + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn_form'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['prozent'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['nodel'] != 1) {?> + + + + + +
 EVTL FALSCH. Reihenfolge für Abzüge berücksichtigen. Haug 25.7.19Lehrveranstaltungsstunden: tpl_vars['tz_value_lvs']->value;?> + 
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62b9b326b1e1d3_36889385', + 'file_dependency' => + array ( + 'a369b86fdec12081f8275fb4aa8da83f028219cf' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\erm_mutterschutz.html', + 1 => 1655979737, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62b9b326b1e1d3_36889385 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + type="text/javascript"> + function calc_muschu() { + /* + Diese Funktion berechnet die LVS + */ + var sws = 1; + var beginn_funktion = document.getElementById('beginn_funktion').value; + var ende_funktion = document.getElementById('ende_funktion').value; + + $.ajax({ + type: 'POST', + url: 'fetch_mutterschutz.php', + data: { + get_beginn_funktion: beginn_funktion, + get_ende_funktion: ende_funktion + }, + success: function (response) { + var str1 = response.split("||"); + document.getElementById("gesamtvolumen_count").innerHTML = "" + str1[0] + ""; + + /* LVS Wert in hidden Inputfeld setzen, damit es mit $_POST übertragen wird beim speichern*/ + document.getElementById("lvs").value = str1[1]; + } + }); + } + +> + + + + + type="text/javascript" > + function loader(){ + if(document.erfassen)document.erfassen.sws.focus();return false; + } + +> + + tpl_vars['muschu_status']->value == 'edit') {?> + + type="text/javascript"> + setTimeout(calc_muschu, 100); + +> + + + + +
+ + tpl_vars['muschu_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['muschu_error_text']->value;?> + +
+
+ + +
+ + Mutterschutz/Elternzeit erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + +
+ Beginn des Mutterschutzes / der Elternzeit + + +
  +   +
+ Ende des Mutterschutzes / der Elternzeit + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist tagesgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Rechenweg: LVS-(Anzahl der Mutterschutztage / Anzahl der Tage im Jahr x LVS)
  • +
+
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Mutterschutzeit / Elternzeit / Pflegezeit + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + + + + + +
+ lfd.Nr. + + Art + + Beginn + + Ende + + Ermäßigung LVS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['art'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
 Summe: tpl_vars['muschu_value_summe_jahr']->value;?> + 
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62b9b31f1d2945_54329858', + 'file_dependency' => + array ( + 'ab3dc24c6cb4c53e9729da485efc4025aaf28bb8' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\titel.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62b9b31f1d2945_54329858 ($_smarty_tpl) { +?> + + +Testseite + + + + + + + type="text/javascript" src="ajaxtabs/ajaxtabs.js"> + +/*********************************************** +* Ajax Tabs Content script v2.2- Dynamic Drive DHTML code library (www.dynamicdrive.com) +* This notice MUST stay intact for legal use +* Visit Dynamic Drive at https://www.dynamicdrive.com/ for full source code +***********************************************/ + + +> + + + + + + + + + + + + + + + + + + + + +
+

Deputatverwaltung

+
      +

Logout

+
 
+ +
+ +
+ + + + + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dcea855c7a7f2_02867469', + 'file_dependency' => + array ( + 'ada4888fbd82e9c86a0d41b98d8dcb56c4b93d38' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/kat_anrede.html', + 1 => 1521026672, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dcea855c7a7f2_02867469 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + +
+
+
+
+
tpl_vars['anrede_titel']->value;?> +
+
+
+
+
+ tpl_vars['anrede_pflichtfelder']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['anrede_error_text']->value;?> + +
+
+ +
+ + Anrede erstellen / bearbeiten + +
+
+

+ +
+
+
+ +

+
+
+ +
+
+ + +tpl_vars['action']->value == 'edit') {?> + + + + + +
+
+
+
+
tpl_vars['anrede_edit_titel']->value;?> +
+
+
+
+
+
+
+
+

+ tpl_vars['anrede_new']->value == 1) { +echo $_smarty_tpl->tpl_vars['anrede_edit_desc_new']->value;?> +:  + tpl_vars['anrede_new']->value == 0) { +echo $_smarty_tpl->tpl_vars['anrede_edit_desc_exist']->value;?> +:  + +
+
+ + tpl_vars['anrede_new']->value == 0) {?> + + +   + +

+
+
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc46f30f22910_80231790', + 'file_dependency' => + array ( + 'af87342ca6c527421da86e807836ceb49aef6064' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/hauptframe_admin.html', + 1 => 1519650278, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc46f30f22910_80231790 ($_smarty_tpl) { +?> + + +<?php echo $_smarty_tpl->tpl_vars['hauptframe_admin_titel']->value;?> + + + + + + +
+
+
tpl_vars['hauptframe_admin_titel']->value;?> +
+
+
+ +
+

+ + + + +
+ tpl_vars['hauptframe_admin_text1']->value;?> + +
+
+
+ tpl_vars['hauptframe_admin_text2']->value;?> + +
+

+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62983f9df0ec57_72310769', + 'file_dependency' => + array ( + 'b087b8167ec86d8ea23b19c1577ba2af8da54a8b' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\menu_eingabe.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62983f9df0ec57_72310769 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + +Menu + + + type="text/javascript" src="templates/tpl_vars['global_template']->value;?> +/js/jquery.js"> +> + + type="text/javascript" src="templates/tpl_vars['global_template']->value;?> +/js/accordion.js"> +> + + type="text/javascript" src="livesearch/ajax.js"> +> + + type="text/javascript" src="livesearch/ajax-dynamic-list.js"> +> + + + + +
+ + +
+ + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc3b669e223e7_05727517', + 'file_dependency' => + array ( + 'b1df743487ce4e198129924d84df9fe722431140' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/index.html', + 1 => 1520588374, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc3b669e223e7_05727517 ($_smarty_tpl) { +?> + +tpl_vars['action']->value == '') {?> + + + <?php echo $_smarty_tpl->tpl_vars['index_titel']->value;?> + + + + + + + + type="text/javascript" src="./fancybox/jquery-1.5.1.min.js"> +> + + + type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"> +> + + type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"> +> + + + type="text/javascript"> + $(document).ready(function() { + $(".box").fancybox({ + 'width' : '75%', + 'height' : '75%', + 'autoScale' : true, + 'transitionIn' : 'elastic', + 'transitionOut' : 'elastic', + 'type' : 'iframe' + }); + }); + +> + + + + + + + + + + +
+   + +
+
+
tpl_vars['index_titel']->value;?> +
+
+
+
+

+ tpl_vars['index_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['index_error_text']->value;?> + +
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ tpl_vars['index_field_user']->value;?> + + +
+ tpl_vars['index_field_pass']->value;?> + + +
+   +
+   + + +
+
+

+ tpl_vars['index_register']->value;?> + + +

+
+
+ + +
+
+   +
+ + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62bbec446934e2_90178740', + 'file_dependency' => + array ( + 'b3dd8a107737561a3dd64dd66d719c2ab5d75b2f' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\erm_abordnung.html', + 1 => 1656482879, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62bbec446934e2_90178740 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['abord_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['abord_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + +
+ Beginn des Forschungssemesters / Praxissemesters / der Abordnungen, falls nicht ganzjährig + + + +
  +   +
+ Ende des Forschungssemesters / Praxissemesters / der Abordnungen, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + +
+ lfd.Nr. + + Beginn + + Ende + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62983f9e161bd8_69386448', + 'file_dependency' => + array ( + 'b47c90a6c37b1229c4d45c65316f799fd9b565e3' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\jahrgang.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62983f9e161bd8_69386448 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + +
+
+
+
+
tpl_vars['jahrgang_titel']->value;?> +
+
+
+
+
+

+ +
+
+

+ +
+ + +
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d8d92eb81802_04824613', + 'file_dependency' => + array ( + 'ba661ef3a442636b9ad1a8f12f9e4cd63e4b0020' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\ermaessigung.html', + 1 => 1658378536, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d8d92eb81802_04824613 ($_smarty_tpl) { +?> + + + + + + src='iframe-resizer-master/js/iframeResizer.min.js'> +> + + + + +
+
+
+
+
Ermäßigungen tpl_vars['erm_jahrgang']->value;?> +
+
+
+
+ tpl_vars['erm_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['erm_error_text']->value;?> + +
+
+ + tpl_vars['erm_abschluss']->value == '0') {?> +

Indem Sie auf die Überschriften klicken können Sie die Teilbereiche auf- und zuklappen.

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+
+ +> + var acc = document.getElementsByClassName("accordion"); + var i; + + for (i = 0; i < acc.length; i++) { + acc[i].addEventListener("click", function() { + this.classList.toggle("active"); + var panel = this.nextElementSibling; + if (panel.style.maxHeight){ + panel.style.maxHeight = null; + } else { + panel.style.maxHeight = panel.scrollHeight + "px"; + } + }); + } + +> + +>iFrameResize({ + log : false, // Enable console logging + heightCalculationMethod : 'documentElementOffset', + autoResize : true, + scrolling : true, + tolerance : 1000, + sizeHeight : true, + }); +> + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc3b670be7ed6_80465546', + 'file_dependency' => + array ( + 'bc406e158fc043b09d9a52f7244c3af81b0ab5b6' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/titel.html', + 1 => 1520413432, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc3b670be7ed6_80465546 ($_smarty_tpl) { +?> + + +Testseite + + + + + + + type="text/javascript" src="ajaxtabs/ajaxtabs.js"> + +/*********************************************** +* Ajax Tabs Content script v2.2- Dynamic Drive DHTML code library (www.dynamicdrive.com) +* This notice MUST stay intact for legal use +* Visit Dynamic Drive at https://www.dynamicdrive.com/ for full source code +***********************************************/ + + +> + + + + + + + + + + + + + + + + + + + + +
+

Deputatverwaltung

+
      +

Logout

+
 
+ +
+ +
+ + + + + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc3b6789b0170_49980389', + 'file_dependency' => + array ( + 'c04336b915b2a352aae32a38904309d00d971378' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/erfassen_eingabe.html', + 1 => 1573043846, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc3b6789b0170_49980389 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + change: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + spin: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + start: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + stop: function (event, ui) { + if(this.name == 'basislvsgemlv'){ + gesvol_calc(); + } + }, + + step: 0.1, + numberFormat: "i", + min:0, + decimals:0 + }); + Globalize.culture( "de-DE" ); + } ); + + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + type="text/javascript" src="erfassen_eingabe.js"> +> + + + +
+
+
+
+
tpl_vars['erf_titel']->value;?> +
+
+
+
+
+ tpl_vars['erf_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['erf_error_text']->value;?> + +
+
+ + tpl_vars['erf_abschluss']->value == '0') {?> +
+ + Lehrveranstaltung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ tpl_vars['erf_studiengang_hig']->value == 1) {?>* Studiengangtpl_vars['erf_studiengang_hig']->value == 1) {?> + + +
  +   +
+ tpl_vars['erf_art_hig']->value == 1) {?>* Art der LVtpl_vars['erf_art_hig']->value == 1) {?> + + + + +
  +   +
+ tpl_vars['erf_titel_hig']->value == 1) {?>* Titel der Lehrveranstaltung (LV)tpl_vars['erf_titel_hig']->value == 1) {?> + + + + + +
  +   +
+ Anzahl der Arbeitsgemeinschaften (AG) + + + +
  +   +
+   + + + + + +
+ Extracurricularer Klausurenkurs
+
    +
  • Es dürfen höchstens tpl_vars['abschluss_value_max_extracur']->value;?> + Lehrstunden (LVS) pro tpl_vars['abschluss_einheit_max_extracur']->value;?> + erfasst werden.
  • +
+
+
+
Krankheitsbedingte Merkmale +
+
+ +
  +   +
+
+ Teamteaching + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ gemeinsame LV + + +
+ fachübergreifende LV + + +
+ tpl_vars['erf_anzgemlv_hig']->value == 1) {?>* Anzahl der Lehrendentpl_vars['erf_anzgemlv_hig']->value == 1) {?> + + +
+ tpl_vars['erf_namegemlv_hig']->value == 1) {?>* Namen der Lehrendentpl_vars['erf_namegemlv_hig']->value == 1) {?> + + +
+ tpl_vars['erf_basislvsgemlv_hig']->value == 1) {?>* Basiswert (LVS) der LVtpl_vars['erf_basislvsgemlv_hig']->value == 1) {?> + + + + +
+ tpl_vars['erf_teamteaching_hig']->value == 1) {?>* Teachingfaktortpl_vars['erf_teamteaching_hig']->value == 1) {?> + + +
+   + +   +
+   + + + + + +
+ Gesamtvolumen
+
    +
  • Der Teachingfaktor gibt vor, zu wieviel Prozent einer Lehrveranstaltung Lehrende gemeinsam lehren dürfen.
  • +
  • Bei einem Faktor von 0,5 dürfen also bis zu 50 % einer Veranstaltung von zwei Lehrenden miteinander gestaltet werden.
  • +
  • Bsp: Sind für ein Fachprojekt 56 LVS vorgesehen, gilt der Faktor 0,5.
    + Das bedeutet, dass höchstens 28 LVS gemeinsam gestaltet werden dürfen.
    + Daraus resultiert ein Gesamtvolumen von 56 LVS + (0,5 Faktor x 56 LVS) = 84 LVS.
    + Das Gesamtvolumen steht den beiden Dozierenden zur Aufteilung (nach eigenem Ermessen) zu.
    + Der einzelne Dozent darf sich aber nicht mehr als 56 LVS zurechnen +
  • +
  • Der Basiswert dient nur zur Berechnung des Gesamtvolumens.
    Die tatsächliche LVS bitte in das Feld "Summe eigene Lehrstunden" eintragen!
  • +
+
Aktuelles Gesamtvolumen: 
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
  +   +
+ tpl_vars['erf_tage_exkursion_hig']->value == 1) {?>* Exkursionsstundentpl_vars['erf_tage_exkursion_hig']->value == 1) {?> + +
+ + + + + + + + + + + + + + +
Datum:
Beschreibung/Ort:
Stunden:
+

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Datum von:
Datum bis:
Beschreibung/Ort:
Stunden Anreisetag:
Stunden Abreisetag:
+
+ + + + +
+ Informationen
+
    +
  • Die Stunden werden mit dem Faktor tpl_vars['erf_value_exk_faktor']->value;?> + multipliziert, um die LVS zu erhalten.
  • +
  • Tageshöchstsatz liegt bei 10 Std. Das entspricht tpl_vars['erf_value_exk_max_tag']->value;?> + LVS.
  • +
  • Ganze Tage werden mit dem Höchstsatz tpl_vars['erf_value_exk_max_tag']->value;?> + LVS berechnet.
  • +
  • Bei mehrtägigen Exkursionen: Geben Sie immer die Stunden am Anreise- und Abreisetag an, sonst werden diese Tage nicht berechnet!
  • +
+
+
+ tpl_vars['erf_std_hig']->value == 1) {?>* Summe eigene Lehrstunden (LVS)tpl_vars['erf_std_hig']->value == 1) {?> + + + + +
  +   +
+ Hinweise + + +
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_3_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_3_total = $__section_table_data2_3_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_3_total != 0) { +for ($__section_table_data2_3_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_3_iteration <= $__section_table_data2_3_total; $__section_table_data2_3_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_3_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_3_saved; +} +?> + + + + + +
+ lfd.Nr. + ';?> + Studiengang (LV) + + Art der LV + ';?> + Titel der Lehrveranstaltung (LV) + + Krankheitsbedingte Merkmale + + gemeinsame LV + + Summe eigene
Lehrstunden (LVS)
+
+ Hinweise + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['studiengang'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['veranstaltung'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['titel'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['krankheitsmerkmal'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['gemlv_form'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['std'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['hinweise'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['did'];?> +>  +
 Summe: tpl_vars['erf_value_summe_jahr']->value;?> + 
+
+ +
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62983f35137af5_48307692', + 'file_dependency' => + array ( + 'c14ff2547629195c93536c168a8bcac3a181a614' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\hauptframe.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62983f35137af5_48307692 ($_smarty_tpl) { +?> + + +<?php echo $_smarty_tpl->tpl_vars['hauptframe_titel']->value;?> + + + + + + +
+
+
tpl_vars['global_titel']->value;?> +
+
+
+ +
+

+ + + + +
+ tpl_vars['hauptframe_text1']->value;?> + tpl_vars['hauptframe_cur_jahrgang']->value;?> +/tpl_vars['hauptframe_cur_jahrgang']->value+1;?> + +
+
+
+ tpl_vars['hauptframe_text2']->value;?> + +
+

+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d7207b5177d10_66317685', + 'file_dependency' => + array ( + 'c5658c72638d856aea74b6e17afeb112eeda5edd' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\erfassen_sonstige.html', + 1 => 1567753692, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d7207b5177d10_66317685 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.1, + numberFormat: "i", + min:0, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + +
+
+
+
+
tpl_vars['erfs_titel']->value;?> +
+
+
+
+
+ tpl_vars['erfs_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['erfs_error_text']->value;?> + +
+
+ + tpl_vars['erfs_abschluss']->value == '0') {?> +
+ + Lehrveranstaltung erfassen + +
+
+ + + + + + + + + + + language="javascript" type="text/javascript"> + function einblenden ($verid) { + /* Bei Exkursionen Erfassungsfeld einblenden*/ + if (document.getElementById("art").value == "5") { + document.getElementById("exkursion1").style.visibility = "visible"; + document.getElementById("lehrstd1").style.visibility = "hidden"; + document.getElementById("exk_datumvon2").disabled = true; + document.getElementById("exk_datumbis2").disabled = true; + document.getElementById("exk_beschreibung2").disabled = true; + document.getElementById("exk_stdanreise2").disabled = true; + document.getElementById("exk_stdabreise2").disabled = true; + + // + + }else{ + document.getElementById("exkursion1").style.visibility = "hidden"; + document.getElementById("lehrstd1").style.visibility = "visible"; + // + } + if (document.getElementById("art").value == "6") { + /*Hinweis zu Extracurricularer Klausurenkurs einblenden*/ + // + } + } + +> + + + + + + + + + + + + + + + + + + + + +
+ Titel der Lehrveranstaltung (LV) + + + +
  +   +
+ Art der LV + + +
  +   +
+ Summe eigene Lehrstunden (LVS) + + + +
  +   +
+ Hinweise + + +
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Summe eigene Lehrstunden (LVS) + + Hinweise + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['titel'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['veranstaltung'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['hinweise'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['dsid'];?> +> +   + +
 Summe: tpl_vars['erfs_value_summe_jahr']->value;?> + 
+
+ +
+
+
+ + + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5acb66b1e28005_49697795', + 'file_dependency' => + array ( + 'c5be52df31cc3c4ab4fc2507c31f3b4d05845dc5' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\hauptframe.html', + 1 => 1523279531, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5acb66b1e28005_49697795 ($_smarty_tpl) { +?> + + +<?php echo $_smarty_tpl->tpl_vars['hauptframe_titel']->value;?> + + + + + + +
+
+
tpl_vars['global_titel']->value;?> +
+
+
+ +
+

+ + + + +
+ tpl_vars['hauptframe_text1']->value;?> + tpl_vars['hauptframe_cur_jahrgang']->value;?> +/tpl_vars['hauptframe_cur_jahrgang']->value+1;?> + +
+
+
+ tpl_vars['hauptframe_text2']->value;?> + +
+

+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d3056b9976947_01882098', + 'file_dependency' => + array ( + 'c8dbfc411df6f6d07e0e29538c27728a05a03b88' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\menu_eingabe.html', + 1 => 1563449015, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d3056b9976947_01882098 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + +Menu + + + type="text/javascript" src="templates/tpl_vars['global_template']->value;?> +/js/jquery.js"> +> + + type="text/javascript" src="templates/tpl_vars['global_template']->value;?> +/js/accordion.js"> +> + + type="text/javascript" src="livesearch/ajax.js"> +> + + type="text/javascript" src="livesearch/ajax-dynamic-list.js"> +> + + + + +
+ + +
+ + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc3b4129f3149_20297792', + 'file_dependency' => + array ( + 'c961e2e3370a2f179da0f2f6117fbaef56e86944' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\jahresabschluss.html', + 1 => 1573106703, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc3b4129f3149_20297792 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + +
+
+
+
+
tpl_vars['jaabschl_titel']->value;?> + tpl_vars['jaabschl_jahrgang']->value;?> +
+
+
+
+
+ tpl_vars['jaabschl_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['jaabschl_error_text']->value;?> + +
+ +
+ Ermäßigungen werden derzeit nicht angezeigt: Programmierung noch nicht abgeschlossen +
+ + Erfasste Ermäßigungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data0']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0'] : false; +$__section_table_data0_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data0']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data0_0_total = $__section_table_data0_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data0'] = new Smarty_Variable(array()); +if ($__section_table_data0_0_total != 0) { +for ($__section_table_data0_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] = 0; $__section_table_data0_0_iteration <= $__section_table_data0_0_total; $__section_table_data0_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['rownum'] = $__section_table_data0_0_iteration; +?> + tpl_vars['__smarty_section_table_data0']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data0'] = $__section_table_data0_0_saved; +} +?> + + + + + + + +
+ lfd.Nr. + + Art + + Funktion + + Beginn + + Ende + + SWS + + LVS (Jahressollwert: tpl_vars['erf_value_soll_lvs']->value;?> +) +
+ tpl_vars['__smarty_section_table_data0']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['rownum'] : null);?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['art'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['funktion'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['lvs'];?> + +
  + Summe: tpl_vars['erf_value_summe_jahr_erm']->value;?> + +
+ Zu leistende LVS: tpl_vars['erf_value_zu_leisten']->value;?> +
+ (Rechenweg: tpl_vars['erf_value_soll_lvs']->value;?> + - tpl_vars['erf_value_summe_jahr_erm']->value;?> +) +
+
+
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data1']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1'] : false; +$__section_table_data1_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data1_1_total = $__section_table_data1_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = new Smarty_Variable(array()); +if ($__section_table_data1_1_total != 0) { +for ($__section_table_data1_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] = 0; $__section_table_data1_1_iteration <= $__section_table_data1_1_total; $__section_table_data1_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] = $__section_table_data1_1_iteration; +?> + tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null) != '') {?> + + + + + + + + + + + + tpl_vars['__smarty_section_table_data1'] = $__section_table_data1_1_saved; +} +?> + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Krankheitsbedingte Merkmale + + gemeinsame LV + + Summe eigene Lehrstunden (LVS) + + Hinweise +
+ tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null);?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['titel'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['veranstaltung'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['krankheitsmerkmal'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['gemlv_form'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['std'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['hinweise'];?> + +
 Summe: tpl_vars['erf_value_summe_jahr']->value;?> + 
+
+
+
+
+ + Sonstige Lehrveranstaltungen + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_2_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_2_total = $__section_table_data2_2_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_2_total != 0) { +for ($__section_table_data2_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_2_iteration <= $__section_table_data2_2_total; $__section_table_data2_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_2_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_2_saved; +} +?> + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Summe eigene Lehrstunden (LVS) + + Hinweise +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['titel'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['veranstaltung'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['hinweise'];?> + +
 Summe: tpl_vars['erfs_value_summe_jahr']->value;?> + 
+
+
+
+
+ + Erfasste Abschlussarbeiten + + + + + + + + + + + tpl_vars['__smarty_section_table_data3']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3'] : false; +$__section_table_data3_3_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data3']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data3_3_total = $__section_table_data3_3_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data3'] = new Smarty_Variable(array()); +if ($__section_table_data3_3_total != 0) { +for ($__section_table_data3_3_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] = 0; $__section_table_data3_3_iteration <= $__section_table_data3_3_total; $__section_table_data3_3_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] = $__section_table_data3_3_iteration; +?> + tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data3'] = $__section_table_data3_3_saved; +} +?> + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + LVS + +   +
+ tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null);?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['name'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['abschlussarbeit'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['semesterbez'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['lvs'];?> + + +   +
 Summe: tpl_vars['abschluss_value_summe_lvs']->value;?> + 
+
+
+
+
+ + Gesamtbetrachtung + + + + + + + + + + + + + + + + + + + + + + +
+ Erfasste Deputate + + tpl_vars['erf_value_summe_jahr']->value;?> + +  
+ Sonstige Deputate + + tpl_vars['erfs_value_summe_jahr']->value;?> + +  
+ Erfasste Abschlussarbeiten + + tpl_vars['abschluss_value_summe_lvs']->value;?> + +  
+ Jahressumme + + tpl_vars['abschluss_gesamt']->value;?> + +  
+
+
+
+
+ + Synopse tpl_vars['jaabschl_jahrgang']->value;?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data4']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4'] : false; +$__section_table_data4_4_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data4']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data4_4_total = $__section_table_data4_4_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data4'] = new Smarty_Variable(array()); +if ($__section_table_data4_4_total != 0) { +for ($__section_table_data4_4_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] = 0; $__section_table_data4_4_iteration <= $__section_table_data4_4_total; $__section_table_data4_4_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']++){ +?> + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data4'] = $__section_table_data4_4_saved; +} +?> + +
+ Jahr + + Anfangsstand + + Deputatsumme Soll + + Deputatsumme Ist + + Über-/Unterdeputat im aktuellen Jahr + + Abbau Unterdeputat durch Überdeputat Vorjahre + + Verfall aus Jahr + + Verfallene Std + + Über- Unterdeputat des Jahres + + Übertrag Folgejahr +
+ tpl_vars['jaabschl_jahrgang']->value;?> + + + tpl_vars['jaabschl_endwert_vorjahr']->value;?> + + + tpl_vars['jaabschl_soll']->value;?> + + + tpl_vars['jaabschl_ist']->value;?> + + + tpl_vars['jaabschl_uber_unter_jahr']->value;?> + + + tpl_vars['jaabschl_abbau_jahr']->value;?> + + + tpl_vars['jaabschl_verfall_jahr']->value;?> + + + tpl_vars['jaabschl_dep_verfall']->value;?> + + + tpl_vars['jaabschl_dep_gesamt']->value;?> + + + tpl_vars['jaabschl_dep_gesamt_nach_verfall']->value;?> + +
+
+ Veränderungen der Vorjahre durch das aktuelle Jahr +
+ Jahr + + Jahresendstand bisher + + Deputatsumme Soll + + Deputatsumme Ist + + Über-/Unterdeputat im aktuellen Jahr + + Abbau Unterdeputat durch Überdeputat Vorjahre + + Verfall aus Jahr + + Verfallene Std + + Über- Unterdeputat des Jahres alt + + Über- Unterdeputat des Jahres neu +
+ tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['vorjahr'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_gesamt_nach_verfall'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['soll'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['ist'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['uber_unter_jahr'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['differenz'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_verfall_jahr'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_verfall'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_gesamt'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['endwert'];?> + +
+
+
+ tpl_vars['jaabschl_closed']->value == 0) {?> + + + + + + +
+  Studienjahr abschließen und absenden  +
+ +
+
+ + +tpl_vars['action']->value == 'abschluss') {?> + + + + + +
+
+
+
+
Jahrgang abschließen
+
+
+ +
+

+Sind Sie sicher, dass sie das aktuelle Jahr tpl_vars['jaabschl_jahrgang']->value;?> + abschließen möchten? +
+Danach sind keine Änderungen mehr möglich! +
+
+  +

+
+ + +
+
+ + +tpl_vars['action']->value == 'abschluss2') {?> + + + + + +
+
+
+
+
Jahrgang abschließen
+
+
+
+
+

+ Der Jahrgang tpl_vars['jaabschl_jahrgang']->value;?> + wurde gespeichert! +
+
+

+
+ + +
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d12bf0af8350_00128514', + 'file_dependency' => + array ( + 'ca1560af870491da7c1dc478be38d8df47940989' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\admin_frame.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d12bf0af8350_00128514 ($_smarty_tpl) { +?> + + +Deputatverwaltung + + + + + + + + + + +<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> + +<p>To view this page correctly, you need a Web browser that supports frames.</p> + +</body> + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d8eb3a9a4fc6_76165568', + 'file_dependency' => + array ( + 'cddbb691d938529383fb8cd0e0aab9057d6f2685' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/erm_ruhestand.html', + 1 => 1656505616, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d8eb3a9a4fc6_76165568 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['ruhestand_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['ruhestand_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + +
+ Letzter Arbeitstag (Monatsende): + + + +
  +   +
+   + + + + + +
+ Hinweise
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Professoren*Professorinnen gehen immer zu Semesterende in Pension (entweder 31.08. oder 28.02.)
  • +
  • Dauerhaft abgeordnete Dozierende können immer zum Monatsende in Pension eintreten.
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + +
+ lfd.Nr. + + Letzter Arbeitstag + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d3a8834837d15_25138896', + 'file_dependency' => + array ( + 'd17db3aca0c396c7f98ea5127f1b46f87682dcaa' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\teilzeit.html', + 1 => 1564117031, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d3a8834837d15_25138896 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + type="text/javascript" src="jquery/jquery-1.9.1.js"> +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + +
+ + tpl_vars['tz_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['tz_error_text']->value;?> + +
+
+
+ + +
+ + Teilzeit erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ Prozent + + +
  +   +
+ Beginn der Funktion + + +
  +   +
+   + + + + + +
+ Hinweis
+
    +
  • Eine ältere Teilzeit endet dann, wenn eine neue Teilzeit erfasst wird.
  • +
  • Es wird immer der Monatserste als Beginntag festgelegt!
  • +
  • Betrachtet werden Zeiträume des Studienjahres: 01.09 - 31.08
  • +
+
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Lehrveranstaltungen + +
+ Basiswert der Lehrveranstaltungsstunden in diesem Studienjahr: tpl_vars['tz_baselvs']->value;?> + +
+ + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + + + + + +
+ lfd.Nr. + + Beginn + + Prozent + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['prozent'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['dad'];?> +> +   + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['nodel'] != 1) {?> + + + + + +
 EVTL FALSCH. Reihenfolge für Abzüge berücksichtigen. Haug 25.7.19Lehrveranstaltungsstunden: tpl_vars['tz_value_lvs']->value;?> + 
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5aab91f7d83611_15749130', + 'file_dependency' => + array ( + 'd83cd1495627f335e0f515e09f48b28d630487bf' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\indexframe.html', + 1 => 1520588407, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5aab91f7d83611_15749130 ($_smarty_tpl) { +?> + + +<?php echo $_smarty_tpl->tpl_vars['global_titel']->value;?> + + + + + + + + + + + + +<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> + +<p>To view this page correctly, you need a Web browser that supports frames.</p> + +</body> + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62b9b31f0feb63_36667296', + 'file_dependency' => + array ( + 'df194e32ee6b93f6569b565298d40797fa046a91' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\indexframe.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62b9b31f0feb63_36667296 ($_smarty_tpl) { +?> + + +<?php echo $_smarty_tpl->tpl_vars['global_titel']->value;?> + + + + + + + + + + + + +<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> + +<p>To view this page correctly, you need a Web browser that supports frames.</p> + +</body> + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62bc45148a35c0_31893758', + 'file_dependency' => + array ( + 'df31085a49f66ea76afdae9d000493950233711f' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\erm_ruhestand.html', + 1 => 1656505616, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62bc45148a35c0_31893758 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['ruhestand_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['ruhestand_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + +
+ Letzter Arbeitstag (Monatsende): + + + +
  +   +
+   + + + + + +
+ Hinweise
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Professoren*Professorinnen gehen immer zu Semesterende in Pension (entweder 31.08. oder 28.02.)
  • +
  • Dauerhaft abgeordnete Dozierende können immer zum Monatsende in Pension eintreten.
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + +
+ lfd.Nr. + + Letzter Arbeitstag + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d720847ea2e98_53721307', + 'file_dependency' => + array ( + 'e12f995dfcd26bf36446b9a8892c7dc6b2547556' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\erm_behinderung.html', + 1 => 1567754306, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d720847ea2e98_53721307 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 1, + numberFormat: "i", + min:0, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + +
+ + tpl_vars['beh_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['beh_error_text']->value;?> + +
+
+
+ + +
+ + Behinderungsgrad erfassen + +
+
+ + + + + + + + + + + + + +
+ behinderungsgrad der Behinderung + + + % +
  +   +
+   + + + + + +
+ Hinweis
+
    +
  • Eine Schwerbehinderung wird rückwirkend auf das Studienjahr gewährt.
  • +
  • Der Behinderungsgrad wird mit der LVS verrechnet (594LVS x 50% Behinderung = 297 LVS neu)
  • +
  • Betrachtet werden Zeiträume des Studienjahres: 01.09 - 31.08
  • +
+
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasster Behinderungsgrad + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> +
+ lfd.Nr. + + behinderungsgrad + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['behinderungsgrad'];?> + % + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['nodel'] != 1) {?> + + + + + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62d8eb3a9b9565_46430409', + 'file_dependency' => + array ( + 'e3881ae9ad048a609332655b157da29a4c93e8f8' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/erm_abordnung.html', + 1 => 1656482878, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62d8eb3a9b9565_46430409 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['abord_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['abord_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + +
+ Beginn des Forschungssemesters / Praxissemesters / der Abordnungen, falls nicht ganzjährig + + + +
  +   +
+ Ende des Forschungssemesters / Praxissemesters / der Abordnungen, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> + +
+ lfd.Nr. + + Beginn + + Ende + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d14a160c026c5_30112319', + 'file_dependency' => + array ( + 'e6f0ce3c3978bb1f20e8b93154046885ea2653d8' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\eingabe_frame.html', + 1 => 1561633117, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d14a160c026c5_30112319 ($_smarty_tpl) { +?> + + +Deputatverwaltung + + + + + + + + + +<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> + +<p>To view this page correctly, you need a Web browser that supports frames.</p> + +</body> + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5d7212ee077dc4_85340512', + 'file_dependency' => + array ( + 'e8cdad19d42f1744c7dd6c430c71a4a32de270aa' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\erm_freist_forschung.html', + 1 => 1567757032, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5d7212ee077dc4_85340512 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + change: function (event, ui) { + calc_erm_78(); + }, + spin: function (event, ui) { + calc_erm_78(); + }, + start: function (event, ui) { + calc_erm_78(); + }, + stop: function (event, ui) { + calc_erm_78(); + }, + step: 0.1, + numberFormat: "i", + min:0, + decimals:0 + }); + Globalize.culture( "de-DE" ); + } ); + + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + type="text/javascript"> + function calc_erm_78() { + /* + Diese Funktion berechnet die LVS + */ + var sws = document.getElementById('sws').value; + var beginn_funktion = document.getElementById('beginn_funktion').value; + var ende_funktion = document.getElementById('ende_funktion').value; + + $.ajax({ + type: 'POST', + url: 'fetch_lvs_erm_7-8.php', + data: { + get_option: sws, + get_beginn_funktion: beginn_funktion, + get_ende_funktion: ende_funktion + }, + success: function (response) { + var str1 = response.split("||"); + document.getElementById("gesamtvolumen_count").innerHTML = "" + str1[0] + ""; + + /* LVS Wert in hidden Inputfeld setzen, damit es mit $_POST übertragen wird beim speichern*/ + document.getElementById("lvs").value = str1[1]; + } + }); + } + +> + + + + + type="text/javascript" > + function loader(){ + if(document.erfassen)document.erfassen.sws.focus();return false; + } + +> + + tpl_vars['freistrekto_status']->value == 'edit') {?> + + type="text/javascript"> + setTimeout(calc_erm_78, 100); + +> + + + + +
+ + tpl_vars['freistrekto_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['freistrekto_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist tagesgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Rechenweg: SWS x Semesterwochen x ausgeübte Tage der Funktion x Anzahl der Tage im Jahr (365 bzw. 366)
  • +
+
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + + + + + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Ermäßigung LVS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['funktion'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
 Summe: tpl_vars['freistrekto_value_summe_jahr']->value;?> + 
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5aab92ba199ea1_49279791', + 'file_dependency' => + array ( + 'e9f02d09ca5efc040a39f1586a40c5efc6922bff' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\index.html', + 1 => 1520588374, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5aab92ba199ea1_49279791 ($_smarty_tpl) { +?> + +tpl_vars['action']->value == '') {?> + + + <?php echo $_smarty_tpl->tpl_vars['index_titel']->value;?> + + + + + + + + type="text/javascript" src="./fancybox/jquery-1.5.1.min.js"> +> + + + type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"> +> + + type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"> +> + + + type="text/javascript"> + $(document).ready(function() { + $(".box").fancybox({ + 'width' : '75%', + 'height' : '75%', + 'autoScale' : true, + 'transitionIn' : 'elastic', + 'transitionOut' : 'elastic', + 'type' : 'iframe' + }); + }); + +> + + + + + + + + + + +
+   + +
+
+
tpl_vars['index_titel']->value;?> +
+
+
+
+

+ tpl_vars['index_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['index_error_text']->value;?> + +
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ tpl_vars['index_field_user']->value;?> + + +
+ tpl_vars['index_field_pass']->value;?> + + +
+   +
+   + + +
+
+

+ tpl_vars['index_register']->value;?> + + +

+
+
+ + +
+
+   +
+ + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc3b672cbc0d2_06496550', + 'file_dependency' => + array ( + 'eb6f7000d6130ea2eac7d02cd5f0c893ab85a797' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/eingabe_frame.html', + 1 => 1561633116, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc3b672cbc0d2_06496550 ($_smarty_tpl) { +?> + + +Deputatverwaltung + + + + + + + + + +<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> + +<p>To view this page correctly, you need a Web browser that supports frames.</p> + +</body> + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5aab916670bfc5_25663930', + 'file_dependency' => + array ( + 'eb81eff92cf786e7ce1436a3ff3805017ceee233' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\hauptframe_admin.html', + 1 => 1519650278, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5aab916670bfc5_25663930 ($_smarty_tpl) { +?> + + +<?php echo $_smarty_tpl->tpl_vars['hauptframe_admin_titel']->value;?> + + + + + + +
+
+
tpl_vars['hauptframe_admin_titel']->value;?> +
+
+
+ +
+

+ + + + +
+ tpl_vars['hauptframe_admin_text1']->value;?> + +
+
+
+ tpl_vars['hauptframe_admin_text2']->value;?> + +
+

+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62b9c724c8e256_44354960', + 'file_dependency' => + array ( + 'ebfc88e08e42fb38158f01c6e3f7b1997dd27636' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\jahresabschluss.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62b9c724c8e256_44354960 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + +
+
+
+
+
tpl_vars['jaabschl_titel']->value;?> + tpl_vars['jaabschl_jahrgang']->value;?> +
+
+
+
+
+ tpl_vars['jaabschl_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['jaabschl_error_text']->value;?> + +
+ +
+ Ermäßigungen werden derzeit nicht angezeigt: Programmierung noch nicht abgeschlossen +
+ + Erfasste Ermäßigungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data0']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0'] : false; +$__section_table_data0_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data0']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data0_0_total = $__section_table_data0_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data0'] = new Smarty_Variable(array()); +if ($__section_table_data0_0_total != 0) { +for ($__section_table_data0_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] = 0; $__section_table_data0_0_iteration <= $__section_table_data0_0_total; $__section_table_data0_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['rownum'] = $__section_table_data0_0_iteration; +?> + tpl_vars['__smarty_section_table_data0']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data0'] = $__section_table_data0_0_saved; +} +?> + + + + + + + +
+ lfd.Nr. + + Art + + Funktion + + Beginn + + Ende + + SWS + + LVS (Jahressollwert: tpl_vars['erf_value_soll_lvs']->value;?> +) +
+ tpl_vars['__smarty_section_table_data0']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['rownum'] : null);?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['art'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['funktion'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data0']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data0']->value['index'] : null)]['lvs'];?> + +
  + Summe: tpl_vars['erf_value_summe_jahr_erm']->value;?> + +
+ Zu leistende LVS: tpl_vars['erf_value_zu_leisten']->value;?> +
+ (Rechenweg: tpl_vars['erf_value_soll_lvs']->value;?> + - tpl_vars['erf_value_summe_jahr_erm']->value;?> +) +
+
+
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data1']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1'] : false; +$__section_table_data1_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data1_1_total = $__section_table_data1_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = new Smarty_Variable(array()); +if ($__section_table_data1_1_total != 0) { +for ($__section_table_data1_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] = 0; $__section_table_data1_1_iteration <= $__section_table_data1_1_total; $__section_table_data1_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] = $__section_table_data1_1_iteration; +?> + tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null) != '') {?> + + + + + + + + + + + + tpl_vars['__smarty_section_table_data1'] = $__section_table_data1_1_saved; +} +?> + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Krankheitsbedingte Merkmale + + gemeinsame LV + + Summe eigene Lehrstunden (LVS) + + Hinweise +
+ tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null);?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['titel'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['veranstaltung'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['krankheitsmerkmal'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['gemlv_form'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['std'];?> + + + tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['hinweise'];?> + +
 Summe: tpl_vars['erf_value_summe_jahr']->value;?> + 
+
+
+
+
+ + Sonstige Lehrveranstaltungen + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_2_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_2_total = $__section_table_data2_2_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_2_total != 0) { +for ($__section_table_data2_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_2_iteration <= $__section_table_data2_2_total; $__section_table_data2_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_2_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_2_saved; +} +?> + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Summe eigene Lehrstunden (LVS) + + Hinweise +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['titel'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['veranstaltung'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['hinweise'];?> + +
 Summe: tpl_vars['erfs_value_summe_jahr']->value;?> + 
+
+
+
+
+ + Erfasste Abschlussarbeiten + + + + + + + + + + + tpl_vars['__smarty_section_table_data3']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3'] : false; +$__section_table_data3_3_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data3']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data3_3_total = $__section_table_data3_3_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data3'] = new Smarty_Variable(array()); +if ($__section_table_data3_3_total != 0) { +for ($__section_table_data3_3_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] = 0; $__section_table_data3_3_iteration <= $__section_table_data3_3_total; $__section_table_data3_3_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] = $__section_table_data3_3_iteration; +?> + tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null) != '') {?> + + + + + + + + + + tpl_vars['__smarty_section_table_data3'] = $__section_table_data3_3_saved; +} +?> + + + + + +
+ lfd.Nr. + + Name + + Art + + Semester + + LVS + +   +
+ tpl_vars['__smarty_section_table_data3']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['rownum'] : null);?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['name'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['abschlussarbeit'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['semesterbez'];?> + + + tpl_vars['table_data3']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data3']->value['index'] : null)]['lvs'];?> + + +   +
 Summe: tpl_vars['abschluss_value_summe_lvs']->value;?> + 
+
+
+
+
+ + Gesamtbetrachtung + + + + + + + + + + + + + + + + + + + + + + +
+ Erfasste Deputate + + tpl_vars['erf_value_summe_jahr']->value;?> + +  
+ Sonstige Deputate + + tpl_vars['erfs_value_summe_jahr']->value;?> + +  
+ Erfasste Abschlussarbeiten + + tpl_vars['abschluss_value_summe_lvs']->value;?> + +  
+ Jahressumme + + tpl_vars['abschluss_gesamt']->value;?> + +  
+
+
+
+
+ + Synopse tpl_vars['jaabschl_jahrgang']->value;?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data4']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4'] : false; +$__section_table_data4_4_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data4']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data4_4_total = $__section_table_data4_4_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data4'] = new Smarty_Variable(array()); +if ($__section_table_data4_4_total != 0) { +for ($__section_table_data4_4_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] = 0; $__section_table_data4_4_iteration <= $__section_table_data4_4_total; $__section_table_data4_4_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']++){ +?> + + + + + + + + + + + + + tpl_vars['__smarty_section_table_data4'] = $__section_table_data4_4_saved; +} +?> + +
+ Jahr + + Anfangsstand + + Deputatsumme Soll + + Deputatsumme Ist + + Über-/Unterdeputat im aktuellen Jahr + + Abbau Unterdeputat durch Überdeputat Vorjahre + + Verfall aus Jahr + + Verfallene Std + + Über- Unterdeputat des Jahres + + Übertrag Folgejahr +
+ tpl_vars['jaabschl_jahrgang']->value;?> + + + tpl_vars['jaabschl_endwert_vorjahr']->value;?> + + + tpl_vars['jaabschl_soll']->value;?> + + + tpl_vars['jaabschl_ist']->value;?> + + + tpl_vars['jaabschl_uber_unter_jahr']->value;?> + + + tpl_vars['jaabschl_abbau_jahr']->value;?> + + + tpl_vars['jaabschl_verfall_jahr']->value;?> + + + tpl_vars['jaabschl_dep_verfall']->value;?> + + + tpl_vars['jaabschl_dep_gesamt']->value;?> + + + tpl_vars['jaabschl_dep_gesamt_nach_verfall']->value;?> + +
+
+ Veränderungen der Vorjahre durch das aktuelle Jahr +
+ Jahr + + Jahresendstand bisher + + Deputatsumme Soll + + Deputatsumme Ist + + Über-/Unterdeputat im aktuellen Jahr + + Abbau Unterdeputat durch Überdeputat Vorjahre + + Verfall aus Jahr + + Verfallene Std + + Über- Unterdeputat des Jahres alt + + Über- Unterdeputat des Jahres neu +
+ tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['vorjahr'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_gesamt_nach_verfall'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['soll'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['ist'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['uber_unter_jahr'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['differenz'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_verfall_jahr'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_verfall'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['dep_gesamt'];?> + + + tpl_vars['table_data4']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data4']->value['index'] : null)]['endwert'];?> + +
+
+
+ tpl_vars['jaabschl_closed']->value == 0) {?> + + + + + + +
+  Studienjahr abschließen und absenden  +
+ +
+
+ + +tpl_vars['action']->value == 'abschluss') {?> + + + + + +
+
+
+
+
Jahrgang abschließen
+
+
+ +
+

+Sind Sie sicher, dass sie das aktuelle Jahr tpl_vars['jaabschl_jahrgang']->value;?> + abschließen möchten? +
+Danach sind keine Änderungen mehr möglich! +
+
+  +

+
+ + +
+
+ + +tpl_vars['action']->value == 'abschluss2') {?> + + + + + +
+
+
+
+
Jahrgang abschließen
+
+
+
+
+

+ Der Jahrgang tpl_vars['jaabschl_jahrgang']->value;?> + wurde gespeichert! +
+
+

+
+ + +
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62babd9d47bb74_89184876', + 'file_dependency' => + array ( + 'eea37f0f72e9a4bb3d055cf3b20d50074f7f82c2' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\erm_freist_rektorat_dekanat.html', + 1 => 1656405393, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62babd9d47bb74_89184876 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.5, + numberFormat: "i", + min:0, + max:25, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['freistrekto_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['freistrekto_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['funktion'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62bbe5b9550a91_95768131', + 'file_dependency' => + array ( + 'f2158dcc093e801a3b50e96b54a09cd0f03527df' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\erm_freist_forschung.html', + 1 => 1656405946, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62bbe5b9550a91_95768131 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.5, + numberFormat: "i", + min:0, + max:25, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + + + + + +
+ + tpl_vars['freistrekto_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['freistrekto_error_text']->value;?> + +
+
+ + +
+ + Ermäßigung erfassen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Funktion + + +
  +   +
+ Angabe der Deputatsermäßigung in SWS + + + + +
  +   +
+ Beginn der Funktion, falls nicht ganzjährig + + + +
  +   +
+ Ende der Funktion, falls nicht ganzjährig + + + +
  +   +
+   + + + + + +
+ Berechnete LVS Stunden
+
    +
  • Die Berechnung der LVS-Stunden ist monatsgenau
  • +
  • Die Datumsgrenzen sind das jeweilige Studienjahr (01.09 - 31.08)
  • +
  • Auch wenn die Ermäßigung mehrjährig sein sollte, gilt das einzelne Studienjahr als Berechnungsgrundlage (01.09 - 31.08)
  • + +
+ +
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + +
+ lfd.Nr. + + Funktion + + Beginn + + Ende + + Ermäßigung SWS + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['funktion'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['ende'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['sws'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5e0f1634cf9d42_64651944', + 'file_dependency' => + array ( + 'f3231dc846c774d27afdeeee5817ac782ff60a26' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/erf_fz.html', + 1 => 1523256400, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5e0f1634cf9d42_64651944 ($_smarty_tpl) { +?> + tpl_vars['action']->value == '') {?> + + + + + +
+
+
+
+
tpl_vars['fz_titel']->value;?> +
+
+
+
+
+
+ + Funktion auswählen + +
+
+

+ +
+
+
+ +

+
+
+ +
+
+ + + + + +tpl_vars['action']->value == 'lbfzerf') {?> + + + + + + + src='./datepicker/browserSniffer.js' type='text/javascript' language='javascript'> +> + + src='./datepicker/dynCalendar.js' type='text/javascript' language='javascript'> +> + + type='text/javascript'> + + + + +> + + + language='JavaScript' type='text/javascript'> + + +> + + +
+
+
+
+
tpl_vars['fz_titel']->value;?> +
+
+
+
+
+
+ Erfassung +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ tpl_vars['fz_field_betrag']->value;?> +* + + value;?> +'> € +
+ tpl_vars['fz_field_starttag']->value;?> +* + + value;?> +' size=1>.value;?> +' size=1>.value;?> +' size=3> + + language='JavaScript' type='text/javascript'> + + +> +
+ tpl_vars['fz_field_endtag']->value;?> + + + value;?> +' size=1>.value;?> +' size=1>.value;?> +' size=3> + + language='JavaScript' type='text/javascript'> + + +> +
+ tpl_vars['fz_field_prof']->value;?> + + + +
+ * = Pflichtfelder + +   +
+
+
+
+ Gespeicherte Zulagen + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_2_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_2_total = $__section_table_data2_2_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_2_total != 0) { +for ($__section_table_data2_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_2_iteration <= $__section_table_data2_2_total; $__section_table_data2_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +?> + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_2_saved; +} +?> +
+ tpl_vars['fz_field_starttag']->value;?> + + + tpl_vars['fz_field_betrag']->value;?> + + + tpl_vars['fz_field_name']->value;?> + + + tpl_vars['fz_field_endtag']->value;?> + + + tpl_vars['fz_field_aktionen']->value;?> + +
+ tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['startdat_form'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['wert'];?> + € + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['name'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['enddat_form'];?> + + + +   + +
+
+
+

+ +

+
+
+
+ + +tpl_vars['action']->value == 'save') {?> + + + + + <?php echo $_smarty_tpl->tpl_vars['fz_inserterr_titel']->value;?> + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+ + +
+ tpl_vars['fz_save_titel']->value;?> +
+ +
+ +
+ + +
+

tpl_vars['fz_save_text']->value;?> +

+

+
+

+

+

+

+

+


+

+
+ +
+ + + + + +
+
+
+ + + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62bbe5b7dfa323_26901258', + 'file_dependency' => + array ( + 'f5ad12c22a96080a24faf54d491cf149bad62fa9' => + array ( + 0 => 'C:\\xampp_7.4.24\\htdocs\\deputat\\templates\\modern\\erm_behinderung.html', + 1 => 1656339889, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62bbe5b7dfa323_26901258 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + type="text/javascript"> + $(function() { + $(".datepicker").datepicker({ + prevText: '< zurück', prevStatus: '', + prevJumpText: '<<', prevJumpStatus: '', + changeMonth: true, + changeYear: true, + nextText: 'Vor >', nextStatus: '', + nextJumpText: '>>', nextJumpStatus: '', + currentText: 'Heute', currentStatus: '', + todayText: 'Heute', todayStatus: '', + clearText: '-', clearStatus: '', + closeText: 'schließen', closeStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'], + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + weekHeader: 'Wo', + weekStatus: 'Woche des Monats', + showMonthAfterYear: false, + showOn: 'focus', + firstDay: 1, + numberOfMonths : 1, + showButtonPanel : true, + altField : "#datepicker_input", + dateFormat : "dd.mm.yy", + showWeek: true + }); + $.datepicker._gotoToday = function(id) { + $(id).datepicker('setDate', new Date()).datepicker('hide').blur(); + } + + }); + +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.5, + numberFormat: "i", + min:0, + max:25, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + src='iframe-resizer-master/js/iframeResizer.contentWindow.min.js'> +> + + + +
+ + tpl_vars['beh_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['beh_error_text']->value;?> + +
+
+
+ + +
+ + Höhe der prozentualen Ermäßigung + +
+
+ + + + + + + + + + + + + + + + + +
+ Höhe der Ermäßigung in Prozent angeben.
+ (Von der Personalabteilung gewährte Höhe) +
+ + % +
+ Beginn der Ermäßigung + + +
  +   +
+   + + + + + +
+ Hinweis
+
    +
  • Eine Schwerbehinderung wird monatsgenau gewährt.
  • +
  • Nimmt eine Ermäßigung der Schwerbehinderung zu bzw. ab, ist die Ermäßigung auf Monatsersten zu erfassen.
  • +
  • Die prozentulae Ermäßigung wird mit der LVS verrechnet (594LVS x 12% Ermäßigung aufgrund Behinderung => 522,72 Soll-LVS).
  • +
  • Betrachtet werden Zeiträume des Studienjahres: 01.09 - 31.08
  • +
+
+
+
+
+

+ +

+
+
+
+
+
+
+ + Erfasste Ermäßigung + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_0_total = $__section_table_data2_0_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_0_total != 0) { +for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_0_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_0_saved; +} +?> +
+ lfd.Nr. + + Beginn + + Prozent + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['beginn_form'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['behinderungsgrad'];?> + % + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['deid'];?> +> +   + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['nodel'] != 1) {?> + + + + + +
+
+ +
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5aab91fe2764c8_81005601', + 'file_dependency' => + array ( + 'fd77bbad65098fbcff59b9732c8bf880af1a223b' => + array ( + 0 => 'D:\\xampp\\htdocs\\kurs\\utf8\\deputat\\templates\\modern\\rollen.html', + 1 => 1521021854, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5aab91fe2764c8_81005601 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + +
+
+
+
+
tpl_vars['rollen_titel']->value;?> +
+
+
+
+
+ tpl_vars['rollen_pflichtfelder']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['rollen_error_text']->value;?> + +
+
+ +
+ + Rolle auswählen + +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
';?> + tpl_vars['rollen_field_auswahl']->value;?> + + + +
+   +
';?> + tpl_vars['rollen_field_neu']->value;?> + + + tpl_vars['rollen_field_bez']->value;?> +
+ +
+   +
+   +
';?> +   + + +
+
+
+
+ +
+
+ + +tpl_vars['action']->value == 'admin') {?> + + + + + type='text/javascript' src='./overlib/overlib.js'> +> + + + +
+
+
+
+
tpl_vars['rollen_admin_titel']->value;?> +
+
+
+
+
+ + Rolle bearbeiten + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+ tpl_vars['rollen_field_bez']->value;?> + + + tpl_vars['rollen_field_ren']->value;?> + + + tpl_vars['rollen_field_del']->value;?> + + + tpl_vars['rollen_field_zuw']->value;?> + + + tpl_vars['rollen_field_inforights']->value;?> + + + tpl_vars['rollen_field_infouser']->value;?> + + + tpl_vars['rollen_field_ben_zuw']->value;?> + + + tpl_vars['rollen_field_info_ohnerolle']->value;?> + +
+ tpl_vars['rollen_bezeichnung']->value;?> + + + + + + tpl_vars['rollen_button_del']->value == '1') {?> + + + + + + + + (tpl_vars['rollen_anzahl_rechte']->value;?> +) + + (tpl_vars['rollen_anzahl_user']->value;?> +) + + + + (tpl_vars['rollen_anzahl_ohnerechte']->value;?> +) +
+

+

+ +

+
+
+
+
+
+ + +tpl_vars['action']->value == 'edit') {?> + + + + + +
+
+
+
+
tpl_vars['rollen_edit_titel']->value;?> +
+
+
+
+
+ + Rolle umbenennen + +
+
+
+ + + + + +
+ tpl_vars['rollen_edit_field_bez']->value;?> + + + +
+

+

+ +

+
+
+
+
+
+
+ + +tpl_vars['action']->value == 'rechte') {?> + + + + + +
+
+
+
+
tpl_vars['rollen_rechte_titel']->value;?> +
+
+
+
+
+ + Rechte bearbeiten + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
+   +

  +

+

+

+

+

+

+ +
+ tpl_vars['rollen_rechte_subtitel']->value;?> + +

+

+

+

+

+   + +

+

+ + + +
+
+
+
+
+
+
+ + +tpl_vars['action']->value == 'user') {?> + + + + + +
+
+
+
+
tpl_vars['rollen_user_titel']->value;?> +
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
+   +

  +

+

+

+

+

+

+ +
+ tpl_vars['rollen_user_subtitel']->value;?> + +

+

+

+

+

+   + +

+

+ + + +
+
+
+
+ tpl_vars['rollen_rollenanz']->value > '0') {?> + + + + + + + tpl_vars['__smarty_section_outer_loop']) ? $_smarty_tpl->tpl_vars['__smarty_section_outer_loop'] : false; +$__section_outer_loop_3_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['outer_loop']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_outer_loop_3_total = $__section_outer_loop_3_loop; +$_smarty_tpl->tpl_vars['__smarty_section_outer_loop'] = new Smarty_Variable(array()); +if ($__section_outer_loop_3_total != 0) { +for ($__section_outer_loop_3_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index'] = 0; $__section_outer_loop_3_iteration <= $__section_outer_loop_3_total; $__section_outer_loop_3_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index']++){ +?> + + + + + + tpl_vars['__smarty_section_outer_loop'] = $__section_outer_loop_3_saved; +} +?> +
+ Benutzer + + Rollen + + Rolle löschen +
+ tpl_vars['outer_loop']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index'] : null)]['nachname'];?> +, tpl_vars['outer_loop']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index'] : null)]['vorname'];?> + + + tpl_vars['__smarty_section_inner']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner'] : false; +$__section_inner_4_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['outer_loop']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index'] : null)]['inner']) ? count($_loop) : max(0, (int) $_loop)); +$__section_inner_4_total = $__section_inner_4_loop; +$_smarty_tpl->tpl_vars['__smarty_section_inner'] = new Smarty_Variable(array()); +if ($__section_inner_4_total != 0) { +for ($__section_inner_4_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] = 0; $__section_inner_4_iteration <= $__section_inner_4_total; $__section_inner_4_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']++){ +?> + tpl_vars['outer_loop']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index'] : null)]['inner'][(isset($_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] : null)]['bezeichnung'];?> +
+ tpl_vars['__smarty_section_inner'] = $__section_inner_4_saved; +} +?> +
+ tpl_vars['__smarty_section_inner']) ? $_smarty_tpl->tpl_vars['__smarty_section_inner'] : false; +$__section_inner_5_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['outer_loop']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_outer_loop']->value['index'] : null)]['inner']) ? count($_loop) : max(0, (int) $_loop)); +$__section_inner_5_total = $__section_inner_5_loop; +$_smarty_tpl->tpl_vars['__smarty_section_inner'] = new Smarty_Variable(array()); +if ($__section_inner_5_total != 0) { +for ($__section_inner_5_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index'] = 0; $__section_inner_5_iteration <= $__section_inner_5_total; $__section_inner_5_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_inner']->value['index']++){ +?> +
+ tpl_vars['__smarty_section_inner'] = $__section_inner_5_saved; +} +?> +
+
+
+

+ +   + +

+
+
+
+
+
+ + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_62b9b326840457_33158536', + 'file_dependency' => + array ( + 'fdf587cdc44ae0228018e72aa6a4475245f25d12' => + array ( + 0 => 'E:\\xampp_7.4.12\\htdocs\\deputat\\templates\\modern\\ermaessigung.html', + 1 => 1655979697, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_62b9b326840457_33158536 ($_smarty_tpl) { +?> + + + + + + src='iframe-resizer-master/js/iframeResizer.min.js'> +> + + + + +
+
+
+
+
Ermäßigungen tpl_vars['erm_jahrgang']->value;?> +
+
+
+
+ tpl_vars['erm_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['erm_error_text']->value;?> + +
+
+ + tpl_vars['erm_abschluss']->value == '0') {?> +

Indem Sie auf die Überschriften klicken können Sie die Teilbereiche auf- und zuklappen.

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+
+ +> + var acc = document.getElementsByClassName("accordion"); + var i; + + for (i = 0; i < acc.length; i++) { + acc[i].addEventListener("click", function() { + this.classList.toggle("active"); + var panel = this.nextElementSibling; + if (panel.style.maxHeight){ + panel.style.maxHeight = null; + } else { + panel.style.maxHeight = panel.scrollHeight + "px"; + } + }); + } + +> + +>iFrameResize({ + log : false, // Enable console logging + heightCalculationMethod : 'documentElementOffset', + autoResize : true, + scrolling : true, + tolerance : 1000, + sizeHeight : true, + }); +> + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_5dc3b6944512b5_12268259', + 'file_dependency' => + array ( + 'ff1186b9e0b3257ab91304ff0c9c8de9fcd93ada' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/erfassen_sonstige.html', + 1 => 1567753692, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_5dc3b6944512b5_12268259 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + + + + src="jquery/jquery-1.12.4.js"> +> + + src="jquery/jquery-ui.js"> +> + + src="jquery/globalize.js"> +> + + src="jquery/globalize.culture.de-DE.js"> +> + + src="jquery/jquery.mousewheel.js"> +> + + +> + $( function() { + $( ".spinner" ).spinner({ + step: 0.1, + numberFormat: "i", + min:0, + decimals:0 + }); + Globalize.culture( "de-DE" ); + + } ); + function trackKeys(evnt,regEx) { + var keyCode = evnt.keyCode ? evnt.keyCode : evnt.which; + return !!String.fromCharCode(keyCode).match(regEx); + } + //--> + +> + + + +
+
+
+
+
tpl_vars['erfs_titel']->value;?> +
+
+
+
+
+ tpl_vars['erfs_error']->value == '1') {?> + + + + + +
+ + Achtung!
+ tpl_vars['erfs_error_text']->value;?> + +
+
+ + tpl_vars['erfs_abschluss']->value == '0') {?> +
+ + Lehrveranstaltung erfassen + +
+
+ + + + + + + + + + + language="javascript" type="text/javascript"> + function einblenden ($verid) { + /* Bei Exkursionen Erfassungsfeld einblenden*/ + if (document.getElementById("art").value == "5") { + document.getElementById("exkursion1").style.visibility = "visible"; + document.getElementById("lehrstd1").style.visibility = "hidden"; + document.getElementById("exk_datumvon2").disabled = true; + document.getElementById("exk_datumbis2").disabled = true; + document.getElementById("exk_beschreibung2").disabled = true; + document.getElementById("exk_stdanreise2").disabled = true; + document.getElementById("exk_stdabreise2").disabled = true; + + // + + }else{ + document.getElementById("exkursion1").style.visibility = "hidden"; + document.getElementById("lehrstd1").style.visibility = "visible"; + // + } + if (document.getElementById("art").value == "6") { + /*Hinweis zu Extracurricularer Klausurenkurs einblenden*/ + // + } + } + +> + + + + + + + + + + + + + + + + + + + + +
+ Titel der Lehrveranstaltung (LV) + + + +
  +   +
+ Art der LV + + +
  +   +
+ Summe eigene Lehrstunden (LVS) + + + +
  +   +
+ Hinweise + + +
+
+

+ +

+
+
+ +
+
+
+ + Erfasste Lehrveranstaltungen + + + + + + + + + + + + tpl_vars['__smarty_section_table_data2']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2'] : false; +$__section_table_data2_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop)); +$__section_table_data2_1_total = $__section_table_data2_1_loop; +$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array()); +if ($__section_table_data2_1_total != 0) { +for ($__section_table_data2_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_1_iteration <= $__section_table_data2_1_total; $__section_table_data2_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){ +$_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] = $__section_table_data2_1_iteration; +?> + tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null) != '') {?> + + + + + + + + + + + tpl_vars['__smarty_section_table_data2'] = $__section_table_data2_1_saved; +} +?> + + + + + +
+ lfd.Nr. + + Titel der Lehrveranstaltung (LV) + + Art der LV + + Summe eigene Lehrstunden (LVS) + + Hinweise + + Edit +
+ tpl_vars['__smarty_section_table_data2']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['rownum'] : null);?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['titel'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['veranstaltung'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['lvs'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['hinweise'];?> + + + tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['dsid'];?> +> +   + +
 Summe: tpl_vars['erfs_value_summe_jahr']->value;?> + 
+
+ +
+
+
+ + + + +smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array ( + 'has_nocache_code' => false, + 'version' => '3.1.29', + 'unifunc' => 'content_627cefe6668166_45398984', + 'file_dependency' => + array ( + 'fffb2433087a4ba99a5692a93a780dd04d69d24f' => + array ( + 0 => '/srv/www/htdocs-hvf/kurs/deputat/templates/modern/logout.html', + 1 => 1583413883, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_627cefe6668166_45398984 ($_smarty_tpl) { +if ($_smarty_tpl->tpl_vars['action']->value == '') {?> + + + <?php echo $_smarty_tpl->tpl_vars['logout_titel']->value;?> + + + + + + + + + + + + + +
+   + +
+
+
tpl_vars['logout_titel']->value;?> +
+
+
+
+

+ + + + + +
+ + + + + + + + + + + + + + + +
+ tpl_vars['logout_text']->value;?> + +
+   +
+ Login +
+ +
+ +
+
+

+
+   + +
+ + + + + +diff($target); +echo $interval->format('%m'); +echo "
"; +$anfang = strtotime('2019-09-01'); +$ende = strtotime('2020-08-31'); +$monate = abs((date('Y', $ende) - date('Y', $anfang))*12 + (date('m', $ende) - date('m', $anfang))); +echo $monate; +?> diff --git a/titel.php b/titel.php new file mode 100755 index 0000000..0847af5 --- /dev/null +++ b/titel.php @@ -0,0 +1,47 @@ +query("SELECT count(*) Anz FROM dep_rollen_user_zuord WHERE imtuid = '$uid' AND roid='1'"); +#echo "SELECT count(*) Anz FROM dep_rollen_user_zuord WHERE imtuid = '$uid' AND roid='1'
"; +$row_admin = $result_admin->fetch_array(); + +if($row_admin[Anz] > 0){ + $smarty->assign('titel_admin', "1"); +} + + +$result_ausschuss = $db->query("SELECT count(*) Anz FROM dep_rollen_user_zuord WHERE imtuid = '$uid' AND roid in (4,5)"); +$row_ausschuss = $result_ausschuss->fetch_array(); + +if($row_ausschuss[Anz] > 0){ + $smarty->assign('titel_ausschuss', "1"); +} + + +$result_beteiligte = $db->query("SELECT count(*) Anz FROM dep_rollen_user_zuord WHERE imtuid = '$uid' AND roid='3'"); +$row_beteiligte = $result_beteiligte->fetch_array(); + +if($row_beteiligte[Anz] > 0){ + $smarty->assign('titel_beteiligte', "1"); +} + + +$result_gutachter = $db->query("SELECT count(*) Anz FROM dep_rollen_user_zuord WHERE imtuid = '$uid' AND roid='2'"); +$row_gutachter = $result_gutachter->fetch_array(); + +if($row_gutachter[Anz] > 0){ + $smarty->assign('titel_gutachter', "1"); +} + + +$smarty->display("$template/$templatename"); +?> \ No newline at end of file diff --git a/todo.sql b/todo.sql new file mode 100755 index 0000000..271012e --- /dev/null +++ b/todo.sql @@ -0,0 +1,39 @@ +ALTER TABLE `dep_deputat_ermaessigung` ADD `behinderungsgrad` DECIMAL(10,2) NOT NULL COMMENT 'Behinderungsgrad in Prozent' AFTER `ende`; +ALTER TABLE `dep_deputat_ermaessigung` ADD `sort_order` INT(11) NOT NULL COMMENT 'Reihenfolge fr die Berechnung bei mehreren Ermigungen' AFTER `lvs`; +ALTER TABLE `dep_deputat_ermaessigung` CHANGE `behinderungsgrad` `prozent` DECIMAL(10,2) NOT NULL COMMENT 'Behinderungsgrad/Teilzeit in Prozent'; +DROP TABLE dep_arbumfang; + +delete from dep_deputat where imtuid in(11,15,16,17,18); +delete from `dep_deputat_ermaessigung` where imtuid in(11,15,16,17,18); + + + + +/* Stand der Dinge +- Deputatserfassungen fertig - in Prfung +- Ermigungen. Am letzten Arbeitstag ging es darum, in welcher Reihenfolge Ermigungen gewhrt wird. Was wird von der Basis Lehrveranstaltungsstunden (594) in welcher Reihenfolge abgezogen. +- Herr Haug nannte fr die fertigen Module eine Reihenfolge - siehe unten. Die anderen sind noch offen. +- Im System wurde dementsprechend eine sort_order eingefgt worden +- In den einzelModulen wird teilweise die Rest-LVS berechnet. Das ist ggf falsch. +- Am besten wird die RestLVS erst im Modul Jahresabschluss berechnet und nicht in den Einzelmodulen. Das fhrt zu Fehlern, wenn nachtrglich andere Ermigungen erfasst werden. + -> Das ggf. auch den ErmigungsScripten rausnehmen. Dort sollte LVS und SW nicht eingetragen werden, (Erst im Jahresabschluss) + + +Nehmen wir Ihr Beispiel: 12 % Ermigung wegen Schwerbehinderung und Teilzeit mit 90 %: +1. Volles Deputat: 594 LVS +2. Ermigt nach 13 LVVO fr Schwerbehinderung um 12 %: 12 % von 594 LVS = 71,28 LVS +Also: 594 71,28 = 522,72 LVS +3. Ermigt wegen Teilzeit: 10 % von Rest = 52,27 +Also: 522,72 52,72 = 470,45 LVS (= die Lehrverpflichtung, whrend des ganzen Jahres nach Bercksichtigung der Ermigungen) +4. Anteilsmig wegen Mutterschutz (79 Tage): Abzug: 470,45 / 365 x 79 = 101,82 +Also: 470,45 101,82 = 368,63 LVS + + +Auch dies kann man sicherlich anders berechnen. Ich meine, dass hier der Mutterschutz als letztes zu bercksichtigen ist, da er Tage von der bereits zuvor ermigten Lehrverpflichtung ausnimmt. +In einer Stufenreihe bedeutet dies dann: +1. Zunchst werden die Funktionen / Beauftragungen bercksichtigt +2. Ermigung wegen Schwerbehinderung (Basiswert aber auch 594 LVS) +3. Ermigung wegen Teilzeit +4. Verringerung wegen Mutterschutz/Elternzeit/Pflegezeit/Forschungssemester/ Praxissemester/Abordnungen/Ruhestand + +*/ \ No newline at end of file diff --git a/todo.txt b/todo.txt new file mode 100755 index 0000000..5fb9fc0 --- /dev/null +++ b/todo.txt @@ -0,0 +1,5 @@ +Exkursionsstd auch mal Anzahl der Arbeitsgemeinschaften? +Wenn ja, dann nach dem Absenden multiplizieren und Defaultwert in die Tabelle schreiben + +Teamteaching: +Bei Fehler oder bei Edit muss bei fachbergreifende LV Ja/Nein unterschieden werden. bei Ja muss Teamteachingfaktor ausgeblendet werden: Function show() diff --git a/todo_2022.sql b/todo_2022.sql new file mode 100755 index 0000000..6b328c9 --- /dev/null +++ b/todo_2022.sql @@ -0,0 +1,7 @@ +INSERT INTO `dep_kat_studiengang` (`dsgid`, `bezeichnung`) VALUES (NULL, 'Digitales Verwaltungsmanagement'); + + +truncate table dep_jahresabschluss_restdeputate; +truncate table dep_jahresabschluss; +truncate table dep_doz_abschluss; +truncate table dep_deputat; \ No newline at end of file