當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Countries::convertAddressString方法代碼示例

本文整理匯總了PHP中Countries::convertAddressString方法的典型用法代碼示例。如果您正苦於以下問題:PHP Countries::convertAddressString方法的具體用法?PHP Countries::convertAddressString怎麽用?PHP Countries::convertAddressString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Countries的用法示例。


在下文中一共展示了Countries::convertAddressString方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: explode

</div>
	<?php 
    if ($this->config['show_club_info'] || $this->config['show_team_info']) {
        ?>
<div class="right-column">
		<?php 
        if ($this->config['show_club_info']) {
            if ($this->club->address || $this->club->zipcode) {
                ?>
	<div class="jl_parentContainer">
		<span class="clubinfo_listing_item"><?php 
                echo JText::_('COM_JOOMLEAGUE_TEAMINFO_CLUB_ADDRESS');
                ?>
</span>
				<?php 
                $dummy = Countries::convertAddressString($this->club->name, $this->club->address, $this->club->state, $this->club->zipcode, $this->club->location, $this->club->country, 'COM_JOOMLEAGUE_TEAMINFO_CLUB_ADDRESS_FORM');
                $dummy = explode('<br />', $dummy);
                for ($i = 0; $i < count($dummy); $i++) {
                    if ($i > 0) {
                        echo '<span class="clubinfo_listing_item">&nbsp;</span>';
                    }
                    echo '<span class="clubinfo_listing_value">' . $dummy[$i] . '</span>';
                }
                echo '</div>';
            }
            if ($this->club->phone) {
                ?>
	<div class="jl_parentContainer">
		<span class="clubinfo_listing_item"> <?php 
                echo JText::_('COM_JOOMLEAGUE_TEAMINFO_CLUB_PHONE');
                ?>
開發者ID:santas156,項目名稱:joomleague-2-komplettpaket,代碼行數:31,代碼來源:default_teaminfo.php

示例2:

    $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');
    ?>
</td>
			</tr>
			<?php 
}
if ($this->person->phone != "" && $this->config['show_person_phone'] == 1 && $this->isContactDataVisible) {
    ?>
			<tr>
				<td class=""><span class="label"><?php 
    echo JText::_('COM_JOOMLEAGUE_PERSON_PHONE');
    ?>
</span></td>
				<td class="data"><?php 
    echo $this->person->phone;
    ?>
開發者ID:hfmprs,項目名稱:JoomLeague,代碼行數:31,代碼來源:default_info.php

示例3: foreach

					<?php 
        foreach ($club->teams as $team) {
            //dynamic object property string
            $pic = $this->config['show_picture'];
            echo JoomleagueHelper::getPictureThumb($team->{$pic}, $team->name, $this->config['team_picture_width'], $this->config['team_picture_height'], 1);
            $teaminfo_link = JoomleagueHelperRoute::getTeamInfoRoute($this->project->slug, $team->team_slug);
            echo JHtml::link($teaminfo_link, $team->name);
            echo '<br />';
        }
        ?>
				</td>
				<?php 
    }
    ?>
			<?php 
    if ($this->config['show_address']) {
        ?>
				<td>
					<?php 
        echo Countries::convertAddressString($club->name, $club->address, $club->state, $club->zipcode, $club->location, $club->country, 'COM_JOOMLEAGUE_CLUBS_ADDRESS_FORM');
        ?>
				</td>
			<?php 
    }
    ?>
		</tr>
		<?php 
    $k = 1 - $k;
}
?>
</table>
開發者ID:Heart1010,項目名稱:JoomLeague,代碼行數:31,代碼來源:default_clubs.php

示例4:

    } else {
        ?>
      <td class="club_logo"></td>
      <?php 
    }
    if ($this->config['show_club_number']) {
        ?>
        <td class="club_logo"><?php 
        echo $team->unique_id;
        ?>
</td>
		<?php 
    } else {
        ?>
      <td class="club_logo"></td>
      <?php 
    }
    ?>
      
			<td class="club_address">
				<?php 
    echo Countries::convertAddressString($team->club_name, $team->club_address, $team->club_state, $team->club_zipcode, $team->club_location, $team->club_country, 'COM_JOOMLEAGUE_TEAMS_ADDRESS_FORM');
    ?>
			</td>
		</tr>
		<?php 
    $k = 1 - $k;
}
?>
</table>
開發者ID:santas156,項目名稱:joomleague-2-komplettpaket,代碼行數:30,代碼來源:default_teams.php

示例5:

	</tr>
	<?php 
}
?>

	<?php 
if ($this->playground->address || $this->playground->zipcode) {
    ?>
		<tr>
			<th class="td_r_t" width='30%'><?php 
    echo JText::_('COM_JOOMLEAGUE_PLAYGROUND_ADDRESS');
    ?>
</th>
			<td width='70%'>
				<?php 
    echo Countries::convertAddressString('', $this->playground->address, '', $this->playground->zipcode, $this->playground->city, $this->playground->country, 'COM_JOOMLEAGUE_PLAYGROUND_ADDRESS_FORM');
    ?>
			</td>
		</tr>
		<?php 
}
?>

	<?php 
if ($this->playground->website) {
    ?>
		<tr>
			<th class="td_r" width="30%">
			   <?php 
    echo JText::_('COM_JOOMLEAGUE_PLAYGROUND_WEBSITE');
    ?>
開發者ID:Heart1010,項目名稱:JoomLeague,代碼行數:31,代碼來源:default_playground.php


注:本文中的Countries::convertAddressString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。