Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if(!isset($_SESSION['utente'])){header('Location: index.php?errore=');}
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
- <title>Gestione Checklist CLAAS</title>
- <!-- Bootstrap -->
- <link href="css/bootstrap.min.css" rel="stylesheet">
- <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
- <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
- <![endif]-->
- </head>
- <body>
- <div class="container">
- <div class="row">
- <div class="col-md-4"><img src="logoeuei.jpg" class="img-responsive" style="max-width:100px"><?=$_SESSION['utente'];?></div>
- <div class="col-md-8"></div>
- </div>
- <div class="row">
- <div class="col-md-12 text-center"><h3>CHECK LIST ALLESTIMENTO MOTORI CLAAS-TIGERCAT 4-6 CILINDRI</h3></div>
- <div class="col-md-8"></div>
- </div>
- <div class="row">
- <div class="col-md-3">
- <span class="label label-danger"><?php echo date('j/m/Y');?></SPAN></div>
- <div class="col-md-6"><h4>CONTROLLI MOTORE CODICE</H4></div>
- <div class="col-md-3">17700 33135 33141 33146</div>
- </div>
- <div class="row">
- <div class="col-md-4">iNSERIRE DISEGNO MOTORE<BR>
- <?php
- $user = "Livio";
- $pass = "500rossa";
- $dbh = new PDO('mysql:host=localhost;dbname=Livio', $user, $pass);
- $set = $dbh->query('SELECT disegno FROM Checklist');
- $risultato = $set->fetchAll(PDO::FETCH_ASSOC);
- //print_r($risultato);
- ?>
- <select name="disegno" class="form-control">
- <option value="">Seleziona disegno</option>
- <?php
- foreach($risultato as $row){
- //echo $row['campo2'];
- echo "<option value='".$row['disegno']."'>".$row['disegno']."</option>";
- }
- ?>
- </select>
- </div>
- <div class="col-md-4"> </div>
- <div class="col-md-4">INSERIRE MATRICOLA<BR>
- <input type="text" class="form-control" placeholder="Inserisci Matricola">
- </div>
- </div>
- </div> <!-- /container -->
- <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
- <!-- Include all compiled plugins (below), or include individual files as needed -->
- <script src="js/bootstrap.min.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement