	<table id="guide_list_table">
<?php
	mysql_data_seek($rs, 0);				//テーブル内の先頭に移動
	$categoryName = '';
	while ($rec=mysql_fetch_array($rs)) {
		if ($categoryName <> $rec['c_categoryName']) {
?>
	<tr class="guide_list_table_data">
	<td colspan=2 class="guide_list_category">
		<h3><?= $rec['c_categoryName'] ?></h3>
	</td>
	</tr>
<?
			$categoryName = $rec['c_categoryName'];
		}
?>
	<tr class="guide_list_table_data">
	<td colspan=2 class="guide_list_subject">
		<?= ins_atag_br_keystr($rec['c_subject'], $keystring) ?>
		<? if ($_SESSION['システム管理者'] == "YES") { ?>
		<a class="a_update_form" href='input.php?id=<?= $rec['id_guide'] ?>&page=<?= $page ?>&<?= query_from_http_arg_pool($http_arg) ?>'>[修正]</a>
		<? } ?>
	</td>
	</tr>
	<tr>
<?php		if ($rec['c_attachFile1'] == '' && $rec['c_attachFile2'] == '' && $rec['c_attachFile3'] == '') { ?>
	<td class="guide_list_body" colspan=2>
		<ol>
		<?= ins_atag_br_keystr_li($rec['c_body'], $keystring) ?>
		</ol>
	</td>
<?php		} else { ?>
	<td class="guide_list_pict">
	<?php
		attach_file_view('', $rec['c_attachFile1'], "<br>", 400);
		attach_file_view('', $rec['c_attachFile2'], "<br>", 400);
		attach_file_view('', $rec['c_attachFile3'], "<br>", 400);
	?>
	</td>
	<td class="guide_list_body">
		<ol>
		<?= ins_atag_br_keystr_li($rec['c_body'], $keystring) ?>
		</ol>
	</td>
<?php		} ?>
	</tr>
<?php
	}
?>
	</table>
