本文整理汇总了PHP中Sections::parse_section_permissions方法的典型用法代码示例。如果您正苦于以下问题:PHP Sections::parse_section_permissions方法的具体用法?PHP Sections::parse_section_permissions怎么用?PHP Sections::parse_section_permissions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sections
的用法示例。
在下文中一共展示了Sections::parse_section_permissions方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
} else {
print _('Manage permissions for subnet');
?>
<?php
print $Subnets->transform_to_dotted($subnet->subnet) . "/" . $subnet->mask . " ({$subnet->description})";
}
?>
<hr>
<form id="editSubnetPermissions">
<table class="editSubnetPermissions table table-noborder table-condensed">
<?php
# parse permissions
if (strlen($subnet->permissions) > 1) {
$permissons = $Sections->parse_section_permissions($subnet->permissions);
} else {
$permissons = "";
}
# print each group
if ($groups) {
foreach ($groups as $g) {
//cast
$g = (array) $g;
print "<tr>";
print "\t<td>{$g['g_name']}</td>";
print "\t<td>";
print "<span class='checkbox inline noborder'>";
print "\t<input type='radio' name='group{$g['g_id']}' value='0' checked> na";
if (@$permissons[$g['g_id']] == 1) {
print " <input type='radio' name='group{$g['g_id']}' value='1' checked> ro";
示例2: _
</select>
<span class="info2"><?php
print _('How to order display of subnets');
?>
</span>
</td>
</tr>
<tr>
<td colspan="3">
<hr>
</td>
</tr>
<!-- permissions -->
<?php
$permissions = strlen(@$section['permissions']) > 1 ? $Sections->parse_section_permissions($section['permissions']) : "";
# print for each group
$m = 0;
if ($groups) {
foreach ($groups as $g) {
//cast
$g = (array) $g;
# structure
print "<tr>";
# title
if ($m == 0) {
print "<td>" . _('Permissions') . "</td>";
} else {
print "<td></td>";
}
# name