Ejemplo n.º 1
0
            </td>
						<td>
							<?php ure_toolbar($ure_currentRole, $ure_object, $roleDeleteHTML, $capabilityRemoveHTML);?>
						</td>
          </tr>
       </table>
<?php 
	$quant = count( $ure_fullCapabilities ) - count( ure_getBuiltInWPCaps() );
	if ($quant>0) {
		echo '<hr />';
		_e('Custom capabilities:', 'ure'); 
?>
        <table class="form-table" style="clear:none;" cellpadding="0" cellspacing="0">
          <tr>
            <td style="vertical-align:top;">
								<?php ure_show_capabilities( false, true );	?>
            </td>
						<td></td>
          </tr>
      </table>
<?php
	}  // if ($quant>0)
?>

  <input type="hidden" name="object" value="role" />
<?php
  ure_displayBoxEnd();
?>  
<div style="clear: left; float: left; width: 800px;">
</div>    
		</div>
Ejemplo n.º 2
0
      </td>
    </tr>
  </table>
<?php 
$quant = count($ure_fullCapabilities) - count(ure_getBuiltInWPCaps());
if ($quant > 0) {
    ?>
	<span style="font-weight: bold;"><?php 
    _e('Custom capabilities:', 'ure');
    ?>
</span> 
  <table class="form-table" style="clear:none;" cellpadding="0" cellspacing="0">
    <tr>
      <td style="vertical-align:top;">
				<?php 
    ure_show_capabilities(false, false);
    ?>
      </td>
    </tr>
  </table>	
		</td>
	</tr>
	<tr>
		<td colspan="2" style="border-top: 1px solid #ccc;">
<?php 
}
// if ($quant>0)
?>
  <input type="hidden" name="object" value="user" />
  <input type="hidden" name="user_id" value="<?php 
echo $ure_userToEdit->ID;