<%@include file="/WEB-INF/includeTemplate.inc"%>

<jsp:useBean id="senMailEnvioId" scope="request" type="java.lang.String" />


<form id="sendMailForm" action="../adjunto/subida" enctype="multipart/form-data" method="POST" >

<input type="hidden" id="senMailEnvioId" name="senMailEnvioId" value="<%=senMailEnvioId%>"/>


<div id="search_mail"></div>

	<div class="y42b-row_no_border">	
		<div class="y42b-row">
			<div class="y42b-colum20">
				<label><spring:message code="mail.to"/>:</label>
			</div>
			<div class="y42b-colum80">
				<textarea class="inputUpdate observaciones" id="senMailTo" name="to" readonly style="width: 649px; height: 60px; resize:none;"></textarea><!--disabled-->
			</div>
		</div>
		<div class="y42b-row">
				<input class="inputUpdate observaciones" size="4" id="senMailContador" name="to3" readonly style="width: 40px; height: 20px;float:right!important;border:none!important;" /><!--disabled-->
				<label style="float:right;margin-right: 5px;"><spring:message code="destinatarios.conemail"/></label>
				<input class="inputUpdate observaciones" size="4" id="senMailNumTotal"  readonly style="width: 40px; height: 20px;float:right!important;border:none!important;" /><!--disabled-->
				<label style="float:right;margin-right: 5px;"><spring:message code="destinatarios.seleccionados"/></label>
		</div>
		<div class="y42b-row">
			<div class="y42b-colum20">
				<label><spring:message code="mail.destinatarioInforme"/>:</label>	
			</div>
			<div class="y42b-colum80">
				<input class="inputUpdate" id="senMailDestinatarioInforme" name="destinatarioInforme" style="width: 649px; height: 20px" maxlength="255"/>
			</div>
		</div>
		<div>
			<label style="float:right;margin-right: 30px;"><spring:message code="destinatario.delInforme"/></label>
		</div>
		
		<div class="y42b-row">
			<div class="y42b-colum20">
				<label><spring:message code="mail.direccionorigen"/>:</label>	
			</div>
			<div class="y42b-colum80">
				<input class="inputUpdate" id="sendMailDireccionOrigen" name="direccionOrigen" style="width: 649px; height: 20px" maxlength="255"/>
			</div>
		</div>
		
		<div class="y42b-row">
			<div class="y42b-colum20">
				<label><spring:message code="mail.subject"/>:</label>	
			</div>
			<div class="y42b-colum80">
				<input class="inputUpdate" id="senMailSubject" name="subject" style="width: 649px; height: 20px" maxlength="255"/>
			</div>
		</div>
		<div class="formulario_linea_sep"></div>
		<div id="y42bSendMailRadiosDiv" class="y42b-row">
			<input type="radio" class="y42b-checkbox" id="sendMailStaticRadio" name="tipoOperacion" value="M" checked/>
			<label for="static" class="y42b-label_radios"><spring:message code="mail.static"/></label>
			<input type="radio" class="y42b-checkbox" id="sendMailDynamicRadio" name="tipoOperacion" value="D"/>
			<label for="static" class="y42b-label_radios"><spring:message code="mail.dynamic"/></label>
		</div>
	</div>
	<div id="sendMailDivCheck" class="y42b-row">
		<input type="checkbox" id="y42bSendMailKontsumonet" name="kontsumoNet"/>
		<label class="espacio"><spring:message code="mail.kontsumonet"/></label>
	</div>
	<div id="sendMailDivCheckAcuse" class="y42b-row">
		<input type="checkbox" id="y42bSendMailAcuse" name="acuse" checked="checked"/>
		<label class="espacio"><spring:message code="mail.acuse"/></label>
	</div>
	
	<div id="sendMailDivCheckEnvioContactos" class="y42b-row">
		<input type="checkbox" id="y42bSendMailEnvioContactos" name="enviocontactos" />
		<label class="espacio"><spring:message code="mail.enviocontactos"/></label>
	</div>
	
	
	
	<div id="sendMailMessage">	
		<div id="sendMailDynamicOptions" style="display:none;">
			<div class="y42b-colum40">
				<select id="sendMailDynamicOptionCombo" class="rup-combo"></select>
			</div>	
			<div class="y42b-colum40">
				<input type="button" id="sendMailAddButton" class="ui-button ui-widget ui-state-default ui-corner-all"  value="<spring:message code="comun.anadir"/>">
			</div>
		</div>
		<div class="y42b-row">
			<div class="y42b-colum20">
				<label ><spring:message code="mail.message"/>:</label>
			</div>
			<div id="divTextAreaTiny" class="y42b-colum80">
				<!-- <div id="sendMailOptions"></div> -->
				<textarea id="sendMailText" rows="15" cols="70" name="text" style="width: 649px; height: 121px" class="tinymce" >
				</textarea>
			</div>
			
			<div id="divTextAreaTinyConsulta" class="y42b-colum80" style="display:none;"> 
				<textarea id="sendMailTextConsulta" rows="15" cols="70" name="text" style="width: 649px; height: 121px" class="tinymce" >
				</textarea>
			</div>
			
			 

			<input type="hidden" id="sendMailTextLink" name="enlace"/>
			
			
		</div>
	</div>
	<p>&nbsp;</p>
	<div id="tablaAdjuntosDiv">
		<div id="y42bSendMailTablaAdjuntosFeedback"></div>
		<br>
		<table id="y42bSendMailTablaAdjuntos" cellpadding="0" cellspacing="0">
			<tbody><tr><td>&nbsp;</td></tr></tbody>
		</table>
		<div id="y42bSendMailTablaAdjuntosPager"></div>
	</div>
	<p>&nbsp;</p>
	<div id="tablaAdjuntosBorrableDiv">
		<div id="y42bSendMailTablaAdjuntosBorrableFeedback"></div>
		<br>
		<table id="y42bSendMailTablaAdjuntosBorrable" cellpadding="0" cellspacing="0">
			<tbody><tr><td>&nbsp;</td></tr></tbody>
		</table>
		<div id="y42bSendMailTablaAdjuntosBorrablePager"></div>
	</div>
	<p>&nbsp;</p>
	
	<div id="fileupload_only">
		<div class="fileupload-buttonbar">
			<label for="file_only"><spring:message code="mail.attachments"/>: </label>
			<input id="file_only" type="file" name="files[]" multiple="multiple">
			<button type="submit" class="start"><spring:message code="mail.subirTodos"/></button>
			<button type="reset" class="cancel"><spring:message code="mail.cancelarTodos"/></button>
			<button type="button" id="buttonEliminarTodos" class="delete"><spring:message code="mail.eliminarTodos"/></button>
		</div>
		<div class="fileupload-content">
			<table id="fileuploadGrid" class="files"></table>
		<div id="fileupload-progressbar" class="fileupload-progressbar"></div>
	</div>
</div>	
<p>&nbsp;</p>



<div  class="right_buttons">
	<input type="button" id="sendMailModifyButton" style="display: none;" class="ui-button ui-widget ui-state-default ui-corner-all" value="<spring:message code="comun.modify"/>">
	<input type="button" id="sendMailSendButton" class="ui-button ui-widget ui-state-default ui-corner-all" value="<spring:message code="comun.send"/>">
	
</div>
</form>

