openrat-cms

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

rights.php (4080B)


      1 <?php if (!defined('OR_TITLE')) die('Forbidden'); ?>
      2 	<div class="or-table-wrapper"><div class="or-table-area"><table width="100%">
      3 		<?php foreach($projects as $list_key=>$list_value){ ?><?php extract($list_value) ?>
      4 			<tr>
      5 				<td>
      6 					<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">
      7 						<?php $if7=(($rights)==FALSE); if($if7){?>
      8 							<tr>
      9 								<td>
     10 									<span><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_NOT_FOUND')))); ?></span>
     11 								</td>
     12 							</tr>
     13 						<?php } ?>
     14 						<?php $if7=!(($rights)==FALSE); if($if7){?>
     15 							<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%">
     16 								<tr class="headline">
     17 									<td class="help">
     18 										<span><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_USER')))); ?></span>
     19 									</td>
     20 									<td class="help">
     21 										<span><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_NAME')))); ?></span>
     22 									</td>
     23 									<td class="help">
     24 										<span><?php echo nl2br(encodeHtml(htmlentities(lang('GLOBAL_LANGUAGE')))); ?></span>
     25 									</td>
     26 									<?php foreach($show as $list_key=>$t){ ?>
     27 										<td class="help">
     28 											<span title="<?php echo lang('acl_'.$t.'') ?>"><?php echo nl2br(encodeHtml(htmlentities(lang('acl_'.$t.'_abbrev')))); ?></span>
     29 										</td>
     30 									<?php } ?>
     31 								</tr>
     32 								<?php foreach($rights as $aclid=>$acl){ ?><?php extract($acl) ?>
     33 									<tr class="data clickable">
     34 										<td>
     35 											<?php $if12=(isset($groupname)); if($if12){?>
     36 												<i class="image-icon image-icon--action-group"></i>
     37 												<span><?php echo nl2br(encodeHtml(htmlentities(Text::maxLength( $groupname,20,'..',constant('STR_PAD_BOTH') )))); ?></span>
     38 											<?php } ?>
     39 											<?php $if12=!(isset($username)); if($if12){?>
     40 												<?php $if13=!(isset($groupname)); if($if13){?>
     41 													<i class="image-icon image-icon--action-group"></i>
     42 													<span><?php echo nl2br(encodeHtml(htmlentities(lang(''.'global_all'.'')))); ?></span>
     43 												<?php } ?>
     44 											<?php } ?>
     45 											<?php unset($username) ?>
     46 											<?php unset($groupname) ?>
     47 										</td>
     48 										<td title="<?php echo $objectname ?>">
     49 											<i class="image-icon image-icon--action-<?php echo $objecttype ?>"></i>
     50 											<a target="_self" data-type="open" data-action="<?php echo $objecttype ?>" data-method="" data-id="<?php echo $objectid ?>" data-extra="[]" href="./#/<?php echo $objecttype ?>/<?php echo $objectid ?>">
     51 												<span><?php echo nl2br(encodeHtml(htmlentities($objectname))); ?></span>
     52 											</a>
     53 										</td>
     54 										<td>
     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 				</td>
     81 			</tr>
     82 		<?php } ?>
     83 	</table></div></div>