1 #include <infocon.style>
4 <page func=InfoCon title="Tankbuch">
5 <style type="text/css">
16 <a class="jsaction" href="#" onclick="return machine_new()">Neues Fahrzeug</a>
18 <div id="details" style="margin-top: 5px;display:none;">
19 <input type="hidden" id="id" name="id" value="">
20 <label for="name">Name</label>
21 <input type="text" id="name" name="name" size="30">
23 <input type="submit" onclick="return machine_new_save()" value="Speichern">
25 <input type="submit" onclick="$('#details').hide();return false" value="Abbrechen">
30 <script type="text/javascript">
35 function load_machines()
37 ajax_request('machines', null,
39 $('#machines').html(data.list);
43 function machine_new()
45 $('#details input').not('input[type="submit"]').val('');
50 function machine_new_save()
52 ajax_request('savemachine', $('#details input').serialize(),
60 function machine_list(obj)
62 $(obj).parents('form:first').get(0).submit();