<?php
	if (VIDEO_PREVIEW == 'YES') {
?>
	<script type="text/javascript" src="../scripts/JWPlayer/swfobject.js"></script>
	<script type="text/javascript" src="../scripts/JWPlayer/movie_preview.js"></script>
<?php
	}
?>
	<table id="memo_list_table">
<?php
	mysql_data_seek($rs, $startline);			//テーブル内の指定行に移動
	$line = $startline;					//$lineに$startlineを代入
	while ($rec=mysql_fetch_array($rs) and $line<=$endline) {
		if ($rec['c_privacy'] == 444) {
			$view_category_class = 'memo_list_category_privacy';
			$view_memo_class = 'memo_list_memo_privacy';
		} else {
			$view_category_class = 'memo_list_category';
			$view_memo_class = 'memo_list_memo';
		}
?>
	<tr class="memo_list_table_data">
	<td rowspan=2 class="<?= $view_category_class ?>">
		<?= $rec['c_categoryName'] ?>
	</td>
	<td class="memo_list_subject">
		<?= ins_atag_br_keystr($rec['c_subject'], $keystring) ?>
		<? if (check_permit_id($_SESSION['login_id'], $_SESSION['current_id']) == "w") { ?>
		<a class="a_update_form" href='input.php?id=<?= $rec['id_memo'] ?>&page=<?= $page ?>&<?= query_from_http_arg_pool($http_arg) ?>'>[修正]</a>
		<? } ?>
	</td>
	</tr>
	<tr>
	<td class="<?= $view_memo_class ?>">
	<p><?= ins_atag_br_keystr($rec['c_memo'], $keystring) ?></p>
	<?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>', VIEW_PHOTO_WIDTH, True, False, True,
				VIDEO_PREVIEW_WIDTH, VIDEO_PREVIEW_HEIGHT);
			attach_file_view($rec['id_account'], $filename2, '<br>', VIEW_PHOTO_WIDTH, True, False, True,
				VIDEO_PREVIEW_WIDTH, VIDEO_PREVIEW_HEIGHT);
			attach_file_view($rec['id_account'], $filename3, '<br>', VIEW_PHOTO_WIDTH, True, False, True,
				VIDEO_PREVIEW_WIDTH, VIDEO_PREVIEW_HEIGHT);
	?>
			</p>
	<?php
		}
	?>
	</td>
	</tr>
<?php
		$line++;
	}
?>
	</table>
