Example #1
0
				<th><?php 
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>";
}
?>
Example #2
0
 *  
 * PHP 5
 *
 * tinyPHP(tm) : Simple & Lightweight MVC Framework (http://tinyphp.us/)
 * Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/)
 * @link http://tinyphp.us/ tinyPHP(tm) Project
 * @since tinyPHP(tm) v 1.0.0
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
use tinyPHP\Classes\Libraries\ACL;
$roles = new ACL();
?>

<h1><?php 
echo _t('Roles');
?>
</h1>

<!-- Table -->
<table class="table table-striped table-bordered table-condensed table-white">

	<!-- Table heading -->
	<thead>
		<tr>
			<th class="text-center"><?php 
echo _t('ID');
Example #3
0
 *  
 * PHP 5
 *
 * tinyPHP(tm) : Simple & Lightweight MVC Framework (http://tinyphp.us/)
 * Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/)
 * @link http://tinyphp.us/ tinyPHP(tm) Project
 * @since tinyPHP(tm) v 1.0.0
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
use tinyPHP\Classes\Libraries\ACL;
$eRole = new ACL();
?>

<h1><?php 
echo _t('Role: Edit');
?>
</h1>

<form class="form-horizontal margin-none" action="<?php 
echo BASE_URL;
?>
role/runRole/" id="validateSubmitForm" method="post" autocomplete="off">
	<label><?php 
echo _t('Role Name');
?>
</label><input type="text" name="roleName" value="<?php 
Example #4
0
 *  
 * PHP 5
 *
 * tinyPHP(tm) : Simple & Lightweight MVC Framework (http://tinyphp.us/)
 * Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/)
 * @link http://tinyphp.us/ tinyPHP(tm) Project
 * @since tinyPHP(tm) v 1.0.0
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
use tinyPHP\Classes\Libraries\ACL;
$ePerm = new ACL();
?>

<h1><?php 
echo _t('Permission: Edit');
?>
</h1>

<form class="form-horizontal margin-none" action="<?php 
echo BASE_URL;
?>
permission/editSaveDeletePerm/" id="validateSubmitForm" method="post" autocomplete="off">
	<label><?php 
echo _t('Name');
?>
</label><input type="text" name="permName" value="<?php 
Example #5
0
 *  
 * PHP 5
 *
 * tinyPHP(tm) : Simple & Lightweight MVC Framework (http://tinyphp.us/)
 * Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/)
 * @link http://tinyphp.us/ tinyPHP(tm) Project
 * @since tinyPHP(tm) v 1.0.0
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
use tinyPHP\Classes\Libraries\ACL;
$perms = new ACL();
?>

<h1><?php 
echo _t('Permissions');
?>
</h1>

<!-- Table -->
<table class="table table-striped table-bordered table-condensed table-white">

    <!-- Table heading -->
    <thead>
        <tr>
            <th class="text-center"><?php 
echo _t('ID');