本文整理汇总了PHP中UrlHelper::GetUploadedImageUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP UrlHelper::GetUploadedImageUrl方法的具体用法?PHP UrlHelper::GetUploadedImageUrl怎么用?PHP UrlHelper::GetUploadedImageUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UrlHelper
的用法示例。
在下文中一共展示了UrlHelper::GetUploadedImageUrl方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo $item->phone_2;
?>
"></div>
<div class="hr"></div>
<label class="top-field-label">Изображение карты:</label>
<div class="image-box">
<?php
if ($item->map_image == '') {
?>
<img src="/img/admin/no-photo.jpg">
<?php
} else {
?>
<img src="<?php
echo UrlHelper::GetUploadedImageUrl($item->map_image);
?>
">
<?php
}
?>
</div>
<input class="file-input" type="file" name="map_img">
<div style="clear: both;"></div>
<br>
<label class="top-field-label">Ссылка на карту:</label>
<div class="field-container-long"><input type="text" name="map_link" class="input-main float-left" value="<?php
echo $item->map_link;
?>
"></div>
示例2:
}
?>
<div class="hr"></div>
<label class="top-field-label">Изображение:</label>
<div class="image-box">
<?php
if ($item->thumb == '') {
?>
<img src="/img/admin/no-photo.jpg">
<?php
} else {
?>
<img src="<?php
echo UrlHelper::GetUploadedImageUrl($item->thumb);
?>
">
<?php
}
?>
</div>
<input class="file-input" type="file" name="thumbnail">
<div style="clear: both;"></div>
<div class="hr"></div>
<div style="clear: both;"></div>
<input class="button-submit-red red-button-settings" type="submit" value="Сохранить">
<div style="clear: both"></div>
示例3:
?>
<?php
if ($contacts != null) {
?>
<h3><?php
echo $contacts->getLngObject(Yii::app()->language)->text;
?>
</h3>
<hr>
<div class="contact-i">
<?php
echo $contacts->getLngObject(Yii::app()->language)->small_text;
?>
</div><!-- /contact-i -->
<?php
if ($contacts->map_image != '') {
?>
<div class="map ">
<a href="<?php
echo $contacts->map_link;
?>
"><img src="<?php
echo UrlHelper::GetUploadedImageUrl($contacts->map_image);
?>
" alt="map" border="0"></a>
</div><!-- /map -->
<?php
}
}