-
Notifications
You must be signed in to change notification settings - Fork 3
/
clientes_zonas.htm
218 lines (191 loc) · 8.38 KB
/
clientes_zonas.htm
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!DOCTYPE html>
<html lang="en">
<head>
<title id='Description'>ZONAS</title>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Language" content="en">
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="stylesheet" href="styles/reset.css" type="text/css" />
<link rel="stylesheet" href="styles/app.css" type="text/css" />
<link rel="stylesheet" href="jqwidgets/styles/jqx.base.css" type="text/css" />
<script type="text/javascript" src="scripts/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="jqwidgets/jqx-all.js"></script>
<script type="text/javascript">
$(document).ready(function ()
{
$("#b1").jqxButton({ width: '80', height: 16 });
$("#b2").jqxButton({ width: '80', height: 16 });
$("#b3").jqxButton({ width: '80', height: 16 });
$("#b4").jqxButton({ width: '80', height: 16 });
$("#rcodigo").jqxRadioButton({ width: 50, height: 15, checked: true });
$("#rdescripcion").jqxRadioButton({ width: 80, height: 15 });
$("#dato").jqxInput({height: 23, width: 200, minLength: 1 });
$("#codigo").jqxInput({height: 23, width: 100, minLength: 1 });
$("#descripcion").jqxInput({height: 23, width: 200, minLength: 1 });
$("#responsable").jqxInput({height: 23, width: 200, minLength: 1 });
$("#buscar").jqxButton({ width: '40', height: 16 });
$('#jqxTabs').jqxTabs({ height: 248, width: 358 });
var source =
{
datatype: "json",
datafields:
[
{ name: 'codigo', type: 'string' },
{ name: 'descripcion', type: 'string' },
{ name: 'representante', type: 'string' },
{ name: 'esActivo', type: 'number' }
],
url: 'webserver.php?srv=list_clientes_zonas',
addrow: function (rowid, rowdata, position, commit) {
commit(true);
},
deleterow: function (rowid, commit) {
commit(true);
},
updaterow: function (rowid, newdata, commit) {
commit(true);
}
};
var dataAdapter = new $.jqx.dataAdapter(source);
dataAdapter.dataBind();
$("#jqxgrid").jqxGrid(
{
width: 350,
height: 248,
altrows: true,
source: dataAdapter,
showtoolbar: false,
rendertoolbar: function (toolbar)
{
var me = this;
},
columns:
[
{ text: 'Codigo', datafield: 'codigo', width: 100, cellsalign: 'left'},
{ text: 'Descripcion', datafield: 'descripcion', width: 250, cellsalign: 'left' }
],
});
$("#salida").jqxButton({ width: '100', height: 16 });
$("#salida").bind('click', function ()
{
close();
});
});
</script>
</head>
<body class='default'>
</body>
<div id='jqxWidget' style="font-size: 13px; font-family: Arial;">
<div style='float: left; width: 710px;'>
<div style='margin-left: 0px; float: left; width: 85px; background: #486974;'>
<div id='b1'>
<img style='float: left; margin: 0px;' src='../images/add.png' />
<div style='float: left; margin: 0px;'>Nuevo</div>
</div>
</div>
<div style='margin-left: 0px; float: left; width: 85px; background: #486974;'>
<div id='b2'>
<img style='float: left; margin: 0px;' src='../images/notepad.png' />
<div style='float: left; margin: 0px;'>Editar</div>
</div>
</div>
<div style='margin-left: 0px; float: left; width: 85px; background: #486974;'>
<div id='b3'>
<img style='float: left; margin: 0px;' src='../images/refresh.png' />
<div style='float: left; margin: 0px;'>Guardar</div>
</div>
</div>
<div style='margin-left: 0px; float: left; width: 85px; background: #486974;'>
<div id='b4'>
<img style='float: left; margin: 0px;' src='../images/close.png' />
<div style='float: left; margin: 0px;'>Borrar</div>
</div>
</div>
<div style='font-size: 20px; font-family: Arial; margin-left: 0px; margin-right: 0px; float: left; text-align: right; width: 370px; height: 25px; background: #368ba7;'>
<font color=ffffff>Control de Zonas </font>
</div>
</div>
<div style='margin-top: 2px; float: left; width: 710px; background: #fafafa;'>
<div style='margin-left: 0px; float: left; width: 80px; height: 25px;'>
<div style='margin-top: 5px;'>Buscar por:</div>
</div>
<div style='margin-left: 0px; float: left; width: 70px; height: 25px;'>
<div style='margin-top: 5px;' id='rcodigo'>Codigo</div>
</div>
<div style='margin-left: 0px; float: left; width: 200px; height: 25px;'>
<div style='margin-top: 5px;' id='rdescripcion'>Descripcion</div>
</div>
<div style='font-size: 13px; font-family: Arial; margin-left: 10px; margin-top: 5px; float: left; width: 80px; height: 20px;'>
<font color=0000ff>*Codigo:</font>
</div>
<div style='margin-left: 0px; float: left; width: 270px; height: 25px;'>
<input type="text" id="codigo"/>
</div>
</div>
<div style='float: left; width: 710px; background: #fafafa;'>
<div style='margin-left: 0px; float: left; width: 80px; height: 25px;'>
<div style='margin-top: 5px;'>Buscar:</div>
</div>
<div style='margin-left: 0px; float: left; width: 200px; height: 25px;'>
<input type="text" id="dato"/>
</div>
<div style='margin-left: 0px; float: left; width: 70px; height: 23px;'>
<div id='buscar'>
<img style='float: left; margin: 0px;' src='../images/search.png' />
<div style='float: left; margin: 0px;'></div>
</div>
</div>
<div style='font-size: 13px; font-family: Arial; margin-left: 10px; margin-top: 5px; float: left; width: 80px; height: 20px;'>
<font color=0000ff>*Descripcion:</font>
</div>
<div style='margin-left: 0px; float: left; width: 270px; height: 25px;'>
<input type="text" id="descripcion"/>
</div>
</div>
<div style='margin-top: 2px; float: left; width: 710px; background: #ffffff;'>
<div style='margin-left: 0px; float: left; width: 350px;'>
<div id="jqxgrid"></div>
</div>
<div style='margin-left: 2px; margin-right: 0px; float: left; text-align: right; width: 358px;'>
<div id='jqxTabs' style="float: left;">
<ul style="margin-left: 0px;" id="unorderedList">
<li>Datos Basicos</li>
<li>Extra</li>
</ul>
<div>
<div style='margin-top: 2px; float: left; width: 358px;'>
<div style='font-size: 13px; font-family: Arial; margin-left: 10px; margin-top: 15px; float: left; width: 80px; height: 20px;'>
<font color=0000ff>Responsable:</font>
</div>
<div style='margin-left: 0px; margin-top: 10px; float: left; width: 200px; height: 25px;'>
<input type="text" id="responsable"/>
</div>
</div>
<div style='margin-top: 2px; float: left; width: 358px;'>
<div style='font-size: 13px; font-family: Arial; margin-left: 10px; margin-top: 0px; float: left; width: 80px; height: 20px;'>
<font color=0000ff>Activo:</font>
</div>
<div style='margin-left: 0px; margin-top: 0px; float: left; width: 200px; height: 25px;'>
<input type="text" id="responsable"/>
</div>
</div>
</div>
<div>
</div>
</div>
</div>
</div>
<div style='float: left; width: 710px; margin-top: 2px; background: #e0e0e0;'>
<div style='margin-left: 0px; float: left; width: 600px; height: 25px;'>
<div style='margin-top: 5px;'>8 registros encontrados</div>
</div>
<div style='font-size: 13px; font-family: Arial; margin-left: 0px; margin-right: 0px; float: left; text-align: right; width: 100px; height: 25px;'>
<div id='salida'>
<img style='float: left; margin: 0px;' src='../images/close.png' />
<div style='float: left; margin: 0px;'>Salida</div>
</div>
</div>
</div>
</div>
</html>