<inp2:adm_SetPopupSize width="900" height="600"/>

<inp2:m_include t="incs/header"/>
<inp2:m_RenderElement name="combined_header" section="in-portal:user_list" permission_type="advanced:send_email" prefix="emailevents" title_preset="email_send_form"/>

<!-- ToolBar -->
<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
<tbody>
	<tr>
	  	<td>
	  		<script type="text/javascript">
	  			var a_toolbar = new ToolBar();
				a_toolbar.AddButton( new ToolBarButton('select', '<inp2:m_phrase label="la_ToolTip_SendEmail" escape="1"/>', function() {
							submit_event('emailmessages', 'OnMassMail');
						}
					) );
				a_toolbar.AddButton( new ToolBarButton('cancel', '<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>', function() {
							submit_event('emailmessages', 'OnGoBack');
						}
				 ) );

				a_toolbar.Render();
			</script>
		</td>
	</tr>
</tbody>
</table>

<inp2:emailmessages_SaveWarning name="grid_save_warning"/>
<inp2:emailmessages_ErrorWarning name="form_error_warning"/>

<div id="scroll_container">
	<table class="edit-form">
		<inp2:m_RenderElement name="subsection" title="la_section_General"/>

			<!-- recipients list -->
			<tr class="<inp2:m_odd_even odd='edit-form-odd' even='edit-form-even'/>">
				<inp2:m_inc param="tab_index" by="1"/>
				<td class="label-cell">
					<inp2:m_phrase label="la_fld_To"/>:
				</td>
				<td class="control-mid">&nbsp;</td>
				<td class="control-cell">
					<inp2:m_DefineElement name="recipient_element">
						&lt;<inp2:m_Param name="recipient_name"/>&gt;
						<inp2:m_if check="m_Param" name="not_last">
						;
						</inp2:m_if>
					</inp2:m_DefineElement>

					<inp2:emailmessages_PrintRecipients render_as="recipient_element" strip_nl="2"/>
				</td>
			</tr>
			<!-- // recipients list -->

			<inp2:m_RenderElement name="inp_edit_box" prefix="emailmessages" field="MassSubject" title="la_fld_Subject" size="60"/>
			<inp2:m_RenderElement name="inp_edit_upload" prefix="emailmessages" field="MassAttachment" title="la_fld_Attachment" size="60"/>
		<inp2:m_RenderElement name="subsection" title="la_section_Message"/>
			<inp2:m_RenderElement name="inp_edit_textarea" prefix="emailmessages" field="MassHtmlMessage" title="la_fld_HtmlVersion" rows="10" cols="100"/>
			<inp2:m_RenderElement name="inp_edit_textarea" prefix="emailmessages" field="MassTextMessage" allow_html="0" title="la_fld_TextVersion" rows="10" cols="100"/>
	</table>
</div>

<inp2:m_include t="incs/footer"/>