mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 18:02:18 +00:00
Testtool Erweiterung
This commit is contained in:
+36
-31
@@ -20,14 +20,14 @@
|
||||
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
|
||||
*/
|
||||
|
||||
require_once('../config.inc.php');
|
||||
require_once('../config.inc.php');
|
||||
|
||||
session_start();
|
||||
session_start();
|
||||
|
||||
//Connection Herstellen
|
||||
if(!$db_conn = pg_pconnect(CONN_STRING))
|
||||
die('Fehler beim oeffnen der Datenbankverbindung');
|
||||
?>
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
@@ -36,39 +36,44 @@ if(!$db_conn = pg_pconnect(CONN_STRING))
|
||||
<link href="../../skin/cis.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php
|
||||
if (isset($_SESSION['prestudent_id']))
|
||||
{
|
||||
<body>
|
||||
<?php
|
||||
if (isset($_SESSION['pruefling_id']))
|
||||
{
|
||||
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-right-width:1px;border-right-color:#BCBCBC;">';
|
||||
echo '<tr><td nowrap><img src="../../skin/images/menu_item.gif" width="7" height="9"> Gebiet</td></tr>';
|
||||
echo '<tr><td nowrap>
|
||||
<a class="MenuItem" href="index.html" target="_top">
|
||||
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Home
|
||||
</a>
|
||||
</td></tr>';
|
||||
echo '<tr><td nowrap><img src="../../skin/images/menu_item.gif" width="7" height="9"> Gebiet</td></tr>';
|
||||
echo '<tr><td nowrap>';
|
||||
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0" id="MeineCIS" style="display: visible;">';
|
||||
|
||||
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0" id="Gebiet" style="display: visible;">';
|
||||
|
||||
$qry = 'SELECT * FROM testtool.vw_ablauf WHERE studiengang_kz='.$_SESSION['studiengang_kz'].' ORDER BY reihung';
|
||||
//echo $qry;
|
||||
if($result = pg_query($db_conn, $qry))
|
||||
//echo $qry;
|
||||
if($result = pg_query($db_conn, $qry))
|
||||
while($row = pg_fetch_object($result))
|
||||
echo '<tr>
|
||||
echo '<tr>
|
||||
<td width="10" nowrap> </td>
|
||||
<td nowrap>
|
||||
<a class="Item" href="profile/index.php" target="content"><img src="../../skin/images/menu_item.gif" width="7" height="9"> '.$row->gebiet_bez.'</a>
|
||||
</td>
|
||||
</tr>';
|
||||
echo '</table>';
|
||||
echo '</td></tr></table>';
|
||||
}
|
||||
else
|
||||
{
|
||||
<td nowrap>
|
||||
<a class="Item" href="frage.php?gebiet_id='.$row->gebiet_id.'" target="content"><img src="../../skin/images/menu_item.gif" width="7" height="9"> '.$row->gebiet_bez.'</a>
|
||||
</td>
|
||||
</tr>';
|
||||
echo '</table>';
|
||||
echo '</td></tr></table>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-right-width:1px;border-right-color:#BCBCBC;">';
|
||||
echo '<tr><td nowrap>
|
||||
<a class="HyperItem" href="../index.html" target="_top">
|
||||
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Login
|
||||
</a>
|
||||
</td></tr>';
|
||||
echo '</table>';
|
||||
echo '</td></tr></table>';
|
||||
}
|
||||
echo '<tr><td nowrap>
|
||||
<a class="HyperItem" href="index.html" target="_top">
|
||||
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Login
|
||||
</a>
|
||||
</td></tr>';
|
||||
echo '</table>';
|
||||
echo '</td></tr></table>';
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user