<{strip}>

<{include file="db:`$mydirname`_header.html"}>

<table broder='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
	<td align='left'>
		<strong><a href='index.php'><{$lang_album_main}></a>&nbsp;:&nbsp;<{$album_sub_title}></strong>&nbsp;&nbsp;<{$lang_total}><{$photo_total_sum}>
	</td>
	<td align='right'>
		<{if $lang_add_photo}><a href="index.php?page=submit&cid=<{$category_id}>"><{$lang_add_photo}><img src="<{$mod_url}>/images/img_add.png" border="0" alt="<{$lang_add_photo}>" title="<{$lang_add_photo}>" align="absmiddle" /></a><{/if}>
	</td>
</tr>
<{if count($subcategories) > 0 }>
<tr>
<td colspan='2'>
<hr />
	<{include file="db:`$mydirname`_categories.html"}>
</td>
</tr>
<{/if}>
</table>

<{if $photo_small_sum < 1 }>
  <div align="center">
    <{$lang_nomatch}>
  </div>
<{else}>
<hr>

<div class="floatdisp"><{$photonavinfo}></div>
<div class="floatdisp">
<form name='count_select' action='<{$mod_url}>/index.php' method='GET'>
	<select name='num' onchange='submit();'>
		<option value=''>1ページあたりの画像</option>
		<{foreach from=$viewPhotoCount item=count}>
			<option value='<{$count}>'><{$count}></option>
        <{/foreach}>
        <input type="hidden" name="cid" value="<{$category_id}>" />
        <input type="hidden" name="page" value="viewcat" />
    </select>
</form></div>
<div class="floatdisp"><{$photonav}></div>

<div class="floatdisp">
<{$lang_sortby}>&nbsp;&nbsp;
	<{$lang_title}> (<a href="index.php?page=viewcat&amp;cid=<{$category_id}>&amp;uid=<{$uid}>&amp;orderby=titleA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="index.php?page=viewcat&amp;cid=<{$category_id}>&amp;uid=<{$uid}>&amp;orderby=titleD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)&nbsp;
            <{$lang_date}> (<a href="index.php?page=viewcat&amp;cid=<{$category_id}>&amp;uid=<{$uid}>&amp;orderby=dateA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="index.php?page=viewcat&amp;cid=<{$category_id}>&amp;uid=<{$uid}>&amp;orderby=dateD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)&nbsp;
            <{if $canrateview }>
              <{$lang_rating}> (<a href="index.php?page=viewcat&amp;cid=<{$category_id}>&amp;uid=<{$uid}>&amp;orderby=ratingA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="index.php?page=viewcat&amp;cid=<{$category_id}>&amp;uid=<{$uid}>&amp;orderby=ratingD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)&nbsp;
            <{/if}>
            <{$lang_popularity}> (<a href="index.php?page=viewcat&amp;cid=<{$category_id}>&amp;uid=<{$uid}>&amp;orderby=hitsA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="index.php?page=viewcat&amp;cid=<{$category_id}>&amp;uid=<{$uid}>&amp;orderby=hitsD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>) &nbsp; &nbsp;
            <b><{$lang_cursortedby}></b>
</div>

<div class="clear"></div>

<hr>

<{foreach from=$photos item=photo}>
	<div class="eachphoto">
   	<{include file="db:`$mydirname`_photo_in_list.html"}>
	</div>
<{/foreach}>


<{/if}>
<br />
<table width="100%" cellspacing="0" cellpadding="0" border="0">
  <tr>
    <td align="center">
      <br />
      <{include file='db:system_notification_select.html'}>
      <br />
      <{include file="db:`$mydirname`_footer.html"}>
    </td>
  </tr>
</table>
<{/strip}>
