%PDF- %PDF-
Direktori : /mnt/tnb2/los/backend/ |
Current File : //mnt/tnb2/los/backend/soutez_nastaveni.php |
<!DOCTYPE html> <html lang="cs"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="apple-mobile-web-app-title" content="Správa závodů LOS" /> <meta name="application-name" content="Správa závodů LOS" /> <meta name="msapplication-TileColor" content="#da532c" /> <meta name="theme-color" content="#ffffff" /> <meta name="color-scheme" content="dark light" /> <title>Správa závodů LOS</title> <link rel="canonical" href="https://loslex.cz/backend/" /> <link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png" /> <link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png" /> <link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png" /> <link rel="manifest" href="../site.webmanifest" /> <!-- css --> <link rel="stylesheet" href="../css/bootstrap.min.css"> <link rel="stylesheet" href="css/dashboard.css"> </head> <body> <?php ini_set( "session.gc_maxlifetime", 86400 ); session_start(); $admin=$_SESSION["admin"]; $poradatel_id=$_SESSION["poradatel_id"]; $poradatel=$_SESSION["poradatel"]; include('../sql.php'); $db=mysqli_connect(pc,user,pass,data) or die('Není spojení s databází!'); $mysqli = new mysqli(pc,user,pass,data); ?> <header> <nav class="navbar navbar-expand-md fixed-top bg-light border-bottom"> <div class="container-fluid"> <span class="navbar-brand fw-bold fs-6">SK LOS SEVER z. s.</span> <button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#loslex"><span class="fas fa-bars"></span></button> <div class="collapse navbar-collapse" id="loslex"> <div class="navbar-nav mx-auto"> <ul class="navbar-nav mb-2 mb-lg-0"> <li class="nav-item"><a class="nav-link" href="main.php">Přehled závodů</a></li> <li class="nav-item"><a class="nav-link" href="novy.php">Nový závod</a></li> <li class="nav-item"><a class="nav-link" href="poradatel_nastaveni.php">Nastavení pořadatele</a></li> <?php if ($admin==1) { echo '<li class="nav-item"><a class="nav-link" href="zavodnici.php">Správa uživatelů</a></li>'; echo '<li class="nav-item"><a class="nav-link active" href="soutez_nastaveni.php">Nastavení soutěže</a></li>'; } echo '</ul>'; echo '</div>'; if (isset($_SESSION["poradatel"])) { echo '<div class="navbar-nav ms-auto">'; echo '<li class="nav-item dropdown">'; echo '<a class="nav-link dropdown-toggle" href="login.php" role="button" data-bs-toggle="dropdown" aria-expanded="false">Pořadatel: '.$_SESSION["poradatel"].'</a>'; echo '<ul class="dropdown-menu rounded-0">'; echo '<li class="nav-item"><a class="nav-link dropdown-item" href="logout.php">Odhlásit</a></li>'; echo '</ul>'; echo '</li>'; echo '</div>'; } //else {echo '<li class="nav-item ms-auto"><a class="nav-link" href="index.php">Přihlásit</a></li>';} ?> </div> </div> </nav> </header> <!-- create table match *https://codepen.io/AllThingsSmitty/pen/MyqmdM* & *https://css-tricks.com/responsive-data-tables/* --> <div class="container"> <div class="row"> <div class="col-lg-12 col-md-6 mb-3 mt-lg-0 mt-3"> <h4 class="text-center mt-3 mt-lg-0 mb-3">Nastavení soutěže</h4> <?php $dotaz="select * from poradatele where id_poradatele=".$poradatel_id; $test=mysqli_fetch_assoc($mysqli->query($dotaz)); ?> <div class="row"> <div class="col-sm-3 mb-3"> <div class="card rounded-0 text-center"> <div class="card-body mb-2"> <h6 class="card-title mb-3">Ročníky závodů:</h6> <form method="POST" action="rocniky.php"><button type="submit" name="rocniky" class="btn btn-sm btn-success">Změnit nastavení</button></form> </div> </div> </div> <div class="col-sm-3 mb-3"> <div class="card rounded-0 text-center"> <div class="card-body mb-2"> <h6 class="card-title mb-3">Kategorie závodů:</h6> <form method="POST" action="kategorie.php"><button type="submit" name="kategorie" class="btn btn-sm btn-success">Změnit nastavení</button></form> </div> </div> </div> <div class="col-sm-3 mb-3"> <div class="card rounded-0 text-center"> <div class="card-body mb-2"> <h6 class="card-title mb-3">Zbraně pro kategorie závodů:</h6> <form method="POST" action="zbranekategorie.php"><button type="submit" name="zbranekategorie" class="btn btn-sm btn-success">Změnit nastavení</button></form> </div> </div> </div> <div class="col-sm-3 mb-3"> <div class="card rounded-0 text-center"> <div class="card-body mb-2"> <h6 class="card-title mb-3">Úrovně závodů:</h6> <form method="POST" action="urovne.php"><button type="submit" name="urovne" class="btn btn-sm btn-success">Změnit nastavení</button></form> </div> </div> </div> </div> <div class="row"> <div class="col-sm-3 mb-3"> <div class="card rounded-0 text-center"> <div class="card-body mb-2"> <h6 class="card-title mb-3">Způsoby registrace:</h6> <form method="POST" action="zpusobregistrace.php"><button type="submit" name="urovne" class="btn btn-sm btn-success">Změnit nastavení</button></form> </div> </div> </div> <div class="col-sm-3 mb-3"> <div class="card rounded-0 text-center"> <div class="card-body mb-2"> <h6 class="card-title mb-3">Prezence:</h6> <form method="POST" action="prezence.php"><button type="submit" name="urovne" class="btn btn-sm btn-success">Změnit nastavení</button></form> </div> </div> </div> </div> </div> </div> </div> <!-- footer --> <footer class="footer mt-auto py-3"> <div class="container"> <p class="text-center copyright">2023 | mickey & strasidlo | created for defens shooting</p> </div> </footer> <!-- scripts --> <script src="js/bootstrap.bundle.min.js"></script> <script src="js/jquery.min.js"></script> <script src="js/main.js"></script> </body> </html>