Einchecken des OnlineStands
This commit is contained in:
45
administrator/templates/cs_l1/tpl_navirights.php
Normal file
45
administrator/templates/cs_l1/tpl_navirights.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<ul>
|
||||
<?php
|
||||
$param = ( is_null( $this -> _param ) )
|
||||
? 0
|
||||
: $this -> _param;
|
||||
|
||||
foreach ( $this -> _data[ $param ] as $nav_array )
|
||||
{
|
||||
extract ( $nav_array );
|
||||
|
||||
$referer = '';
|
||||
$disabled = '';
|
||||
|
||||
if ( $this -> _prefix === 'portal' )
|
||||
{
|
||||
if ( array_key_exists( ${$this -> _prefix . '_navId'} , $this -> _website ) )
|
||||
{
|
||||
$referer = 'data-referer="' . $this -> _website[ ${$this -> _prefix . '_navId'} ][ 'prefix' ] . 'Rights"';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( $_SESSION[ 'sess_' . $this -> _prefix . 'Type' ] !== 'ALL' )
|
||||
{
|
||||
$disabled = 'disabled="disabled" ';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<li <?php echo ( $this -> _prefix !== 'portal' && isset ( $this -> _data[ ${$this -> _prefix . '_navId'} ] ) ) ? 'class="hasChild"' : ''; ?>>
|
||||
<input <?php echo $disabled . $referer; ?> type="checkbox" name="user_<?php echo $this -> _prefix; ?>Rights[ ]" id="user_<?php echo $this -> _prefix; ?>Rights_<?php echo ${$this -> _prefix . '_navId'};?>" value="<?php echo ${$this -> _prefix . '_navId'}; ?>" <?php echo ( ( isset( $this -> _formdata ) && ( in_array( ${$this -> _prefix . '_navId'} , $this -> _formdata ) || in_array( $this -> _prefix . '_' . ${$this -> _prefix . '_navId'} , $this -> _formdata ) ) ) ) ? 'checked="checked"' : ''; ?>/>
|
||||
<label for="user_<?php echo $this -> _prefix; ?>Rights_<?php echo ${$this -> _prefix . '_navId'};?>"><?php echo ${$this -> _prefix . '_navName'}; ?></label>
|
||||
<?php
|
||||
if ( isset ( $this -> _data[ ${$this -> _prefix . '_navId'} ] ) )
|
||||
{
|
||||
$navi_main = clone( $this );
|
||||
$navi_main -> setTemplate ( 'navirights' );
|
||||
$navi_main -> setData ( $this -> _data , ${$this -> _prefix . '_navId'} );
|
||||
echo $navi_main -> output ( );
|
||||
}
|
||||
?>
|
||||
</li><?php
|
||||
}
|
||||
|
||||
?>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user