<!-- Formulário de adicionar banner (inicialmente oculto) -->
            <div class="card-header py-3" id="bannerForm" style="display: none;">
<h1 class="h3 mb-1 text-gray-800">Adicionar Novo Banner</h1>                <form action="upload.php" method="post" enctype="multipart/form-data">
                    <label for="title">Título:</label>
                    <input type="text" name="title" id="title"><br>
                    <input type="file" name="banner" id="banner">
                    <input class="btn-green" type="submit" value="Enviar" name="submit">
                </form>
            </div>
<!DOCTYPE html>
<html lang="pt-br">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Seleção de Opção</title>
  <!-- Adicionando Bootstrap CSS -->
  <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
  <!-- Adicionando CSS personalizado -->
  <style>
    body {
      background-color: #f8f9fa;
    }
    .container {
      margin-top: 50px;
    }
    .card {
      border: none;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    .card-header {
      background-color: #007bff;
      color: #fff;
      border-radius: 10px 10px 0 0;
    }
    .btn-primary {
      background-color: #007bff;
      border-color: #007bff;
    }
    .btn-primary:hover {
      background-color: #0056b3;
      border-color: #0056b3;
    }
    .logo {
      position: absolute;
      top: 20px;
      left: 20px;
      width: 100px;
      height: auto;
    }
  </style>
</head>
<body>

<!-- Adicionando imagem no canto superior esquerdo -->
<img src="logo.png" alt="Logo" class="logo">

<div class="container">
  <div class="row justify-content-center">
    <div class="col-md-6">
      <div class="card">
        <div class="card-header">
          <h2 class="text-center">Selecione uma opção:</h2>
        </div>
        <div class="card-body">
          <select class="form-control mb-3" id="opcoes">
            <option value="autoads.php">Automático</option>
            <option value="autoads2.php">Automático 2</option>
            <option value="menads.php">Manual</option>
            <option value="pasta_videos/video.mp4">video</option>
            <option value="pagina.php">Pagina web</option>
          </select>
          <button class="btn btn-primary btn-block" onclick="salvarOpcao()">Salvar</button>
        </div>
      </div>
    </div>
  </div>
</div>

<!-- Adicionando Bootstrap JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js"></script>

<script>
  function salvarOpcao() {
    var opcaoSelecionada = document.getElementById("opcoes").value;
    $.ajax({
        url: 'opcao.php',
        method: 'POST',
        data: {opcao: opcaoSelecionada},
        success: function(response) {
            alert('Opção salva com sucesso!');
        }
    });
  }
</script>

</body>
</html>
