Advertisement
Guest User

Untitled

a guest
Mar 18th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. <?php
  2. session_start();
  3. if(!isset($_SESSION['utente'])){header('Location: index.php?errore=');}
  4. ?>
  5. <!DOCTYPE html>
  6. <html lang="en">
  7. <head>
  8. <meta charset="utf-8">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. <meta name="viewport" content="width=device-width, initial-scale=1">
  11. <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  12. <title>Gestione Checklist CLAAS</title>
  13.  
  14. <!-- Bootstrap -->
  15. <link href="css/bootstrap.min.css" rel="stylesheet">
  16.  
  17. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  18. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  19. <!--[if lt IE 9]>
  20. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  21. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  22. <![endif]-->
  23. </head>
  24. <body>
  25. <div class="container">
  26. <div class="row">
  27.  
  28. <div class="col-md-4"><img src="logoeuei.jpg" class="img-responsive" style="max-width:100px"><?=$_SESSION['utente'];?></div>
  29. <div class="col-md-8"></div>
  30.  
  31. </div>
  32. <div class="row">
  33. <div class="col-md-12 text-center"><h3>CHECK LIST ALLESTIMENTO MOTORI CLAAS-TIGERCAT 4-6 CILINDRI</h3></div>
  34. <div class="col-md-8"></div>
  35. </div>
  36.  
  37. <div class="row">
  38. <div class="col-md-3">
  39. <span class="label label-danger"><?php echo date('j/m/Y');?></SPAN></div>
  40. <div class="col-md-6"><h4>CONTROLLI MOTORE CODICE</H4></div>
  41. <div class="col-md-3">17700 33135 33141 33146</div>
  42. </div>
  43.  
  44. <div class="row">
  45. <div class="col-md-4">iNSERIRE DISEGNO MOTORE<BR>
  46. <?php
  47. $user = "Livio";
  48. $pass = "500rossa";
  49. $dbh = new PDO('mysql:host=localhost;dbname=Livio', $user, $pass);
  50. $set = $dbh->query('SELECT disegno FROM Checklist');
  51. $risultato = $set->fetchAll(PDO::FETCH_ASSOC);
  52. //print_r($risultato);
  53. ?>
  54. <select name="disegno" class="form-control">
  55. <option value="">Seleziona disegno</option>
  56. <?php
  57. foreach($risultato as $row){
  58. //echo $row['campo2'];
  59. echo "<option value='".$row['disegno']."'>".$row['disegno']."</option>";
  60. }
  61. ?>
  62. </select>
  63. </div>
  64. <div class="col-md-4"> </div>
  65. <div class="col-md-4">INSERIRE MATRICOLA<BR>
  66. <input type="text" class="form-control" placeholder="Inserisci Matricola">
  67. </div>
  68. </div>
  69.  
  70.  
  71. </div> <!-- /container -->
  72.  
  73. <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  74. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  75. <!-- Include all compiled plugins (below), or include individual files as needed -->
  76. <script src="js/bootstrap.min.js"></script>
  77. </body>
  78. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement