Browse Source

testando

dev
Claudio.Junior 4 months ago
parent
commit
21120b4c91
  1. 27
      www/html/aplicativo/cadastros/pesquisa/pesquisaCad.php

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

@ -619,19 +619,8 @@ function __template($dados, $movimento = null)
</div>';
}
//lista de opcoes da questao
$table .= '<tr>
<td colspan="3">
&nbsp;&nbsp;
<input name="po_id[' . $countPq_id . '][' . $v['po_display'] . ']" type="number" value="' . $v['po_id'] . '" hidden="true" />
' . $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>
' . $slc . '
</td>
</tr>';
// botao de excluir opcao. So sera inserido se a opção for a ultima.
$deleteBtn = '<a href="#" id="delOp_' +
$deleteBtn = $v['count_opc'] == $v['po_display'] ? '<a href="#" id="delOp_' +
$v['pq_index'] +
"|" +
$v['po_index'] +
@ -639,10 +628,18 @@ function __template($dados, $movimento = null)
$v['pq_index'] +
"|" +
$v['po_index'] +
'" 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>' : 'no';
// so insere o botao de delete, se a opcao for a ultima da lista.
$table = sprintf($table, $v['count_opc'] == $v['po_display'] ? $deleteBtn : 'no');
//lista de opcoes da questao
$table .= '<tr>
<td colspan="3">
&nbsp;&nbsp;
<input name="po_id[' . $countPq_id . '][' . $v['po_display'] . ']" type="number" value="' . $v['po_id'] . '" hidden="true" />
' . $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>
' . $slc . $deleteBtn . '
</td>
</tr>';
}
$template .= sprintf($html, $table);

Loading…
Cancel
Save