• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP show_colour_key函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: get_vocab

                                    // si la réservation est à modérer, on le signale
                                    if (isset($d[$cday][$cmonth][$cyear]["moderation"][$i]) && $d[$cday][$cmonth][$cyear]["moderation"][$i] == 1) {
                                        echo " <img src=\"img_grr/flag_moderation.png\" alt=\"" . get_vocab("en_attente_moderation") . "\" title=\"" . get_vocab("en_attente_moderation") . "\" class=\"image\" /> \n";
                                    }
                                    if ($acces_fiche_reservation) {
                                        echo "<a title=\"" . htmlspecialchars($d[$cday][$cmonth][$cyear]["data"][$i]) . "\" href=\"view_entry.php?id=" . $d[$cday][$cmonth][$cyear]["id"][$i] . "&amp;page=month\">" . $d[$cday][$cmonth][$cyear]["who1"][$i][0] . "</a>";
                                    } else {
                                        echo $d[$cday][$cmonth][$cyear]["who1"][$i][0];
                                    }
                                    echo "\n</td></tr></table>\n";
                                }
                            }
                        }
                    }
                    echo "</td>\n";
                }
                // fin condition "on n'affiche pas tous les jours de la semaine"
                //    if (++$weekcol == 7) $weekcol = 0;
            }
            echo "</tr>\n";
        }
    }
    echo "</table>\n";
    $month_indice = mktime(0, 0, 0, $month_num + 1, 2, $year_num);
    // Fin de la boucle sur les mois
}
show_colour_key($area);
// Affichage d'un message pop-up
affiche_pop_up(get_vocab("message_records"), "user");
include "include/trailer.inc.php";
include "footer.php";
开发者ID:Birssan,项目名称:GRR,代码行数:31,代码来源:year.php


示例2: elseif

            # $c is the colour of the cell that the browser sees. White normally,
            # red if were hightlighting that line and a nice attractive green if the room is booked.
            # We tell if its booked by $id having something in it
            if (isset($id)) {
                $c = $color;
            } elseif (isset($timetohighlight) && $t == $timetohighlight) {
                $c = "red";
            } else {
                $c = "white";
            }
            tdcell($c);
            # If the room isnt booked then allow it to be booked
            if (!isset($id)) {
                $hour = date("H", $t);
                $minute = date("i", $t);
                echo "<center><a href=\"edit_entry.php?room={$room}&hour={$hour}&minute={$minute}&year={$year}&month={$month}&day={$day}\"><img src=new.gif width=10 height=10 border=0></a></center>";
            } elseif ($descr != "") {
                #if it is booked then show
                echo " <a href=\"view_entry.php?id={$id}&day={$day}&month={$month}&year={$year}\">{$descr}</a>";
            } else {
                echo "&nbsp;\"&nbsp;";
            }
            echo "</td>\n";
        }
        echo "</tr>\n";
        reset($rooms);
    }
    echo "</table>";
    show_colour_key();
}
include "trailer.inc";
开发者ID:verdurin,项目名称:mrbs-mcr,代码行数:31,代码来源:day.php


示例3: basename

    $tplArrayMenuGauche = [];
    $tplArrayMenuGauche['pview'] = false;
    $path = $_SERVER['PHP_SELF'];
    $file = basename($path);
    if ($file == 'month_all2.php' or Settings::get('menu_gauche') == 0) {
        $tplArrayMenuGauche['menuGaucheMonthAll2'] = true;
    } else {
        $tplArrayMenuGauche['menuGaucheMonthAll2'] = false;
    }
    $pageActuel = str_replace('.php', '', basename($_SERVER['PHP_SELF']));
    /* todo passer minicals à twig */
    /**
     * Liste des param de minical
     * $year, $month, $day, $area, $room, $dmy
     */
    $tplArrayMenuGauche['returnCalHtml'] = minicals($year, $month, $day, $area, $room, $pageActuel);
    if (isset($_SESSION['default_list_type']) || Settings::get('authentification_obli') == 1) {
        $area_list_format = $_SESSION['default_list_type'];
    } else {
        $area_list_format = Settings::get('area_list_format');
    }
    /* je récupére an tableau $tplArray par list ou false si il n'y a rien à afficher */
    $tplArrayMenuGauche['siteSelection'] = make_site_selection_fields('week_all.php', $id_site, $year, $month, $day, getUserName(), $area_list_format);
    $tplArrayMenuGauche['areaSelection'] = make_area_selection_fields('week_all.php', $id_site, $area, $year, $month, $day, getUserName(), $area_list_format);
    $tplArrayMenuGauche['roomSelection'] = make_room_selection_fields('week', $area, $room, $year, $month, $day, $area_list_format);
    if (Settings::get('legend') == '0') {
        $tplArrayMenuGauche['showColour'] = show_colour_key($area);
    }
} else {
    $tplArrayMenuGauche = false;
}
开发者ID:nicolas-san,项目名称:GRRV4,代码行数:31,代码来源:menu_gauche.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP show_confirmation函数代码示例发布时间:2022-05-23
下一篇:
PHP show_categories_menu函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap