<h2>{if $data.edit eq 1}{$lang.users.edit_album}{else}{$lang.users.create_album}{/if}</h2>
{if $limit_err == ''}
{if $form_err != ''}
<p class="error_msg">*&nbsp;{$form_err}</p>
{/if}
<form method="post" action="{$site_root}/{$seo.myprofile}?sel=save_album">
	<div style="overflow:hidden;">
		<div class="text float_left" style="padding-top:10px; padding-{$default_right}:0px; padding-bottom:10px; padding-{$default_left}:0px; width:120px;">{$lang.users.album_title}:&nbsp;</div>
    	<div style="display: table; margin-bottom: 10px; padding-top: 10px;">	
            <input type="text" value="{$data.album_title}" name="album_title" id="album_title" onkeyup="BadWords('album_title');"/>
            <div id="bad_div_album_title" class="bad_div_left"></div>
        </div>
		<input type="hidden" name="album_type" value="{$album_type}">
		{if $data.edit eq 1}
			<input type="hidden" name="edit_album" value="1"><input type="hidden" name="id_album" value="{$data.id_album}">
		{/if}	
	</div>
	<div style="overflow:hidden;">
		<div class="text float_left" style="padding-top:10px; padding-{$default_right}:0px; padding-bottom:10px; padding-{$default_left}:0px; width:120px;">{$lang.users.album_allow_type}:&nbsp;</div>
		<select name="album_upload_allow" >
			<option value="1" {if $data.album_upload_allow eq 1} selected="selected"{/if}>{$lang.users.album_allow_1}</option>
			<option value="2" {if $data.album_upload_allow eq 2} selected="selected"{/if}>{$lang.users.album_allow_2}</option>
			<option value="3" {if $data.album_upload_allow eq 3} selected="selected"{/if}>{$lang.users.album_allow_3}</option>
		</select>
	</div>
	<div style="overflow:hidden;">
		<div class="text float_left" style="padding-top:10px; padding-{$default_right}:0px; padding-bottom:10px; padding-{$default_left}:0px; width:120px;" >{$lang.users.album_description}:&nbsp;</div>
		<textarea name="album_description" id="album_description" onkeyup="BadWords('album_description');" rows="8" cols="50">{$data.album_description}</textarea>
        <div id="bad_div_album_description" class="bad_div_left"></div>
	</div>
	<div><p></p><input type="submit" value="{$lang.button.save}"></div>
</form>
{else}
<p class="error_msg">*&nbsp;{$limit_err}</p>
{/if}