<if="$error">
	<div class='input-warn-content'>$error</div>
</if>
<form action="{$this->ipsclass->base_url}auth_key=$key" enctype="multipart/form-data" method="post" name="bob" onsubmit="return checkform();">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="dophoto" />
<input type='hidden' name='delete_photo' id='ucp-delete_photo' value='0' />
<div class="subtitle">{$this->ipsclass->lang['pph_title']}</div>
<p>{$this->ipsclass->lang['pph_desc']}<br />{$this->ipsclass->lang['pph_max']}</p>
<div class="subtitle">{$this->ipsclass->lang['pph_current']}</div>
<div align="center">
 <p>$cur_photo<br />$show_size</p>
</div>
<div class="subtitle">{$this->ipsclass->lang['pph_change']}</div>
<table class='ipbtable' cellspacing="0">
	<if="$p_max and $max_file_size">
		<tr>
			<td class="row1">{$this->ipsclass->lang['pph_upload']}</td>
			<td class="row2"><input type="hidden" name="MAX_FILE_SIZE" value="$max_file_size" /><input type="file" name="upload_photo" value="" size="40" /></td>
		</tr>
	</if>
	<if="! $this->ipsclass->vars['disable_ipbsize']">
		<tr>
			<td class="row1">&nbsp;</td>
			<td class="row2"><b>{$this->ipsclass->lang['pph_autosize']}</b><br />({$this->ipsclass->lang['pph_as_desc']})</td>
		</tr>
	<else />
		<tr>
			<td class="row1">&nbsp;</td>
			<td class="row2"><b>{$this->ipsclass->lang['width']}</b>&nbsp;<input type="text" size="3" name="man_width" />&nbsp;&nbsp;<b>{$this->ipsclass->lang['height']}</b>&nbsp;<input type="text" size="3" name="man_height" /></td>
		</tr>
	</if>
</table>
<div align="center" class="formbuttonrow">
	<input type="submit" class='button' name="submit" value="{$this->ipsclass->lang['pph_submit']}" />
	&nbsp;&nbsp;&nbsp;&nbsp;<input class='button' type="submit" onclick="document.getElementById('ucp-delete_photo').value=1;" name="remove" value="{$this->ipsclass->lang['pph_remove']}" />
</div>
</form>