本文整理汇总了PHP中MainController::getDirInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP MainController::getDirInfo方法的具体用法?PHP MainController::getDirInfo怎么用?PHP MainController::getDirInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MainController
的用法示例。
在下文中一共展示了MainController::getDirInfo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: json_encode
HoursController::getHours("", "Default", "set_timetable");
}
if ($action == 'removeStartPin') {
MainController::removeStartPin();
}
if ($action == 'checkout') {
MainController::checkout();
}
if ($action == "main_add_direction") {
MainController::main_add_direction();
}
if ($action == "main_edit_direction") {
MainController::main_edit_direction();
}
if ($action == "getDirInfo") {
echo json_encode(MainController::getDirInfo());
}
if ($action == 'main_editToursPopup_text') {
MainController::editPopupInfo($language, "tours");
}
if ($action == 'editStartPin') {
MainController::editStartPin();
}
if ($action == 'getStartPoints') {
echo json_encode(MainController::getStartPoints());
}
if ($action == 'booking_get_weekday_hours') {
HoursController::getHours("", "Weekday", "set_timetable");
}
if ($action == 'get_date_hours') {
HoursController::getHours("", "Date", "set_timetable");
示例2:
} else {
$version = $_COOKIE['admin_version'];
}
$main_array = Dispatcher::main_getMain_map($language);
$map_center = $main_array['map_center'];
$main_info = Dispatcher::moduls_getInfo('main');
$user = Dispatcher::admin_getUser();
$popup_text = Dispatcher::getPopupInfo($language, "tours");
$about_seglfie_popup_text = Dispatcher::getPopupInfo($language, "about");
$questions_popup_text = Dispatcher::getPopupInfo($language, "questions");
$contacts_popup_text = Dispatcher::getPopupInfo($language, "contacts");
$instagram_popup_text = Dispatcher::getPopupInfo($language, "instagram");
$terms_popup_text = Dispatcher::getPopupInfo($language, "terms");
$company_popup_text = Dispatcher::getPopupInfo($language, "company");
$_POST['language'] = $language;
$directions_info = MainController::getDirInfo();
require '../menu_items.php';
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Sysadmin3000 - <?php
echo $menu_item_1;
?>
</title>
<meta name="description" content="">
<?php
include_once '../includes/index.php';
示例3: 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>
//.........这里部分代码省略.........