当前位置: 首页>>代码示例>>PHP>>正文


PHP JoomleagueHelper::getTimezone方法代码示例

本文整理汇总了PHP中JoomleagueHelper::getTimezone方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomleagueHelper::getTimezone方法的具体用法?PHP JoomleagueHelper::getTimezone怎么用?PHP JoomleagueHelper::getTimezone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JoomleagueHelper的用法示例。


在下文中一共展示了JoomleagueHelper::getTimezone方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

			</tr>
			<?php 
}
if ($this->person->deathday != '0000-00-00') {
    ?>
			<tr>
				<td class="">
				<span class="label">
					<?php 
    echo JText::_('COM_JOOMLEAGUE_PERSON_DEATHDAY');
    ?>
				</span>
				</td>
				<td class="data">
					<?php 
    $deathdateStr = JHtml::date($this->person->deathday . ' UTC', JText::_('COM_JOOMLEAGUE_GLOBAL_DEATHDATE'), JoomleagueHelper::getTimezone($this->project, $this->overallconfig));
    echo '&dagger; ' . $deathdateStr;
    ?>
				</td>
			</tr>
			<?php 
}
if ($this->person->address != "" && $this->config['show_person_address'] == 1 && $this->isContactDataVisible) {
    ?>
			<tr>
				<td class=""><span class="label"><?php 
    echo JText::_('COM_JOOMLEAGUE_PERSON_ADDRESS');
    ?>
</span></td>
				<td class="data"><?php 
    echo Countries::convertAddressString('', $this->person->address, $this->person->state, $this->person->zipcode, $this->person->location, $this->person->address_country, 'COM_JOOMLEAGUE_PERSON_ADDRESS_FORM');
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:31,代码来源:default_info.php

示例2: printf

            printf("%s", htmlspecialchars($this->teamStaff->suspension_detail));
            ?>
				</td>
			</tr>
			<?php 
        }
    }
    if ($this->teamStaff->away > 0) {
        $away_date = "";
        $away_end = "";
        //suspension start
        $away_date = JHtml::date($this->teamStaff->away_date . ' UTC', JText::_('COM_JOOMLEAGUE_GLOBAL_MATCHDAYDATE'), JoomleagueHelper::getTimezone($this->project, $this->overallconfig));
        if (isset($this->teamStaff->raway_from)) {
            $away_date .= " - " . $this->teamStaff->raway_from;
        }
        $away_end = JHtml::date($this->teamStaff->away_end . ' UTC', JText::_('COM_JOOMLEAGUE_GLOBAL_MATCHDAYDATE'), JoomleagueHelper::getTimezone($this->project, $this->overallconfig));
        if (isset($this->teamStaff->raway_to)) {
            $away_end .= " - " . $this->teamStaff->raway_to;
        }
        if ($this->teamStaff->away_date == $this->teamStaff->away_end) {
            ?>
				<tr>
					<td class="label">
							<?php 
            $imageTitle = JText::_('Away');
            echo "&nbsp;&nbsp;" . JHtml::image('images/com_joomleague/database/events/' . $this->project->fs_sport_type_name . '/away.gif', $imageTitle, array('title' => $imageTitle, 'style' => 'padding-right: 10px; vertical-align: middle;'));
            echo JText::_('COM_JOOMLEAGUE_PERSON_AWAY');
            ?>
					</td>
					<td class="data">
						<?php 
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:31,代码来源:default_status.php

示例3: array

				</td>
			</tr>
			<?php 
    }
    if ($this->inprojectinfo->away > 0) {
        $away_date = "";
        $away_end = "";
        if (is_array($this->roundsdata)) {
            //suspension start
            if (array_key_exists($this->inprojectinfo->away_date, $this->roundsdata)) {
                $away_date = JHtml::date($this->roundsdata[$this->inprojectinfo->away_date]['date_first'] . ' UTC', JText::_('COM_JOOMLEAGUE_BASIC_CALENDAR_DATE'), JoomleagueHelper::getTimezone($this->project, $this->overallconfig));
                $away_date .= " - " . $this->inprojectinfo->away_date . ". " . JText::_('COM_JOOMLEAGUE_MATCHDAY');
            }
            //suspension end
            if (array_key_exists($this->inprojectinfo->away_end, $this->roundsdata)) {
                $away_end = JHtml::date($this->roundsdata[$this->inprojectinfo->away_end]['date_last'] . ' UTC', JText::_('COM_JOOMLEAGUE_BASIC_CALENDAR_DATE'), JoomleagueHelper::getTimezone($this->project, $this->overallconfig));
                $away_end .= " - " . $this->inprojectinfo->away_end . ". " . JText::_('COM_JOOMLEAGUE_MATCHDAY');
            }
        }
        if ($this->inprojectinfo->away_date == $this->inprojectinfo->away_end) {
            ?>
				<tr>
					<td class="td_l" style="color: red">
						<b>
							<?php 
            $imageTitle = JText::_('Away');
            echo "&nbsp;&nbsp;" . JHtml::image('images/com_joomleague/database/events/' . $this->project->fs_sport_type_name . '/away.gif', $imageTitle, array('title' => $imageTitle));
            echo JText::_('COM_JOOMLEAGUE_PLAYER_AWAY');
            ?>
						</b>
					</td>
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:31,代码来源:default_pr_status.php

示例4:

            case 1:
                // show Birthday and Age
                $birthdateStr = $this->referee->birthday != "0000-00-00" ? JHtml::date($this->referee->birthday . ' UTC', JText::_('COM_JOOMLEAGUE_GLOBAL_DAYDATE'), JoomleagueHelper::getTimezone($this->project, $this->overallconfig)) : "-";
                $birthdateStr .= "&nbsp;(" . JoomleagueHelper::getAge($this->referee->birthday, $this->referee->deathday) . ")";
                break;
            case 2:
                // show Only Birthday
                $birthdateStr = $this->referee->birthday != "0000-00-00" ? JHtml::date($this->referee->birthday . ' UTC', JText::_('COM_JOOMLEAGUE_GLOBAL_DAYDATE'), JoomleagueHelper::getTimezone($this->project, $this->overallconfig)) : "-";
                break;
            case 3:
                // show Only Age
                $birthdateStr = JoomleagueHelper::getAge($this->referee->birthday, $this->referee->deathday);
                break;
            case 4:
                // show Only Year of birth
                $birthdateStr = $this->referee->birthday != "0000-00-00" ? JHtml::date($this->referee->birthday . ' UTC', JText::_('%Y'), JoomleagueHelper::getTimezone($this->project, $this->overallconfig)) : "-";
                break;
            default:
                $birthdateStr = "";
                break;
        }
        echo $birthdateStr;
        ?>
						</td>
					</tr>
					<?php 
    }
    if ($this->referee->address != "" && $this->config['show_person_address'] == 1) {
        ?>
					<tr>
						<td><span class="label">
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:31,代码来源:default_info.php

示例5:

            ?>
				<th class="center"><?php 
            echo JText::_('COM_JOOMLEAGUE_RESULTS_COMMENTS');
            ?>
</th>
			<?php 
        }
    } else {
        ?>
			<th colspan="<?php 
        echo $nbcols;
        ?>
">
            <?php 
        if ($date != '0000-00-00') {
            echo JHtml::date($date, JText::_('COM_JOOMLEAGUE_RESULTS_GAMES_DATE'), JoomleagueHelper::getTimezone($this->project, $this->overallconfig));
            if ($this->config['show_matchday_dateheader']) {
                echo ' - ';
            }
        }
        if ($this->config['show_matchday_dateheader']) {
            echo JText::sprintf('COM_JOOMLEAGUE_RESULTS_GAMEDAY_NB', $this->roundcode);
        }
        ?>
            </th>
		<?php 
    }
    ?>
	</tr>
	<!-- DATE HEADER END-->
	<!-- GAMES -->
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:31,代码来源:default_results_style0.php

示例6: showMatchdaysTitle

 /**
  * Shows matchday title
  *
  * @param string $title
  * @param int $current_round
  * @param array $config
  * @param int $mode
  * @return string html
  */
 public static function showMatchdaysTitle($title, $current_round, &$config, $project, $overallconfig = false, $mode = 0)
 {
     $projectid = $project->id;
     echo $title != '' ? $title . ' - ' : $title;
     if ($current_round > 0) {
         $thisround = JTable::getInstance('Round', 'Table');
         $thisround->load($current_round);
         if ($config['type_section_heading'] == 1 && $thisround->name != '') {
             if ($mode == 1) {
                 $link = JoomleagueHelperRoute::getRankingRoute($projectid, $thisround->id);
                 echo JHtml::link($link, $thisround->name);
             } else {
                 echo $thisround->name;
             }
         } elseif ($thisround->roundcode > 0) {
             echo ' ' . JText::sprintf('COM_JOOMLEAGUE_RESULTS_MATCHDAY', $thisround->roundcode) . '&nbsp;';
         }
         if ($config['show_rounds_dates'] == 1) {
             echo " (";
             if (!strstr($thisround->round_date_first, "0000-00-00")) {
                 echo JHtml::date($thisround->round_date_first . ' UTC', 'COM_JOOMLEAGUE_GLOBAL_CALENDAR_DATE', JoomleagueHelper::getTimezone($project, $overallconfig));
             }
             if ($thisround->round_date_last != $thisround->round_date_first && !strstr($thisround->round_date_last, "0000-00-00")) {
                 echo " - " . JHtml::date($thisround->round_date_last . ' UTC', 'COM_JOOMLEAGUE_GLOBAL_CALENDAR_DATE', JoomleagueHelper::getTimezone($project, $overallconfig));
             }
             echo ")";
         }
     }
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:38,代码来源:html.php


注:本文中的JoomleagueHelper::getTimezone方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。