Files

34 lines
923 B
PHP

<?php
if ( $_SESSION['IsAdmin'] )
{
$sql = "SELECT * FROM Portale WHERE Aktiv = '1' ORDER BY Portal ASC;";
$result = $db->query($sql);
$anz = $result->num_rows;
?>
<table>
<colgroup>
<col width="55px" />
<col width="705px" />
</colgroup>
<tr height="30">
<th style="text-align:right;padding-right:10px;"><?php echo $anz; ?></th>
<th style="text-align:left;">Portal</th>
</tr>
<?php
while ( $nt = $result->fetch_assoc() )
{
?>
<tr><form name="Edit<?php echo $nt['ID']; ?>" action="index.php?<?php echo $_SERVER['QUERY_STRING']; ?>" method="post">
<input type="hidden" name="ID" value="<?php echo $nt['ID']; ?>" />
<input type="hidden" name="action" value="Bearbeiten" />
<td>&nbsp;</td>
<td><a href="#" onclick="document.Edit<?php echo $nt['ID']; ?>.submit();"><?php echo $nt['Portal']; ?></a></td>
</form></tr>
</form>
<?php
}
?>
</table>
<?php
}
?>