Vilesci Redesign
lehrveranstaltung.php: Button zum Anlegen von Lehrfächern lehrfach.php: Neuer Tablesorter reservierung_insert.php: Ort mit Autocomplete und Datum mit Datepicker
@@ -48,7 +48,7 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meat http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Anzahl Studenten Lehrveranstaltungsplan FH Technikum-Wien</title>
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<script src="../../../include/js/jquery.js" type="text/javascript"></script>
|
||||
@@ -136,8 +136,7 @@
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</script>
|
||||
</td>
|
||||
<td id="info_close" align="right" style="color:#FFF;cursor: default;" class="ContentHeader">
|
||||
<div>schliessen <img border="0" src="../../../skin/images/cross.png" title="schliessen"> </div>
|
||||
@@ -150,7 +149,6 @@
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</td>
|
||||
</tr></table>
|
||||
<div id="infodetail" style="font-size:medium;text-align:left;background-color: #F5F5F5;padding: 15px 15px 15px 15px;"></div>
|
||||
|
||||
@@ -28,7 +28,7 @@ $menu=array
|
||||
//'Admin'=> array('name'=>'Admin', 'link'=>'admin/menu.html', 'target'=>'main'),
|
||||
'LVPlan'=> array
|
||||
(
|
||||
'name'=>'LV-Plan', 'opener'=>'true', 'hide'=>'false', 'permissions'=>array('admin','lv-plan'), 'image'=>'lvplan.png',
|
||||
'name'=>'LV-Plan', 'opener'=>'true', 'hide'=>'false', 'permissions'=>array('admin','lv-plan'), 'image'=>'vilesci_lvplan.png',
|
||||
'link'=>'left.php?categorie=LVPlan', 'target'=>'nav',
|
||||
'Gruppenverwaltung'=>array('name'=>'Gruppenverwaltung', 'permissions'=>array('admin','lv-plan','support'), 'link'=>'stammdaten/lvbgruppenverwaltung.php', 'target'=>'main'),
|
||||
'Lehrveranstaltung'=>array('name'=>'Lehrveranstaltung', 'link'=>'lehre/lehrveranstaltung_frameset.html', 'target'=>'main'),
|
||||
@@ -58,10 +58,17 @@ $menu=array
|
||||
'Zeitsperren'=>array('name'=>'Zeitsperren', 'link'=>'personen/urlaubsverwaltung.php', 'target'=>'main'),
|
||||
),
|
||||
|
||||
'Vorrueckung'=> array
|
||||
(
|
||||
'name'=>'Vorrueckung', 'permissions'=>array('admin','lv-plan','support'),
|
||||
'Lehreinheiten'=>array('name'=>'Lehreinheiten', 'link'=>'lehre/lehreinheiten_vorrueckung.php', 'target'=>'main'),
|
||||
'Studenten'=>array('name'=>'Studenten', 'link'=>'personen/student_vorrueckung.php', 'target'=>'main')
|
||||
),
|
||||
|
||||
),
|
||||
'Lehre'=> array
|
||||
(
|
||||
'name'=>'Lehre', 'opener'=>'true', 'hide'=>'false', 'permissions'=>array('admin','lv-plan','support', 'lehre'), 'image'=>'x-office-presentation.png',
|
||||
'name'=>'Lehre', 'opener'=>'true', 'hide'=>'false', 'permissions'=>array('admin','lv-plan','support', 'lehre'), 'image'=>'vilesci_lehre.png',
|
||||
'link'=>'left.php?categorie=Lehre', 'target'=>'nav',
|
||||
'Gruppenverwaltung'=>array('name'=>'Gruppen', 'permissions'=>array('admin','lv-plan','support'), 'link'=>'stammdaten/lvbgruppenverwaltung.php', 'target'=>'main'),
|
||||
'Lehrveranstaltung'=>array('name'=>'Lehrveranstaltung', 'link'=>'lehre/lehrveranstaltung_frameset.html', 'target'=>'main'),
|
||||
@@ -106,7 +113,7 @@ $menu=array
|
||||
),
|
||||
'Personen'=> array
|
||||
(
|
||||
'name'=>'Personen', 'opener'=>'true', 'hide'=>'true', 'image'=>'system-users.png', 'permissions'=>array('admin','lv-plan','support','mitarbeiter','basis/person'),
|
||||
'name'=>'Personen', 'opener'=>'true', 'hide'=>'true', 'image'=>'vilesci_personen.png', 'permissions'=>array('admin','lv-plan','support','mitarbeiter','basis/person'),
|
||||
'link'=>'left.php?categorie=Personen', 'target'=>'nav',
|
||||
'Suche'=>array('name'=>'Suche', 'link'=>'personen/suche.php', 'target'=>'main','permissions'=>array('admin','lv-plan','support','basis/person')),
|
||||
'Zusammenlegen'=>array('name'=>'Zusammenlegen', 'link'=>'stammdaten/personen_wartung.php', 'target'=>'main', 'permissions'=>array('admin','lv-plan','support')),
|
||||
@@ -145,7 +152,7 @@ $menu=array
|
||||
),
|
||||
'Stammdaten'=> array
|
||||
(
|
||||
'name'=>'Stammdaten', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('admin','lv-plan','support','basis/berechtigung','basis/variable','basis/studiengang','basis/ort','basis/firma','basis/fhausweis'), 'image'=>'folder.png',
|
||||
'name'=>'Stammdaten', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('admin','lv-plan','support','basis/berechtigung','basis/variable','basis/studiengang','basis/ort','basis/firma','basis/fhausweis'), 'image'=>'vilesci_stammdaten.png',
|
||||
'link'=>'left.php?categorie=Stammdaten', 'target'=>'nav',
|
||||
'Betriebsmittel'=>array('name'=>'Betriebsmittel', 'link'=>'stammdaten/betriebsmittel_frameset.php', 'target'=>'main','permissions'=>array('basis/betriebsmittel')),
|
||||
'Reihungstest'=>array('name'=>'Reihungstest', 'link'=>'stammdaten/reihungstestverwaltung.php', 'target'=>'main','permissions'=>array('admin','assistenz')),
|
||||
@@ -186,7 +193,7 @@ $menu=array
|
||||
),
|
||||
'Wartung'=> array
|
||||
(
|
||||
'name'=>'Wartung', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('admin','lv-plan','support','basis/firma'), 'image'=>'edit-clear.png',
|
||||
'name'=>'Wartung', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('admin','lv-plan','support','basis/firma'), 'image'=>'vilesci_wartung.png',
|
||||
'link'=>'left.php?categorie=Wartung', 'target'=>'nav',
|
||||
'Vorrueckung'=> array
|
||||
(
|
||||
@@ -207,7 +214,7 @@ $menu=array
|
||||
),
|
||||
'Auswertung'=> array
|
||||
(
|
||||
'name'=>'Auswertung', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('admin','lv-plan','support','assistenz','wawi/inventar','basis/statistik'), 'image'=>'statistic.png',
|
||||
'name'=>'Auswertung', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('admin','lv-plan','support','assistenz','wawi/inventar','basis/statistik'), 'image'=>'vilesci_statistik.png',
|
||||
'link'=>'left.php?categorie=Auswertung', 'target'=>'nav',
|
||||
/*
|
||||
'Raumauslastung'=>array('name'=>'Raumauslastung...', 'link'=>'lehre/raumauslastung.php', 'target'=>'main'),
|
||||
@@ -229,7 +236,7 @@ $menu=array
|
||||
),
|
||||
'Inventar'=> array
|
||||
(
|
||||
'name'=>'Inventar', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('admin','wawi','support','wawi/inventar'), 'image'=>'edit-paste.png',
|
||||
'name'=>'Inventar', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('admin','wawi','support','wawi/inventar'), 'image'=>'vilesci_inventar.png',
|
||||
'link'=>'left.php?categorie=Inventar', 'target'=>'nav',
|
||||
'Inventar'=> array
|
||||
(
|
||||
@@ -243,7 +250,7 @@ $menu=array
|
||||
),
|
||||
'Admin'=> array
|
||||
(
|
||||
'name'=>'Admin', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('admin','lv-plan','support'), 'image'=>'emblem-system.png',
|
||||
'name'=>'Admin', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('admin','lv-plan','support'), 'image'=>'vilesci_admin.png',
|
||||
'link'=>'left.php?categorie=Admin', 'target'=>'nav',
|
||||
'Tools'=> array
|
||||
(
|
||||
@@ -264,7 +271,7 @@ $menu=array
|
||||
),
|
||||
'SD-Tools'=> array
|
||||
(
|
||||
'name'=>'SD-Tools', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('admin','lv-plan','support'), 'image'=>'network-workgroup.png',
|
||||
'name'=>'SD-Tools', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('admin','lv-plan','support'), 'image'=>'vilesci_sdtools.png',
|
||||
'link'=>'https://sdtools.technikum-wien.at', 'target'=>'_blank',
|
||||
)
|
||||
|
||||
@@ -284,7 +291,7 @@ if($addon_obj->loadAddons())
|
||||
{
|
||||
$menu['Addons']=array
|
||||
(
|
||||
'name'=>'Addons', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('basis/addon'), 'image'=>'statistic.png',
|
||||
'name'=>'Addons', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('basis/addon'), 'image'=>'vilesci_addons.png',
|
||||
'link'=>'left.php?categorie=Addons', 'target'=>'nav'
|
||||
);
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 196 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
@@ -134,38 +134,43 @@ a.MenuItem2:hover
|
||||
text-decoration:underline;
|
||||
}
|
||||
|
||||
img
|
||||
{
|
||||
border:0;
|
||||
}
|
||||
|
||||
h1, h1 td
|
||||
{
|
||||
font-size: 150%;
|
||||
font-style: normal;
|
||||
line-height: normal;
|
||||
font-weight: normal;
|
||||
font-variant: normal;
|
||||
color: #ffffff;
|
||||
background-color:
|
||||
#009e84;
|
||||
text-decoration: none;
|
||||
}
|
||||
h2 { font-size: 140%; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; color: #ffffff; background-color: #00a4d2; text-decoration: none;}
|
||||
h3 { font-size: 130%; font-style: normal; line-height: normal; font-weight: bold; font-variant: normal; text-transform: none; color: #008E74; cursor: pointer; text-decoration: none; }
|
||||
h4
|
||||
{
|
||||
font-size: 120%;
|
||||
font-style: normal;
|
||||
line-height: normal;
|
||||
font-weight: bold;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
color: #008E74;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
padding: 0px;
|
||||
padding-bottom: 20px;
|
||||
margin:0px;
|
||||
white-space:nowrap;
|
||||
font-size: 20px;
|
||||
font-weight:normal;
|
||||
}
|
||||
h2
|
||||
{
|
||||
color: black;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 1px;
|
||||
white-space:nowrap;
|
||||
padding-left: 10px;
|
||||
font-size: 120%;
|
||||
border-bottom:solid 1px #0086CC;
|
||||
font-weight:normal;
|
||||
}
|
||||
h3
|
||||
{
|
||||
margin: 0px;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 2px;
|
||||
font-weight: bold;
|
||||
font-size:13px;
|
||||
}
|
||||
h4
|
||||
{
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
text-decoration: underline;
|
||||
font-weight: normal;
|
||||
font-size:13px;
|
||||
}
|
||||
|
||||
|
||||
p.littleblack { font-size: x-small; color: #000000;}
|
||||
|
||||
@@ -215,16 +220,6 @@ h1 a:hover
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
h2
|
||||
{
|
||||
color: #ffffff;
|
||||
background-color: #00a4d2;
|
||||
}
|
||||
h2 td
|
||||
{
|
||||
color: #ffffff;
|
||||
background-color: #00a4d2;
|
||||
}
|
||||
h2 a
|
||||
{
|
||||
color: #dddddd;
|
||||
@@ -235,13 +230,6 @@ h2 a:hover
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
h3
|
||||
{
|
||||
font-size: smaller;
|
||||
font-weight: bold;
|
||||
color: #008E74;
|
||||
}
|
||||
|
||||
#bgcolor0
|
||||
{
|
||||
background-color: #FF0000;
|
||||
@@ -278,16 +266,21 @@ td
|
||||
font-size: smaller; /*0.8em;*/
|
||||
}
|
||||
|
||||
img { border: none; }
|
||||
img
|
||||
{
|
||||
border: none;
|
||||
}
|
||||
|
||||
div.logo
|
||||
{
|
||||
background-color: #CECF9C;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
/* background-color: #006095; */
|
||||
background-image: url(images/vilesci_farbverlauf.png);
|
||||
background-repeat: repeat-x;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: smaller; /* 1em; */
|
||||
border: none;
|
||||
border-bottom: 2px solid #000000;
|
||||
/* border-bottom: 2px solid #000000; */
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
@@ -301,24 +294,6 @@ p.comment
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
h2
|
||||
{
|
||||
color: #666633;
|
||||
font-size: medium; /*1.3em;*/
|
||||
font-weight: bold;
|
||||
border: 2px solid #E6E6CC;
|
||||
background-color: #F3F3E9;
|
||||
padding: 2px 1em;
|
||||
margin: 0 0 1ex 0;
|
||||
}
|
||||
|
||||
h3
|
||||
{
|
||||
color: #666633;
|
||||
font-size: small;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.error
|
||||
{
|
||||
background-color: #E6E6CC;
|
||||
@@ -332,6 +307,10 @@ table.navbar
|
||||
{
|
||||
background-color: #E6E6CC;
|
||||
}
|
||||
table.logo
|
||||
{
|
||||
padding: 3px 0 3px 0;
|
||||
}
|
||||
|
||||
table.navbar td
|
||||
{
|
||||
@@ -443,13 +422,13 @@ a:active
|
||||
|
||||
a,a:link
|
||||
{
|
||||
color: #336699;
|
||||
color: #0086cc;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:visited
|
||||
{
|
||||
color: #336699;
|
||||
color: #0086cc;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -458,29 +437,38 @@ a:hover
|
||||
color: #cc0000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.navlink:link, a.toplink:link
|
||||
a.toplink, a.toplink:visited, a.toplink:active
|
||||
{
|
||||
color: #006095;
|
||||
text-decoration: none;
|
||||
}
|
||||
a.toplink:hover
|
||||
{
|
||||
color: #cc0000;
|
||||
text-decoration: none;
|
||||
}
|
||||
a.navlink:link
|
||||
{
|
||||
color: #336699;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.navlink:visited, a.toplink:visited
|
||||
a.navlink:visited
|
||||
{
|
||||
color: #336699;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.navlink:hover, a.toplink:hover
|
||||
a.navlink:hover
|
||||
{
|
||||
color: #cc0000;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.navlink:active, a.toplink:active
|
||||
a.navlink:active
|
||||
{
|
||||
color: #cc0000;
|
||||
font-weight: bold;
|
||||
|
||||
@@ -6,11 +6,24 @@
|
||||
<link rel="stylesheet" href="../skin/vilesci.css" type="text/css" />
|
||||
<link rel="shortcut icon" href="Vilesci.ico" type="image/x-icon">
|
||||
</head>
|
||||
<frameset rows="49px,*" framespacing="1" border="1">
|
||||
<!--<frameset rows="55px,*" frameborder="0" framespacing="0" border="0">
|
||||
<frame src="top.php" id="top" name="top" frameborder="0" scrolling="No"/>
|
||||
<frameset cols="200px,*" >
|
||||
<frame src="left.php" id="nav" name="nav" />
|
||||
<frame src="main.php" id="main" name="main" />
|
||||
<frameset framespacing="0" border="0" cols="200px,*" >
|
||||
<frame frameborder="0" src="left.php" id="nav" name="nav" />
|
||||
<frame frameborder="0" src="main.php" id="main" name="main" />
|
||||
</frameset>
|
||||
<noframes>
|
||||
<body bgcolor="#FFFFFF">
|
||||
This application works only with a frames-enabled browser.<br />
|
||||
<a href="main.php">Use without frames</a>
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>-->
|
||||
<frameset rows="55px,*" frameborder="0" framespacing="0">
|
||||
<frame src="top.php" id="top" name="top" scrolling="No"/>
|
||||
<frameset border="4" frameborder="1" framespacing="0" cols="200px,*" >
|
||||
<frame style="border-right: 3px; border-right-style:solid; border-right-color: grey;" src="left.php" id="nav" name="nav" />
|
||||
<frame frameborder="1" src="main.php" id="main" name="main" />
|
||||
</frameset>
|
||||
<noframes>
|
||||
<body bgcolor="#FFFFFF">
|
||||
|
||||
@@ -158,7 +158,7 @@ if(isset($_GET['categorie']))
|
||||
if (isset($m2['target']))
|
||||
echo 'target="'.$m2['target'].'" ';
|
||||
if (isset($m2['link']))
|
||||
echo '><img title="'.$m2['name'].'" src="../skin/images/bullet_go.png" alt="page go" border="0"> ';
|
||||
echo '><img title="'.$m2['name'].'" src="../skin/images/square_blue.png" alt="page go" border="0"> ';
|
||||
if (isset($m2['name']))
|
||||
echo $m2['name'];
|
||||
if (isset($m2['link']))
|
||||
|
||||
@@ -100,7 +100,35 @@ if (isset($_POST['neu']))
|
||||
echo "<br>$lf->errormsg<br>";
|
||||
}
|
||||
}
|
||||
if (isset($_GET['neu']))
|
||||
{
|
||||
$stg_obj = new studiengang();
|
||||
if(!$stg_obj->load($_GET['stg_kz']))
|
||||
die('Studiengang wurde nicht gefunden');
|
||||
|
||||
if(!$rechte->isBerechtigt('lehre/lehrfach', $stg_obj->oe_kurzbz, 'sui'))
|
||||
die('Sie haben keine Berechtigung fuer diese Aktion');
|
||||
|
||||
$lf = new lehrfach();
|
||||
$lf->new=true;
|
||||
$lf->studiengang_kz=$_GET['stg_kz'];
|
||||
$lf->fachbereich_kurzbz=$_GET['fachbereich_kurzbz'];
|
||||
$lf->kurzbz=$_GET['kurzbz'];
|
||||
$lf->bezeichnung = $_GET['bezeichnung'];
|
||||
$lf->farbe = $_GET['farbe'];
|
||||
$lf->aktiv = true;
|
||||
$lf->semester = $_GET['semester'];
|
||||
$lf->sprache = $_GET['sprache'];
|
||||
$lf->updateamum = date('Y-m-d H:i:s');
|
||||
$lf->updatevon = $user;
|
||||
$lf->insertamum = date('Y-m-d H:i:s');
|
||||
$lf->insertvon = $user;
|
||||
|
||||
if(!$lf->save())
|
||||
{
|
||||
echo "<br>$lf->errormsg<br>";
|
||||
}
|
||||
}
|
||||
if (isset($_POST['type']) && $_POST['type']=='editsave')
|
||||
{
|
||||
$stg_obj = new studiengang();
|
||||
@@ -210,8 +238,19 @@ echo '
|
||||
<title>Lehrfach Verwaltung</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../include/js/tablesort/table.css" type="text/css">
|
||||
<script src="../../include/js/tablesort/table.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" href="../../skin/jquery.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../skin/tablesort.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../include/js/jquery.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#t1").tablesorter(
|
||||
{
|
||||
sortList: [[2,0],[4,0],[0,0]],
|
||||
widgets: ["zebra"]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<H2>Lehrfach Verwaltung ('.$s[$filter_stg_kz]->kurzbz.' '.$filter_semester.' '.$filter_fachbereich_kurzbz.')</H2>
|
||||
@@ -288,7 +327,7 @@ if (isset($_GET['type']) && $_GET['type']=='edit')
|
||||
}
|
||||
echo "</SELECT></td></tr>";
|
||||
echo '
|
||||
<tr><td><i>Institut</i></td><td><SELECT name="fachbereich_kurzbz" onchange="document.getElementById(\'farbe\').value=this.options[this.selectedIndex].getAttribute(\'farbe\')">
|
||||
<tr><td>Institut</td><td><SELECT name="fachbereich_kurzbz" onchange="document.getElementById(\'farbe\').value=this.options[this.selectedIndex].getAttribute(\'farbe\')">
|
||||
<option value="-1">- auswählen -</option>';
|
||||
foreach($fachbereiche as $fb)
|
||||
{
|
||||
@@ -310,10 +349,10 @@ if (isset($_GET['type']) && $_GET['type']=='edit')
|
||||
|
||||
echo '</SELECT></td></tr>';
|
||||
|
||||
echo '<tr><td><i>Name</i></td><td><input type="text" name="bezeichnung" size="70" maxlength="250" value="'.$lf->bezeichnung.'"></td></tr>';
|
||||
echo '<tr><td><i>Kurzbezeichnung</i></td><td>';
|
||||
echo '<tr><td>Name</td><td><input type="text" name="bezeichnung" size="70" maxlength="250" value="'.$lf->bezeichnung.'"></td></tr>';
|
||||
echo '<tr><td>Kurzbezeichnung</td><td>';
|
||||
echo '<input type="text" name="kurzbz" size="15" maxlength="12" value="'.$lf->kurzbz.'"></td></tr>';
|
||||
echo '<tr><td><i>Farbe</i></td><td>';
|
||||
echo '<tr><td>Farbe</td><td>';
|
||||
echo '<input type="text" name="farbe" id="farbe" size="15" maxlength="7" value="'.$lf->farbe.'"></td></tr>';
|
||||
|
||||
echo '<tr><td>Aktiv</td><td><input type="checkbox" name="aktiv" value="1" '.($lf->aktiv?'checked':'').' />';
|
||||
@@ -375,7 +414,7 @@ else
|
||||
}
|
||||
echo "</SELECT></td></tr>";
|
||||
echo '
|
||||
<tr><td><i>Institut</i></td><td><SELECT name="fachbereich_kurzbz" onchange="document.getElementById(\'farbe\').value=this.options[this.selectedIndex].getAttribute(\'farbe\')">
|
||||
<tr><td>Institut</td><td><SELECT name="fachbereich_kurzbz" onchange="document.getElementById(\'farbe\').value=this.options[this.selectedIndex].getAttribute(\'farbe\')">
|
||||
<option value="-1">- auswählen -</option>';
|
||||
|
||||
foreach($fachbereiche as $fb)
|
||||
@@ -394,10 +433,10 @@ else
|
||||
|
||||
echo '</SELECT></td></tr>';
|
||||
|
||||
echo '<tr><td><i>Name</i></td><td><input type="text" name="bezeichnung" size="70" maxlength="250" value=""></td></tr>';
|
||||
echo '<tr><td><i>Kurzbezeichnung</i></td><td>';
|
||||
echo '<tr><td>Name</td><td><input type="text" name="bezeichnung" size="70" maxlength="250" value=""></td></tr>';
|
||||
echo '<tr><td>Kurzbezeichnung</td><td>';
|
||||
echo '<input type="text" name="kurzbz" size="15" maxlength="12" value=""></td></tr>';
|
||||
echo '<tr><td><i>Farbe</i></td><td>';
|
||||
echo '<tr><td>Farbe</td><td>';
|
||||
echo '<input type="text" name="farbe" id="farbe" size="15" maxlength="7" value=""></td></tr>';
|
||||
echo '<tr><td>Sprache</td><td><select name="sprache">';
|
||||
|
||||
@@ -451,21 +490,21 @@ if(!isset($_GET['type']))
|
||||
{
|
||||
echo '
|
||||
<h3>Übersicht - '.$db->db_num_rows($result_lehrfach).' Einträge</h3>
|
||||
<table class="liste table-autosort:2 table-stripeclass:alternate table-autostripe">
|
||||
<table class="tablesorter" id="t1">
|
||||
<thead>';
|
||||
|
||||
echo "
|
||||
<tr class='liste'>
|
||||
<th class='table-sortable:default'>ID</th>
|
||||
<th class='table-sortable:default'>Stg</th>
|
||||
<th class='table-sortable:default'>Sem</th>
|
||||
<th class='table-sortable:default'>Kurzbz</th>
|
||||
<th class='table-sortable:default'>Bezeichnung</th>
|
||||
<th class='table-sortable:default'>Farbe</th>
|
||||
<th class='table-sortable:default'>Aktiv</th>
|
||||
<th class='table-sortable:default'>Institut</th>
|
||||
<th class='table-sortable:default'>Sprache</th>
|
||||
<th class='table-sortable:default'> </th>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Stg</th>
|
||||
<th>Sem</th>
|
||||
<th>Kurzbz</th>
|
||||
<th>Bezeichnung</th>
|
||||
<th>Farbe</th>
|
||||
<th>Aktiv</th>
|
||||
<th>Institut</th>
|
||||
<th>Sprache</th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>";
|
||||
|
||||
@@ -692,7 +692,8 @@ if ($result_lv!=0)
|
||||
<th>Zeugnis</th>
|
||||
<th title='Soll diese Lehrveranstaltung bei Diplom-/Bachelorarbeit ausgewaehlt werden koennen?'>BA/DA</th>
|
||||
<th>Koordinator</th>
|
||||
<th>LV-Info</th>\n";
|
||||
<th>LV-Info</th>
|
||||
<th>Lehrfach</th>\n";
|
||||
echo "</tr></thead>";
|
||||
echo "<tbody>";
|
||||
for($i=0;$i<$num_rows;$i++)
|
||||
@@ -746,7 +747,7 @@ if ($result_lv!=0)
|
||||
<div style="display: none">'.$db->convert_html_chars($row->lehre).'</div>
|
||||
<a href="Lehre" onclick="changeboolean(\''.$row->lehrveranstaltung_id.'\',\'lehre\'); return false">
|
||||
<input type="hidden" id="lehre'.$row->lehrveranstaltung_id.'" value="'.($row->lehre=='t'?'true':'false').'">
|
||||
<img id="lehreimg'.$row->lehrveranstaltung_id.'" src="../../skin/images/'.($row->lehre=='t'?'true.png':'false.png').'" height="20">
|
||||
<img id="lehreimg'.$row->lehrveranstaltung_id.'" title="Lehre" src="../../skin/images/'.($row->lehre=='t'?'true.png':'false.png').'" height="20">
|
||||
</a></td>';
|
||||
//LehreVz
|
||||
echo '<td style="white-space:nowrap;">';
|
||||
@@ -766,7 +767,7 @@ if ($result_lv!=0)
|
||||
echo '<div style="display: none">'.$db->convert_html_chars($row->aktiv).'</div>';
|
||||
echo '<a href="Aktiv" onclick="changeboolean(\''.$row->lehrveranstaltung_id.'\',\'aktiv\'); return false">
|
||||
<input type="hidden" id="aktiv'.$row->lehrveranstaltung_id.'" value="'.($row->aktiv=='t'?'true':'false').'">
|
||||
<img id="aktivimg'.$row->lehrveranstaltung_id.'" src="../../skin/images/'.($row->aktiv=='t'?'true.png':'false.png').'" height="20">
|
||||
<img id="aktivimg'.$row->lehrveranstaltung_id.'" title="Aktiv" src="../../skin/images/'.($row->aktiv=='t'?'true.png':'false.png').'" height="20">
|
||||
</a>
|
||||
';
|
||||
}
|
||||
@@ -790,7 +791,7 @@ if ($result_lv!=0)
|
||||
<div style="display: none">'.$db->convert_html_chars($row->zeugnis).'</div>
|
||||
<a href="Zeugnis" onclick="changeboolean(\''.$row->lehrveranstaltung_id.'\',\'zeugnis\'); return false">
|
||||
<input type="hidden" id="zeugnis'.$row->lehrveranstaltung_id.'" value="'.($row->zeugnis=='t'?'true':'false').'">
|
||||
<img id="zeugnisimg'.$row->lehrveranstaltung_id.'" src="../../skin/images/'.($row->zeugnis=='t'?'true.png':'false.png').'" height="20">
|
||||
<img id="zeugnisimg'.$row->lehrveranstaltung_id.'" title="Zeugnis" src="../../skin/images/'.($row->zeugnis=='t'?'true.png':'false.png').'" height="20">
|
||||
</a>
|
||||
</td>';
|
||||
//Projektarbeit
|
||||
@@ -798,7 +799,7 @@ if ($result_lv!=0)
|
||||
<div style="display: none">'.$db->convert_html_chars($row->projektarbeit).'</div>
|
||||
<a href="Projektarbeit" onclick="changeboolean(\''.$row->lehrveranstaltung_id.'\',\'projektarbeit\'); return false">
|
||||
<input type="hidden" id="projektarbeit'.$row->lehrveranstaltung_id.'" value="'.($row->projektarbeit=='t'?'true':'false').'">
|
||||
<img id="projektarbeitimg'.$row->lehrveranstaltung_id.'" src="../../skin/images/'.($row->projektarbeit=='t'?'true.png':'false.png').'" height="20">
|
||||
<img id="projektarbeitimg'.$row->lehrveranstaltung_id.'" title="Projektarbeit" src="../../skin/images/'.($row->projektarbeit=='t'?'true.png':'false.png').'" height="20">
|
||||
</a>
|
||||
</td>';
|
||||
//FBK
|
||||
@@ -828,6 +829,22 @@ if ($result_lv!=0)
|
||||
else
|
||||
echo 'vorhanden';
|
||||
echo '</td>';
|
||||
//Lehrfach anlegen
|
||||
echo "<td nowrap>";
|
||||
if($write_admin)
|
||||
echo '<a href="lehrfach.php?neu
|
||||
&filter_stg_kz='.$db->convert_html_chars($row->studiengang_kz).'
|
||||
&filter_semester='.$db->convert_html_chars($row->semester).'
|
||||
&filter_fachbereich_kurzbz=&filter_aktiv=
|
||||
&stg_kz='.$row->studiengang_kz.'
|
||||
&kurzbz='.$db->convert_html_chars($row->kurzbz).'
|
||||
&bezeichnung='.$db->convert_html_chars($row->bezeichnung).'
|
||||
&semester='.$db->convert_html_chars($row->semester).'
|
||||
&farbe=&fachbereich_kurzbz=Dummy
|
||||
&sprache='.$db->convert_html_chars($row->sprache).'" target="_parent" method="post">LF Neu</a>';
|
||||
else
|
||||
echo $db->convert_html_chars($row->lehrveranstaltung_id);
|
||||
echo '</td>';
|
||||
echo "</tr>\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/* Copyright (C) 2010 Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Manfred Kindl <kindlm@technikum-wien.at>
|
||||
*/
|
||||
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../include/basis_db.class.php');
|
||||
require_once('../../include/ort.class.php');
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
if(isset($_REQUEST['autocomplete']) && $_REQUEST['autocomplete']=='ort')
|
||||
{
|
||||
$search=trim((isset($_REQUEST['term']) ? $_REQUEST['term']:''));
|
||||
if (is_null($search) ||$search=='')
|
||||
exit();
|
||||
|
||||
$ort_auswahl = new ort();
|
||||
|
||||
if($ort_auswahl->filter($search))
|
||||
{
|
||||
$result_obj = array();
|
||||
foreach($ort_auswahl->result as $row)
|
||||
{
|
||||
$item['ort_kurzbz']=html_entity_decode($row->ort_kurzbz);
|
||||
$item['planbezeichnung']=html_entity_decode($row->planbezeichnung);
|
||||
$result_obj[]=$item;
|
||||
}
|
||||
echo json_encode($result_obj);
|
||||
}
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@@ -29,10 +29,14 @@
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../include/basis_db.class.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/datum.class.php');
|
||||
require_once('../../include/benutzerberechtigung.class.php');
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
$uid=get_uid();
|
||||
$datum_obj = new datum();
|
||||
|
||||
$sql_query="SELECT studiengang_kz, UPPER(oe_kurzbz) AS oe_kurzbz, bezeichnung FROM public.tbl_studiengang WHERE studiengang_kz>=0 ORDER BY oe_kurzbz";
|
||||
//echo $sql_query."<br>";
|
||||
@@ -54,33 +58,60 @@
|
||||
$result_ort=$db->db_query($sql_query);
|
||||
if(!$result_ort)
|
||||
die("ort not found! ".$db->db_last_error());
|
||||
|
||||
|
||||
|
||||
|
||||
$stgid=(isset($_REQUEST['stgid'])?$_REQUEST['stgid']:0);
|
||||
$lektorid=(isset($_REQUEST['lektorid'])?$_REQUEST['lektorid']:1);
|
||||
$lektorid=(isset($_REQUEST['lektorid'])?$_REQUEST['lektorid']:$uid);
|
||||
$ortid=(isset($_REQUEST['ortid'])?$_REQUEST['ortid']:'');
|
||||
$semester=(isset($_REQUEST['semester'])?$_REQUEST['semester']:'');
|
||||
$verband=(isset($_REQUEST['verband'])?$_REQUEST['verband']:0);
|
||||
$gruppe=(isset($_REQUEST['gruppe'])?$_REQUEST['gruppe']:0);
|
||||
$gruppe_kurzbz=(isset($_REQUEST['gruppe_kurzbz'])?$_REQUEST['gruppe_kurzbz']:'');
|
||||
$tag=(isset($_REQUEST['tag'])?$_REQUEST['tag']:date('d'));
|
||||
$monat=(isset($_REQUEST['monat'])?$_REQUEST['monat']:date('m'));
|
||||
$jahr=(isset($_REQUEST['jahr'])?$_REQUEST['jahr']:date('Y'));
|
||||
$verband=(isset($_REQUEST['verband'])?$_REQUEST['verband']:'');
|
||||
$gruppe=(isset($_REQUEST['gruppe'])?$_REQUEST['gruppe']:'');
|
||||
$gruppe_kurzbz=(isset($_REQUEST['gruppe_kurzbz'])?$_REQUEST['gruppe_kurzbz']:'');
|
||||
$datum=(isset($_REQUEST['datum'])?$_REQUEST['datum']:date('d.m.Y'));
|
||||
$titel=(isset($_REQUEST['titel'])?$_REQUEST['titel']:'');
|
||||
$beschreibung=(isset($_REQUEST['beschreibung'])?$_REQUEST['beschreibung']:'');
|
||||
$type=(isset($_REQUEST['type'])?$_REQUEST['type']:'');
|
||||
|
||||
$stdbegin=(isset($_REQUEST['stdbegin'])?$_REQUEST['stdbegin']:1);
|
||||
$stdblock=(isset($_REQUEST['stdblock'])?$_REQUEST['stdblock']:2);
|
||||
//$stdsemester=(isset($_REQUEST['stdsemester'])?$_REQUEST['stdsemester']:$stdblock);
|
||||
|
||||
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($uid);
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Insert Reservierungen</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
<link href="../../skin/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css">
|
||||
<script src="../../include/js/jquery1.9.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$( "#datepicker_datum" ).datepicker($.datepicker.regional['de']);
|
||||
|
||||
$("#ort").autocomplete({
|
||||
source: "reservierung_autocomplete.php?autocomplete=ort",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].ort_kurzbz;
|
||||
ui.content[i].label=ui.content[i].ort_kurzbz;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
//Ausgeaehlte Ressource zuweisen und Textfeld wieder leeren
|
||||
$("#ort_kurzbz").val(ui.item.uid);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<H2>Reservierungen einfügen</H2>
|
||||
@@ -109,7 +140,7 @@
|
||||
<?php
|
||||
for ($i=1;$i<9;$i++)
|
||||
{
|
||||
if (isset($_POST['semester']) && $_POST['semester']==$i)
|
||||
if ($semester==$i)
|
||||
echo "<option value=\"$i\" selected>$i</option>";
|
||||
else
|
||||
echo "<option value=\"$i\">$i</option>";
|
||||
@@ -122,7 +153,7 @@
|
||||
<?php $verbaende=array("'A'","'B'","'C'","'D'","'F'","'V'");
|
||||
foreach ($verbaende as $i)
|
||||
{
|
||||
if (isset($_POST['verband']) && $_POST['verband']==$i)
|
||||
if ($verband==$i)
|
||||
echo "<option value=\"$i\" selected>$i</option>";
|
||||
else
|
||||
echo "<option value=\"$i\">$i</option>";
|
||||
@@ -135,7 +166,7 @@
|
||||
<?php
|
||||
for ($i=1;$i<3;$i++)
|
||||
{
|
||||
if (isset($_POST['gruppe']) && $_POST['gruppe']==$i)
|
||||
if ($gruppe==$i)
|
||||
echo "<option value=\"$i\" selected>$i</option>";
|
||||
else
|
||||
echo "<option value=\"$i\">$i</option>";
|
||||
@@ -173,12 +204,13 @@
|
||||
<SELECT name="lektorid">
|
||||
<?php
|
||||
$num_rows=$db->db_num_rows($result_lektor);
|
||||
if ($_POST['lektorid']==$row->uid)
|
||||
$_POST['lektorid']=$uid;
|
||||
$row=$db->db_fetch_object ($result_lektor);
|
||||
if ($lektorid==$row->uid)
|
||||
$lektorid=$uid;
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$row=$db->db_fetch_object ($result_lektor, $i);
|
||||
if ($_POST['lektorid']==$row->uid)
|
||||
if ($lektorid==$row->uid)
|
||||
echo "<option value=\"$row->uid\" selected>$row->kurzbz</option>";
|
||||
else
|
||||
echo "<option value=\"$row->uid\">$row->kurzbz</option>";
|
||||
@@ -189,27 +221,36 @@
|
||||
</p>
|
||||
<p>
|
||||
Ort
|
||||
<select name="ortid">
|
||||
<?php
|
||||
<!--<select name="ortid">
|
||||
<?php/*
|
||||
$num_rows=$db->db_num_rows($result_ort);
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$row=$db->db_fetch_object ($result_ort, $i);
|
||||
if ($_POST['ortid']==$row->ort_kurzbz)
|
||||
if ($ortid==$row->ort_kurzbz)
|
||||
echo "<option value=\"$row->ort_kurzbz\" selected>$row->ort_kurzbz</option>";
|
||||
else
|
||||
echo "<option value=\"$row->ort_kurzbz\">$row->ort_kurzbz</option>";
|
||||
}
|
||||
}*/
|
||||
?>
|
||||
</select>
|
||||
</select>-->
|
||||
<?php
|
||||
$row=$db->db_fetch_object ($result_ort);
|
||||
if ($ortid!='')
|
||||
echo '<input type="text" size="25" maxlength="40" name="ortid" id="ort" value="'.$ortid.'"/><input type="hidden" value="'.$row->ort_kurzbz.'" id="ort_kurzbz" name="ort_kurzbz" />';
|
||||
else
|
||||
echo '<input type="text" size="25" maxlength="40" name="ortid" id="ort" value=""/><input type="hidden" value="'.$row->ort_kurzbz.'" id="ort_kurzbz" name="ort_kurzbz" />';
|
||||
?>
|
||||
|
||||
|
||||
|
||||
Tag
|
||||
Datum
|
||||
<input type="text" id="datepicker_datum" size="12" name="datum" value="<?php echo $datum; ?>">
|
||||
<!--Tag
|
||||
<input type="text" name="tag" size="2" maxlength="2" value="<?php echo $tag; ?>">
|
||||
Monat
|
||||
<input type="text" name="monat" size="2" maxlength="2" value="<?php echo $monat; ?>">
|
||||
Jahr
|
||||
<input type="text" name="jahr" size="4" maxlength="4" value="<?php echo $jahr; ?>">
|
||||
<input type="text" name="jahr" size="4" maxlength="4" value="<?php echo $jahr; ?>">-->
|
||||
</p>
|
||||
<p>
|
||||
Einheit Beginn
|
||||
@@ -229,134 +270,133 @@
|
||||
<hr>
|
||||
</form>
|
||||
<?php
|
||||
if ($type=="save")
|
||||
|
||||
if($rechte->isBerechtigt('admin'))
|
||||
{
|
||||
$error=false;
|
||||
$stunde=$stdbegin;
|
||||
echo "Auftrag wird ausgefuehrt!<br>";
|
||||
// echo "Kontrolle auf Doppelbelegungen! ... ";
|
||||
|
||||
/* // checken auf Ort
|
||||
$date[mday]=$_POST['tag']; $date[mon]=$_POST['monat']; $date[year]=$_POST['jahr'];
|
||||
$datum=$tag.".".$monat.".".$jahr;
|
||||
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
|
||||
if ($type=="save")
|
||||
{
|
||||
$std=$stunde+($i % $stdblock);
|
||||
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
|
||||
$error=false;
|
||||
$stunde=$stdbegin;
|
||||
echo "Auftrag wird ausgefuehrt!<br>";
|
||||
// echo "Kontrolle auf Doppelbelegungen! ... ";
|
||||
|
||||
/* // checken auf Ort
|
||||
$date[mday]=$_POST['tag']; $date[mon]=$_POST['monat']; $date[year]=$_POST['jahr'];
|
||||
$datum=$tag.".".$monat.".".$jahr;
|
||||
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
|
||||
{
|
||||
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
|
||||
$date=getdate($time+(604800*$_POST['rythmus']));
|
||||
$datum=$date[year]."-".$date[mon]."-".$date[mday];
|
||||
}
|
||||
|
||||
$sql_query="SELECT stundenplandev_id FROM tbl_stundenplandev WHERE datum='$datum' AND stunde='$std' AND ort_kurzbz='".$_POST['ortid']."'";
|
||||
if ($_POST['unr']=='')
|
||||
$sql_query.=" AND unr IS NOT NULL";
|
||||
else
|
||||
$sql_query.=" AND unr!=".$_POST['unr'];
|
||||
echo $sql_query;
|
||||
$result=$db->db_query($sql_query);
|
||||
if($result && ($db->db_num_rows($result)>0))
|
||||
{
|
||||
echo "error!<br>Doppelbelegung gefunden auf Ort=".$_POST['ortid']." Datum=$datum Stunde=$stunde!<br>";
|
||||
$error=true;
|
||||
}
|
||||
}
|
||||
|
||||
// checken auf Lektor im Stundenplan
|
||||
$date[mday]=$_POST['tag']; $date[mon]=$_POST['monat']; $date[year]=$_POST['jahr'];
|
||||
$datum=$tag.".".$monat.".".$jahr;
|
||||
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
|
||||
{
|
||||
$std=$stunde+($i % $stdblock);
|
||||
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
|
||||
{
|
||||
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
|
||||
$date=getdate($time+(604800*$_POST['rythmus']));
|
||||
$datum=$date[year]."-".$date[mon]."-".$date[mday];
|
||||
}
|
||||
$sql_query="SELECT stundenplandev_id FROM tbl_stundenplandev WHERE datum='$datum' AND stunde='$std' AND uid='".$_POST['$lektorid']."'";
|
||||
$result=$db->db_query($sql_query);
|
||||
if($result && ($db->db_num_rows($result)>0))
|
||||
{
|
||||
echo "error!<br>Doppelbelegung gefunden auf Lektor=".$_POST['$lektorid']." Datum=$datum Stunde=$stunde!<br>";
|
||||
$error=true;
|
||||
}
|
||||
}
|
||||
|
||||
// checken auf Verband
|
||||
$date[mday]=$_POST['tag']; $date[mon]=$_POST['monat']; $date[year]=$_POST['jahr'];
|
||||
$datum=$tag.".".$monat.".".$jahr;
|
||||
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
|
||||
{
|
||||
$std=$stunde+($i % $stdblock);
|
||||
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
|
||||
{
|
||||
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
|
||||
$date=getdate($time+(604800*$_POST['rythmus']));
|
||||
$datum=$date[year]."-".$date[mon]."-".$date[mday];
|
||||
}
|
||||
$sql_query="SELECT semester, verband, gruppe, tbl_stundenplandev.studiengang_kz,tbl_studiengang.kurzbz FROM tbl_stundenplandev JOIN tbl_studiengang using(studiengang_kz) WHERE datum='$datum' AND stunde='$std' AND studiengang_kz='".$_POST['stgid']."' AND semester='$semester' AND (verband='".$_POST['verband']."' OR verband=NULL) AND (gruppe='".$_POST['gruppe']."' OR gruppe=NULL)";
|
||||
$result=$db->db_query($sql_query);
|
||||
if($result && ($db->db_num_rows($result)>0))
|
||||
{
|
||||
$row=$db->db_fetch_object($result,0);
|
||||
echo "error!<br>Doppelbelegung gefunden auf Datum=$datum - Stunde=$stunde - Studiengang=$row->kurzbz - Semester=$row->semester Verband=$row->verband Gruppe=$row->gruppe!<br>";
|
||||
$error=true;
|
||||
}
|
||||
}
|
||||
*/
|
||||
//Einfuegen in die Datenbank
|
||||
if (!$error)
|
||||
{
|
||||
echo "OK!<br><br>";
|
||||
$date['mday']=$_POST['tag']; $date['mon']=$_POST['monat']; $date['year']=$_POST['jahr'];
|
||||
$datum=$jahr."-".$monat."-".$tag;
|
||||
for ($i=0; ($i<$stdblock)&&!$error; $i++)
|
||||
{
|
||||
$std=$stdbegin+($i % $stdblock);
|
||||
if ( ($std==$stdbegin) && (($i>0)||($stdblock==0)) )
|
||||
$std=$stunde+($i % $stdblock);
|
||||
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
|
||||
{
|
||||
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
|
||||
$date=getdate($time+(604800*$_POST['rythmus']));
|
||||
$datum=$date[year]."-".$date[mon]."-".$date[mday];
|
||||
}
|
||||
$sql_query="INSERT INTO campus.tbl_reservierung(ort_kurzbz,studiengang_kz,uid,stunde,datum,titel,beschreibung,semester,verband,gruppe,gruppe_kurzbz,insertamum,insertvon) ".
|
||||
"VALUES (
|
||||
'".$_POST['ortid']."',
|
||||
'".$_POST['stgid']."',
|
||||
'".$_POST['lektorid']."',
|
||||
$std,
|
||||
'$datum',
|
||||
'".$_POST['titel']."',
|
||||
'".$_POST['beschreibung']."',
|
||||
".$_POST['semester'].",
|
||||
".$_POST['verband'].",
|
||||
".$_POST['gruppe']."," ;
|
||||
if ($_POST['gruppe_kurzbz']=='')
|
||||
$sql_query.= 'NULL,';
|
||||
else
|
||||
$sql_query.= "'".$_POST['gruppe_kurzbz']."',";
|
||||
|
||||
$sql_query.= 'now(),'.
|
||||
"'".$uid."')";
|
||||
//echo $sql_query;
|
||||
|
||||
$sql_query="SELECT stundenplandev_id FROM tbl_stundenplandev WHERE datum='$datum' AND stunde='$std' AND ort_kurzbz='".$_POST['ortid']."'";
|
||||
if ($_POST['unr']=='')
|
||||
$sql_query.=" AND unr IS NOT NULL";
|
||||
else
|
||||
$sql_query.=" AND unr!=".$_POST['unr'];
|
||||
echo $sql_query;
|
||||
$result=$db->db_query($sql_query);
|
||||
if(!$result)
|
||||
if($result && ($db->db_num_rows($result)>0))
|
||||
{
|
||||
echo $db->db_last_error()."<br>";
|
||||
echo "error!<br>Doppelbelegung gefunden auf Ort=".$_POST['ortid']." Datum=$datum Stunde=$stunde!<br>";
|
||||
$error=true;
|
||||
}
|
||||
else
|
||||
echo "<strong>Ort:</strong> ".$_POST['ortid']." - <strong>Studiengang_Kz:</strong> ".$_POST['stgid']." - <strong>Semester:</strong> ".$_POST['semester']." - <strong>Verband:</strong> ".$_POST['verband']." - <strong>Gruppe:</strong> ".$_POST['gruppe']." - <strong>Spezialgruppe:</strong> ".$_POST['gruppe_kurzbz']." - <strong>Lektor:</strong> ".$_POST['lektorid']." - <strong>Titel:</strong> ".$_POST['titel']." - <strong>Beschreibung:</strong> ".$_POST['beschreibung']." - <strong>Datum:</strong> $datum - <strong>Stunde:</strong> $std -- <strong>Eingefügt!</strong><br>";
|
||||
|
||||
}
|
||||
|
||||
// checken auf Lektor im Stundenplan
|
||||
$date[mday]=$_POST['tag']; $date[mon]=$_POST['monat']; $date[year]=$_POST['jahr'];
|
||||
$datum=$tag.".".$monat.".".$jahr;
|
||||
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
|
||||
{
|
||||
$std=$stunde+($i % $stdblock);
|
||||
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
|
||||
{
|
||||
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
|
||||
$date=getdate($time+(604800*$_POST['rythmus']));
|
||||
$datum=$date[year]."-".$date[mon]."-".$date[mday];
|
||||
}
|
||||
$sql_query="SELECT stundenplandev_id FROM tbl_stundenplandev WHERE datum='$datum' AND stunde='$std' AND uid='".$_POST['$lektorid']."'";
|
||||
$result=$db->db_query($sql_query);
|
||||
if($result && ($db->db_num_rows($result)>0))
|
||||
{
|
||||
echo "error!<br>Doppelbelegung gefunden auf Lektor=".$_POST['$lektorid']." Datum=$datum Stunde=$stunde!<br>";
|
||||
$error=true;
|
||||
}
|
||||
}
|
||||
|
||||
// checken auf Verband
|
||||
$date[mday]=$_POST['tag']; $date[mon]=$_POST['monat']; $date[year]=$_POST['jahr'];
|
||||
$datum=$tag.".".$monat.".".$jahr;
|
||||
for ($i=0; ($i<$stdsemester)&&!$error; $i++)
|
||||
{
|
||||
$std=$stunde+($i % $stdblock);
|
||||
if ( ($std==$stunde) && (($i>0)||($stdblock==1)) )
|
||||
{
|
||||
$time=mktime(0, 0, 0, $date[mon], $date[mday], $date[year]);
|
||||
$date=getdate($time+(604800*$_POST['rythmus']));
|
||||
$datum=$date[year]."-".$date[mon]."-".$date[mday];
|
||||
}
|
||||
$sql_query="SELECT semester, verband, gruppe, tbl_stundenplandev.studiengang_kz,tbl_studiengang.kurzbz FROM tbl_stundenplandev JOIN tbl_studiengang using(studiengang_kz) WHERE datum='$datum' AND stunde='$std' AND studiengang_kz='".$_POST['stgid']."' AND semester='$semester' AND (verband='".$_POST['verband']."' OR verband=NULL) AND (gruppe='".$_POST['gruppe']."' OR gruppe=NULL)";
|
||||
$result=$db->db_query($sql_query);
|
||||
if($result && ($db->db_num_rows($result)>0))
|
||||
{
|
||||
$row=$db->db_fetch_object($result,0);
|
||||
echo "error!<br>Doppelbelegung gefunden auf Datum=$datum - Stunde=$stunde - Studiengang=$row->kurzbz - Semester=$row->semester Verband=$row->verband Gruppe=$row->gruppe!<br>";
|
||||
$error=true;
|
||||
}
|
||||
}
|
||||
*/
|
||||
//Einfuegen in die Datenbank
|
||||
if (!$error)
|
||||
echo "<br><font style='color:green'><strong>Einfügen erfolgreich abgeschlossen!</strong></font><br>";
|
||||
else
|
||||
echo "<br><font style='color:red'><strong>Es ist ein Fehler aufgetreten!</strong></font><br>";
|
||||
{
|
||||
echo "OK!<br><br>";
|
||||
$insert_datum=$datum_obj->formatDatum($datum,'Y-m-d');
|
||||
for ($i=0; ($i<$stdblock)&&!$error; $i++)
|
||||
{
|
||||
$std=$stdbegin+($i % $stdblock);
|
||||
$sql_query="INSERT INTO campus.tbl_reservierung(ort_kurzbz,studiengang_kz,uid,stunde,datum,titel,beschreibung,semester,verband,gruppe,gruppe_kurzbz,insertamum,insertvon) ".
|
||||
"VALUES (
|
||||
'".$_POST['ortid']."',
|
||||
'".$_POST['stgid']."',
|
||||
'".$_POST['lektorid']."',
|
||||
$std,
|
||||
'$insert_datum',
|
||||
'".$_POST['titel']."',
|
||||
'".$_POST['beschreibung']."',
|
||||
".$_POST['semester'].",
|
||||
".$_POST['verband'].",
|
||||
".$_POST['gruppe']."," ;
|
||||
if ($_POST['gruppe_kurzbz']=='')
|
||||
$sql_query.= 'NULL,';
|
||||
else
|
||||
$sql_query.= "'".$_POST['gruppe_kurzbz']."',";
|
||||
|
||||
$sql_query.= 'now(),'.
|
||||
"'".$uid."')";
|
||||
//echo $sql_query;
|
||||
$result=$db->db_query($sql_query);
|
||||
if(!$result)
|
||||
{
|
||||
echo $db->db_last_error()."<br>";
|
||||
$error=true;
|
||||
}
|
||||
else
|
||||
echo "<div style='font-size:small;'><strong>Ort:</strong> ".$_POST['ortid']." - <strong>Studiengang_Kz:</strong> ".$_POST['stgid']." - <strong>Semester:</strong> ".$_POST['semester']." - <strong>Verband:</strong> ".$_POST['verband']." - <strong>Gruppe:</strong> ".$_POST['gruppe']." - <strong>Spezialgruppe:</strong> ".$_POST['gruppe_kurzbz']." - <strong>Lektor:</strong> ".$_POST['lektorid']." - <strong>Titel:</strong> ".$_POST['titel']." - <strong>Beschreibung:</strong> ".$_POST['beschreibung']." - <strong>Datum:</strong> $datum - <strong>Stunde:</strong> $std -- <strong>Eingefügt!</strong></div>";
|
||||
|
||||
}
|
||||
if (!$error)
|
||||
echo "<br><font style='color:green'><strong>Einfügen erfolgreich abgeschlossen!</strong></font><br>";
|
||||
else
|
||||
echo "<br><font style='color:red'><strong>Es ist ein Fehler aufgetreten!</strong></font><br>";
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
echo "<div style='color:red;'><strong>Für diese Aktion haben Sie nicht die nötigen Rechte</strong></div>";
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
<body style="background-color:#eeeeee; margin:0; padding:0;">
|
||||
|
||||
<div class="logo">
|
||||
<table>
|
||||
<table class="logo">
|
||||
<tr>
|
||||
<?php
|
||||
function checkpermission($permissions)
|
||||
@@ -100,7 +100,7 @@ foreach($menu AS $m)
|
||||
if($firstcat=='' && isset($m['link']) && $m['target']=='nav')
|
||||
$firstcat=$m['link'];
|
||||
if (isset($m['link']))
|
||||
echo '<a href="'.$m['link'].'" ';
|
||||
echo '<a class="toplink" href="'.$m['link'].'" ';
|
||||
if (isset($m['target']))
|
||||
echo 'target="'.$m['target'].'" ';
|
||||
if (isset($m['link']))
|
||||
|
||||