Subversion Repository Public Repository

Nextrek

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<html>
	<head>
	<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
	</head>

	<body>
	<form id="submit">
		ID Locale:<br>
		<input type="text" name="local_id">
		<br>
		Nome locale:<br>
		<input type="text" name="nomelocale">
		<br>
		Descrizione:<br>
		<input type="textarea" name="descrizione">
		<br>
		Tipologia:<br>
		<input type="text" name="tipologia">
		<br>
		Email locale:<br>
		<input type="text" name="email">
		<br>
		Numero telefono locale:<br>
		<input type="text" name="telefono">
		<br>
		Sito internet locale:<br>
		<input type="text" name="sito">
		<br>

		<input type="submit" value="Lancia!">

	</form>

	<div id="output"></div>

	<script>
		var imgs = new Array();
		var token;

		$(document).ready(function() {
			$("#submit").submit(function(e) {
				e.preventDefault();

				var local_id 		= $("#submit input[name='local_id']").val();
				var nomelocale 		= $("#submit input[name='nomelocale']").val();
				var descrizione		= $("#submit input[name='descrizione']").val();
				var tipologia		= $("#submit input[name='tipologia']").val();
				var email 			= $("#submit input[name='email']").val();
				var telefono		= $("#submit input[name='telefono']").val();
				var sito			= $("#submit input[name='sito']").val();

				var params = {
					local_id: local_id,
					nomelocale: nomelocale,
					descrizione: descrizione,
					tipologia: tipologia,
					telefono: telefono,
					email: email,
					sito: sito
				}

				params = JSON.stringify(params);

				function ajaxResEditLocal(data) {
					var json_output = JSON.stringify(data);
					$("#output").append(json_output);
				}

				$.ajax({
					url: "../edit_locale.php",
					success: ajaxResEditLocal,
					method: "POST",
					data: params
				});

			});

		});
	</script>

	</body>
</html>

Commits for Nextrek/Android/SmartCharging/endPoints/nightly/examples/edit_locale.html

Diff revisions: vs.
Revision Author Commited Message
467 FSallustio picture FSallustio Mon 03 Aug, 2015 13:36:12 +0000

edit_locale.php e edit_utente.php