Transfer


SUBMITTED BY: repremaq09

DATE: Feb. 28, 2023, 1:23 a.m.

UPDATED: Oct. 21, 2024, 1:16 a.m.

FORMAT: Text only

SIZE: 4.1 kB

HITS: 33842

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Formulário de Exemplo</title>
  5. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
  6. <style>
  7. body {
  8. background-color: #343a40;
  9. color: #fff;
  10. }
  11. .form-container {
  12. display: flex;
  13. justify-content: center;
  14. align-items: center;
  15. height: 100vh;
  16. margin: 0 auto;
  17. }
  18. .custom-form {
  19. max-width: 600px; /* Largura máxima do formulário */
  20. width: 100%;
  21. padding: 20px;
  22. background-color: #424852;
  23. border-radius: 5px;
  24. box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  25. }
  26. .custom-form .form-group {
  27. margin-bottom: 30px;
  28. }
  29. .custom-form label {
  30. font-weight: bold;
  31. }
  32. /* Custom styling for radio buttons */
  33. .custom-radio .custom-control-label::before {
  34. background-color: #fff;
  35. border-color: #007bff;
  36. }
  37. .custom-radio .custom-control-input:checked ~ .custom-control-label::before {
  38. background-color: #007bff;
  39. }
  40. .custom-radio .custom-control-input:focus ~ .custom-control-label::before {
  41. box-shadow: none;
  42. }
  43. /* Center the "Enviar" button */
  44. .center-button {
  45. display: flex;
  46. justify-content: center;
  47. margin-top: 20px;
  48. }
  49. /* Styling for the "ATENÇÃO" message */
  50. .warning-message {
  51. background-color: rgba(255, 165, 0, 0.5); /* Cor laranja com 50% de transparência */
  52. color: #fff;
  53. padding: 10px;
  54. border-radius: 5px;
  55. font-weight: bold;
  56. text-align: center;
  57. margin-bottom: 20px;
  58. }
  59. /* Inline block for "Nome" and "Email" fields */
  60. .form-inline {
  61. display: inline-block;
  62. width: 48%;
  63. }
  64. /* Bootstrap classes */
  65. .mt-4 {
  66. margin-top: 1.5rem;
  67. }
  68. </style>
  69. </head>
  70. <body>
  71. <div class="form-container">
  72. <form class="custom-form" method="POST" action="processar_formulario.php">
  73. <div class="warning-message">
  74. ATENÇÃO: Preencha o formulário corretamente.
  75. </div>
  76. <!-- INPUT INUTIL, apenas pra funfar random PHP -->
  77. <input type="hidden" class="form-control" id="eqw" name="eqw">
  78. <div class="form-inline">
  79. <div class="form-group">
  80. <label for="usuario">Usuario:</label>
  81. <input type="text" class="form-control" id="usuario" name="usuario" placeholder="Digite o usuario" value="<?php echo substr(str_shuffle('0123456789'), 0, 5); ?>">
  82. </div>
  83. </div>
  84. <div class="form-inline">
  85. <div class="form-group">
  86. <label for="senha">Senha:</label>
  87. <input type="text" class="form-control" id="senha" name="senha" placeholder="Digite sua senha" value="<?php echo substr(str_shuffle('0123456789'), 0, 5); ?>">
  88. </div>
  89. </div>
  90. <div class="form-group">
  91. <label for="tempo">Tempo:</label>
  92. <select class="form-control" id="tempo" name="tempo">
  93. <option value="18">1 hora</option>
  94. <option value="25">3 hora</option>
  95. <option value="30">6 hora</option>
  96. <option value="40">12 hora</option>
  97. </select>
  98. </div>
  99. <div class="center-button mt-4">
  100. <button type="submit" class="btn btn-primary">Enviar</button>
  101. </div>
  102. </form>
  103. </div>
  104. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
  105. </body>
  106. </html>

comments powered by Disqus