openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

rights.php (4065B)


      1 <?php if (!defined('OR_TITLE')) die('Forbidden'); ?>
      2 	<?php foreach($projects as $list_key=>$list_value){ ?><?php extract($list_value) ?>
      3 		<fieldset class="toggle-open-close<?php echo true?" open":" closed" ?><?php echo true?" show":"" ?>"><legend class="on-click-open-close"><div class="arrow arrow-right on-closed"></div><div class="arrow arrow-down on-open"></div><?php echo $projectname ?></legend><div class="closable">
      4 			<?php $if4=(($rights)==FALSE); if($if4){?>
      5 				<div>
      6 					<span><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_NOT_FOUND')))); ?></span>
      7 				</div>
      8 			<?php } ?>
      9 			<?php $if4=!(($rights)==FALSE); if($if4){?>
     10 				<div class="or-table-wrapper"><div class="or-table-filter"><input type="search" name="filter" placeholder="<?php echo lang('SEARCH_FILTER') ?>" /></div><div class="or-table-area"><table width="100%">
     11 					<tr class="headline">
     12 						<td class="help">
     13 							<span><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_USER')))); ?></span>
     14 						</td>
     15 						<td class="help">
     16 							<span><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_NAME')))); ?></span>
     17 						</td>
     18 						<td class="help">
     19 							<span><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_LANGUAGE')))); ?></span>
     20 						</td>
     21 						<?php foreach($show as $list_key=>$t){ ?>
     22 							<td class="help">
     23 								<span title="<?php echo lang('acl_'.$t.'') ?>"><?php echo nl2br(encodeHtml(htmlentities(lang('acl_'.$t.'_abbrev')))); ?></span>
     24 							</td>
     25 						<?php } ?>
     26 					</tr>
     27 					<?php foreach($rights as $aclid=>$acl){ ?><?php extract($acl) ?>
     28 						<tr class="data clickable">
     29 							<td>
     30 								<?php $if9=(isset($username)); if($if9){?>
     31 									<i class="image-icon image-icon--action-user"></i>
     32 									<span><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $username,20,'..',constant('STR_PAD_BOTH') )))); ?></span>
     33 								<?php } ?>
     34 								<?php $if9=(isset($groupname)); if($if9){?>
     35 									<i class="image-icon image-icon--action-group"></i>
     36 									<span><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $groupname,20,'..',constant('STR_PAD_BOTH') )))); ?></span>
     37 								<?php } ?>
     38 								<?php $if9=!(isset($username)); if($if9){?>
     39 									<?php $if10=!(isset($groupname)); if($if10){?>
     40 										<i class="image-icon image-icon--action-group"></i>
     41 										<span><?php echo nl2br(encodeHtml(htmlentities(lang(''.'global_all'.'')))); ?></span>
     42 									<?php } ?>
     43 								<?php } ?>
     44 								<?php unset($username) ?>
     45 								<?php unset($groupname) ?>
     46 							</td>
     47 							<td>
     48 								<i class="image-icon image-icon--action-<?php echo $objecttype ?>"></i>
     49 								<a target="_self" data-type="open" data-action="<?php echo $objecttype ?>" data-method="rights" data-id="<?php echo $objectid ?>" data-extra="[]" href="./#/<?php echo $objecttype ?>/<?php echo $objectid ?>">
     50 									<span title="<?php echo lang('select') ?>"><?php echo nl2br(encodeHtml(htmlentities($objectname))); ?></span>
     51 								</a>
     52 							</td>
     53 							<td>
     54 								<i class="image-icon image-icon--action-language"></i>
     55 								<span><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $languagename,20,'..',constant('STR_PAD_BOTH') )))); ?></span>
     56 							</td>
     57 							<?php foreach($show as $list_key=>$list_value){ ?>
     58 								<td>
     59 									<?php $$list_value= $bits[$list_value]; ?>
     60 									<?php { $tmpname     = $list_value;$default  = false;$readonly = true;$required = false;		
     61 		if	( isset($$tmpname) )
     62 			$checked = $$tmpname;
     63 		else
     64 			$checked = $default;
     65 
     66 		?><input class="checkbox" type="checkbox" id="<?php echo REQUEST_ID ?>_<?php echo $tmpname ?>" name="<?php echo $tmpname  ?>"  <?php if ($readonly) echo ' disabled="disabled"' ?> value="1"<?php if( $checked ) echo ' checked="checked"' ?><?php if( $required ) echo ' required="required"' ?> /><?php
     67 
     68 		if ( $readonly && $checked )
     69 		{ 
     70 		?><input type="hidden" name="<?php echo $tmpname ?>" value="1" /><?php
     71 		}
     72 		} ?>
     73 								</td>
     74 							<?php } ?>
     75 						</tr>
     76 					<?php } ?>
     77 				</table></div></div>
     78 			<?php } ?>
     79 		</div></fieldset>
     80 	<?php } ?>