Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="de">
- <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>THTEC MA Portal</title>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
- <!--[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="row">
- <div class="col-xs-12">
- <div class="panel panel-default">
- <div class="panel-heading">
- Zeitstempel aktualisieren
- </div>
- <div class="panel-body">
- <SCRIPT>
- $(document).ready(function(){
- $("#project_id").change(function(){
- $('#task_id').empty();
- project_id = $("#project_id").val();
- $.ajax({
- url: "http://ma.thtec.ch/getTasks.php",
- data: {
- "project_id": project_id
- },
- cache: false,
- type: "GET",
- success: function(response) {
- $('#task_id').html(response);
- },
- error: function(xhr) {
- }
- });
- });
- })
- </SCRIPT>
- <form method="post" enctype="multipart/form-data">
- <div class="form-group">
- <label for="user_id">Benutzer</label>
- <SELECT name="user_id" id="user_id" class="form-control">
- <OPTION value="1" >Axel Müller</OPTION><OPTION value="2" selected="selected">Andreas Trenter</OPTION><OPTION value="4" >Ronny Bayer</OPTION> </SELECT>
- </div>
- <div class="form-group">
- <label for="project_id">Projekt</label>
- <SELECT name="project_id" id="project_id" class="form-control">
- <OPTION value="1" >Ma Portal</OPTION><OPTION value="2" >Lagertätigkeit</OPTION><OPTION value="3" >Serafini</OPTION><OPTION value="4" >MFH Gimel</OPTION> </SELECT>
- </div>
- <div class="form-group">
- <label for="task_id">Aufgabe</label>
- <SELECT name="task_id" id="task_id" class="form-control">
- <OPTION value="1" selected="selected">Arbeitsplatz einrichten</OPTION><OPTION value="2" >Abreitsplatz putzen</OPTION> </SELECT>
- </div>
- <div class="form-group">
- <label for="ts">Datum/Zeit (H:i:s d.m.Y)</label>
- <input type="text" class="form-control" id="ts" name="ts" value="1460003530">
- </div>
- <div class="form-group">
- <label for="type">Stempeltyp</label>
- <SELECT name="type" id="type" class="form-control">
- <OPTION value="0" selected="selected">Aus</OPTION><OPTION value="1" >Ein</OPTION> </SELECT>
- </div>
- <div class="form-group">
- <label for="lat">GPS Breite</label>
- <input disabled type="text" class="form-control" id="lat" name="lat" value="">
- </div>
- <div class="form-group">
- <label for="lon">GPS Länge</label>
- <input disabled type="text" class="form-control" id="lon" name="lon" value="">
- </div>
- <div class="form-group">
- <label for="comment">Bemerkung</label>
- <textarea class="form-control" id="comment" name="comment">test</textarea>
- </div>
- <input type="hidden" name="do" value="1">
- <input type="hidden" name="id" value="2">
- <input type="submit" class="btn btn-default" value="Absenden"/>
- </form> </div>
- </div>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement