コード例 #1
0
include "manutencao.php";
include "../inc/topo.php";
?>
<h1>Redefinição de Senha</h1>
<br><br>
<form action="index.php" id="formulario" method="post">
<table id="tabelaSolucaoCidada" align="center" cellpadding="0" cellspacing="1">
	<tr>
		<td><b>Senha atual:</b></td>
		<td><input type="password" name="senhaatual" size="50" maxlength="50" /> </td>
	</tr>
	<tr>
		<td><b>Nova senha:</b></td>
		<td><input type="password" name="novasenha" size="50" maxlength="50" /> </td>
	</tr>
	<tr>
		<td><b>Confirme a nova senha:</b></td>
		<td><input type="password" name="confirmasenha" size="50" maxlength="50" /> </td>
	</tr>			
	<tr><td colspan="2"><td></tr>
	<tr>
		<td colspan="2" align="center" style="border-top:1px solid #000000">
			<br><input type="submit" value="Alterar" class="botaoformulario" name="acao" />
		</td>
	</tr>
</table>

</form>
<?php 
getErro($erro);
include "../inc/rodape.php";
コード例 #2
0
ファイル: util.php プロジェクト: marcioarp/marp-framework
 function montaComboSQL($sql, $nomeCombo, $permitirBranco = false, $padrao = '', $grupo = false)
 {
     $rs = $this->conexao->runSQL($sql);
     if ($this->conexao->getErro()) {
         return $this->cnx > getErro();
     }
     $retorno = "<select name='{$nomeCombo}' id = '{$nomeCombo}'>";
     if ($permitirBranco) {
         $retorno .= "<option value=''> - </option>";
     }
     $FecharGrupo = '';
     $grupoAntes = '';
     while ($v = $this->conexao->fetchArray($rs)) {
         if ($grupo) {
             if ($grupoAntes != $v[2]) {
                 $retorno .= $FecharGrupo;
                 $retorno .= "<optgroup label='" . $v[2] . "'>";
                 $FecharGrupo = '</optgroup>';
                 $grupoAntes = $v[2];
             }
         }
         if ($v[0] == $padrao) {
             $retorno .= "<option value='" . $v[0] . "' selected>" . $v[1] . "</option>";
         } else {
             $retorno .= "<option value='" . $v[0] . "'>" . $v[1] . "</option>";
         }
     }
     $retorno .= '</select>';
     return $retorno;
 }