<{strip}>
<table width="100%" cellspacing="0" class="outer">
  <tr>
    <td class="even">
      <br />
      <{include file="db:myalbum0_header.html"}>
      <table border='0' cellpadding='0' cellspacing='0' width='100%'>
        <tr>
          <td align='left'>
            <span style="font-weight:bold;"><a href='index.php'><{$lang_album_main}></a>&nbsp;:&nbsp;<{$album_sub_title}></span>&nbsp;<{$lang_total}><{$photo_total_sum}>
          </td>
          <td align='right'>
            <{if $lang_add_photo}><a href="submit.php?cid=<{$category_id}>"><{$lang_add_photo}><img src="<{$mod_url}>/images/pictadd.gif" border="0" alt="<{$lang_add_photo}>" title="<{$lang_add_photo}>" /></a><{/if}>
          </td>
        </tr>
      </table>
      <{if count( $subcategories ) > 0 }>
        <hr />
        <{include file="db:myalbum0_categories.html"}>
      <{/if}>
    </td>
  </tr>
</table>
<br />

<{if $photo_small_sum < 1 }>
  <div align="center">
    <{$lang_nomatch}>
  </div>
<{else}>
  <table width="100%" cellspacing="0" class="outer">
    <tr>
      <td class="even" align="left">
        <{if $photo_small_sum > 1 }>
          <div align="center">
            <{$lang_sortby}>&nbsp;&nbsp;
            <{$lang_title}> (<a href="viewcat.php?cid=<{$category_id}>&amp;orderby=titleA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="viewcat.php?cid=<{$category_id}>&amp;orderby=titleD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)&nbsp;
            <{$lang_date}> (<a href="viewcat.php?cid=<{$category_id}>&amp;orderby=dateA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="viewcat.php?cid=<{$category_id}>&amp;orderby=dateD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)&nbsp;
            <{if $canrateview }>
              <{$lang_rating}> (<a href="viewcat.php?cid=<{$category_id}>&amp;orderby=ratingA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="viewcat.php?cid=<{$category_id}>&amp;orderby=ratingD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)&nbsp;
            <{/if}>
            <{$lang_popularity}> (<a href="viewcat.php?cid=<{$category_id}>&amp;orderby=hitsA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="viewcat.php?cid=<{$category_id}>&amp;orderby=hitsD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)
            <br />
            <b><{$lang_cursortedby}></b>
            <br />
            <br />
            <table border='0' cellpadding='0' cellspacing='0' width='100%'>
              <tr>
                <td align='left'>
                  <{$photonavinfo}>
                </td>
                <td align='right'>
                  <{$photonav}>
                </td>
              </tr>
            </table>
          </div>
          <hr />
        <{/if}>
        <br />
        <table width='100%' cellspacing='0' cellpadding='0' border='0'>
          <tr>
            <{foreach from=$photos item=photo}>
              <td align='center' style='margin:0px;padding:5px 0px;'>
                <a href='<{$mod_url}>/photo.php?lid=<{$photo.lid}>'><img src='<{$photo.imgsrc_thumb}>' <{$photo.width_spec}> alt='<{$photo.title}>' title='<{$photo.title}>' border='0' /></a>
              </td>
              <{if $photo.count is div by $colsoftableview }>
                </tr>
                <tr>
              <{/if}>
            <{/foreach}>
          </tr>
        </table>

        <{if $photo_small_sum > 1 }>
          <hr />
          <div align="center">
            <table border='0' cellpadding='0' cellspacing='0' width='100%'>
              <tr>
                <td align='left'>
                  <{$photonavinfo}>
                </td>
                <td align='right'>
                  <{$photonav}>
                </td>
              </tr>
            </table>
          </div>
        <{/if}>

      </td>
    </tr>
  </table>
<{/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:myalbum0_footer.html"}>
    </td>
  </tr>
</table>
<{/strip}>
