本文整理汇总了PHP中Dispatcher::booking_get_booking_info方法的典型用法代码示例。如果您正苦于以下问题:PHP Dispatcher::booking_get_booking_info方法的具体用法?PHP Dispatcher::booking_get_booking_info怎么用?PHP Dispatcher::booking_get_booking_info使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dispatcher
的用法示例。
在下文中一共展示了Dispatcher::booking_get_booking_info方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: removeVoucherInfo
static function removeVoucherInfo($id, $reserve_type)
{
Dispatcher::$mysqli->query("update voucher_info set display=0 where id='{$id}'");
print_r(Dispatcher::$mysqli->error);
$voucher_info_array = Dispatcher::booking_get_booking_info($reserve_type, "");
get_booking_info_view($reserve_type, $voucher_info_array);
}
示例2:
<?php
require_once "../core/core.inc";
require_once "../core/view.php";
$booking_info_array = Dispatcher::booking_get_booking_info("tourists", "");
?>
<div class="modal fade" id="tourists-info" tabindex="-1" role="dialog" aria-labelledby="instructors-modal" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content timetable-modal-content">
<div class="modal-header timetable-modal-header">
<button type="button" class="global-close" data-dismiss="modal" aria-hidden="true">×</button>
<!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>-->
<div class="modal-title" id="myModalLabel">Tourists</div>
</div>
<div class="modal-body timetable-modal-body">
<button id="add-tourists-info-btn" class="add-instructor-btn popover-dismiss" data-placement="bottom">
<span class="add_instructor_plus"></span><span class="add-instructor-label">Add booking type</span>
</button>
<table class="list-of-vouchers">
<?php
get_booking_info_view("tourists", $booking_info_array);
?>
</table>
</div>
<div class="modal-footer timetable-modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<!--<button id="new_service_save_btn" type="button" class="btn-next" onclick="">Save</button>-->
</div>
</div>
</div>
示例3:
<?php
require_once "../core/core.inc";
require_once "../core/view.php";
$vouchers_info_array = Dispatcher::booking_get_booking_info("slevomat", "");
?>
<div class="modal fade" id="vouchers-info" tabindex="-1" role="dialog" aria-labelledby="instructors-modal" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content timetable-modal-content">
<div class="modal-header timetable-modal-header">
<button type="button" class="global-close" data-dismiss="modal" aria-hidden="true">×</button>
<!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>-->
<div class="modal-title" id="myModalLabel">Vouchers</div>
</div>
<div class="modal-body timetable-modal-body">
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
Get voucher type
<span class="glyphicon glyphicon-cog"></span>
</button>
<div class="dropdown-menu dropdown-menu-top-arrow" role="menu" aria-labelledby="dropdownMenu1">
<div class="get-voucher-type-wrapper">
<div class="get-voucher-type-label"><span>Get voucher type</span></div>
<input id="slevomat-code-input" class="voucher-code-input" name="slevomat-code-input" value="" placeholder="Type code here"/>
<input id="slevomat-type-input" class="voucher-code-input" name="slevomat-type-input" value=""/>
<button onclick="get_voucher_type();" id="get-voucher-type" class="btn btn-success btn-xs">GET</button>
</div>
</div>
</div>
示例4:
<?php
$tuorists_booking_type_info = Dispatcher::booking_get_booking_info("tourists", "");
?>
<div class="modal fade" id="booking_popup" role="dialog"data-backdrop="static"
data-keyboard="false" aria-labelledby="booking_step_1_popup" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="global-close" data-dismiss="modal" aria-hidden="true">×</button>
<!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>-->
<div class="modal-title" id="booking_step_1_popup_lablel">Tour choosing</div>
<span class="subtitle-booking-modal">Choose the tour</span><span class="step_count"> (step 1 in 3)</span>
</div>
<div class="modal-body">
<table class="tourists-during-type-chooser">
<tr><th></th><th></th><th>Tour name</th><th></th><th>Price (CZK)</th><th></th><th>Price (EUR)</th></tr>
<?php
for ($i = 0; $i < count($tuorists_booking_type_info); $i++) {
?>
<tr>
<td>
<?php
if ($i == 0) {
?>
<input checked id="tourists-during-type-radio-<?php
echo $tuorists_booking_type_info[$i]['id'];
?>
"
type="radio" name="tourists-during-type" value="<?php
示例5: booking_hours_table_view
function booking_hours_table_view($date, $result, $type, $action, $default_hours, $type_index, $create_type)
{
$vouchers_info_array = Dispatcher::booking_get_booking_info("slevomat", "");
$booking_info_array = Dispatcher::booking_get_booking_info("tourists", "");
$instructor_info_array = instructorController::getInstructors();
$directions_info = MainController::getDirInfo();
// MainController::printArray($result);
if ($type == "morning") {
?>
<td class="tours_wrapper_table_left_td">
<?php
}
if ($type == "evening") {
?>
<td class="tours_wrapper_table_right_td">
<?php
}
?>
<table class="<?php
echo $type;
?>
_tours">
<tbody>
<?php
$lang = "en";
for ($i = 0; $i < count($result); $i++) {
if ($result[$i]['display'] == 1) {
if ($result[$i]['reserve_type'] == "" || $result[$i]['reserve_type'] == "tourists") {
$slevomat_checked = "";
$tourists_checked = "checked";
} else {
$slevomat_checked = "checked";
$tourists_checked = "";
}
if ($result[$i]['create_type'] == 'default') {
$default_hours = true;
} else {
$default_hours = false;
}
?>
<tr id="row_<?php
echo $result[$i]['hourID'];
?>
">
<td>
<?php
if ($result[$i]['create_type'] == "Date" || $result[$i]['has_changes'] == 1) {
?>
<div class="day-contents-has-changes"></div>
<?php
}
?>
</td>
<?php
if ($create_type == "Date") {
?>
<td width="5px"></td>
<td class="hours_td"><?php
echo $result[$i]['free_places'];
?>
</td>
<?php
}
?>
<td width="5px"></td>
<td class="reserve-admin-plus">
<?php
if ($create_type == "Date" && $result[$i]['choosen_places'] < $result[$i]['max_places'] && Date($date) >= Date("Y-m-d")) {
?>
<button onclick="get_free_places_qty()" id="add-<?php
echo $type;
?>
-reserve-plus-<?php
echo $result[$i]['hourID'];
?>
"
class="create_reserve_plus morning_class popover-dismiss"
data-placement="bottom"
data-title="Create reservation"
data-date=""
data-weekday=""
data-action="create_reserve"
data-content="<?php
get_create_reserve_btn_view($result, $type, $i, $directions_info, $booking_info_array, $action, $tourists_checked, $slevomat_checked, $type_index);
?>
">
</button>
<?php
}
?>
</td>
<td width="5px"></td>
<td class="reserve-type-label">
<?php
if ($result[$i]['reserve_type'] == "" || $result[$i]['reserve_type'] == "tourists") {
?>
<span class="reserve-type-label-inner label label-warning"
data-toggle="tooltip"
data-placement="top"
title="Tourists">T</span>
//.........这里部分代码省略.........