<script type='text/javascript'>
//<![CDATA[
// Populate menu
parent.ipsattach.current_items   = new Array();
{$current_items}
// Set up vars
parent.ipsattach.can_upload      = parseInt("{$attach_stats['allow_uploads']}");
parent.ipsattach.status_msg      = "{$msg}";
parent.ipsattach.status_is_error = parseInt("{$is_error}");
//]]>
</script>
<form id='mainform' enctype='multipart/form-data' action='{$this->ipsclass->base_url}&amp;act=attach&amp;code=attach_upload_process&amp;attach_rel_module={$attach_rel_module}&amp;attach_rel_id={$attach_rel_id}&amp;attach_post_key={$attach_post_key}{$extra_url}' method='POST'>
<input type='hidden' name='MAX_FILE_SIZE' value='100000000' />
<div style='padding:8px 2px 0px 2px;'>
	<table cellpadding='0' cellspacing='0' border='0' width='100%'>
	<tr>
	  <td width='10%' nowrap='nowrap'><strong>{$this->ipsclass->lang['attach_select_file']}</strong></td>
	  <td width='90%' align='right' valign='bottom'><input type='file' id='ipb-file-upload-box' size='30' onblur='parent.ipsattach.has_upload_pending=this.value;' name='FILE_UPLOAD' /> <input class='input-ok-content' style='margin:0px;padding:2px' type='submit' value='{$this->ipsclass->lang['attach_but_upload']}' /></td>
	</tr>
	</table>
	<table cellpadding='0' cellspacing='0' border='0' width='100%'>
	<tr>
	 <td width='90%'><div class='desc'>{$this->ipsclass->lang['attach_space_used']} <strong>{$attach_stats['space_used_human']}</strong> {$this->ipsclass->lang['attach_space_of']} <strong>{$attach_stats['total_space_allowed_human']}</strong></div></td>
	 <td nowrap='nowrap' width='10%' align='right'>{$this->ipsclass->lang['max_single_attach']}: <strong>{$attach_stats['max_single_upload_human']}</strong></td>
	</tr>
	</table>
</div>
</form>
<script type='text/javascript'>
//<![CDATA[
// Add form's onsubmit handler
document.getElementById('mainform').onsubmit = function (e) { parent.ipsattach.iframe_on_un_load(); return true; }
//]]>
</script>