示例#1
0
      <div class="row">
        <div class="form-group col-lg-3 col-xs-4">
          <span>Código:</span>
          <input type="text" name="local_id" class="form-control" value="<?php 
echo $local->getLocalId();
?>
" disabled />
        </div>
      </div>

      <div class="row">        
        <div class="form-group col-lg-10 col-xs-12">
          <span>Descrição:</span>
          <input type="text" name="dsc_local" class="form-control" maxlength="30" value="<?php 
echo $local->getDscLocal();
?>
" required autofocus
            data-bv-stringlength="true"
            data-bv-stringlength-min="4"
            data-bv-stringlength-message="A descrição deve conter no mínimo 4 caracteres" />
        </div>
      </div>

      <div class="btn-group">
        <button class="btn btn-success" type="submit"><span class="glyphicon glyphicon-ok"></span> Gravar</button>
        <a class="btn btn-warning" href="listagem.php"><span class="glyphicon glyphicon-remove"></span> Cancelar</a>
      </div>
    </form>

  </div> <!-- /main -->
示例#2
0
          .bootstrapValidator({
              // Only disabled elements are excluded
              // The invisible elements belonging to inactive tabs must be validated
              excluded: [':disabled'],
              feedbackIcons: {
                  valid: 'glyphicon glyphicon-ok',
                  invalid: 'glyphicon glyphicon-remove',
                  validating: 'glyphicon glyphicon-refresh'
              }
          });
  });
  </script>
  
  <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <legend class="page-header">Jogo: <?php 
echo date('d/m/Y', strtotime($jogo->getDtJogo())) . ' - ' . $local->getDscLocal();
?>
</legend>
  
    <h4 class="text-info">Fechamento de ticket <strong>#<?php 
echo $ticket_id;
?>
</strong> do jogador: <strong><?php 
echo $jogador->getNome();
?>
</strong></h4><br>
  
    <form id="form_cad" class="form" role="form" method="post">    

      <div class="row">
        <div class="form-group col-lg-2 col-md-3 col-sm-3 col-xs-4">