global $config, $user;?>
| = date( 't', strtotime( '-1 month', strtotime( $this -> year . '-' . $this -> month ) ) );?> | for ( $i = 1; $i <= $days; $i++ ):?>" site-id="= $this -> site['id'];?>" date="= date( 'Y-m-d', strtotime( $this -> year . '-' . $this -> month . '-' . $i ) );?>"> = $i;?> | endfor;?>
|---|---|
| = empty( $pos ) ? '-' : $pos;?> | for ( $i = 1; $i <= $days; $i++ ): $i < 10 ? $d = '0' . $i : $d = $i; $pos = $phrase['positions'][ $this -> year . '-' . $this -> month . '-' . $d ]['position']; $map = $phrase['positions'][ $this -> year . '-' . $this -> month . '-' . $d ]['map']; $url = $phrase['positions'][ $this -> year . '-' . $this -> month . '-' . $d ]['url']; $class = 'position'; $text = ''; $end = ''; if ( $pos == 1 ) $class = 'pos_1'; if ( $pos == 2 || $pos == 3 ) $class = 'pos_2'; if ( $pos >= 4 && $pos <= 6 ) $class = 'pos_4'; if ( $pos >= 7 && $pos <= 10 ) $class = 'pos_7'; if ( $pos >= 11 && $pos <= 20 ) $class = 'pos_11'; if ( $pos == 0 || $pos >= 21 ) $class = 'pos_21'; if ( new DateTime( $phrase['date_end'] ) < new DateTime( date( 'Y-m-d' ) ) or new DateTime( $this -> site['date_end'] ) < new DateTime( date( 'Y-m-d' ) ) ) $class = 'end position'; if ( $phrase['date_start'] and new DateTime( $phrase['date_start'] ) > new DateTime( date( 'Y-m-d' ) ) ) $class = 'end position'; ?>year . '-' . $this -> month . '-' . $d == date( 'Y-m-d' ) and $class != 'end position' ) echo 'class="spin"';?>> = $pos;?> if ( $pos == '' and $this -> year . '-' . $this -> month . '-' . $d == date( 'Y-m-d' ) and $class != 'end position' ) echo ''; ?> | endfor;?>
| Przedział | Stawka | Ilość dni | Należność |
| = $price['start'];?> - = $price['end'];?> | = \S::number_display( $price_c );?> | = $price['count'];?> | = \S::number_display( $price_c * $price['count'] );?> |
| Suma: | = \S::number_display( $sum );?> | ||