-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
153 lines (140 loc) · 6.1 KB
/
index.html
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>geocoder catastro</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://www.instamaps.cat/llibreries/css/bootstrap.min.css">
<link rel="stylesheet" href="css/select2.css">
<link rel="stylesheet" href="css/select2-bootstrap.css">
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12"><h4>Geocoder catastro</h4></div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 white-bkg">
<form role="form">
<div class="form-group">
<label>Entreu les següents dades:</label>
</div>
<div class="form-group">
<label for="municipi">Municipi</label>
<select class="form-control" id="municipi" data-placeholder="Seleccioneu el municipi">
<option></option>
</select>
<span class="help-block">Únicament municipis de Catalunya</span>
</div>
<div class="form-group">
<label for="adreca">Adreça Postal</label>
<input type="text" class="form-control" id="adreca" placeholder="CL MAJOR, 12">
<span class="help-block">
<a id="llistatTipusCarrer">llistat de tipus de carrers</a>
<a id="llistatCarrers">llistat de carrers</a>
</span>
</div>
<button id="btnCercar" type="submit" class="btn btn-default">Cercar</button>
<hr>
<div class="form-group">
<label for="refcad">Referència cadastral</label>
<input type="text" class="form-control" id="refcad" placeholder="referència cadastral 20 dígits">
<span class="help-block">La referència cadastral ha de tenir 20 dígits</span>
</div>
<button id="btnEnviar" type="submit" class="btn btn-default">Cercar</button>
</form>
</div>
</div>
<div class="row">
<div class="col-md-12"><h4> </h4></div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 white-bkg">
<div id="map"></div>
</div>
</div>
<div class="modal fade" id="llistaTipusModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Tancar</span></button>
<h4 class="modal-title">Tipus carrers Cadastre</h4>
</div>
<div class="modal-body">
<div id="llistatTipusCar" class="list-group"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Tancar</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div class="modal fade" id="llistaCarrersModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Tancar</span></button>
<h4 class="modal-title">Llistat carrers Municipi</h4>
</div>
<div class="modal-body">
<div id="llistatCarrersMsg" class="alert-danger"></div>
<div id="llistatCarrersList" class="list-group"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Tancar</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div class="modal fade" id="llistaRCModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Tancar</span></button>
<h4 class="modal-title">Llistat de Béns Immobles</h4>
</div>
<div class="modal-body">
<div id="llistatRCMsg" class="alert-danger"></div>
<div id="llistatRCList" class="list-group"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Tancar</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script id="llistatTipus-template" type="text/x-handlebars-template">
{{#each this}}
<a href="#" class="list-group-item" data-tv="{{tv}}">{{tv}} {{nom}}</a>
{{/each}}
</script>
<script id="llistatMunicipis-template" type="text/x-handlebars-template">
{{#each this}}
<option value="{{codiCadastre}}">{{municipiCadastre}}</option>
{{/each}}
</script>
<script id="llistatCarrers-template" type="text/x-handlebars-template">
{{#each calle}}
<a href="#" class="list-group-item" data-nom="{{dir.tv}} {{dir.nv}}">{{dir.tv}} {{dir.nv}}</a>
{{/each}}
</script>
<script id="llistatRC-template" type="text/x-handlebars-template">
{{#each rcdnp}}
<a href="#" class="list-group-item" data-rc="{{rc.pc1}}{{rc.pc2}}{{rc.car}}{{rc.cc1}}{{rc.cc2}}">{{rc.pc1}}{{rc.pc2}}{{rc.car}}{{rc.cc1}}{{rc.cc2}} - <strong>Escala:</strong>{{dt.locs.lous.lourb.loint.es}} <strong>Planta:</strong>{{dt.locs.lous.lourb.loint.pt}} <strong>Porta:</strong>{{dt.locs.lous.lourb.loint.pu}}</a>
{{/each}}
</script>
</div>
<script src="http://www.instamaps.cat/llibreries/js/jquery/jquery-2.0.2.min.js"></script>
<script src="http://www.instamaps.cat/llibreries/js/bootstrap.min.js"></script>
<script src="http://www.instamaps.cat/llibreries/js/handlebars-v1.1.2.js"></script>
<script src="http://www.instamaps.cat/llibreries/js/jquery/plugins/url.min.js"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script src="js/tipus_via_cadastre.js" type="text/javascript"></script>
<script src="js/select2.min.js" type="text/javascript"></script>
<script src="js/select2_locale_ca.js" type="text/javascript"></script>
<script src="js/index.js" type="text/javascript"></script>
</body>
</html>