Advertisement
Guest User

Untitled

a guest
Apr 9th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 3.99 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html lang="de">
  4. <head>
  5.     <meta charset="utf-8">
  6.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7.     <meta name="viewport" content="width=device-width, initial-scale=1">
  8.     <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  9.     <title>THTEC MA Portal</title>
  10.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  11.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  12.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  13.     <!--[if lt IE 9]>
  14.    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  15.    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  16.    <![endif]-->
  17. </head>
  18. <body>
  19. <div class="row">
  20.     <div class="col-xs-12">
  21.         <div class="panel panel-default">
  22.             <div class="panel-heading">
  23.                 Zeitstempel aktualisieren
  24.             </div>
  25.             <div class="panel-body">
  26.                 <SCRIPT>
  27.     $(document).ready(function(){
  28.         $("#project_id").change(function(){
  29.             $('#task_id').empty();
  30.             project_id = $("#project_id").val();
  31.             $.ajax({
  32.                 url: "http://ma.thtec.ch/getTasks.php",
  33.                 data: {
  34.                     "project_id": project_id
  35.                 },
  36.                 cache: false,
  37.                 type: "GET",
  38.                 success: function(response) {
  39.                     $('#task_id').html(response);
  40.                 },
  41.                 error: function(xhr) {
  42.  
  43.                 }
  44.             });
  45.         });
  46.     })
  47. </SCRIPT>
  48. <form method="post" enctype="multipart/form-data">
  49.     <div class="form-group">
  50.                 <label for="user_id">Benutzer</label>
  51.         <SELECT name="user_id" id="user_id" class="form-control">
  52.             <OPTION value="1" >Axel Müller</OPTION><OPTION value="2" selected="selected">Andreas Trenter</OPTION><OPTION value="4" >Ronny Bayer</OPTION>        </SELECT>
  53.  
  54.     </div>
  55.     <div class="form-group">
  56.                 <label for="project_id">Projekt</label>
  57.         <SELECT name="project_id" id="project_id" class="form-control">
  58.             <OPTION value="1" >Ma Portal</OPTION><OPTION value="2" >Lagertätigkeit</OPTION><OPTION value="3" >Serafini</OPTION><OPTION value="4" >MFH Gimel</OPTION>        </SELECT>
  59.     </div>
  60.     <div class="form-group">
  61.                 <label for="task_id">Aufgabe</label>
  62.         <SELECT name="task_id" id="task_id" class="form-control">
  63.             <OPTION value="1" selected="selected">Arbeitsplatz einrichten</OPTION><OPTION value="2" >Abreitsplatz putzen</OPTION>        </SELECT>
  64.     </div>
  65.     <div class="form-group">
  66.                 <label for="ts">Datum/Zeit (H:i:s d.m.Y)</label>
  67.         <input type="text" class="form-control" id="ts" name="ts" value="1460003530">
  68.     </div>
  69.     <div class="form-group">
  70.                 <label for="type">Stempeltyp</label>
  71.         <SELECT name="type" id="type" class="form-control">
  72.             <OPTION value="0" selected="selected">Aus</OPTION><OPTION value="1" >Ein</OPTION>        </SELECT>
  73.     </div>
  74.     <div class="form-group">
  75.                 <label for="lat">GPS Breite</label>
  76.         <input disabled type="text" class="form-control" id="lat" name="lat" value="">
  77.     </div>
  78.     <div class="form-group">
  79.                 <label for="lon">GPS Länge</label>
  80.         <input disabled type="text" class="form-control" id="lon" name="lon" value="">
  81.     </div>
  82.     <div class="form-group">
  83.                 <label for="comment">Bemerkung</label>
  84.         <textarea class="form-control" id="comment" name="comment">test</textarea>
  85.     </div>
  86.  
  87.  
  88.     <input type="hidden" name="do" value="1">
  89.     <input type="hidden" name="id" value="2">
  90.     <input type="submit" class="btn btn-default" value="Absenden"/>
  91. </form>            </div>
  92.         </div>
  93.     </div>
  94. </div>
  95. </body>
  96. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement