Exemplo n.º 1
0
			</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');
Exemplo n.º 2
0
            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 
Exemplo n.º 3
0
				</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>
Exemplo n.º 4
0
            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">
            ?>
				<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 -->
Exemplo n.º 6
0
 /**
  * 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 ")";
         }
     }
 }