-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
202 lines (158 loc) · 8.35 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!DOCTYPE HTML>
<html>
<head>
<title>SergasApp</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript" src="assets/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="assets/jquery/jquery.mobile-1.0.min.js"></script>
<link rel="stylesheet" type="text/css" href="assets/jquery/jquery.mobile-1.0.min.css" />
<script type="text/javascript" src="assets/main.js"></script>
</head>
<body>
<div data-role="page" id="inicio">
<div data-role="header">
<a id="link_salir" onClick="exitApp();" data-icon="delete" data-iconpos="notext" class="ui-btn-left">Saír</a>
<h1>SergasApp</h1>
<a href="#info" data-icon="info" data-iconpos="notext" class="ui-btn-right">Acerca de</a>
</div>
<div data-role="content">
<ul data-role="listview" id="lista"></ul>
</div>
<div data-role="footer">
<div class="ui-bar">
<a onClick="newCard();" data-role="button" data-icon="plus" class="ui-body-b">Engadir tarxeta</a>
</div>
</div>
</div>
<div data-role="page" id="info">
<div data-role="header">
<h1>Acerca de</h1>
</div>
<div data-role="content">
<img src="icon.png" style="float:left; padding:1em" />
<h2>SergasApp</h2>
<p>
<strong>SergasApp</strong> é unha pequena aplicación
<strong>non oficial</strong> para a solicitude, consulta e
cancelación de citas de atención primaria no
SERGAS (Servizo Galego de Saúde).
</p>
<p>
Para máis información podes visitar a páxina web da
aplicación:
<a href="http://mrego.github.com/sergasapp/">http://mrego.github.com/sergasapp/</a>
</p>
<h2>Licenza</h2>
<p>
<strong>SergasApp</strong> é software libre e está
publicada coa licenza GPLv3.
</p>
<h2>Autores</h2>
<p>
A aplicación foi desenvolvida por
Manuel Rego Casasnovas ([email protected]).</strong>
</p>
</div>
</div>
<div data-role="page" id="solicitude_cita">
<div data-role="header">
<h1>Solicitude de cita</h1>
</div>
<div data-role="content">
<label for="medico">Médico</label><input id="medico" disabled="true" />
<label for="centro">Centro</label><input id="centro" disabled="true" />
<label for="tipo">Tipo de cita</label>
<select id="tipo" onChange="updateDays();">
<option value="1" selected="selected">Consulta por Enfermidade</option>
<option value="2">Consulta para Receitas</option>
</select>
<label for="dia">Día</label><select id="dia"></select>
<label for="rango">Rango</label><input id="rango" disabled="true" />
<label for="alerta">Alerta</label><input id="alerta" disabled="true" />
<label for="hora">Hora</label><input id="hora" value="00" />
<label for="minutos">Minutos</label><input id="minutos" value="00" />
<a onClick="requestAppointment();" data-role="button" data-icon="check">Solicitar</a>
</div>
</div>
<div data-role="page" id="confirmar_cita">
<div data-role="header">
<h1>Confirmar cita</h1>
</div>
<div data-role="content">
<label for="medico2">Médico</label><input id="medico2" disabled="true" />
<label for="substituto2">Substituto</label><input id="substituto2" disabled="true" />
<label for="centro2">Centro</label><input id="centro2" disabled="true" />
<label for="tipo2">Tipo de cita</label><input id="tipo2" disabled="true" />
<label for="dia2">Día</label><input id="dia2" disabled="true" />
<label for="hora2">Hora</label><select id="hora2"></select>
<a onClick="confirmAppointment();" data-role="button" data-icon="check">Confirmar</a>
</div>
</div>
<div data-role="page" id="editar_tarxeta">
<div data-role="header">
<h1>Editar tarxeta</h1>
</div>
<div data-role="content">
<div class="ui-body ui-body-b">
<div data-role="fieldcontain">
<a data-role="button" data-icon="info" data-iconpos="notext" style="float: right;" onClick="help('alias');">Axuda</a>
<label for="alias">Alias tarxeta</label>
<input id="alias" type="text" />
</div>
</div>
<div class="ui-body ui-body-c">
<h3>Datos da tarxeta sanitaria</h3>
<div data-role="fieldcontain">
<a data-role="button" data-icon="info" data-iconpos="notext" style="float: right;" onClick="help('t_fecha');">Axuda</a>
<label for="t_fecha">Data de nacemento</label>
<input id="t_fecha" type="text" maxlength="6" />
</div>
<div data-role="fieldcontain">
<a data-role="button" data-icon="info" data-iconpos="notext" style="float: right;" onClick="help('t_apellidos1');">Axuda</a>
<label for="t_apellidos1">Iniciais 1</label>
<input id="t_apellidos1" type="text" maxlength="2" />
</div>
<div data-role="fieldcontain">
<a data-role="button" data-icon="info" data-iconpos="notext" style="float: right;" onClick="help('t_apellidos2');">Axuda</a>
<label for="t_apellidos2">Iniciais 2</label>
<input id="t_apellidos2" type="text" maxlength="2" />
</div>
<div data-role="fieldcontain">
<a data-role="button" data-icon="info" data-iconpos="notext" style="float: right;" onClick="help('t_sexo');">Axuda</a>
<label for="t_sexo">Sexo</label>
<input id="t_sexo" type="text" maxlength="1" />
</div>
<div data-role="fieldcontain">
<a data-role="button" data-icon="info" data-iconpos="notext" style="float: right;" onClick="help('t_control');">Axuda</a>
<label for="t_control">Control</label>
<input id="t_control" type="text" maxlength="3" />
</div>
<div data-role="fieldcontain">
<a data-role="button" data-icon="info" data-iconpos="notext" style="float: right;" onClick="help('n_cabecera');">Axuda</a>
<label for="n_cabecera">Cabeciera SS</label>
<input id="n_cabecera" type="text" maxlength="2" />
</div>
<div data-role="fieldcontain">
<a data-role="button" data-icon="info" data-iconpos="notext" style="float: right;" onClick="help('n_cuerpo');">Axuda</a>
<label for="n_cuerpo">Corpo SS</label>
<input id="n_cuerpo" type="text" maxlength="10" />
</div>
</div>
</div>
<div data-role="footer">
<div class="ui-bar">
<a onClick="saveCard();" data-role="button" data-icon="check" class="ui-body-b">Gardar</a>
</div>
</div>
</div>
<div data-role="page" id="citas">
<div data-role="header">
<h1>Citas</h1>
</div>
<div data-role="content">
<ul data-role="listview" id="lista_citas"></ul>
</div>
</div>
</body>
</html>