Revision e41d7a1c
Added by Sjon Hortensius about 10 years ago
usr/local/www/interfaces_groups.php | ||
---|---|---|
95 | 95 |
</tr> |
96 | 96 |
</thead> |
97 | 97 |
<tbody> |
98 |
|
|
99 |
<?php |
|
100 |
if (count($a_ifgroups)) { |
|
101 |
$i = 0; |
|
102 |
foreach ($a_ifgroups as $ifgroupentry) { |
|
103 |
?> |
|
98 |
<?php foreach ($a_ifgroups as $i => $ifgroupentry): ?> |
|
104 | 99 |
<tr> |
105 | 100 |
<td> |
106 | 101 |
<?=htmlspecialchars($ifgroupentry['ifname']); ?> |
... | ... | |
116 | 111 |
unset($iflist); |
117 | 112 |
$memberses = implode(", ", $memberses_arr); |
118 | 113 |
echo $memberses; |
119 |
if(count($members_arr) < 10) { |
|
120 |
echo ''; |
|
121 |
} else { |
|
122 |
echo '...'; |
|
114 |
if(count($members_arr) >= 10) { |
|
115 |
echo '…'; |
|
123 | 116 |
} |
124 | 117 |
?> |
125 | 118 |
</td> |
... | ... | |
127 | 120 |
<?=htmlspecialchars($ifgroupentry['descr']);?> |
128 | 121 |
</td> |
129 | 122 |
<td> |
130 |
<a class="btn btn-default btn-sm" role="button" href="interfaces_groups_edit.php?id=<?=$i; ?>"><?=gettext('Edit'); ?></a> |
|
131 |
<a class="btn btn-danger btn-sm" role="button" href="interfaces_groups.php?act=del&id=<?=$i; ?>"><?=gettext("Delete"); ?></a> |
|
123 |
<a class="btn btn-default btn-sm" role="button" href="interfaces_groups_edit.php?id=<?=$i; ?>"> |
|
124 |
<?=gettext('Edit'); ?> |
|
125 |
</a> |
|
126 |
<a class="btn btn-danger btn-sm" role="button" href="interfaces_groups.php?act=del&id=<?=$i; ?>"> |
|
127 |
<?=gettext("Delete"); ?> |
|
128 |
</a> |
|
132 | 129 |
</td> |
133 | 130 |
</tr> |
134 |
<?php |
|
135 |
$i++; |
|
136 |
}; |
|
137 |
} |
|
138 |
?> |
|
131 |
<?php endforeach; ?> |
|
139 | 132 |
</tbody> |
140 | 133 |
</table> |
141 |
<a class="btn btn-success btn-sm" href="interfaces_groups_edit.php" role="button"><?=gettext("Add Group");?></a> |
|
134 |
|
|
135 |
<nav class="action-buttons"> |
|
136 |
<a class="btn btn-success btn-sm" href="interfaces_groups_edit.php" role="button"> |
|
137 |
<?=gettext("Add Group");?> |
|
138 |
</a> |
|
139 |
</nav> |
|
142 | 140 |
</div> |
143 | 141 |
|
144 | 142 |
<?php |
Also available in: Unified diff
cleanup interfaces_groups.php