	<table id="calendar_list_table">
<?php
	mysql_data_seek($rs, $startline);			//テーブル内の指定行に移動
	$line = $startline;					//$lineに$startlineを代入
	$old_date = "";
	while ($rec=mysql_fetch_array($rs) and $line<=$endline) {
		if ($rec['c_privacy'] == 444) {
			$view_day_class = 'calendar_list_table_day_privacy';
			$view_day_cont_class = 'calendar_list_table_day_cont_privacy';
			$view_sch_class = 'calendar_list_table_sch_privacy';
		} else {
			$view_day_class = 'calendar_list_table_day';
			$view_day_cont_class = 'calendar_list_table_day_cont';
			$view_sch_class = 'calendar_list_table_sch';
		}
?>
	<tr>
	<?php if ($old_date <> $rec['c_date']) { ?>
	<td class="<?= $view_day_class ?>">
<?php
		$year = date_from_mysql("Y", $rec['c_date']);
		$month = date_from_mysql("n", $rec['c_date']);
		$day = date_from_mysql("d", $rec['c_date']);
?>
		<p>
		<a href="?selY=<?= $year ?>&selM=<?= $month ?>&selD=<?= $day ?>"><?= date_from_mysql("Y-m-d", $rec['c_date']) ?></a>
		<?= day_week_view($rec['c_date']) ?>
		</p>
	</td>
	<?php } else { ?>
	<td class="<?= $view_day_cont_class ?>">
		<br>
	</td>
	<?php } ?>
	<?php $old_date = $rec['c_date'] ?>
	<td class="<?= $view_sch_class ?>">
	<p>
<?php
	if ($rec['c_time1']."" <> "" || $rec['c_time2']."" <> "") {
		echo '<span class="calendar_time">';
		echo sch_time_format($rec['c_time1'], $rec['c_time2'])."&nbsp;";
		echo '</span>';
	}
	if ($rec['c_iconImage'] <> "") {
		echo "<img src='".IMAGES_FOLDER."/".$rec['c_iconImage']."'/>";
	}
// ***************************************
//				↓↓↓↓　　　& query_from_http_arg_pool($http_arg)
// ***************************************

?>
	<a class="title" href='input.php?uid=<?= $_SESSION['current_id'] ?>&id=<?= $rec['id_schedule'] ?>&page=<?= $page ?>&<?= query_from_http_arg_pool($http_arg) ?>'><?php
		if ($rec['c_subject'] == '') {
			echo NO_SUBJECT_INPUT_MARK;
		} else {
			echo ins_atag_br_keystr($rec['c_subject'], keystr_and_or($keystring));
		}
	?></a>
	<span class="category" style="color: <?= $rec['c_categoryDisplayColor'] ?>;"><?= $rec['c_categoryName'] ?></span>
	<?php
		if ($rec['c_map'] == 1) {
			echo '&nbsp;<a href="http://maps.google.co.jp/maps?q='.urlencode($rec['c_subject']).'" target="_blank" class="map_href">→地図</a>&nbsp;<a href="http://maps.google.co.jp/maps?ie=UTF8&f=d&ttype=dep&dirflg=r&saddr='.urlencode($_SESSION['login_friends_home_address_'.$current_id]).'&daddr='.urlencode($rec['c_subject']).'" target="_blank" class="route_href">→経路</a>';
		}
	?>
	<?php
		if ($rec['c_subject'] <> '' || $rec['c_categoryName'] <> '') {
			?></p><p><?php
		}
	?>
	<?php if (TEXTAREA_HTML_USE == "YES") { ?>
		<?= ins_br_strip_script(my_schedule_decorate($rec['c_memo'], $_SESSION['current_id'])) ?></p>
	<?php } else { ?>
		<?= ins_br(my_htmlspecialchars(icon_to_imgsrc($rec['c_memo']))) ?></p>
	<?php } ?>
	<?php
		$filename1 = $rec['c_attachFile1'];
		$filename2 = $rec['c_attachFile2'];
		$filename3 = $rec['c_attachFile3'];
		if ($filename1 <> "" || $filename2 <> "" || $filename3 <> "") {
	?>
			<p>
	<?php
			attach_file_view($rec['id_account'], $filename1, "<br>");
			attach_file_view($rec['id_account'], $filename2, "<br>");
			attach_file_view($rec['id_account'], $filename3, "<br>");
	?>
			</p>
	<?php
		}
	?>
	</td>
	</tr>
<?php
		$line++;
	}
?>
	</table>
