Exemple #1
0
}
?>
		<td class="info">
		<table class="plinfo table">
			<?php 
if (!empty($this->person->country) && $this->config["show_nationality"] == 1) {
    ?>
			<tr>
				<td class=""><span class="label"><?php 
    echo JText::_('COM_JOOMLEAGUE_PERSON_NATIONALITY');
    ?>
				</span>
				</td>
				<td class="data">
				<?php 
    echo Countries::getCountryFlag($this->person->country) . " " . JText::_(Countries::getCountryName($this->person->country));
    ?>
				</td>
			</tr>
			<?php 
}
?>
			<tr>
				<td class="">
					<span class="label"><?php 
echo JText::_('COM_JOOMLEAGUE_PERSON_NAME');
?>
</span>
				</td>
				<td class="data">
				<?php 
Exemple #2
0
 public function getpix($team)
 {
     $pt = $this->params->get('picture_type');
     if ($this->params->get('show_picture') == 0) {
         return false;
     }
     $appendimage = ' align="middle" ';
     $countrycode = $team->country;
     if ($pt == "country" && strlen($countrycode) == 3) {
         $pic['src'] = Countries::getIso3Flag($countrycode);
         $pic['alt'] = Countries::getCountryName($countrycode);
     } else {
         $defaultlogos = $this->getDefaultLogos();
         $matchpart_pic = !empty($team->{$pt}) && file_exists(JPATH_ROOT . '/' . $team->{$pt}) ? $team->{$pt} : $defaultlogos[$pt];
         if (file_exists(JPATH_ROOT . '/' . $matchpart_pic)) {
             $size = getimagesize(JPATH_ROOT . '/' . $matchpart_pic);
             $pic_width = $size[0];
             $pic_height = $size[1];
             $whichparam = $pic_width > $pic_height ? ' width' : ' height';
             if ($this->params->get('xsize') > 0) {
                 $appendimage .= $whichparam . '="' . $this->params->get('xsize') . '"';
             } elseif ($this->params->get('ysize') > 0) {
                 $appendimage .= $whichparam . '="' . $this->params->get('ysize') . '"';
             }
         }
         $pic['src'] = trim($matchpart_pic) != "" && file_exists(JPATH_ROOT . '/' . trim($matchpart_pic)) ? JUri::root(true) . '/' . $matchpart_pic : JUri::root(true) . '/' . $defaultlogos[$pt];
         $pic['alt'] = $this->jl_utf8_convert($team->name, 'iso-8859-1', 'utf-8');
     }
     $pic['append'] = $appendimage;
     return $pic;
 }
Exemple #3
0
 public static function convertAddressString($name = '', $address = '', $state = '', $zipcode = '', $location = '', $country = '', $addressString = 'COM_JOOMLEAGUE_ADDRESS_FORM')
 {
     $resultString = '';
     if (!empty($address) || !empty($state) || !empty($zipcode) || !empty($location)) {
         $countryFlag = Countries::getCountryFlag($country);
         $countryName = Countries::getCountryName($country);
         $dummy = Countries::removeEmptyFields($name, $address, $state, $zipcode, $location, $countryFlag, $countryName, JText::_($addressString));
         $dummy = str_replace('%NAME%', $name, $dummy);
         $dummy = str_replace('%ADDRESS%', $address, $dummy);
         $dummy = str_replace('%STATE%', $state, $dummy);
         $dummy = str_replace('%ZIPCODE%', $zipcode, $dummy);
         $dummy = str_replace('%LOCATION%', $location, $dummy);
         $dummy = str_replace('%FLAG%', $countryFlag, $dummy);
         $dummy = str_replace('%COUNTRY%', $countryName, $dummy);
         $resultString .= $dummy;
     }
     $resultString .= '&nbsp;';
     return $resultString;
 }
</li>
				<li><strong>Total Hours: </strong><?php 
echo Util::AddTime($pilot->totalhours, $pilot->transferhours);
?>
</li>
				<li><strong>Location: </strong>
					<img src="<?php 
echo Countries::getCountryImage($pilot->location);
?>
"
								alt="<?php 
echo Countries::getCountryName($pilot->location);
?>
" />
					<?php 
echo Countries::getCountryName($pilot->location);
?>
				</li>

				<?php 
// Show the public fields
if ($allfields) {
    foreach ($allfields as $field) {
        echo "<li><strong>{$field->title}: </strong>{$field->value}</li>";
    }
}
?>
			</ul>

			<p>
			<strong>Awards</strong>
//PilotID
$pilotcode = PilotData::GetPilotCode($userinfo->code, $userinfo->pilotid);
//Pilot Name
$name = $userinfo->firstname . ' ' . $userinfo->lastname;
//Rang Bild
$rankimg = $userinfo->rankimage;
//Rang
$rank = $userinfo->rank;
//Flüge insg.
$totalflights = $userinfo->totalflights;
//Stunden insg.
$totalhours = Util::AddTime($userinfo->totalhours, $userinfo->transferhours);
//Landesflagge
$countryflag = Countries::getCountryImage($userinfo->location);
//Landesname
$countryname = Countries::getCountryName($userinfo->location);
//IVAO Status Badge fieldvalue = IVAO VID
$fieldvalue = PilotData::GetFieldValue($pilotid, 'IVAO-VID');
if ($fieldvalue != '') {
    $ivao = '<a href="http://www.ivao.aero/members/person/details.asp?ID=' . $fieldvalue . '" target="_blank"><img 		src="http://status.ivao.aero/' . $fieldvalue . '.png" width="220" height="66" border="0" alt="IVAO ID" /></a>';
} else {
    $ivao = 'Not a IVAO Member';
}
//Avatar
if (!file_exists(SITE_ROOT . AVATAR_PATH . '/' . $pilotcode . '.png')) {
    $avatar = 'No avatar';
} else {
    $avatar = '<img src="' . SITE_URL . AVATAR_PATH . '/' . $pilotcode . '.png' . '" alt="Pilot Avatar" /> ';
}
//Vorstellungstext
$vorstellungstext = PilotData::GetFieldValue($pilotid, 'Vorstellungstext');
if ($this->overallconfig['show_project_heading'] == 1 && $this->project) {
    ?>
	<div class="componentheading">
		<table class="contentpaneopen">
			<tbody>
				<?php 
    if ($this->overallconfig['show_project_country'] == 1) {
        ?>
				<tr class="contentheading">
					<td colspan="<?php 
        echo $nbcols;
        ?>
">
					<?php 
        $country = $this->project->country;
        echo Countries::getCountryFlag($country) . ' ' . Countries::getCountryName($country);
        ?>
					</td>
				</tr>
				<?php 
    }
    ?>
				<tr class="contentheading">
					<?php 
    if ($this->overallconfig['show_project_sporttype_picture'] == 1) {
        ?>
						<td>
						<?php 
        // diddipoeler
        echo JHTML::image($this->project->sport_type_picture, $this->project->sport_type_name, array('title' => $this->project->sport_type_name, 'width' => $this->overallconfig['picture_width']));
        /*