示例#1
0
">Из поиска</a></li>
							<li <?php 
echo $fromType == 'others' ? 'class="active"' : '';
?>
><a href="/promotion/?bm=1&from=others<?php 
echo $login ? "&user={$login}" : '';
?>
">Другое</a></li>
					</ul>
			</div>
  </div>
      <div class="promotion">
        <?php 
if ($user->is_pro == 't' || $iAmAdmin) {
    $t_guests = promotion::GetGuests($uid, $TODAY, $TOMORROW, $fromType);
    $y_guests = promotion::GetGuests($uid, $YESTERDAY, $TODAY, $fromType);
    ?>
      
          <div style="margin:40px 0 0 0">
            <div class="tbl-users">
               <?php 
    echo t_promotion::guests($t_guests, $HOUR - 1, 'Сегодня');
    ?>
            </div>
            <br /><br /><br /><br /><br /><br /><br /><br />
            <div class="tbl-users">
               <?php 
    echo t_promotion::guests($y_guests, 23, 'Вчера');
    ?>
            </div>
          </div>