=0; $i--) { $current_time_code = intval($channel['server_time']) - 24 * 3600 * $i; $current_time = date("Y-m-d",$current_time_code); $current_month = $num_m_zh[intval(date("m",$current_time_code))] . '月'; $current_day = date("d",$current_time_code); $current_weekday = '周' . $num_w_zh[intval(date("w",$current_time_code))]; $current_class = $time==$current_time?' class="current"':''; echo '
  • '.$current_month.''.$current_day.''.$current_weekday.'
  • '; } } ?>
    $value) { //$value['start_time'] = strtotime(date('Y-m-d') . ' ' . date('H:i:s', $value['start_time'])); $value['theme'] = $value['subtopic'] ? $value['theme'] . ":" . $value['subtopic'] : $value['theme'] ; $style = ''; $onclick = ' onclick="get_object_list(' . $value['channel_id'] . ',' . $value['start_time'] . ',1);" '; $zhi = ''; if ($value['now_play']) { $style = ' class="current"'; // $zhi = '看直播'; echo ''; } if (!$value['display']) { $style = ' class="future"'; $onclick = ''; } if ($value['zhi_play']) { $style = ' class="onair"'; $lave_time = $value['lave_time']; $zhi = '看直播'; } if ($value['zhi_play'] && $value['now_play']) { $style = ' class="onair current"'; $lave_time = $value['lave_time']; $zhi = '看直播'; } echo '' . $zhi . '' . $value['stime'] . '' . $value['theme'] . ''; } ?>