Testtool Erweiterung

This commit is contained in:
Andreas Österreicher
2007-04-04 15:35:09 +00:00
parent 30b23bc6ac
commit dfa4e83e68
7 changed files with 965 additions and 83 deletions
+36 -31
View File
@@ -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">&nbsp;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">&nbsp;Home
</a>
</td></tr>';
echo '<tr><td nowrap><img src="../../skin/images/menu_item.gif" width="7" height="9">&nbsp;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>&nbsp;</td>
<td nowrap>
<a class="Item" href="profile/index.php" target="content"><img src="../../skin/images/menu_item.gif" width="7" height="9">&nbsp;'.$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">&nbsp;'.$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">&nbsp;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">&nbsp;Login
</a>
</td></tr>';
echo '</table>';
echo '</td></tr></table>';
}
?>
</body>
</html>
</html>