Location: PHPKode > projects > ERPSOD > erpsod/role_list.php
<?PHP
include_once("config.php");
// Are you authorised?
$ok=role_check('Admin');
if (!$ok){
	$fout = 'No Access for chosen option';
	header("Location: login.php?error=$fout"); 
}
?>
<HTML>
<HEAD>
<link rel="stylesheet" type="text/css" href="<?PHP echo $style ?>">
<script language="JavaScript1.2" src="js/coolmenus4.js">
</script>
</HEAD>
<body bgcolor="#ffffff">
<script language="JavaScript1.2" src="js/erpsod.js">
</script><br><br>
<center>
<h3>Roles</h3>
<FORM ACTION="role_edit.php?form=role_list" METHOD="POST">
<table border=1 cellpadding=0 cellspacing=0 bgcolor="AQUA"><tr><td>
<table border=0 cellpadding=10 cellspacing=0>
<tr>
<td valign="top">
<?PHP echo html_drop_down (10,"rolelist","erprole","roleid","rolename","roleid"); ?>
</td>
<td valign="bottom">
<INPUT TYPE="SUBMIT" NAME="command" VALUE="Edit" style="width: 80px;"><br>
<?php if (role_check("Updater")) { ?>
	<INPUT TYPE="SUBMIT" NAME="command" VALUE="New" style="width: 80px;"><br>
	<INPUT TYPE="SUBMIT" NAME="command" VALUE="Delete" style="width: 80px;" ONCLICK="return confirm('Delete selected option?')"><br>
<?PHP } ?>
</td>
</tr>
</table>
</td></tr></table>
</center>
</FORM>
</BODY>
<?php
include_once("footer.php");
?>
</HTML>
Return current item: ERPSOD