本文整理汇总了PHP中Calendar::share方法的典型用法代码示例。如果您正苦于以下问题:PHP Calendar::share方法的具体用法?PHP Calendar::share怎么用?PHP Calendar::share使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Calendar
的用法示例。
在下文中一共展示了Calendar::share方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
}
echo '<th' . $style[$i] . '><a href="groupday.php' . $calendar->parameter(date('Y', $timestamp), date('n', $timestamp), $day) . '">' . $month . $day . ' ' . $week[$i] . '</a></th>';
$timestamp = strtotime('+1 day', $timestamp);
}
echo '</tr>';
foreach ($hash['user'] as $key => $value) {
$data[$key] = $calendar->prepare($data[$key], date('Y', $begin), date('n', $begin), date('j', $begin), date('Y', $end), date('n', $end), date('j', $end));
echo '<tr><td><a href="index.php' . $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('member' => $key)) . '">' . $value . '</a> </td>';
$timestamp = $begin;
for ($i = 0; $i <= 6; $i++) {
$day = date('j', $timestamp);
echo '<td' . $calendar->style(date('Y', $timestamp), date('n', $timestamp), $day, $i) . '>';
if (is_array($data[$key][$day]) && count($data[$key][$day]) > 0) {
foreach ($data[$key][$day] as $row) {
$parameter = $calendar->parameter(date('Y', $timestamp), date('n', $timestamp), $day, array('member' => $key));
echo sprintf('<a href="groupday.php%s"%s>%s%s</a><br />', $parameter, $calendar->share($row), $row['schedule_time'], $row['schedule_title']);
}
}
echo ' </td>';
$timestamp = strtotime('+1 day', $timestamp);
}
echo '</tr>';
}
echo '</table>';
} else {
echo '<div>スケジュールはありません。</div>';
}
?>
<div class="schedulenavigation"><a href="groupweek.php<?php
echo $calendar->parameter(date('Y', $previous), date('n', $previous), date('j', $previous));
?>
示例2: date
for ($i = 0; $i <= 5; $i++) {
echo '<tr>';
for ($j = 0; $j <= 6; $j++) {
$day = $i * 7 + $j - date('w', $timestamp) + 1;
if ($day < 1 || $day > $lastday) {
$schedule = ' ';
} else {
$schedule = sprintf('<a href="facilityday.php%s">%s</a>', $calendar->parameter($_GET['year'], $_GET['month'], $day), $day);
if (is_array($data[$day]) && count($data[$day]) > 0) {
foreach ($data[$day] as $row) {
if ($row['schedule_allday'] == 1) {
$row['schedule_time'] = '終日 ';
}
if ($view->permitted($row, 'public')) {
$parameter = $calendar->parameter($_GET['year'], $_GET['month'], $day);
$schedule .= sprintf('<br /><a href="facilityday.php%s"%s>%s%s</a>', $parameter, $calendar->share($row), $row['schedule_time'], $row['schedule_title']);
} else {
$schedule .= '<br />' . $row['schedule_time'] . $row['schedule_name'];
}
}
}
}
echo '<td' . $calendar->style($_GET['year'], $_GET['month'], $day, $j, $lastday) . '>' . $schedule . '</td>';
}
echo '</tr>';
if ($day >= $lastday) {
break;
}
}
?>
</table>
示例3: date
if ($i <= 0 || $day == 1) {
$month = date('n/', $timestamp);
}
echo '<th' . $style[$i] . '><a href="schedule/view.php' . $calendar->parameter(date('Y', $timestamp), date('n', $timestamp), $day) . '">' . $month . $day . ' ' . $week[$i] . '</a></th>';
$timestamp = strtotime('+1 day', $timestamp);
}
echo '</tr><tr>';
$data = $calendar->prepare($hash['schedule'], date('Y', $hash['begin']), date('n', $hash['begin']), date('j', $hash['begin']), date('Y', $hash['end']), date('n', $hash['end']), date('j', $hash['end']));
$timestamp = $hash['begin'];
for ($i = 0; $i <= 6; $i++) {
$day = date('j', $timestamp);
echo '<td' . $calendar->style(date('Y', $timestamp), date('n', $timestamp), $day, $i) . '>';
if (is_array($data[$day]) && count($data[$day]) > 0) {
foreach ($data[$day] as $row) {
$parameter = $calendar->parameter(date('Y', $timestamp), date('n', $timestamp), $day, array('id' => $row['id']));
echo sprintf('<a href="schedule/view.php%s"%s>%s%s </a><br />', $parameter, $calendar->share($row), $row['schedule_time'], $row['schedule_title']);
}
}
echo ' </td>';
$timestamp = strtotime('+1 day', $timestamp);
}
echo '</tr></table>';
?>
<table class="wrapper" cellspacing="0"><tr><td class="topcontentfolder">
<form method="post" class="toplist" name="checkedform" action="">
<div class="topcaption">
<h2><a href="todo/">ToDo管理</a></h2>
<ul><li><span class="operator" onclick="App.move('complete')">完了</span></li><li><a href="todo/add.php">追加</a></li></ul>
<div class="clearer"></div>
</div>
<table class="wrapper" cellspacing="0">