Location: PHPKode > projects > PHP Authentication using Uma > uma/admin/addservice.html.php
<table border="0" width=50%" cellspacing="0" cellpadding="4" class="bodytext1">
<tr><td colspan="3" class="header1" align="center"><b>Services</b></td></tr>
<?php
$color = TRUE;
for ($i = 0, $j = count($services); $i < $j; $i++) {
?>
<tr<?php if ($color) echo " bgcolor=\"#cccccc\""; ?>><td><a href="<?= $_SERVER['PHP_SELF'] ?>?op=editservice&id=<?= $services[$i]->get('id') ?>"><?= $services[$i]->get('name') ?></a>&nbsp;(<?= $services[$i]->get('id') ?>)</td>
<td><a href="<?= $_SERVER['PHP_SELF'] ?>?op=deleteservice&id=<?= $services[$i]->get('id') ?>">Delete</a></td>
<td><a href="<?= $_SERVER['PHP_SELF'] ?>?op=editservice&id=<?= $services[$i]->get('id') ?>">Edit</a></td></tr>
<?php
if (!$color) {
	$color = TRUE;
} else {
	$color = FALSE;
}
}
?>
</table>
<form action="<?= $_SERVER['PHP_SELF'] ?>" method="post">
<input type="hidden" name="op" value="commitservice">
<table border="0" cellpadding="5" cellspacing="0" width="50%">
        <tr><td>&nbsp;</td></tr>
	<tr><td><b>Add Service</b></td></tr>
</table>
<table border="0" cellpadding="3" cellspacing="0" width="50%">
        <tr><td>Name:&nbsp;</td><td><input type="text" name="sname"></td></tr>
        <tr><td valign="top">Description:&nbsp;</td><td><textarea name="sdesc" cols="20" rows="5"></textarea></td></tr>
        <tr><td colspan="2" align="right"><input type="submit" value="Add Service"></td></tr>
</table>
</form>
Return current item: PHP Authentication using Uma