Detail: tmp2 (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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
  <head>
    {% load_block('metas') %}
    {% load_block('metas2') %}
    <script type="text/javascript" src="http://www.google.com/jsapi?autoload={'modules':[{name:'maps',version:3,other_params:'sensor=false'}]}"></script>
    {%= js('distance-widget.js','_theme_'); %}
    <script>
      $(function() {
        $('form').submit( function() {
          var $data=$(this).serializeArray();
          $.post($("#url_ajax").val()+'afectados',$data,
                 function(response){
                   $('#impactados').val(response.impactados);
                 },'JSON'      
                );
          return false;
        });
      });
      /*
      function actualizar_afectados()
      {
        var url = $("#url_ajax").val();
        url = url+'afectados';
        
        //categorias_calc
        var categorias_calc_val=new Array();
        $('input:checkbox[name^="categorias_calc[]"]').each(function(){
          if($(this).attr('checked'))
          {
            //alert($(this).val());
            categorias_calc_val.push($(this).val());
          }
        });
        //sexo
        var sexo_val=new Array();
        $('input:checkbox[name^="sexo[]"]').each(function(){
          if($(this).attr('checked'))
          {
            //alert($(this).val());
            sexo_val.push($(this).val());
          }
        });
        //cuenta
        var cuenta_val = $('select[name="cuenta"]').val();
        //precio_total
        var precio_val = $("#precio_total").val();
        //edad_ini
        var edad_ini_val = $('input[name="edad_ini"]').val();
        //edad_fin
        var edad_fin_val = $('input[name="edad_fin"]').val();
        
        $.post(url, {
          precio: precio_val,
          cuenta: cuenta_val,
          edad_ini: edad_ini_val,
          edad_fin: edad_fin_val,
          sexo: sexo_val,
          categorias_calc: categorias_calc_val
        },
               function(data) {
                 $("#impactados").val(data);
               });
      }
      */
    </script>
  </head>
  <body>
    {% load_block('metainfo') %}
    {% load_block('jquery') %}
    <!-- Container Begin -->
    <div id="container">
      {% load_block('header') %}
      {% load_widget('promo') %}
      
      <!-- Content Begin -->
      <div id="content" style="padding: 20px;">
        <h2>{%= $title %}</h2>
        {% load_block('flashdata') %}
        <div id="agencia-calculadora">
        <?=$formulario;?>
        </div>
        <div id="info"></div>
        
        <div id="map-canvas" style="width:450px; height: 300px;"></div>
        <br clear="all"/>
        
        
      </div>

      <br />&nbsp;<br />
      <!-- Content End -->
      {% load_block('footer') %}
    </div>
    <!-- End Container -->
    
  </body>
</html>

[raw] - Pasted by: tmp2 on html on July 12, 2011