Skip to content

Commit 29cccbc

Browse files
committedDec 2, 2013
1 parent 1f9ee44 commit 29cccbc

21 files changed

+128
-56
lines changed
 

‎include/js/jquery.validate.js

+19
Original file line numberDiff line numberDiff line change
@@ -1186,3 +1186,22 @@ $.format = $.validator.format;
11861186
}
11871187
});
11881188
})(jQuery);
1189+
1190+
jQuery.fn.ForceNumericOnly = function()
1191+
{
1192+
return this.each(function()
1193+
{
1194+
$(this).keydown(function(e)
1195+
{
1196+
var key = e.charCode || e.keyCode || 0;
1197+
1198+
return (
1199+
key == 8 ||
1200+
key == 9 ||
1201+
key == 46 ||
1202+
(key >= 37 && key <= 40) ||
1203+
(key >= 48 && key <= 57) ||
1204+
(key >= 96 && key <= 105));
1205+
});
1206+
});
1207+
};

‎index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<div class="container_12">
3838
<div id="contenido" class="grid_12">
3939
<?php
40-
require_once"controller/escenario/seleccionar.php";
40+
require_once"view/intro.php";
4141
?>
4242
</div>
4343
</div>

‎view/avatar/avatar.js

100644100755
File mode changed.

‎view/avatar/avatar.php

100644100755
+20-19
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
<?php
2-
/*
3-
* To change this template, choose Tools | Templates
4-
* and open the template in the editor.
5-
*/
6-
?>
7-
<script type="text/javascript" src="view/avatar/avatar.js"></script>
8-
<div class="grid_12" align="center">
9-
<ul class="rs-slider">
10-
<?php
11-
foreach ($arrayAvatares as $key => $avatar) {
12-
#var_dump($avatar);
13-
echo " <li id='{$avatar['id']}'><img src='view/avatar/imagenes/{$avatar['ruta']}' alt='' /></li>";
14-
}
15-
?>
16-
</ul>
17-
<input type="hidden" value="" id="avatarSeleccionado"/>
18-
<a href="#" id="botonSelectAvatar">Seleccionar</a>
19-
</div>
1+
<?php
2+
/*
3+
* To change this template, choose Tools | Templates
4+
* and open the template in the editor.
5+
*/
6+
?>
7+
<script type="text/javascript" src="view/avatar/avatar.js"></script>
8+
<link rel="stylesheet" href="view/avatar/avatar.css" />
9+
<div class="grid_12" align="center" id="slider-mod"><div class="bund">
10+
<ul class="rs-slider">
11+
<?php
12+
foreach ($arrayAvatares as $key => $avatar) {
13+
#var_dump($avatar);
14+
echo " <li id='{$avatar['id']}'><img src='view/avatar/imagenes/{$avatar['ruta']}' alt='' /></li>";
15+
}
16+
?>
17+
</ul>
18+
<input type="hidden" value="" id="avatarSeleccionado"/>
19+
<a href="#" id="botonSelectAvatar">Seleccionar</a></div>
20+
</div>

‎view/datos/datos.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ $(document).ready(function() {
2020

2121
}
2222
});
23-
23+
$("#identificacion").ForceNumericOnly();
24+
$("#n_hijos").ForceNumericOnly();
2425
$("#formularioDatos").validate({
2526
rules: {
2627
identificacion: {

‎view/datos/datos.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<div>
3333
<label>Identificación</label>
34-
<input name="identificacion" class="campo" type="text" value="" />
34+
<input name="identificacion" id="identificacion" class="campo" type="text" value="" />
3535
</div>
3636

3737

@@ -79,7 +79,7 @@
7979
<label>Tiene hijos</label>
8080
<span>Si</span><input type="radio" name="hijos" value="1" />
8181
<span>No</span><input type="radio" name="hijos" value="0" />
82-
<span>Cuantos:</span><textarea class="text-area1" name="n_hijos"></textarea>
82+
<span>Cuantos:</span><textarea class="text-area1" name="n_hijos" id="n_hijos"></textarea>
8383
</div>
8484

8585
<div>

‎view/escenario/escenario.css

100644100755
File mode changed.

‎view/escenario/escenario.js

100644100755
File mode changed.

‎view/escenario/estilos-escenario.css

100644100755
+74-27
Original file line numberDiff line numberDiff line change
@@ -69,37 +69,14 @@
6969
100%{left: 790px; top:0px;}
7070
}
7171

72-
73-
/*#accordionPreguntas h3{
74-
background:#CCCCCC;
75-
padding:10px;
76-
font-family:Arial, Helvetica, sans-serif;
77-
font-size:15px;
78-
list-style:none;
79-
}*/
80-
81-
/*#accordionPreguntas div{
82-
height:200px;
83-
84-
}*/
85-
86-
#accordionPreguntas p{
87-
width:520px;
88-
height:150px;
89-
border:#990000 1px solid;
90-
color:#033;
91-
font-size:12px;
92-
float:left;
93-
font-family:Arial, Helvetica, sans-serif;
94-
95-
}
96-
97-
#accordionPreguntas .campoCasedos{
72+
.campoCasedos{
73+
width:123px;
74+
height:119px;
9875
float:right;
9976
color:#033;
10077
font-size:14px;
10178
font-family:Arial, Helvetica, sans-serif;
102-
margin-top:70px;
79+
margin-top:20px;
10380

10481
}
10582

@@ -110,4 +87,74 @@
11087
font-size:25px;
11188
border:#8ca5a3 dashed 2px;
11289

90+
}
91+
92+
.campoPre{
93+
width:500px;
94+
float:left;
95+
}
96+
97+
.campoPre h4{
98+
font-size:16px;
99+
line-height:16px;
100+
text-align:justify;
101+
color:#666666;
102+
}
103+
104+
.campoPre ul{
105+
margin-top:10px;
106+
}
107+
108+
.campoPre li{
109+
font-size:11px;
110+
list-style:disc;
111+
}
112+
113+
.campoPrecas{
114+
width:640px;
115+
116+
}
117+
118+
.campoPrecas .checkbox-1{
119+
width:12px;
120+
height:12px;
121+
padding:5px;
122+
float:left;
123+
background:#FFFFFF;
124+
margin-top:20px;
125+
margin-right:5px;
126+
}
127+
128+
.campoPrecas h4{
129+
width:220px;
130+
height:30px;
131+
padding:15px;
132+
float:left;
133+
background:#FFF;
134+
margin-top:5px;
135+
margin-right:5px;
136+
color:#666;
137+
}
138+
139+
.campoPrecas ul{
140+
width:327px;
141+
float:left;
142+
background:#FFF;
143+
padding:10px;
144+
margin-top:5px;
145+
}
146+
147+
.campoPrecas li{
148+
font-size:11px;
149+
list-style:disc;
150+
}
151+
152+
153+
.checkbox-1, .campoPrecas h4, .campoPrecas ul{
154+
border-radius:5px;
155+
border:#8ca5a3 dashed 1px;
156+
157+
}
158+
.clear{
159+
clear:both;
113160
}

‎view/escenario/formularioGeneral.js

100644100755
+5-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ $(function() {
1818
//opciones para guardar
1919

2020
$(".respuestasCheck").click(function() {
21-
console.log('guarda');
21+
// console.log('guarda');
2222
});
2323

24+
$(".respuestasText").ForceNumericOnly();
25+
2426
$(".respuestasText").keydown(function() {
25-
console.log('guarda texto');
27+
28+
// console.log('guarda texto');
2629
});
2730

2831
});

‎view/escenario/formularioGeneral.php

100644100755
+5-4
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
if ($preguntaActual > 0)
3535
echo "</div></div>";
3636
echo "<h3>{$pregunta['nombre_pregunta']}</h3>";
37-
echo "<div><div>";
37+
echo "<div><div class='campoPrecas'>";
3838
$preguntaActual = $pregunta['p_id'];
3939
}
4040
// aqui contenido de la pregunta
41-
echo "<input type='checkbox' class='respuestasCheck' name='p_{$pregunta['p_id']}' value='{$pregunta['p_id']}_{$pregunta['p_id']}'>" . $pregunta['nombre_respuesta'] . $pregunta['descripcion_general_respuesta'];
41+
echo "<div class='checkbox-1'><input type='checkbox' class='respuestasCheck' name='p_{$pregunta['p_id']}' value='{$pregunta['p_id']}_{$pregunta['p_id']}'><label for='campo1'></label></div><div class'Pregunta1'>" . $pregunta['nombre_respuesta'] ."</div><div class'Pregunta2'>". $pregunta['descripcion_general_respuesta']."</div><div class='clear'></div>";
4242
}
4343
echo "</div></div>";
4444
}
@@ -48,12 +48,13 @@
4848
echo "<h3>{$pregunta['nombre_pregunta']}</h3>";
4949
?>
5050
<div>
51-
<div>
51+
<div class="campoPre">
5252
<?php
5353
echo "{$pregunta['descripcion_general']}";
5454
?>
5555
</div>
56-
<div class="campoCasedos"> Puntaje<input type="text" class='respuestasText'/></div>
56+
<div class="campoCasedos"><img src="view/escenario/imagenes/<?PHP echo $pregunta['imagen'];?>" />
57+
Puntaje<input type="text" class='respuestasText' size="2"/></div>
5758

5859
</div>
5960
<?php
4.33 KB
Loading

‎view/escenario/imagenes/icon1.png

6.2 KB
Loading

‎view/escenario/imagenes/icon2.png

5.46 KB
Loading

‎view/escenario/imagenes/icon3.png

7.63 KB
Loading

‎view/escenario/imagenes/icon4.png

4.8 KB
Loading

‎view/escenario/imagenes/icon5.png

4.29 KB
Loading

‎view/escenario/imagenes/icon6.png

4.76 KB
Loading

‎view/escenario/imagenes/icon7.png

4.35 KB
Loading

‎view/escenario/imagenes/icon8.png

5.14 KB
Loading

‎view/escenario/seleccionar.php

100644100755
File mode changed.

0 commit comments

Comments
 (0)
Please sign in to comment.