<div id='pp-iframe-wrap' class='pp-contentbox-back'>
	<div class='pp-contentbox-entry-noheight'>
		<if="$error">
			<div class='input-warn-content'>$error</div>
		</if>
		<if="$friends">
			<fieldset>
				<legend><strong>{$this->ipsclass->lang['m_friends_pending']}</strong></legend>
				<table cellpadding='0' cellspacing='1' width='100%'>
				<tr>
					<td class="row1" style='padding:6px;'>
						{$this->ipsclass->lang['m_friend_str_1']} <strong>$friends</strong> {$this->ipsclass->lang['m_friend_str_2']}
						<br /><a href='#' onclick='parent.friends_pop( "&amp;tab=pending"); return false'>{$this->ipsclass->lang['m_manage_friends_list']}</a>
					</td>
				</tr>
				</table>
			</fieldset>
			<br />
		</if>
		<form action='{$this->ipsclass->base_url}act=profile&amp;CODE=personal_iframe_settings_save&amp;member_id={$member['id']}&amp;md5check={$this->ipsclass->md5_check}'  enctype='multipart/form-data' method='POST'>
<if="$this->ipsclass->member['g_edit_profile']==1">
	<if="$member['id'] == $this->ipsclass->member['id']">
	<!-- Can update photo? -->
		<input type='hidden' name='MAX_FILE_SIZE' value='{$member['_max_file_size']}' />
		
		<fieldset>
			<legend><strong>{$this->ipsclass->lang['get_photo']}</strong></legend>
			<table cellpadding='0' cellspacing='1' width='100%'>
			<tr>
				<td width="30%" class="row1" style='padding:6px;' valign='top'>
					<strong>{$this->ipsclass->lang['m_your_pic']}</strong>
				</td>
				<td width="70%" class="row2" style='padding:6px;'>
					<input type='file' name='upload_photo' />
					<div class='pp-tiny-text'>
						{$this->ipsclass->lang['pp_photo_desc']}
					</div>
				</td>
			</tr>
			<tr>
				<td width="30%" class="row1" style='padding:6px;' valign='top'>
					<strong>{$this->ipsclass->lang['m_delete_pic']}</strong>
				</td>
				<td width="70%" class="row2" style='padding:6px;'>
					<input type='checkbox' class='checkbox' name='delete_photo' value='1' />
				</td>
			</tr>
			</table>
		</fieldset>
		
		<br />
	</if>
		<fieldset>
			<legend><strong>{$this->ipsclass->lang['m_personal_statement']}</strong> <span class='pp-tiny-text'>{$this->ipsclass->lang['m_char_limit']}</span></legend>
			<table cellpadding='0' cellspacing='1' width='100%'>
			<tr>
				<td class="row1" style='padding:6px;text-align:center'>
					<textarea name='pp_bio_content' rows='5' cols='60' style='width:95%;height:100px'>{$member['_pp_bio_content']}</textarea>
					<div class='pp-tiny-text' style='text-align:left'>{$this->ipsclass->lang['m_statement_bbcode']}</div>
				</td>
			</tr>
			</table>
		</fieldset>
		
		<br />
		
		<fieldset>
			<legend><strong>{$this->ipsclass->lang['m_website_title']}</strong> <span class='pp-tiny-text'>{$this->ipsclass->lang['m_website_explain']}</span></legend>
			<table cellpadding='0' cellspacing='1' width='100%'>
			<tr>
				<td class="row1" style='padding:6px;text-align:left'>
					<input type='text' name='website' size='25' style='width:95%' value='{$member['website']}' />
				</td>
			</tr>
			</table>
		</fieldset>
		
		<br />
</if>
		<fieldset>
			<legend><strong>{$this->ipsclass->lang['m_notifications']}</strong></legend>
			<table cellpadding='0' cellspacing='1' width='100%'>
			<tr>
				<td width="40%" class="row1" style='padding:6px;'>
					<strong>{$this->ipsclass->lang['m_new_comments']}</strong>
					<div class='pp-tiny-text'>{$this->ipsclass->lang['m_choose_comm_type']}</div>
				</td>
				<td width="60%" class="row2" style='padding:6px;'>
					<select name='pp_setting_notify_comments'>{$member['_pp_setting_notify_comments']}</select>
				</td>
			</tr>
			<tr>
				<td width="40%" class="row1" style='padding:6px;'>
					<strong>{$this->ipsclass->lang['m_new_friends']}</strong>
					<div class='pp-tiny-text'>{$this->ipsclass->lang['m_choose_friend_type']}</div>
				</td>
				<td width="60%" class="row2" style='padding:6px;'>
					<select name='pp_setting_notify_friend'>{$member['_pp_setting_notify_friend']}</select>
				</td>
			</tr>
			</table>
		</fieldset>
		
		<br />
		
		<fieldset>
			<legend><strong>{$this->ipsclass->lang['m_mod_type']}</strong></legend>
			<table cellpadding='0' cellspacing='1' width='100%'>
			<tr>
				<td width="40%" class="row1" style='padding:6px;'>
					<strong>{$this->ipsclass->lang['m_new_comments']}</strong>
					<div class='pp-tiny-text'>{$this->ipsclass->lang['m_choose_cmod_type']}</div>
				</td>
				<td width="60%" class="row2" style='padding:6px;'>
					<select name='pp_setting_moderate_comments'>{$member['_pp_setting_moderate_comments']}</select>
				</td>
			</tr>
			<tr>
				<td width="40%" class="row1" style='padding:6px;'>
					<strong>{$this->ipsclass->lang['m_new_friends']}</strong>
					<div class='pp-tiny-text'>{$this->ipsclass->lang['m_choose_fmod_type']}</div>
				</td>
				<td width="60%" class="row2" style='padding:6px;'>
					<select name='pp_setting_moderate_friends'>{$member['_pp_setting_moderate_friends']}</select>
				</td>
			</tr>
			</table>
		</fieldset>
		
		<br />
		
		<fieldset>
			<legend><strong>{$this->ipsclass->lang['m_settings_header']}</strong></legend>
			<table cellpadding='0' cellspacing='1' width='100%'>
			<tr>
				<td width="40%" class="row1" style='padding:6px;'>
					<strong>{$this->ipsclass->lang['m_show_x_visitors']}</strong>
					<div class='pp-tiny-text'>{$this->ipsclass->lang['op_change_refresh']}</div>
				</td>
				<td width="60%" class="row2" style='padding:6px;'>
					<select name='pp_setting_count_visitors'>
					<if="$member['pp_setting_count_visitors'] == 0">
						<option value='0' selected='selected'>0</option>
					<else />
						<option value='0'>0</option>
					</if>
					<if="$member['pp_setting_count_visitors'] == 3">
						<option value='3' selected='selected'>3</option>
					<else />
						<option value='3'>3</option>
					</if>
					<if="$member['pp_setting_count_visitors'] == 5">
						<option value='5' selected='selected'>5</option>
					<else />
						<option value='5'>5</option>
					</if>
					<if="$member['pp_setting_count_visitors'] == 10">
						<option value='10' selected='selected'>10</option>
					<else />
						<option value='10'>10</option>
					</if>
					</select>
				</td>
			</tr>
			<tr>
				<td width="40%" class="row1" style='padding:6px;'>
					<strong>{$this->ipsclass->lang['m_show_x_comments']}</strong>
					<div class='pp-tiny-text'>{$this->ipsclass->lang['op_change_refresh']}</div>
				</td>
				<td width="60%" class="row2" style='padding:6px;'>
					<select name='pp_setting_count_comments'>
					<if="$member['pp_setting_count_comments'] == 0">
						<option value='0' selected='selected'>0</option>
					<else />
						<option value='0'>0</option>
					</if>
					<if="$member['pp_setting_count_comments'] == 3">
						<option value='3' selected='selected'>3</option>
					<else />
						<option value='3'>3</option>
					</if>
					<if="$member['pp_setting_count_comments'] == 5">
						<option value='5' selected='selected'>5</option>
					<else />
						<option value='5'>5</option>
					</if>
					<if="$member['pp_setting_count_comments'] == 10">
						<option value='10' selected='selected'>10</option>
					<else />
						<option value='10'>10</option>
					</if>
					</select>
				</td>
			</tr>
			<tr>
				<td width="40%" class="row1" style='padding:6px;'>
					<strong>{$this->ipsclass->lang['m_show_x_friends']}</strong>
					<div class='pp-tiny-text'>{$this->ipsclass->lang['op_change_refresh']}</div>
				</td>
				<td width="60%" class="row2" style='padding:6px;'>
					<select name='pp_setting_count_friends'>
					<if="$member['pp_setting_count_friends'] == 0">
						<option value='0' selected='selected'>0</option>
					<else />
						<option value='0'>0</option>
					</if>
					<if="$member['pp_setting_count_friends'] == 3">
						<option value='3' selected='selected'>3</option>
					<else />
						<option value='3'>3</option>
					</if>
					<if="$member['pp_setting_count_friends'] == 5">
						<option value='5' selected='selected'>5</option>
					<else />
						<option value='5'>5</option>
					</if>
					<if="$member['pp_setting_count_friends'] == 10">
						<option value='10' selected='selected'>10</option>
					<else />
						<option value='10'>10</option>
					</if>	
					</select>
				</td>
			</tr>
			</table>
		</fieldset>
		
		<br />
		
		<div class='row1' style='padding:6px; margin-bottom:1px;text-align:center'>
			<input type='submit' class='button' value='{$this->ipsclass->lang['m_save_settings']}' />
		</div>
		</form>
	</div>
</div>
<if="$this->ipsclass->input['_saved']">
	<script type='text/javascript'>
	//<![CDATA[
		parent.ips_personal_portal.update_personal_photo( "{$this->ipsclass->vars['upload_url']}/{$member['pp_main_photo']}", parseInt({$member['pp_main_width']}), parseInt({$member['pp_main_height']}) );
		parent.ips_personal_portal.update_personal_statement( "{$member['__pp_bio_content']}", "{$member['website']}" );
	//]]>
	</script>
</if>