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


PHP Calendar::generateCalendar方法代码示例

本文整理汇总了PHP中Calendar::generateCalendar方法的典型用法代码示例。如果您正苦于以下问题:PHP Calendar::generateCalendar方法的具体用法?PHP Calendar::generateCalendar怎么用?PHP Calendar::generateCalendar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Calendar的用法示例。


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

示例1: index

 /**
  * @access public
  * @global type $registry
  * @return render Calendar with Appointments
  */
 public function index()
 {
     global $registry;
     $boardroom_id = isset($_GET['boardroom_id']) ? $_GET['boardroom_id'] : 1;
     if (isset($_GET['year']) && isset($_GET['month'])) {
         $calendar_date['year'] = $_GET['year'];
         $calendar_date['month'] = $_GET['month'];
     } else {
         $calendar_date['year'] = date('Y');
         $calendar_date['month'] = date('m');
     }
     $date = new Calendar($calendar_date['year'], $calendar_date['month'], $boardroom_id);
     $boardroom_object = new Boardroom();
     $this->registry['template']->data('title', 'Schedule for ' . date('F', mktime(0, 0, 0, $calendar_date['month'])) . ' ' . $calendar_date['year']);
     $this->registry['template']->render('header');
     $boardrooms = $boardroom_object->listBoardrooms();
     $month_calendar = $date->generateCalendar($date->year, $date->month);
     $this->registry['template']->data('boardrooms', $boardrooms);
     $this->registry['template']->data('boardroom_id', $boardroom_id);
     $this->registry['template']->data('month_calendar', $month_calendar);
     $this->registry['template']->render('schedule/schedule');
     $this->registry['template']->render('footer');
 }
开发者ID:svetel,项目名称:BoardRoom,代码行数:28,代码来源:schedule.php

示例2: renderSettingsInOptions

        public function renderSettingsInOptions()
        {
            $html = '<tr class="day-subsettings">
				<td class="calendar-block" colspan="2">';
            $html .= Calendar::generateCalendar(date('Y'), date('m'), FALSE, FALSE, $_POST['calendarid']);
            $html .= '</td>
				<td class="appointment-block">';
            $html .= '<p id="select-date">Select Date</p>
				</td>';
            $html .= '</tr>';
            echo $html;
            die;
        }
开发者ID:svetel,项目名称:wp-calendar-plugin,代码行数:13,代码来源:Book+An+Appointment.php

示例3: foreach

		</ul>
		<div class="tab-content">
		  <?php 
foreach ($calendars as $key => $calendar) {
    ?>
  		  <div id="<?php 
    echo $calendar->calendar_id;
    ?>
" class="tab-pane fade in <?php 
    if ($key == 0) {
        echo "active";
    }
    ?>
">
			  <?php 
    echo Calendar::generateCalendar(date('Y'), date('m'), FALSE, FALSE, $calendar->calendar_id);
    ?>
  		  </div>  
		  <?php 
}
?>
		</div>
		<div class="right-side">
		  <div class="another-time-sign button">
			<?php 
echo isset($settings->text_another_date) ? html_entity_decode(stripslashes($settings->text_another_date)) : 'Register to another date';
?>
		  </div>
		</div>
		<div class="clear"></div>
	  </div>
开发者ID:svetel,项目名称:wp-calendar-plugin,代码行数:31,代码来源:calendar.php


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