Esempio n. 1
0
        }
        echo '<th' . $style[$i] . '><a href="groupday.php' . $calendar->parameter(date('Y', $timestamp), date('n', $timestamp), $day) . '">' . $month . $day . '&nbsp;' . $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>&nbsp;</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 '&nbsp;</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));
?>
Esempio n. 2
0
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 = '&nbsp;';
        } 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'] = '終日&nbsp;';
                    }
                    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>
Esempio n. 3
0
    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 . '&nbsp;' . $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&nbsp;</a><br />', $parameter, $calendar->share($row), $row['schedule_time'], $row['schedule_title']);
        }
    }
    echo '&nbsp;</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">