<{strip}>
<table width="100%" cellspacing="0" class="outer">
  <tr>
    <td class="even">
      <br />
      <{include file="db:myalbum_header.html"}>
      <table broder='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:myalbum_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;uid=<{$uid}>&amp;orderby=titleA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="viewcat.php?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="viewcat.php?cid=<{$category_id}>&amp;uid=<{$uid}>&amp;orderby=dateA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="viewcat.php?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="viewcat.php?cid=<{$category_id}>&amp;uid=<{$uid}>&amp;orderby=ratingA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="viewcat.php?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="viewcat.php?cid=<{$category_id}>&amp;uid=<{$uid}>&amp;orderby=hitsA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="viewcat.php?cid=<{$category_id}>&amp;uid=<{$uid}>&amp;orderby=hitsD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)
            <br />
            <b><{$lang_cursortedby}></b>
            <br />
            <br />
            <table broder='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='10' border='0'>
          <{foreach from=$photos item=photo}>
            <{include file="db:myalbum_photo_in_list.html"}>
          <{/foreach}>
        </table>

        <{if $photo_small_sum > 1 }>
          <hr />
          <div align="center">
            <table broder='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:myalbum_footer.html"}>
    </td>
  </tr>
</table>
<{/strip}>
