本文整理汇总了PHP中get_planning_area_values函数的典型用法代码示例。如果您正苦于以下问题:PHP get_planning_area_values函数的具体用法?PHP get_planning_area_values怎么用?PHP get_planning_area_values使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_planning_area_values函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: htmlspecialchars
}
if ($_GET['pview'] == 1) {
$class_image = "print_image";
} else {
$class_image = "image";
}
$back = '';
if (isset($_SERVER['HTTP_REFERER'])) {
$back = htmlspecialchars($_SERVER['HTTP_REFERER']);
}
if ($settings->get("authentification_obli") == 0 && getUserName() == '') {
$type_session = "no_session";
} else {
$type_session = "with_session";
}
get_planning_area_values($area);
if ($area <= 0) {
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;
}
开发者ID:swirly,项目名称:GRR,代码行数:31,代码来源:day.php
示例2: html_entity_decode
if ($_GET["sumby"] == "3") {
echo html_entity_decode($vocab["summarize_by"]) . " " . html_entity_decode($vocab["sum_by_descrip"]) . " - {$day} {$month} {$year};";
} else {
if ($_GET["sumby"] == "5") {
echo html_entity_decode($vocab["summarize_by"]) . " " . html_entity_decode($vocab["type"]) . " - {$day} {$month} {$year};";
} else {
$fieldname = grr_sql_query1("SELECT fieldname FROM " . TABLE_PREFIX . "_overload WHERE id='" . $_GET["sumby"] . "'");
echo html_entity_decode($vocab["summarize_by"]) . " " . html_entity_decode($fieldname) . " - {$day} {$month} {$year};";
}
}
}
echo "\r\n";
}
for ($i = 0; $row = grr_sql_row($res, $i); $i++) {
// Récupération des données concernant l'affichage du planning du domaine
get_planning_area_values($row[11]);
if ($enable_periods == 'y') {
// pour le décompte des créneaux
accumulate_periods($row, $count1, $hours1, $report_start, $report_end, $room_hash1, $breve_description_hash1, "y");
$do_sum1 = 'y';
} else {
// pour le décompte des heures
accumulate($row, $count2, $hours2, $report_start, $report_end, $room_hash2, $breve_description_hash2, "y");
$do_sum2 = 'y';
}
// pour le décompte des réservations
accumulate($row, $count, $hours, $report_start, $report_end, $room_hash, $breve_description_hash, "y");
}
// Décompte des heures (cas ou $enable_periods != 'y')
if (isset($do_sum1)) {
echo "\r\n" . html_entity_decode($vocab["summary_header"]) . "\r\n";
开发者ID:nicolas-san,项目名称:GRRV4,代码行数:31,代码来源:report.php
示例3: verif_heure_debut_fin
function verif_heure_debut_fin($start_time, $end_time, $area)
{
global $enable_periods, $resolution, $morningstarts, $eveningends, $eveningends_minutes;
// Récupération des données concernant l'affichage du planning du domaine
get_planning_area_values($area);
// On ne traite pas le cas des plannings basés sur les intitulés prédéfinis
if ($enable_periods != "y") {
$day = date("d", $start_time);
$month = date("m", $start_time);
$year = date("Y", $start_time);
$startday = mktime($morningstarts, 0, 0, $month, $day, $year);
$day = date("d", $end_time);
$month = date("m", $end_time);
$year = date("Y", $end_time);
$endday = mktime($eveningends, $eveningends_minutes, $resolution, $month, $day, $year);
if ($start_time < $startday) {
return false;
} else {
if ($end_time > $endday) {
return false;
}
}
}
return true;
}
开发者ID:JeromeDevome,项目名称:GRR,代码行数:25,代码来源:functions.inc.php
示例4: showAccessDenied
exit;
}
if(authUserAccesArea(getUserName(), $area)==0)
{
showAccessDenied($day, $month, $year, $area,$back);
exit();
}
grr_sql_begin();
if (getSettingValue("automatic_mail") == 'yes') {
$_SESSION['session_message_error'] = send_mail($id,3,$dformat);
}
// On vérifie les dates
$room_id = grr_sql_query1("SELECT ".TABLE_PREFIX."_entry.room_id FROM ".TABLE_PREFIX."_entry, ".TABLE_PREFIX."_room WHERE ".TABLE_PREFIX."_entry.room_id = ".TABLE_PREFIX."_room.id AND ".TABLE_PREFIX."_entry.id='".$id."'");
$date_now = mktime();
get_planning_area_values($area); // Récupération des données concernant l'affichage du planning du domaine
if ((!(verif_booking_date(getUserName(), $id, $room_id, -1, $date_now, $enable_periods))) or
((verif_booking_date(getUserName(), $id, $room_id, -1, $date_now, $enable_periods)) and ($can_delete_or_create!="y"))
)
{
showAccessDenied($day, $month, $year, $area,$back);
exit();
}
$result = mrbsDelEntry(getUserName(), $id, $series, 1);
grr_sql_commit();
if ($result)
{
$_SESSION['displ_msg'] = 'yes';
Header("Location: ".$page.".php?day=$day&month=$month&year=$year&area=$area&room=".$info["room_id"]);
exit();
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:del_entry.php
示例5: minicals
/**
* mincals.inc.php
* Fonctions permettant d'afficher le mini calendrier
* Ce script fait partie de l'application GRR
* Dernière modification : $Date: 2010-01-06 10:21:20 $
* @author Laurent Delineau <[email protected]>
* @copyright Copyright 2003-2008 Laurent Delineau
* @link http://www.gnu.org/licenses/licenses.html
* @package root
* @version $Id: mincals.inc.php,v 1.7 2010-01-06 10:21:20 grr Exp $
* @filesource
*
* This file is part of GRR.
*
* GRR is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GRR is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GRR; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
function minicals($year, $month, $day, $area, $room, $dmy)
{
global $display_day, $vocab;
get_planning_area_values($area);
class Calendar
{
private $month;
private $year;
private $day;
private $h;
private $area;
private $room;
private $dmy;
private $week;
private $mois_precedent;
private $mois_suivant;
/**
* @param string $day
* @param string $month
* @param string $year
* @param integer $h
* @param integer $mois_precedent
* @param integer $mois_suivant
*/
public function Calendar($day, $month, $year, $h, $area, $room, $dmy, $mois_precedent, $mois_suivant)
{
$this->day = $day;
$this->month = $month;
$this->year = $year;
$this->h = $h;
$this->area = $area;
$this->room = $room;
$this->dmy = $dmy;
$this->mois_precedent = $mois_precedent;
$this->mois_suivant = $mois_suivant;
}
/**
* @param integer $day
* @param double $month
* @param string $year
*/
private function getDateLink($day, $month, $year)
{
global $vocab;
if ($this->dmy == 'day') {
if (isset($this->room)) {
return "<a onclick=\"charger();\" class=\"calendar\" title=\"" . htmlspecialchars(get_vocab("see_all_the_rooms_for_the_day")) . "\" href=\"" . $this->dmy . ".php?year={$year}&month={$month}&day={$day}&room=" . $this->room . "\"";
}
return "<a onclick=\"charger();\" class=\"calendar\" title=\"" . htmlspecialchars(get_vocab("see_all_the_rooms_for_the_day")) . "\" href=\"" . $this->dmy . ".php?year={$year}&month={$month}&day={$day}&area=" . $this->area . "\"";
}
if ($this->dmy != 'day') {
if (isset($this->room)) {
return "<a onclick=\"charger();\" class=\"calendar\" title=\"" . htmlspecialchars(get_vocab("see_all_the_rooms_for_the_day")) . "\" href=\"day.php?year={$year}&month={$month}&day={$day}&room=" . $this->room . "\"";
}
return "<a onclick=\"charger();\" class=\"calendar\" title=\"" . htmlspecialchars(get_vocab("see_all_the_rooms_for_the_day")) . "\" href=\"day.php?year={$year}&month={$month}&day={$day}&area=" . $this->area . "\"";
}
}
/**
* @param integer $m
* @param integer $y
* @param string $month
* @param string $year
* @param string $text
* @param string $glyph
*/
private function createlink($m, $y, $month, $year, $dmy, $room, $area, $text, $glyph)
{
global $vocab, $type_month_all;
$tmp = mktime(0, 0, 0, $month + $m, 1, $year + $y);
$lastmonth = date("m", $tmp);
$lastyear = date("Y", $tmp);
if ($dmy != 'day' && $dmy != 'week_all' && $dmy != 'month_all' && $dmy != 'month_all2') {
//.........这里部分代码省略.........
开发者ID:Sirlefou1,项目名称:GRR2,代码行数:101,代码来源:mincals.inc.php
示例6: minicals
/**
* $Log: mincals.inc.php,v $
* Revision 1.7 2010-01-06 10:21:20 grr
* *** empty log message ***
*
* Revision 1.6 2008-11-16 22:00:59 grr
* *** empty log message ***
*
*
*/
function minicals($year, $month, $day, $area, $room, $dmy)
{
global $display_day, $vocab;
// Récupération des données concernant l'affichage du planning du domaine
get_planning_area_values($area);
// PHP Calendar Class
// Copyright David Wilkinson 2000. All Rights reserved.
// This software may be used, modified and distributed freely
// providing this copyright notice remains intact at the head
// of the file.
// This software is freeware. The author accepts no liability for
// any loss or damages whatsoever incurred directly or indirectly
// from the use of this script.
// URL: http://www.cascade.org.uk/software/php/calendar/
// Email: [email protected]
#constructeur de la classe calendar
class Calendar
{
var $month;
var $year;
var $day;
var $h;
var $area;
var $room;
var $dmy;
var $week;
var $mois_precedent;
var $mois_suivant;
function Calendar($day, $month, $year, $h, $area, $room, $dmy, $mois_precedent, $mois_suivant)
{
$this->day = $day;
$this->month = $month;
$this->year = $year;
$this->h = $h;
$this->area = $area;
$this->room = $room;
$this->dmy = $dmy;
$this->mois_precedent = $mois_precedent;
$this->mois_suivant = $mois_suivant;
}
function getCalendarLink($month, $year)
{
return "";
}
#Liens vers une une date donnée.
function getDateLink($day, $month, $year)
{
global $vocab;
if ($this->dmy=='day') return "<a title=\"".grr_htmlSpecialChars(get_vocab("see_all_the_rooms_for_the_day"))."\" href=\"".$this->dmy.".php?year=$year&month=$month&day=$day&area=".$this->area."\"";
if ($this->dmy!='day') return "<a title=\"".grr_htmlSpecialChars(get_vocab("see_all_the_rooms_for_the_day"))."\" href=\"day.php?year=$year&month=$month&day=$day&area=".$this->area."\"";
}
function getHTML()
{
global $weekstarts, $vocab, $type_month_all, $display_day, $nb_display_day;
// Calcul de la date courante
$date_today = mktime(12, 0, 0, $this->month, $this->day, $this->year);
// Calcul du numéro de semaine courante
$week_today = numero_semaine($date_today);
if (!isset($weekstarts)) $weekstarts = 0;
$s = "";
$daysInMonth = getDaysInMonth($this->month, $this->year);
// Calcul de la date au 1er du mois de la date courante
$date = mktime(12, 0, 0, $this->month, 1, $this->year);
$first = (strftime("%w",$date) + 7 - $weekstarts) % 7;
$monthName = utf8_strftime("%B",$date);
$prevMonth = $this->getCalendarLink($this->month - 1 > 0 ? $this->month - 1 : 12, $this->month - 1 > 0 ? $this->year : $this->year - 1);
$nextMonth = $this->getCalendarLink($this->month + 1 <= 12 ? $this->month + 1 : 1, $this->month + 1 <= 12 ? $this->year : $this->year + 1);
$s .= "<table border = \"0\" class=\"calendar\">\n";
$s .= "<tr><td></td>\n";
if (($this->h) and (($this->dmy=='month') or ($this->dmy=='month_all') or ($this->dmy=='month_all2') )) $bg_lign = "week"; else $bg_lign = 'calendarHeader';
$s .= "<td align=\"center\" valign=\"top\" class=\"$bg_lign\" colspan=\"".$nb_display_day."\">";
#Permet de récupérer le numéro de la 1ere semaine affichée par le mini calendrier.
// $week = number_format(strftime("%W",$date),0);
$week = numero_semaine($date);
$weekd = $week;
// on ajoute un lien vers le mois précédent
if ($this->mois_precedent == 1) {
$tmp = mktime(0, 0, 0, ($this->month)-1, 1, $this->year);
$lastmonth = date("m",$tmp);
$lastyear= date("Y",$tmp);
if (($this->dmy!='day') and ($this->dmy!='week_all') and ($this->dmy!='month_all') and ($this->dmy!='month_all2'))
$s .= "<a title=\"".grr_htmlSpecialChars(get_vocab("see_month_for_this_room"))."\" href=\"month.php?year=$lastyear&month=$lastmonth&day=1&area=$this->area&room=$this->room\"><<</a> ";
else
//.........这里部分代码省略.........
开发者ID:rhertzog,项目名称:lcs,代码行数:101,代码来源:mincals.inc.php
示例7: minicals
function minicals($year, $month, $day, $area, $room, $dmy)
{
global $display_day, $vocab;
get_planning_area_values($area);
class Calendar
{
private $month;
private $year;
private $day;
private $h;
private $area;
private $room;
private $dmy;
private $week;
private $mois_precedent;
private $mois_suivant;
/**
* @param string $day
* @param string $month
* @param string $year
* @param int $h
* @param int $mois_precedent
* @param int $mois_suivant
*/
public function Calendar($day, $month, $year, $h, $area, $room, $dmy, $mois_precedent, $mois_suivant)
{
$this->day = $day;
$this->month = $month;
$this->year = $year;
$this->h = $h;
$this->area = $area;
$this->room = $room;
$this->dmy = $dmy;
$this->mois_precedent = $mois_precedent;
$this->mois_suivant = $mois_suivant;
}
/**
* @param int $day
* @param float $month
* @param string $year
*/
private function getDateLink($day, $month, $year)
{
global $vocab;
$tplArray['vocab']['see_all_the_rooms_for_the_day'] = htmlspecialchars(get_vocab('see_all_the_rooms_for_the_day'));
if ($this->dmy == 'day') {
if (isset($this->room)) {
//return '<a onclick="charger();" class="calendar" title="'.htmlspecialchars(get_vocab('see_all_the_rooms_for_the_day')).'" href="'.$this->dmy.".php?year=$year&month=$month&day=$day&room=".$this->room.'"';
$tplArray['dateLink'] = $this->dmy . '.php?year=' . $year . '&month=' . $month . '&day=' . $day . '&room=' . $this->room;
return $tplArray['dateLink'];
}
$tplArray['dateLink'] = $this->dmy . '.php?year=' . $year . '&month=' . $month . '&day=' . $day . '&area=' . $this->area;
//return '<a onclick="charger();" class="calendar" title="'.htmlspecialchars(get_vocab('see_all_the_rooms_for_the_day')).'" href="'.$this->dmy.".php?year=$year&month=$month&day=$day&area=".$this->area.'"';
return $tplArray['dateLink'];
}
if ($this->dmy != 'day') {
if (isset($this->room)) {
//return '<a onclick="charger();" class="calendar" title="'.htmlspecialchars(get_vocab('see_all_the_rooms_for_the_day'))."\" href=\"day.php?year=$year&month=$month&day=$day&room=".$this->room.'"';
$tplArray['dateLink'] = 'day.php?year=' . $year . '&month=' . $month . '&day=' . $day . '&room=' . $this->room;
return $tplArray['dateLink'];
}
//return '<a onclick="charger();" class="calendar" title="'.htmlspecialchars(get_vocab('see_all_the_rooms_for_the_day'))."\" href=\"day.php?year=$year&month=$month&day=$day&area=".$this->area.'"';
$tplArray['dateLink'] = 'day.php?year=' . $year . '&month=' . $month . '&day=' . $day . '&area=' . $this->area;
return $tplArray['dateLink'];
}
}
/**
* @param int $m
* @param int $y
* @param string $month
* @param string $year
* @param string $text
* @param string $glyph
*/
private function createlink($m, $y, $month, $year, $dmy, $room, $area, $text, $glyph)
{
global $vocab, $type_month_all;
$tplArray['vocab'][$text] = htmlspecialchars(get_vocab($text));
$tmp = mktime(0, 0, 0, $month + $m, 1, $year + $y);
$lastmonth = date('m', $tmp);
$lastyear = date('Y', $tmp);
if ($dmy != 'day' && $dmy != 'week_all' && $dmy != 'month_all' && $dmy != 'month_all2') {
$tplArray['link'] = 'month_all2.php?year=' . $lastyear . '&month=' . $lastmonth . '&day=1&area=' . $this->area . '&room=' . $room;
//return '<button type="button" title="'.htmlspecialchars(get_vocab($text))."\" class=\"btn btn-default btn-xs\" onclick=\"charger();javascript: location.href='month.php?year=$lastyear&month=$lastmonth&day=1&area=$this->area&room=$room';\"><span class=\"glyphicon glyphicon-$glyph\"></span></button>\n";
return $tplArray['link'];
} else {
$tplArray['link'] = $type_month_all . '.php?year=' . $lastyear . '&month=' . $lastmonth . '&day=1&area=' . $area;
//return '<button type="button" title="'.htmlspecialchars(get_vocab($text))."\" class=\"btn btn-default btn-xs\" onclick=\"charger();javascript: location.href='".$type_month_all.".php?year=$lastyear&month=$lastmonth&day=1&area=$area';\"><span class=\"glyphicon glyphicon-$glyph\"></span></button>\n";
return $tplArray['link'];
}
}
private function getNumber($weekstarts, $d, $daysInMonth)
{
global $display_day;
$tplArray = [];
$s = '';
for ($i = 0; $i < 7; $i++) {
$j = ($i + 7 + $weekstarts) % 7;
if ($display_day[$j] == '1') {
if ($this->dmy == 'day' && $d == $this->day && $this->h) {
//.........这里部分代码省略.........
开发者ID:nicolas-san,项目名称:GRRV4,代码行数:101,代码来源:mincals.inc.php
注:本文中的get_planning_area_values函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论