<{include file="db:profile_header.html"}>
<{if $profile_picturesform}>
<{if $hideForm}>
<div class="profile-form outer">
  <h2 class="head">
    <a href="#add-picture" onclick ="jQuery('div.profile-pictures-form').toggle(400);" name="add-picture"><img src="images/toggle.png" alt="" />&nbsp;<{$lang_picturesform_title}></a>
  </h2>
  <div class="profile-pictures-form" style="display: none">
    <{includeq file='db:system_common_form.html' form=$profile_picturesform}>
  </div>
</div>
<{else}>
<{includeq file='db:system_common_form.html' form=$profile_picturesform}>
<{/if}>
<{/if}>
<{if $profile_pictures}>
<div id="profile-pictures-container">
  <{foreach name=pictures item=picture from=$profile_pictures}>
  <div class="profile-pictures-picture" style="width:<{$itemwidth}>%">
    <{$picture.picture_content}>
    <br /><{$picture.title}><br />
    <{if $picture.userCanEditAndDelete}>
    <{$picture.editItemLink}><{$picture.deleteItemLink}>
    <{/if}>
    <{if $allow_avatar_upload}>
    <form action="<{$icms_url}>/modules/<{$icms_dirname}>/pictures.php" method="post" id="avatarform" class="profile-quickform">
      <input type="hidden" value="<{$picture.pictures_id}>" name="pictures_id" />
      <input type="hidden" value="setavatar" name="op" />
      <{$token}>
      <input name="submit" type="image" alt="<{$lang_avatar}>" title="<{$lang_avatar}>" src="<{$icms_url}>/modules/<{$icms_dirname}>/images/avatar.gif" style="vertical-align:middle" />
    </form>
    <{/if}>
    <{if $picture.private}><img src="<{$icms_url}>/modules/<{$icms_dirname}>/images/lock.gif" style="vertical-align:middle" alt="" /><{/if}>
  </div>
  <{if $smarty.foreach.pictures.iteration is div by $rowitems || $smarty.foreach.pictures.last == TRUE}>
  <div class="clear"></div>
  <{/if}>
  <{/foreach}>
  <{if $profile_pictures_pagenav}>
  <div class="pagination"><{$profile_pictures_pagenav}></div>
  <{/if}>
</div>
<{/if}>
<{if $icmspersistable_delete_confirm}>
<{$icmspersistable_delete_confirm}>
<{/if}>
<{if $lang_nocontent}><div class="resultMsg"><p><{$lang_nocontent}></p></div><{/if}>
<{if $profile_pictures || $lang_nocontent}><{includeq file='db:system_notification_select.html'}><{/if}>