0% found this document useful (0 votes)
5 views3 pages

Dynamic Form for Service and Function Selection

The document contains two HTML forms for data submission. The first form allows users to select a service and function, while the second form is for inserting names into a report, including selections for a bomb, service, function, and time slots. Both forms utilize server-side scripting to populate dropdown options dynamically from a database and include validation on submission.

Uploaded by

aber sillva
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

Dynamic Form for Service and Function Selection

The document contains two HTML forms for data submission. The first form allows users to select a service and function, while the second form is for inserting names into a report, including selections for a bomb, service, function, and time slots. Both forms utilize server-side scripting to populate dropdown options dynamically from a database and include validation on submission.

Uploaded by

aber sillva
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Form de aa

<form name="form1" method="post" action="" onSubmit="MM_validateForm('s','','R');return


document.MM_returnValue">
<p>&nbsp;</p>
<p>
<select name="s" id="s">
<%
while (!menu_Ser.EOF) {
%>
<option value="<%=(menu_Ser.[Link]("Cod").Value)%>"><%=(menu_Ser.[Link]("Servico_est").Value)
%></option>
<%
menu_Ser.MoveNext();
}
if (menu_Ser.CursorType > 0) {
if (!menu_Ser.BOF) menu_Ser.MoveFirst();
} else {
menu_Ser.Requery();
}
%>
</select>
</p>
<p>
<select name="a" id="a">
<%
while (!menu_funcao.EOF) {
%>
<option value="<%=(menu_funcao.[Link]("cod").Value)%>"><
%=(menu_funcao.[Link]("Funcao").Value)%></option>
<%
menu_funcao.MoveNext();
}
if (menu_funcao.CursorType > 0) {
if (!menu_funcao.BOF) menu_funcao.MoveFirst();
} else {
menu_funcao.Requery();
}
%>
</select>
</p>
<p>
<input name="Submit" type="submit" >
</p>
</form>

Form de inserir_nomes_relatorio
<form name="form1" method="post" action="<%=MM_editAction%>"
onSubmit="MM_validateForm('Servico','','R');return document.MM_returnValue">

<table align="center">
<tr valign="baseline">
<td width="108" align="right" nowrap class="texto">Nome:</td>
<td width="432"><select name="Bomb" id="select">
<%
while (!menu_bomb.EOF) {
%>
<option value="<%=(menu_bomb.[Link]("IDB_COD").Value)%>"><
%=(menu_bomb.[Link]("IDB_NOME").Value)%></option>
<%
menu_bomb.MoveNext();
}
if (menu_bomb.CursorType > 0) {
if (!menu_bomb.BOF) menu_bomb.MoveFirst();
} else {
menu_bomb.Requery();
}
%>
</select></td>
</tr>
<tr valign="baseline">
<td align="right" nowrap class="texto">&nbsp;</td>
<td> </td>
</tr>
<tr valign="baseline">
<td align="right" nowrap class="texto">Servi&ccedil;o</td>
<td><select name="Servico" id="select">

<%
while (!menu_servico.EOF) {
%>
<option value="<%=(menu_servico.[Link]("Cod").Value)%>"><
%=(menu_servico.[Link]("Servico_est").Value)%></option>
<%
menu_servico.MoveNext();
}
if (menu_servico.CursorType > 0) {
if (!menu_servico.BOF) menu_servico.MoveFirst();
} else {
menu_servico.Requery();
}
%>
</select></td>
</tr>
<tr valign="baseline">
<td align="right" nowrap class="texto">&nbsp;</td>
<td class="texto">&nbsp;</td>
</tr>
<tr valign="baseline">
<td align="right" nowrap class="texto">Func&atilde;o</td>
<td class="texto"> <select name="Funcao" id="Funcao">
<%
while (!menu_Funcao.EOF) {
%>
<option value="<%=(menu_Funcao.[Link]("cod").Value)%>"><
%=(menu_Funcao.[Link]("Funcao").Value)%></option>
<%
menu_Funcao.MoveNext();
}
if (menu_Funcao.CursorType > 0) {
if (!menu_Funcao.BOF) menu_Funcao.MoveFirst();
} else {
menu_Funcao.Requery();
}
%>
</select> <font color="#0000FF">Para GPBs, Volunt&aacute;rios
ECIN e ELAC</font></td>
</tr>
<tr valign="baseline">
<td align="right" nowrap class="texto">&nbsp;</td>
<td class="texto">&nbsp;</td>
</tr>
<tr valign="baseline">
<td align="right" nowrap class="texto">Horas de Inicio:</td>
<td class="texto"> <select name="Horas_i" id="Horas_i">
<%
while (!menu_horas_in.EOF) {
%>
<option value="<%=(menu_horas_in.[Link]("Horas").Value)%>"><
%=(menu_horas_in.[Link]("Horas_ext").Value)%></option>
<%
menu_horas_in.MoveNext();
}
if (menu_horas_in.CursorType > 0) {
if (!menu_horas_in.BOF) menu_horas_in.MoveFirst();
} else {
menu_horas_in.Requery();
}
%>
</select> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Horas de Fim:
<select name="horas_f" id="select4">
<%
while (!menu_horas_fi.EOF) {
%>
<option value="<%=(menu_horas_fi.[Link]("Horas").Value)%>"><
%=(menu_horas_fi.[Link]("Horas_ext").Value)%></option>
<%
menu_horas_fi.MoveNext();
}
if (menu_horas_fi.CursorType > 0) {
if (!menu_horas_fi.BOF) menu_horas_fi.MoveFirst();
} else {
menu_horas_fi.Requery();
}
%>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap align="right"><input name="cod_turno" type="hidden" id="cod_turno" value="<
%=([Link]("Turno").Value)%>">
<input name="Criado_por" type="hidden" id="Criado_por3" value="<
%=([Link]("Responsavel").Value)%>">
<input name="id_folha" type="hidden" id="id_folha" value="<%=([Link]("Id").Value)%>">
<input name="Data" type="hidden" id="Data3" value="<%= DoDateTime(([Link]("Data").Value), 2,
2070) %>">
</td>
<td>&nbsp;</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">&nbsp;</td>
<td> <input name="submit" type="submit" value="Inserir"></td>
</tr>
</table>
<p>
<input type="hidden" name="MM_insert" value="form1">
</p>
<p>&nbsp; </p>
</form>

You might also like