"Fossies" - the Fresh Open Source Software Archive

Member "openmailadmin-1.0.1/templates/shadow/folders/acl_matrix.tpl" (20 Nov 2005, 975 Bytes) of package /linux/privat/old/openmailadmin-1.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <table class="acl_matrix">
    2 <tr>
    3 	<th><?= txt('6') ?></th>
    4 	<th><?= implode('</th><th>', $rights) ?></th>
    5 </tr>
    6 <?php foreach($ACL as $ACL_user => $ACL_given) { ?>
    7 <tr>
    8 	<td><?= $ACL_user ?></td>
    9 	<?php foreach($rights as $key=>$right) { ?>
   10 		<td>
   11 		<?php if(stristr($ACL_given, $right)) { ?>
   12 			<img border="0" src="<?= $cfg['images_dir'] ?>/acl/yes.png" alt="yes" />
   13 		<?php } else { ?>
   14 			<img border="0" src="<?= $cfg['images_dir'] ?>/acl/not.png" alt="no" />
   15 		<?php } ?>
   16 		</td>
   17 	<?php } ?>
   18 </tr>
   19 <?php } ?>
   20 <?php if($editable) { ?>
   21 <tr>
   22 	<td rowspan="2">
   23 		<?= $input->_generate('text', 'moduser', null, array('class' => 'textwhite', 'style' => 'width: 120px', 'maxlength' => '64')) ?>
   24 	</td>
   25 	<?php foreach($rights as $key=>$right) { ?>
   26 		<td><?= $input->checkbox('modacl[]', $right) ?></td>
   27 	<?php } ?>
   28 </tr>
   29 <tr>
   30 	<td colspan="<?= count($rights) ?>">
   31 		<?= $input->select('modaclsel', array_values($presets), array_keys($presets)) ?>
   32 	</td>
   33 </tr>
   34 <?php } ?>
   35 </table>