<form action="{$this->ipsclass->base_url}" method="post" name="theForm">
	<input type="hidden" name="automodule" value="gallery" />
	<input type="hidden" name="req" value="albums" />
	<input type="hidden" name="op" value="{$data['type_op']}" />
	{$data['hiddens']}
	{$data['errors']}
		<table class='ipbtable' cellspacing='0'>
                        <tr>
                                <td class='subtitle' colspan='2'>{$this->ipsclass->lang['album_manage']}</td>
                        </tr>
			<tr>
				<td class="pformleft">{$this->ipsclass->lang['album_name']}</td>
				<td class="pformright">
					<input type="text" size="40" maxlength="60" name="name" value="{$data['name']}" />
				</td>
			</tr>  
			<tr>
				<td class="pformleft">{$this->ipsclass->lang['album_desc']}</td>
				<td class="pformright">
					<input type="text" size="40" name="description" value="{$data['description']}" />
				</td>
			</tr>
<if="$data['q_cat'] == false">
<tr>
				<td class="pformleft">{$this->ipsclass->lang['gallery_cat_name']}</td>
				<td class="pformright">
					{$data['cat_dropdown']}
				</td>
			</tr>
<else />
<input type="hidden" name="cat" value="{$this->ipsclass->input['cat']}" />
</if>
			<tr>
				<td class="pformleft">{$this->ipsclass->lang['album_public']}</td>
				<td class="pformright">
					<input type="checkbox" name="public" value="1" class="checkbox" {$data['public']} />&nbsp;{$this->ipsclass->lang['album_public_chk']}
				</td>
			</tr>  
			<tr>
				<td class="formbuttonrow" align="center" colspan="2">
					<input type="submit" value="{$data['type']}" class="button" />
				</td>
			</tr>
		</table>
</form>