Browse Source

testando

dev
Claudio.Junior 4 months ago
parent
commit
3380c055cf
  1. 4
      www/html/aplicativo/cadastros/pesquisa/pesquisaCad.php
  2. 12
      www/html/aplicativo/scriptApl/pesquisa/index.js

4
www/html/aplicativo/cadastros/pesquisa/pesquisaCad.php

@ -624,7 +624,7 @@ function __template($dados, $movimento = null)
<td colspan="3"> <td colspan="3">
&nbsp;&nbsp; &nbsp;&nbsp;
<input name="po_id[' . $countPq_id . '][' . $v['po_display'] . ']" type="number" value="' . $v['po_id'] . '" hidden="true" /> <input name="po_id[' . $countPq_id . '][' . $v['po_display'] . ']" type="number" value="' . $v['po_id'] . '" hidden="true" />
' . $v['po_display'] . ') <input name="qst_tecla[' . $countPq_id . '][' . $v['po_display'] . ']" class="qst_tecla" type="number" value="' . $v['po_tecla'] . '" size="4" maxlength="2" min="0" max="999" required style="width:60px" ' . $isValid . '> ' . $v['po_display'] . ', ' . $v['count_opc'] . ') <input name="qst_tecla[' . $countPq_id . '][' . $v['po_display'] . ']" class="qst_tecla" type="number" value="' . $v['po_tecla'] . '" size="4" maxlength="2" min="0" max="999" required style="width:60px" ' . $isValid . '>
<input name="qst_descricao[' . $countPq_id . '][' . $v['po_display'] . ']" type="text" value="' . $v['po_opcao'] . '" title="Descreva aqui a opção" size="50" style="width:360px" maxlength="60" ' . $isValid . ' required> <input name="qst_descricao[' . $countPq_id . '][' . $v['po_display'] . ']" type="text" value="' . $v['po_opcao'] . '" title="Descreva aqui a opção" size="50" style="width:360px" maxlength="60" ' . $isValid . ' required>
' . $slc . ' ' . $slc . '
</td> %s </td> %s
@ -642,7 +642,7 @@ function __template($dados, $movimento = null)
'" src="imgSite/fecha16.png" width="12" height="12" border="0" align="absmiddle">testeee</a>'; '" src="imgSite/fecha16.png" width="12" height="12" border="0" align="absmiddle">testeee</a>';
// so insere o botao de delete, se a opcao for a ultima da lista. // so insere o botao de delete, se a opcao for a ultima da lista.
$table = sprintf($table, $v['count_opc'] == $v['po_display'] ? $deleteBtn : ''); $table = sprintf($table, $v['count_opc'] == $v['po_display'] ? $deleteBtn : 'no');
} }
$template .= sprintf($html, $table); $template .= sprintf($html, $table);

12
www/html/aplicativo/scriptApl/pesquisa/index.js

@ -15,7 +15,7 @@ const buildResponse = (qst, opc) => {
<td colspan="3"> &nbsp;&nbsp; <td colspan="3"> &nbsp;&nbsp;
<input name="po_id[${qst}][${opc}]" type="number" value="791" hidden="true"> <input name="po_id[${qst}][${opc}]" type="number" value="791" hidden="true">
${opc}) <input name="qst_tecla[${qst}][${opc}]" class="qst_tecla" type="number" value="2" size="4" maxlength="2" min="0" max="999" required="" style="width:60px"> ${opc}) <input name="qst_tecla[${qst}][${opc}]" class="qst_tecla" type="number" value="2" size="4" maxlength="2" min="0" max="999" required="" style="width:60px">
<input name="qst_descricao[${qst}][${opc}]" type="text" value="N<EFBFBD>O" title="Descreva aqui a op<EFBFBD><EFBFBD>o" size="50" style="width:360px" maxlength="60" required=""> <input name="qst_descricao[${qst}][${opc}]" type="text" value="NãO" title="Descreva aqui a opção" size="50" style="width:360px" maxlength="60" required="">
</td> </td>
</tr>`; </tr>`;
}; };
@ -308,7 +308,7 @@ $(function () {
let novoEle = $( let novoEle = $(
'<td align="right"><a href="#" id="delnewQuestion' + '<td align="right"><a href="#" id="delnewQuestion' +
(q - 1) + (q - 1) +
'" title="DELETAR QUEST<EFBFBD>O"><img src="imgSite/fecha16.png" name="animate" width="13" height="13" align="absmiddle" id="deleteNewQuestion' + '" title="DELETAR QUESTãO"><img src="imgSite/fecha16.png" name="animate" width="13" height="13" align="absmiddle" id="deleteNewQuestion' +
(q - 1) + (q - 1) +
'" /></a><td>' '" /></a><td>'
); );
@ -326,7 +326,7 @@ $(function () {
$("#pqt_id").prop("readonly", true); $("#pqt_id").prop("readonly", true);
$("#pqt_id").css({ "pointer-events": "none", opacity: 0.5 }); $("#pqt_id").css({ "pointer-events": "none", opacity: 0.5 });
//REMOVE O BOT<EFBFBD>O DE DELETE //REMOVE O BOTãO DE DELETE
$("#collapse" + numEle + " #cabRota table tbody tr td:nth-child(3)").remove(); $("#collapse" + numEle + " #cabRota table tbody tr td:nth-child(3)").remove();
$("#collapse" + numEle) $("#collapse" + numEle)
.clone() .clone()
@ -337,7 +337,7 @@ $(function () {
$("#collapse" + num + " #labelRotas" + numEle).prop("id", "labelRotas" + num); $("#collapse" + num + " #labelRotas" + numEle).prop("id", "labelRotas" + num);
$("#collapse" + num + " #labelPergunta").text(""); $("#collapse" + num + " #labelPergunta").text("");
//RECRIA<EFBFBD><EFBFBD>O DOS IDS E NAMES PARA O NOVO FORM //RECRIAãO DOS IDS E NAMES PARA O NOVO FORM
$("#box" + num + " #pq_tipo" + numEle) $("#box" + num + " #pq_tipo" + numEle)
.prop("id", "pq_tipo" + num) .prop("id", "pq_tipo" + num)
@ -405,7 +405,7 @@ $(function () {
let novoEle = $( let novoEle = $(
'<td align="right"><a href="#" id="delnewQuestion' + '<td align="right"><a href="#" id="delnewQuestion' +
num + num +
'" title="DELETAR QUEST<EFBFBD>O"><img src="imgSite/fecha16.png" name="animate" width="13" height="13" align="absmiddle" id="deleteNewQuestion' + '" title="DELETAR QUESTãO"><img src="imgSite/fecha16.png" name="animate" width="13" height="13" align="absmiddle" id="deleteNewQuestion' +
num + num +
'" /></a><td>' '" /></a><td>'
); );
@ -433,7 +433,7 @@ $(function () {
} else { } else {
$("#addResponse" + q).show(); $("#addResponse" + q).show();
$("#box" + q + " #tableResponse" + q).append( $("#box" + q + " #tableResponse" + q).append(
`<tr><td colspan="3"> &nbsp;&nbsp; <input name="po_id[${q}][2]" type="number" value="" hidden="true">2) <input name="qst_tecla[${q}][2]" class="qst_tecla" type="number" value="" size="4" maxlength="2" min="0" max="999" required="" style="width:60px"> <input name="qst_descricao[${q}][2]" type="text" value="" title="Descreva aqui a op<EFBFBD><EFBFBD>o" size="50" style="width:360px" maxlength="60" required=""></td></tr>` `<tr><td colspan="3"> &nbsp;&nbsp; <input name="po_id[${q}][2]" type="number" value="" hidden="true">2) <input name="qst_tecla[${q}][2]" class="qst_tecla" type="number" value="" size="4" maxlength="2" min="0" max="999" required="" style="width:60px"> <input name="qst_descricao[${q}][2]" type="text" value="" title="Descreva aqui a opão" size="50" style="width:360px" maxlength="60" required=""></td></tr>`
); );
} }
} }

Loading…
Cancel
Save