本文整理匯總了PHP中VmHTML::select_number_passenger方法的典型用法代碼示例。如果您正苦於以下問題:PHP VmHTML::select_number_passenger方法的具體用法?PHP VmHTML::select_number_passenger怎麽用?PHP VmHTML::select_number_passenger使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類VmHTML
的用法示例。
在下文中一共展示了VmHTML::select_number_passenger方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
echo JText::_('Passenger details');
?>
</h3>
<div class="row-fluid">
<div class="span12">
<fieldset class="tour-border departure-filter">
<legend
class="tour-border"><?php
echo JText::_('Update passenger');
?>
</legend>
<?php
echo VmHTML::select_number_passenger('filter_total_passenger_from_12_years_old', '', 1, 20, 1, '');
?>
<?php
echo VmHTML::select_number_passenger('filter_total_passenger_under_12_years_old', 'Passenger under 12 years old', 1, 20, 1, '');
?>
<div class="btn-go">
<?php
echo VmHTML::input_button('submit', 'Go');
?>
</div>
</fieldset>
</div>
</div>
<div class="table table-trip departure-item">
<div class="row-fluid body">
<div class="span12">
<div class="row-fluid item">
示例2:
</a>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<fieldset class="tour-border">
<legend
class="tour-border"><?php
echo JText::_('Get best price for your travel date');
?>
</legend>
<?php
echo VmHTML::select_number_passenger('filter_total_passenger_from_12_years_old', '', 1, 50, $this->state->get('filter.total_passenger_from_12_years_old'), ' class="required" ');
?>
<?php
echo VmHTML::select_number_passenger('filter_total_passenger_under_12_years_old', 'Passenger under 12 years old', 1, 50, $this->state->get('filter.total_passenger_under_12_years_old'), ' class="required" ');
?>
<?php
if ($this->product->price_type != tsmGroupSize::FLAT_PRICE) {
echo VmHTML::select_date('filter_start_date', $this->state->get('filter.start_date'), '', '', '', '', ' required ');
} else {
echo VmHTML::select_month('filter_month', $this->state->get('filter.month'), '', '', '', '', ' required ');
}
?>
<div class="btn-go">
<?php
echo VmHTML::input_button('submit', 'Go');
?>
</div>
</fieldset>