本文整理汇总了PHP中Booking::shoushuliao方法的典型用法代码示例。如果您正苦于以下问题:PHP Booking::shoushuliao方法的具体用法?PHP Booking::shoushuliao怎么用?PHP Booking::shoushuliao使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Booking
的用法示例。
在下文中一共展示了Booking::shoushuliao方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smartyTranslate
echo smartyTranslate(array('s' => 'None'), $_smarty_tpl);
}
?>
</td>
<?php
if ($_smarty_tpl->getVariable('cookie')->value->RoleID == 1) {
?>
<td>¥ <?php
echo number_format($_smarty_tpl->tpl_vars['roomplan']->value['MinPrice'], 0, ".", ", ");
?>
</td>
<?php
} else {
?>
<td>¥ <?php
echo number_format(Booking::shoushuliao($_smarty_tpl->tpl_vars['roomplan']->value['MinPrice'], $_smarty_tpl->tpl_vars['roomplan']->value['RoomPlanId']), 0, ".", ", ");
?>
</td>
<?php
}
?>
</tr>
<?php
}
}
?>
<!--
<tr>
<td><input type="checkbox" /></td>
<td><img src="<?php
echo $_smarty_tpl->getVariable('img_dir')->value;
开发者ID:khuyennd,项目名称:dev-tasagent,代码行数:31,代码来源:8a0762ef73941d84980065b1df8058898d2a95d9.file.hotelpage.tpl.php
示例2: Smarty_Variable
<?php
$_smarty_tpl->tpl_vars['roomplan'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['hotel']->value['RoomPlanList'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['smarty']->value['foreach']["roomplan"]['index'] = -1;
if ($_smarty_tpl->_count($_from) > 0) {
foreach ($_from as $_smarty_tpl->tpl_vars['roomplan']->key => $_smarty_tpl->tpl_vars['roomplan']->value) {
$_smarty_tpl->tpl_vars['smarty']->value['foreach']["roomplan"]['index']++;
?>
<?php
if (!isset($_smarty_tpl->tpl_vars['roomplan']) || !is_array($_smarty_tpl->tpl_vars['roomplan']->value)) {
$_smarty_tpl->createLocalArrayVariable('roomplan', null, null);
}
$_smarty_tpl->tpl_vars['roomplan']->value['MinPrice'] = Booking::shoushuliao($_smarty_tpl->tpl_vars['roomplan']->value['MinPrice'], $_smarty_tpl->tpl_vars['roomplan']->value['RoomPlanId']);
?>
<tr >
<td width="50"><?php
if ($_smarty_tpl->getVariable('cookie')->value->RoleID >= 4) {
echo $_smarty_tpl->getVariable('smarty')->value['foreach']['roomplan']['index'] + 1;
} else {
?>
<input type="checkbox" onchange="javascript:oncheck_changed('<?php
echo $_smarty_tpl->tpl_vars['hotel']->value['HotelId'];
?>
')" <?php
if ($_smarty_tpl->tpl_vars['roomplan']->value['PreSelect'] > 0) {
?>
checked="checked"<?php
}
开发者ID:khuyennd,项目名称:dev-tasagent,代码行数:31,代码来源:ed9ccc0ac74f971ee3b94736104e54d49b0b8cf0.file.searchhotel.tpl.php