예제 #1
0
						<th class="text-center"><?php 
echo _t('Name');
?>
</th>
						<th class="text-center"><?php 
echo _t('Edit');
?>
</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="' . get_base_url() . 'role/' . _h($v['ID']) . '/" title="View Role" class="btn btn-default"><i class="fa fa-edit"></i></a></td>';
        echo '</tr>';
    }
}
/*if (count($listRoles) < 1) {
		_e( "No roles yet.<br />" );
		}*/
?>
					
				</tbody>
예제 #2
0
echo _t('Member');
?>
</th>
							<th><?php 
echo _t('Not Member');
?>
</th>
						</tr>
					</thead>
					<!-- // Table heading END -->
				
					<!-- Table body -->
					<tbody>
						<?php 
$roleACL = new \app\src\ACL(_h((int) $nae[0]['personID']));
$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>