当前位置: 首页>>代码示例>>PHP>>正文


PHP showNoBookings函数代码示例

本文整理汇总了PHP中showNoBookings函数的典型用法代码示例。如果您正苦于以下问题:PHP showNoBookings函数的具体用法?PHP showNoBookings怎么用?PHP showNoBookings使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了showNoBookings函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: print_header

    print_header($day, $month, $year, $type_session);
    echo '<h1>' . get_vocab("noareas") . '</h1>';
    echo '<a href="./admin/admin_accueil.php">' . get_vocab("admin") . '</a>' . PHP_EOL . '</body>' . PHP_EOL . '</html>';
    exit;
}
print_header($day, $month, $year, $type_session);
if (authGetUserLevel(getUserName(), -1) < 1 && $settings->get("authentification_obli") == 1) {
    showAccessDenied($back);
    exit;
}
if (authUserAccesArea(getUserName(), $area) == 0) {
    showAccessDenied($back);
    exit;
}
if (check_begin_end_bookings($day, $month, $year)) {
    showNoBookings($day, $month, $year, $back);
    exit;
}
if ($settings->get("verif_reservation_auto") == 0) {
    verify_confirm_reservation();
    verify_retard_reservation();
}
$ind = 1;
$test = 0;
$i = 0;
while ($test == 0 && $ind <= 7) {
    $i = mktime(0, 0, 0, $month, $day - $ind, $year);
    $test = $display_day[date("w", $i)];
    $ind++;
}
$yy = date("Y", $i);
开发者ID:swirly,项目名称:GRR,代码行数:31,代码来源:day.php

示例2: date

        }
    }
    $to_month = date('m', $date_);
    $to_year = date('Y', $date_);
}
if (Settings::get("authentification_obli") == 0 && getUserName() == '') {
    $type_session = "no_session";
} else {
    $type_session = "with_session";
}
$back = '';
if (isset($_SERVER['HTTP_REFERER'])) {
    $back = htmlspecialchars($_SERVER['HTTP_REFERER']);
}
if (check_begin_end_bookings($day, $from_month, $from_year)) {
    showNoBookings($day, $from_month, $from_year, $back);
    exit;
}
if (authGetUserLevel(getUserName(), -1) < 1 && Settings::get("authentification_obli") == 1 || authUserAccesArea(getUserName(), $area) == 0) {
    showAccessDenied($back);
    exit;
}
// On vérifie une fois par jour si le délai de confirmation des réservations est dépassé
// Si oui, les réservations concernées sont supprimées et un mail automatique est envoyé.
// On vérifie une fois par jour que les ressources ont été rendue en fin de réservation
// Si non, une notification email est envoyée
if (Settings::get("verif_reservation_auto") == 0) {
    verify_confirm_reservation();
    verify_retard_reservation();
}
//print the page header
开发者ID:Birssan,项目名称:GRR,代码行数:31,代码来源:year.php

示例3: Definition_ressource_domaine_site

}

if ((getSettingValue("authentification_obli")==0) and (getUserName()=='')) {
    $type_session = "no_session";
} else {
    $type_session = "with_session";
}
$back = '';
if (isset($_SERVER['HTTP_REFERER'])) $back = grr_htmlSpecialChars($_SERVER['HTTP_REFERER']);

// Construction des identifiants de la ressource $room, du domaine $area, du site $id_site
Definition_ressource_domaine_site();

if (check_begin_end_bookings($day, $month, $year))
{
    showNoBookings($day, $month, $year, $area,$back,$type_session);
    exit();
}

if((authGetUserLevel(getUserName(),-1) < 1) and (getSettingValue("authentification_obli")==1))
{
    showAccessDenied($day, $month, $year, $area,$back);
    exit();
}
if(authUserAccesArea(getUserName(), $area)==0)
{
    showAccessDenied($day, $month, $year, $area,$back);
    exit();
}

// Fonction de comparaison
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:week_all.php

示例4: date

    $day = date('d');
    $month = date('m');
    $year = date('Y');
}
get_planning_area_values($area);
if (authGetUserLevel(getUserName(), -1) < 1) {
    showAccessDenied($back);
    exit;
}
if (check_begin_end_bookings($day, $month, $year)) {
    if (Settings::get('authentification_obli') == 0 && getUserName() == '') {
        $type_session = 'no_session';
    } else {
        $type_session = 'with_session';
    }
    showNoBookings($day, $month, $year, $back . '&amp;Err=yes');
    exit;
}
if ($type_affichage_reser == 0) {
    $period = isset($_GET['period']) ? $_GET['period'] : null;
    if (isset($period)) {
        settype($period, 'integer');
    }
    $dur_units = isset($_GET['dur_units']) ? $_GET['dur_units'] : null;
    $all_day = isset($_GET['all_day']) ? $_GET['all_day'] : null;
    if ($enable_periods == 'y') {
        $resolution = 60;
        $hour = 12;
        $minute = $period;
        $max_periods = count($periods_name);
        if ($dur_units == 'periods' && $minute + $duration > $max_periods) {
开发者ID:nicolas-san,项目名称:GRRV4,代码行数:31,代码来源:edit_entry_handler.php

示例5: get_planning_area_values

}

// Récupération des données concernant l'affichage du planning du domaine
get_planning_area_values($area);

if(authGetUserLevel(getUserName(),-1) < 1)
{
    showAccessDenied($day, $month, $year, '',$back);
    exit();
}

if (check_begin_end_bookings($day, $month, $year))
{
    if ((getSettingValue("authentification_obli")==0) and (getUserName()=='')) $type_session = "no_session";
    else $type_session = "with_session";
    showNoBookings($day, $month, $year, '', $back."&amp;Err=yes", $type_session);
    exit();
}

if ($type_affichage_reser == 0) {
    // La fin de réservation est calculée à partir d'une durée
    $period = isset($_GET["period"]) ? $_GET["period"] : NULL;
    if (isset($period)) settype($period,"integer");
    $dur_units = isset($_GET["dur_units"]) ? $_GET["dur_units"] : NULL;
    $all_day = isset($_GET["all_day"]) ? $_GET["all_day"] : NULL;

    if($enable_periods=='y') {
        $resolution = 60;
        $hour = 12;
        $minute = $period;
        $max_periods = count($periods_name);
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:edit_entry_handler.php

示例6: date

    $day = date("d");
    $month = date("m");
    $year = date("Y");
}
get_planning_area_values($area);
if (authGetUserLevel(getUserName(), -1) < 1) {
    showAccessDenied($back);
    exit;
}
if (check_begin_end_bookings($day, $month, $year)) {
    if (Settings::get("authentification_obli") == 0 && getUserName() == '') {
        $type_session = "no_session";
    } else {
        $type_session = "with_session";
    }
    showNoBookings($day, $month, $year, $back . "&amp;Err=yes");
    exit;
}
if ($type_affichage_reser == 0) {
    $period = isset($_GET["period"]) ? $_GET["period"] : NULL;
    if (isset($period)) {
        settype($period, "integer");
    }
    $dur_units = isset($_GET["dur_units"]) ? $_GET["dur_units"] : NULL;
    $all_day = isset($_GET["all_day"]) ? $_GET["all_day"] : NULL;
    if ($enable_periods == 'y') {
        $resolution = 60;
        $hour = 12;
        $minute = $period;
        $max_periods = count($periods_name);
        if ($dur_units == "periods" && $minute + $duration > $max_periods) {
开发者ID:Birssan,项目名称:GRR,代码行数:31,代码来源:edit_entry_handler.php


注:本文中的showNoBookings函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。