<div id="content">
    <div class="left span-300">
        {include file='user_info.tpl'}
    </div>
    <div class="right span-650">
        <div class="box">
            
            <div class="btitle"><h2>{$album.name|upper}</h2></div>
            <div class="blink">
                <div class="blinkl">
                     Showing <strong>{$start_num}</strong> to <strong>{$end_num}</strong> of <strong>{$photos_total}</strong> photos.
                </div>
                <div class="blinkr">
                      <a href="{$relative}/album/slideshow/{$album.AID}">Slideshow</a>
                      {if isset($smarty.session.uid) && $smarty.session.uid == $album.UID}
                      <strong>&middot;</strong>
                      <a href="{$relative}/album/edit/{$album.AID}">Edit</a> <strong>&middot;</strong>
                      <a href="{$relative}/album/addphotos/{$album.AID}">Add More Photos</a> <strong>&middot;</strong>
                      <a href="{$relative}/album/delete/{$album.AID}">Delete</a>
                      {/if}
                </div>
                <div class="clear"></div>
            </div>
            {if $photos}
            <div class="photo_row">
            {section name=i loop=$photos max=4}
            <div class="photo_box">
                <a href="{$relative}/photo/{$photos[i].PID}/"><img src="{$relative}/media/photos/tmb/{$photos[i].PID}.jpg" alt="{$photos[i].caption|escape:html}" width="150" /></a>
            </div>
            {/section}
                <div class="clear"></div>
            </div>
            {if isset($photos[4])}
            {section name=i loop=$photos start=4 max=4}
            <div class="photo_box">
                <a href="{$relative}/photo/{$photos[i].PID}/"><img src="{$relative}/media/photos/tmb/{$photos[i].PID}.jpg" alt="{$photos[i].caption|escape:html}" width="150" /></a>
            </div>
            {/section}
                <div class="clear"></div>
            </div>            
            {/if}
            {if isset($photos[8])}
            {section name=i loop=$photos start=8 max=4}
            <div class="photo_box">
                <a href="{$relative}/photo/{$photos[i].PID}/"><img src="{$relative}/media/photos/tmb/{$photos[i].PID}.jpg" alt="{$photos[i].caption|escape:html}" width="150" /></a>
            </div>
            {/section}
                <div class="clear"></div>
            </div>           
            {/if}
            <div class="pagination"><ul>{$page_link}</ul></div>            
            {else}
                <br />&nbsp;THIS ALBUM CONTAINS NO PHOTOS!<br /><br />
            {/if}
        </div>
    </div>
    <div class="clear"></div>
</div>
