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


PHP Countries::getCountryName方法代码示例

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


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

示例1:

}
?>
		<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 
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:31,代码来源:default_info.php

示例2: getpix

 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;
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:31,代码来源:helper.php

示例3: convertAddressString

 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;
 }
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:19,代码来源:countries.php

示例4: foreach

</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>
开发者ID:phpmods,项目名称:phpvms_5.5.x,代码行数:31,代码来源:pilot_public_profile.php

示例5:

//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');
开发者ID:baswag,项目名称:Cologne-International-Pilot-Profile-Page,代码行数:31,代码来源:index.php

示例6: array

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']));
        /*
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:default_projectheading.php


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