Beispiel #1
0
echo _t('Member');
?>
</th>
				<th><?php 
echo _t('Not Member');
?>
</th>
			</tr>
		</thead>
		<!-- // Table heading END -->
	
		<!-- Table body -->
		<tbody>
			<?php 
$roleACL = new ACL(_h((int) $this->role[0]['userID']));
$role = $roleACL->getAllRoles('full');
foreach ($role as $k => $v) {
    echo '<tr><td>' . _h($v['Name']) . '</td>';
    echo "<td class=\"center\"><input type=\"radio\" name=\"role_" . _h($v['ID']) . "\" id=\"role_" . _h($v['ID']) . "_1\" value=\"1\"";
    if ($roleACL->userHasRole(_h($v['ID']))) {
        echo " checked=\"checked\"";
    }
    echo " /></td>";
    echo "<td class=\"center\"><input type=\"radio\" name=\"role_" . _h($v['ID']) . "\" id=\"role_" . _h($v['ID']) . "_0\" value=\"0\"";
    if (!$roleACL->userHasRole(_h($v['ID']))) {
        echo " checked=\"checked\"";
    }
    echo " /></td></tr>";
}
?>
		</tbody>
Beispiel #2
0
			<th class="text-center"><?php 
echo _t('Name');
?>
</th>
			<th class="text-center"><?php 
echo _t('Action');
?>
</th>
		</tr>
	</thead>
	<!-- // Table heading END -->
	
	<!-- Table body -->
	<tbody>
	<?php 
$listRoles = $roles->getAllRoles('full');
if ($listRoles != '') {
    foreach ($listRoles as $k => $v) {
        echo '<tr class="gradeX">' . "\n";
        echo '<td>' . _h($v['ID']) . '</td>' . "\n";
        echo '<td>' . _h($v['Name']) . '</td>' . "\n";
        echo '<td class="text-center"><a href="' . BASE_URL . 'role/view/?roleID=' . _h($v['ID']) . '">' . _t('Edit') . '</a></td>';
        echo '</tr>';
    }
}
/*if (count($listRoles) < 1) {
		_e( "No roles yet.<br />" );
		}*/
?>
		
	</tbody>