本文整理汇总了PHP中VmHTML::image方法的典型用法代码示例。如果您正苦于以下问题:PHP VmHTML::image方法的具体用法?PHP VmHTML::image怎么用?PHP VmHTML::image使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VmHTML
的用法示例。
在下文中一共展示了VmHTML::image方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<form action="index.php" method="post" class="form-horizontal" name="adminForm" id="adminForm">
<div class="col50">
<fieldset>
<legend><?php
echo tsmText::_('Current relation');
?>
</legend>
<div class="admintable row-fluid">
<?php
echo VmHTML::row_control('input', 'relation name', 'title', $this->item->title, 'class="required"');
?>
<?php
echo VmHTML::image('Icon', 'icon', $this->item->icon, 'class="required"');
?>
<?php
echo VmHTML::row_control('textarea', 'Meta title', 'meta_title', $this->item->meta_title);
?>
<?php
echo VmHTML::row_control('textarea', 'Key Word', 'key_word', $this->item->key_word);
?>
<?php
echo VmHTML::row_control('editor', 'Description', 'description', $this->item->description);
?>
<?php
echo VmHTML::row_control('booleanlist', 'com_tsmart_PUBLISHED', 'published', $this->item->published);
?>
示例2:
?>
"><?php
echo $row->tourstyle_name;
?>
</a>
<?php
}
?>
</td>
<td align="left">
<?php
if ($show_edit) {
?>
<?php
echo VmHTML::image('icon', $row->icon, 'class="required"');
?>
<?php
} else {
?>
<?php
echo VmHTML::show_image(JUri::root() . '/' . $row->icon, 'class="required"', 20, 20);
?>
<?php
}
?>
</td>
<td>
<?php
if ($show_edit) {
示例3:
?>
<?php
echo $row->country_name;
?>
<?php
}
?>
</td>
<td align="left">
<?php
if ($show_edit) {
?>
<?php
echo VmHTML::image('flag', $row->flag, 'class="required"');
?>
<?php
} else {
?>
<?php
echo VmHTML::show_image(JUri::root() . '/' . $row->flag, 'class="required"', 20, 20);
?>
<?php
}
?>
</td>
<td align="left">
<?php
if ($show_edit) {
示例4:
"><?php
echo $row->language_name;
?>
</a>
<?php
}
?>
</td>
<td align="left">
<?php
if ($show_edit) {
?>
<?php
echo VmHTML::image('image', $row->image, 'class="required"');
?>
<?php
} else {
?>
<?php
echo VmHTML::show_image(JUri::root() . '/' . $row->image, 'class="required"', 20, 20);
?>
<?php
}
?>
</td>
<td>
<?php
if ($show_edit) {
?>
示例5:
<?php
echo VmHTML::row_control('textarea', 'Trip note 1', 'trip_note1', $this->item->trip_note1, '', 90, 4);
?>
<?php
echo VmHTML::row_control('textarea', 'Trip note 2', 'trip_note2', $this->item->trip_note2, '', 90, 4);
?>
<?php
echo VmHTML::row_control_v_1('list_checkbox', 'Meal', 'list_meal_id', 'list_meal_id', $this->list_meal, $this->item->list_meal_id, '', 'tsmart_meal_id', 'title', false);
?>
<?php
echo VmHTML::image('Photo 1', 'photo1', $this->item->photo1, 'class="required"');
?>
<?php
echo VmHTML::image('Photo 2', 'photo2', $this->item->photo2, 'class="required"');
?>
<?php
echo VmHTML::row_control('booleanlist', 'com_tsmart_PUBLISHED', 'published', $this->item->published);
?>
</div>
</div>
</div>
<input type="hidden" value="com_tsmart" name="option">
<input type="hidden" value="itinerary" name="controller">
<input type="hidden" value="itinerary" name="view">
示例6:
</div>
</div>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="trip_facts">
<div class="panel panel-default">
<div class="panel-heading">Trip facts</div>
<div class="panel-body">
<div class="row-fluid ">
<div class="span12">
<h3 class="">Inserte image map</h3>
<?php
echo VmHTML::image('', 'image_map', $this->product->image_map, 'class="required" style="width:100%"', 30, 10);
?>
</div>
<div class="span12">
<h3 class="">Inserte google map</h3>
<?php
echo VmHTML::google_map('latitude', 'longitude', 'location', 'radius', $this->product->latitude, $this->product->longitude, $this->product->location, $this->product->radius, 'class="required" style="width:100%"', 30, 10);
?>
</div>
</div>
<div class="row-fluid ">
<div class="span12">
<h3 class="">Tour highlight</h3>
<?php
echo VmHTML::editor('highlights', $this->product->highlights, '100%', '40px');
?>