mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
This commit is contained in:
+35
-25
@@ -14,13 +14,17 @@
|
||||
<title>VileSci Menü</title>
|
||||
<link href="../skin/vilesci.css" rel="stylesheet" type="text/css">
|
||||
|
||||
<script language="JavaScript">
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
__js_page_array = new Array();
|
||||
__js_tab_array= new Array();
|
||||
__js_tab_array[0]='menueStammdaten';
|
||||
__js_tab_array[1]='menuePersonen';
|
||||
__js_tab_array[2]='menueLehre';
|
||||
__js_menu_array= new Array();
|
||||
__js_menu_array[0]='menueStammdaten';
|
||||
__js_tab_array[0]='tabStammdaten';
|
||||
__js_menu_array[1]='menuePersonen';
|
||||
__js_tab_array[1]='tabPersonen';
|
||||
__js_menu_array[2]='menueLehre';
|
||||
__js_tab_array[2]='tabLehre';
|
||||
|
||||
function js_toggle_container(conid)
|
||||
{
|
||||
@@ -50,11 +54,17 @@
|
||||
|
||||
function js_show_tab(tabid)
|
||||
{
|
||||
for(i=0;i<(__js_tab_array.length);i++)
|
||||
if (__js_tab_array[i]==tabid)
|
||||
document.getElementById(tabid).style.display = 'block';
|
||||
for(i=0;i<(__js_menu_array.length);i++)
|
||||
if (__js_menu_array[i]==tabid)
|
||||
{
|
||||
document.getElementById(__js_menu_array[i]).style.display = 'block';
|
||||
document.getElementById(__js_tab_array[i]).class = 'tab active';
|
||||
}
|
||||
else
|
||||
document.getElementById(tabid).style.display = 'none';
|
||||
{
|
||||
document.getElementById(__js_menu_array[i]).style.display = 'none';
|
||||
document.getElementById(__js_tab_array[i]).class = 'tab';
|
||||
}
|
||||
return true;
|
||||
}
|
||||
//-->
|
||||
@@ -70,9 +80,9 @@
|
||||
|
||||
<table class="tabs">
|
||||
<tr>
|
||||
<td class="tab active" onClick="js_show_tab('menueStammdaten');">Stammdaten</td>
|
||||
<td class="tab" onClick="js_show_tab('menuePersonen');">Personen</a></td>
|
||||
<td class="tab" onClick="js_show_tab('menueLehre');">Lehre</td>
|
||||
<td class="tab" id="tabStammdaten" onClick="js_show_tab('menueStammdaten');">Stammdaten</td>
|
||||
<td class="tab" id="tabPersonen" onClick="js_show_tab('menuePersonen');">Personen</a></td>
|
||||
<td class="tab" id="tabLehre" onClick="js_show_tab('menueLehre');">Lehre</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -145,11 +155,11 @@
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Gruppen" style="display: none">
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/einheit_menu.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Übersicht</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="lehre/einheit_menu.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Übersicht</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/einheit_menu.php?newFrm=true" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Neu</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="lehre/einheit_menu.php?newFrm=true" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Neu</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -195,27 +205,27 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/zeitwuensche.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Zeitwünsche</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="lehre/zeitwuensche.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Zeitwünsche</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/lv_verteilung/lv_verteilung.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Lehreinheiten</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="lehre/lv_verteilung/lv_verteilung.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Lehreinheiten</a></td>
|
||||
</tr>
|
||||
<!--<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/lehrveranstaltung.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Lehrveranstaltungen</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="lehre/lehrveranstaltung.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Lehrveranstaltungen</a></td>
|
||||
</tr>-->
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/stdplan_insert.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Stundenplan</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="lehre/stdplan_insert.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Stundenplan</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/stdplan_delete.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Delete</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="lehre/stdplan_delete.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Delete</a></td>
|
||||
</tr>
|
||||
<!--
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/einheit_menu.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Einheiten</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="lehre/einheit_menu.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Einheiten</a></td>
|
||||
</tr> -->
|
||||
<!--Menu Eintrag Lehrfach-->
|
||||
<tr>
|
||||
@@ -227,26 +237,26 @@
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Lehrfach" style="display: none;">
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/lehrfach.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Verwaltung</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="lehre/lehrfach.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Verwaltung</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/lehrfach/wartung.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Wartung</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="lehre/lehrfach/wartung.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Wartung</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/check/index.html" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Checken</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="lehre/check/index.html" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Checken</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/import/index.html" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Import</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="lehre/import/index.html" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Import</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/export/index.html" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Export</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="lehre/export/index.html" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Export</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -299,7 +309,7 @@
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Lehrveranstaltungen" style="display:block;">
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap><a class="MenuItem2" href="stundenplan/lehrveranstaltung.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Übersicht</a></td>
|
||||
<td nowrap><a class="MenuItem2" href="lehre/lehrveranstaltung.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9"> Übersicht</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// *****************************************
|
||||
// * Script zum Zusammenlegen Doppelter LVs
|
||||
// * Es werden zwei Listen mit LVs angezeigt
|
||||
// * Links wird die LV markiert mit dem rechts
|
||||
// * Links wird die LV markiert mit dem rechts
|
||||
// * markierten zusammengelegt werden soll.
|
||||
// * Die linke LV wird danach entfernt.
|
||||
// ************************************
|
||||
@@ -25,9 +25,9 @@ $smax=0;
|
||||
{
|
||||
echo substr(CONN_STRING,strpos(CONN_STRING,'dbname=')+7,strpos(CONN_STRING,'user=')-strpos(CONN_STRING,'dbname=')-7);
|
||||
}*/
|
||||
|
||||
|
||||
$s=new studiengang($conn);
|
||||
$s->getAll();
|
||||
$s->getAll(null,false);
|
||||
$studiengang=$s->result;
|
||||
$user = get_uid();
|
||||
|
||||
@@ -52,12 +52,12 @@ else
|
||||
{
|
||||
$semester=0;
|
||||
}
|
||||
|
||||
|
||||
if (isset($_GET['order_1']) || isset($_POST['order_1']))
|
||||
{
|
||||
$order_1=(isset($_GET['order_1'])?$_GET['order_1']:$_POST['order_1']);
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$order_1='lehrveranstaltung_id';
|
||||
}
|
||||
@@ -65,7 +65,7 @@ if (isset($_GET['order_2']) || isset($_POST['order_2']))
|
||||
{
|
||||
$order_2=(isset($_GET['order_2'])?$_GET['order_2']:$_POST['order_2']);
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$order_2='lehrveranstaltung_id';
|
||||
}
|
||||
@@ -73,7 +73,7 @@ if (isset($_GET['radio_1']) || isset($_POST['radio_1']))
|
||||
{
|
||||
$radio_1=(isset($_GET['radio_1'])?$_GET['radio_1']:$_POST['radio_1']);
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$radio_1=-1;
|
||||
}
|
||||
@@ -81,7 +81,7 @@ if (isset($_GET['radio_2']) || isset($_POST['radio_2']))
|
||||
{
|
||||
$radio_2=(isset($_GET['radio_2'])?$_GET['radio_2']:$_POST['radio_2']);
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$radio_2=-1;
|
||||
}
|
||||
@@ -94,21 +94,21 @@ if(!is_numeric($semester))
|
||||
{
|
||||
$semester=0;
|
||||
}
|
||||
|
||||
|
||||
$s=array();
|
||||
foreach ($studiengang as $stg)
|
||||
{
|
||||
$s[$stg->studiengang_kz]->max_sem=$stg->max_semester;
|
||||
$s[$stg->studiengang_kz]->kurzbz=$stg->kurzbzlang;
|
||||
$outp.= '<A href="lv_wartung.php?stg_kz='.$stg->studiengang_kz.'&semester='.$semester.'&max='.$stg->max_semester.'">'.$stg->kurzbzlang.'</A> - ';
|
||||
|
||||
|
||||
}
|
||||
$outp.= '<BR> -- ';
|
||||
for ($i=0;$i<=$s[$stg_kz]->max_sem;$i++)
|
||||
{
|
||||
$outp.= '<A href="lv_wartung.php?stg_kz='.$stg_kz.'&semester='.$i.'&max='.$s[$stg_kz]->max_sem.'">'.$i.'</A> -- ';
|
||||
}
|
||||
|
||||
$outp.= '<A href="lv_wartung.php?stg_kz='.$stg_kz.'&semester='.$i.'&max='.$s[$stg_kz]->max_sem.'">'.$i.'</A> -- ';
|
||||
}
|
||||
|
||||
//Initialisierung der Variablen
|
||||
|
||||
function kuerze($string)
|
||||
@@ -154,9 +154,9 @@ if(isset($radio_1) && isset($radio_2) && $radio_1>=0 && $radio_2>=0)
|
||||
{
|
||||
//wenn lvinfo neuer als die bestehende, ersetzt sie diese
|
||||
$sql_query_upd1.="DELETE FROM campus.tbl_lvinfo WHERE lehrveranstaltung_id='$radio_2';";
|
||||
$sql_query_upd1.="UPDATE campus.tbl_lvinfo SET lehrveranstaltung_id='$radio_2' WHERE lehrveranstaltung_id='$radio_1';";
|
||||
$sql_query_upd1.="UPDATE campus.tbl_lvinfo SET lehrveranstaltung_id='$radio_2' WHERE lehrveranstaltung_id='$radio_1';";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
//wenn lvinfo älter als die bestehende, wird sie gelöscht
|
||||
$sql_query_upd1.="DELETE FROM campus.tbl_lvinfo WHERE lehrveranstaltung_id='$radio_1';";
|
||||
@@ -174,13 +174,13 @@ if(isset($radio_1) && isset($radio_2) && $radio_1>=0 && $radio_2>=0)
|
||||
pg_query($conn,"COMMIT;");
|
||||
$msg .= "<br>".str_replace(';',';<br>',$sql_query_upd1)."COMMIT";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$msg = "Die Änderung konnte nicht durchgeführt werden!";
|
||||
pg_query($conn,"ROLLBACK;");
|
||||
$msg .= "<br>".str_replace(';',';<br><b>',$sql_query_upd1)."ROLLBACK</b>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user