Location: PHPKode > projects > Volunteer Management OpenSource Software > vmoss_alpha02/mod/vm/templates/admin/acl.tpl
<h3>Access Control</h3><br />

	<center>
		<b>Please select a volunteer whose permissions to modify:</b>
		<br />
		<br />

		<form style="padding: 20px; border: 1px solid #CCC; background-color: #F0F0F0;" action="?mod=vm&amp;act=adm_default&amp;vm_action=display_acl_modify_user" method="post">
			<select name="vol_id">
				{foreach $vols as $id => $name}
					<option value="{$id}">{$name}</option>
				{/foreach}
			</select>
			<br />
			<br />
			<input type="submit" value="Continue" />
		</form>

		<br />
		<i>OR</i>
		<br />
		<br />
	</center>

	<center>
		<b>Please select a situation in order to modify which roles have access to it:</b>
	</center>
<br /><br />
<form style="padding: 20px; border: 1px solid #CCC; background-color: #F0F0F0;" action="?mod=vm&amp;act=adm_default&amp;vm_action=display_acl_modify" method="post">
	<table style="border: 0" align="center">
		{foreach $requests as $desc => $info}
			{php}
				$matches = array();
				preg_match("/\s*(\w+)(.*)/", $info['partial_desc'], $matches);
			{/php}
			<tr style="border: 0; height: 30px; border-bottom: 1px solid #CCC;" onMouseOver="this.style.backgroundColor='#FFA';" onMouseOut="this.style.backgroundColor='#F0F0F0';">
				<td style="border: 0"><input type="radio" name="request" value="{$info.act}&{$info.vm_action}" /></td>
				<td style="border: 0">
					<b style="color: #0">{$info.display_action}</b>
				</td>
				<td style="border: 0">
					{if strcasecmp($matches[1], 'volunteer') == 0}
						<b style="color: #090;">
					{else if strcasecmp($matches[1], 'project') == 0}
						<b style="color: #900;">
					{else if strcasecmp($matches[1], 'admin') == 0}
						<b style="color: #990;">
					{else}
						<b style="color: #00C;">
					{/if}
					{$matches.1}</b>
				</td>
				<td style="border: 0">
					<b style="color: #0">{$matches.2}</b>
				</td>
			</tr>
		{/foreach}
	</table>
	<br /><br />
	<center>
		<input type="submit" value="Continue" />
	</center>
</form>
Return current item: Volunteer Management OpenSource Software