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


PHP Calendar::parameter方法代码示例

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


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

示例1: array

$data = $data[$_GET['day']];
$week = array('日', '月', '火', '水', '木', '金', '土');
$previous = mktime(0, 0, 0, $_GET['month'], $_GET['day'] - 1, $_GET['year']);
$next = mktime(0, 0, 0, $_GET['month'], $_GET['day'] + 1, $_GET['year']);
if (strlen($hash['owner']['realname']) > 0 && (isset($_GET['member']) || $hash['owner']['userid'] != $_SESSION['userid'])) {
    $caption = ' - ' . $hash['owner']['realname'];
}
?>
<div class="contentcontrol">
	<h1>スケジュール<?php 
echo $caption;
?>
</h1>
	<table cellspacing="0"><tr>
		<td><a href="index.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day']);
?>
">カレンダー</a></td>
		<td><a href="groupweek.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day']);
?>
">グループ</a></td>
		<td><a href="facilityweek.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day']);
?>
">施設</a></td>
	</tr></table>
	<div class="clearer"></div>
</div>
<table class="wrapper" cellspacing="0"><tr><td class="scheduleheader">
	<ul class="operate">
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:view.php

示例2: date

$weekday = date('w', mktime(0, 0, 0, $_GET['month'], $_GET['day'], $_GET['year']));
$begin = mktime(0, 0, 0, $_GET['month'], $_GET['day'] - $weekday, $_GET['year']);
$end = mktime(0, 0, 0, $_GET['month'], $_GET['day'] + 6 - $weekday, $_GET['year']);
$previous = mktime(0, 0, 0, $_GET['month'], $_GET['day'] - 7, $_GET['year']);
$next = mktime(0, 0, 0, $_GET['month'], $_GET['day'] + 7, $_GET['year']);
$caption = date('Y', $begin) . '年' . date('n', $begin) . '月' . date('j', $begin) . '日&nbsp;-&nbsp;';
$caption .= date('Y', $end) . '年' . date('n', $end) . '月' . date('j', $end) . '日';
?>
<div class="contentcontrol">
	<h1>グループスケジュール - <?php 
echo $hash['group'][$hash['groupid']];
?>
</h1>
	<table cellspacing="0"><tr>
		<td><a href="index.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
">カレンダー</a></td>
		<td><a class="current" href="groupweek.php">グループ</a></td>
		<td><a href="facilityweek.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
">施設</a></td>
	</tr></table>
	<div class="clearer"></div>
</div>
<table class="wrapper" cellspacing="0"><tr><td class="scheduleheader">
	<ul class="operate">
		<li><a href="add.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:groupweek.php

示例3: date

$data = $calendar->prepare($hash['list'], $_GET['year'], $_GET['month'], 1, $_GET['year'], $_GET['month'], date('t', mktime(0, 0, 0, $_GET['month'], 1, $_GET['year'])));
$timestamp = mktime(0, 0, 0, $_GET['month'], 1, $_GET['year']);
$previous = mktime(0, 0, 0, $_GET['month'] - 1, 1, $_GET['year']);
$next = mktime(0, 0, 0, $_GET['month'] + 1, 1, $_GET['year']);
if (strlen($hash['folder'][$_GET['facility']]) > 0) {
    $caption = ' - ' . $hash['folder'][$_GET['facility']];
}
?>
<div class="contentcontrol">
	<h1>施設予約<?php 
echo $caption;
?>
</h1>
	<table cellspacing="0"><tr>
		<td><a href="index.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
">カレンダー</a></td>
		<td><a href="groupweek.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
">グループ</a></td>
		<td><a class="current" href="facilityweek.php">施設</a></td>
	</tr></table>
	<div class="clearer"></div>
</div>
<table class="wrapper" cellspacing="0"><tr><td class="scheduleheader">
	<ul class="operate">
		<li><a href="facilityweek.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day']);
?>
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:facilitymonth.php

示例4: Calendar

$view->heading('グループスケジュール');
$calendar = new Calendar();
$hash['list'] = $calendar->prepare($hash['list'], $_GET['year'], $_GET['month'], $_GET['day'], $_GET['year'], $_GET['month'], $_GET['day']);
$hash['list'] = $hash['list'][$_GET['day']];
$week = array('日', '月', '火', '水', '木', '金', '土');
$previous = mktime(0, 0, 0, $_GET['month'], $_GET['day'] - 1, $_GET['year']);
$next = mktime(0, 0, 0, $_GET['month'], $_GET['day'] + 1, $_GET['year']);
?>
<div class="contentcontrol">
	<h1>グループスケジュール - <?php 
echo $hash['group'][$hash['groupid']];
?>
</h1>
	<table cellspacing="0"><tr>
		<td><a href="index.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
">カレンダー</a></td>
		<td><a class="current" href="groupweek.php">グループ</a></td>
		<td><a href="facilityweek.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
">施設</a></td>
	</tr></table>
	<div class="clearer"></div>
</div>
<table class="wrapper" cellspacing="0"><tr><td class="scheduleheader">
	<ul class="operate">
		<li><a href="groupweek.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day']);
?>
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:groupday.php

示例5: Calendar

 * 文字コード UTF-8
 */
require_once '../application/loader.php';
$view->heading('スケジュール削除');
$calendar = new Calendar();
$date = $calendar->dated($hash['data']);
$time = $calendar->tick($hash['data']['schedule_allday'], $hash['data']['schedule_time'], $hash['data']['schedule_endtime'], '&nbsp;-&nbsp;');
$level = array('全体', '登録者');
if ($hash['data']['schedule_level'] == 2) {
    $level[2] = $view->permitlist($hash['data'], 'schedule');
}
?>
<h1>スケジュール削除</h1>
<ul class="operate">
	<li><a href="index.php<?php 
echo $calendar->parameter($hash['data']['schedule_year'], $hash['data']['schedule_month'], '', array('group' => '', 'member' => '', 'facility' => ''));
?>
">カレンダーに戻る</a></li>
</ul>
<form class="content" method="post" action="">
	<?php 
echo $view->error($hash['error'], '下記のスケジュールを削除します。');
?>
	<table class="view" cellspacing="0">
		<tr><th>日付</th><td><?php 
echo $date;
?>
&nbsp;</td></tr>
		<tr><th>時間</th><td><?php 
echo $time;
?>
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:delete.php

示例6: array

 */
require_once 'application/loader.php';
$view->script('general.js');
$view->heading('トップページ', 'top');
$hash['group'] = array('グループ') + $hash['group'];
$calendar = new Calendar();
$previous = mktime(0, 0, 0, $hash['month'], $hash['day'] - 7, $hash['year']);
$next = mktime(0, 0, 0, $hash['month'], $hash['day'] + 7, $hash['year']);
$week = array('日', '月', '火', '水', '木', '金', '土');
$caption = $hash['year'] . '年' . $hash['month'] . '月' . $hash['day'] . '日(' . $week[$hash['weekday']] . ')';
?>
<h1>トップページ</h1>
<table class="wrapper" cellspacing="0"><tr><td class="scheduleheader">
	<ul class="operate">
		<li><a href="schedule/add.php<?php 
echo $calendar->parameter($hash['year'], $hash['month'], $hash['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
">予定追加</a></li>
	</ul>
	<div class="clearer"></div>
</td><td class="schedulecaption">
	<a href="schedule/groupweek.php<?php 
echo $calendar->parameter(date('Y', $previous), date('n', $previous), date('j', $previous));
?>
"><img src="images/arrowprevious.gif" class="schedulearrow" /></a>
	<a href="schedule/groupweek.php<?php 
echo $calendar->parameter($hash['year'], $hash['month'], $hash['day']);
?>
"><?php 
echo $caption;
?>
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:index.php

示例7: Calendar

require_once '../application/loader.php';
$view->heading('スケジュール追加');
$calendar = new Calendar();
$hash['data'] = $calendar->initialize($hash['data']);
$hash['data']['schedule_facility'] = $view->initialize($hash['data']['schedule_facility'], $_GET['facility']);
$hash['folder'] = array('&nbsp;') + $hash['folder'];
for ($i = 1; $i <= 31; $i++) {
    $option[$i] = $i;
}
$option['lastday'] = '末';
$repeat = array('繰り返しの設定', '日付を指定');
?>
<h1>スケジュール追加</h1>
<ul class="operate">
	<li><a href="index.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], '', array('group' => '', 'member' => '', 'facility' => ''));
?>
">カレンダーに戻る</a></li>
	<li><span class="operator" onclick="Schedule.repeat(this)"><?php 
echo $repeat[$hash['data']['schedule_type']];
?>
</span></li>
</ul>
<form class="content" method="post" id="schedule" action="">
	<?php 
echo $view->error($hash['error']);
?>
	<table class="form" cellspacing="0">
		<tr><th>日付<span class="necessary">(必須)</span></th><td>
			<div id="default"<?php 
echo $view->style($hash['data']['schedule_type'], 0);
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:add.php

示例8: mktime

$timestamp = mktime(0, 0, 0, $_GET['month'], 1, $_GET['year']);
$previous = mktime(0, 0, 0, $_GET['month'] - 1, 1, $_GET['year']);
$next = mktime(0, 0, 0, $_GET['month'] + 1, 1, $_GET['year']);
if (strlen($hash['owner']['realname']) > 0 && (isset($_GET['member']) || $hash['owner']['userid'] != $_SESSION['userid'])) {
    $caption = ' - ' . $hash['owner']['realname'];
}
?>
<div class="contentcontrol">
	<h1>スケジュール<?php 
echo $caption;
?>
</h1>
	<table cellspacing="0"><tr>
		<td><a class="current" href="index.php">カレンダー</a></td>
		<td><a href="groupweek.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
">グループ</a></td>
		<td><a href="facilityweek.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
">施設</a></td>
	</tr></table>
	<div class="clearer"></div>
</div>
<table class="wrapper" cellspacing="0"><tr><td class="scheduleheader">
	<ul class="operate">
		<li><a href="add.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
">予定追加</a></li>
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:index.php

示例9: Calendar

require_once '../application/loader.php';
$view->heading('施設予約');
$calendar = new Calendar();
$weekday = date('w', mktime(0, 0, 0, $_GET['month'], $_GET['day'], $_GET['year']));
$begin = mktime(0, 0, 0, $_GET['month'], $_GET['day'] - $weekday, $_GET['year']);
$end = mktime(0, 0, 0, $_GET['month'], $_GET['day'] + 6 - $weekday, $_GET['year']);
$previous = mktime(0, 0, 0, $_GET['month'], $_GET['day'] - 7, $_GET['year']);
$next = mktime(0, 0, 0, $_GET['month'], $_GET['day'] + 7, $_GET['year']);
$caption = date('Y', $begin) . '年' . date('n', $begin) . '月' . date('j', $begin) . '日&nbsp;-&nbsp;';
$caption .= date('Y', $end) . '年' . date('n', $end) . '月' . date('j', $end) . '日';
?>
<div class="contentcontrol">
	<h1>施設予約</h1>
	<table cellspacing="0"><tr>
		<td><a href="index.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
">カレンダー</a></td>
		<td><a href="groupweek.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
">グループ</a></td>
		<td><a class="current" href="facilityweek.php">施設</a></td>
	</tr></table>
	<div class="clearer"></div>
</div>
<table class="wrapper" cellspacing="0"><tr><td class="scheduleheader">
	<ul class="operate">
		<li><a href="add.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('facility' => intval($_GET['facility'])));
?>
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:facilityweek.php

示例10: Calendar

 * 文字コード UTF-8
 */
require_once '../application/loader.php';
$view->heading('施設予約');
$calendar = new Calendar();
$hash['list'] = $calendar->prepare($hash['list'], $_GET['year'], $_GET['month'], $_GET['day'], $_GET['year'], $_GET['month'], $_GET['day']);
$hash['list'] = $hash['list'][$_GET['day']];
$week = array('日', '月', '火', '水', '木', '金', '土');
$previous = mktime(0, 0, 0, $_GET['month'], $_GET['day'] - 1, $_GET['year']);
$next = mktime(0, 0, 0, $_GET['month'], $_GET['day'] + 1, $_GET['year']);
?>
<div class="contentcontrol">
	<h1>施設予約</h1>
	<table cellspacing="0"><tr>
		<td><a href="index.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
">カレンダー</a></td>
		<td><a href="groupweek.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day'], array('group' => '', 'member' => '', 'facility' => ''));
?>
">グループ</a></td>
		<td><a class="current" href="facilityweek.php">施設</a></td>
	</tr></table>
	<div class="clearer"></div>
</div>
<table class="wrapper" cellspacing="0"><tr><td class="scheduleheader">
	<ul class="operate">
		<li><a href="facilityweek.php<?php 
echo $calendar->parameter($_GET['year'], $_GET['month'], $_GET['day']);
?>
开发者ID:miyamoto-shinji,项目名称:php_01,代码行数:31,代码来源:facilityday.php


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