summaryrefslogtreecommitdiff
path: root/www/crm/wp-content/uploads/civicrm/templates_c/es_ES/%%05/056/056C19FD%%street_address.tpl.php
blob: a8ced8aef42283149ec76fbdfc92d25b90b0c480 (plain)
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
<?php /* Smarty version 2.6.31, created on 2019-08-30 19:47:35
         compiled from CRM/Contact/Form/Edit/Address/street_address.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/Contact/Form/Edit/Address/street_address.tpl', 1, false),array('block', 'ts', 'CRM/Contact/Form/Edit/Address/street_address.tpl', 32, false),array('function', 'help', 'CRM/Contact/Form/Edit/Address/street_address.tpl', 29, false),)), $this); ?>
<?php $this->_tag_stack[] = array('crmScope', array('extensionKey' => "")); $_block_repeat=true;smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><?php if (! empty ( $this->_tpl_vars['form']['address'][$this->_tpl_vars['blockId']]['street_address'] )): ?>
   <tr id="streetAddress_<?php echo $this->_tpl_vars['blockId']; ?>
">
     <td colspan="2">
      <?php echo $this->_tpl_vars['form']['address'][$this->_tpl_vars['blockId']]['street_address']['label']; ?>
 <?php echo smarty_function_help(array('id' => "id-street-address",'file' => "CRM/Contact/Form/Contact.hlp"), $this);?>
<br />
      <?php echo $this->_tpl_vars['form']['address'][$this->_tpl_vars['blockId']]['street_address']['html']; ?>

      <?php if ($this->_tpl_vars['parseStreetAddress'] == 1 && ( $this->_tpl_vars['action'] == 1 || $this->_tpl_vars['action'] == 2 )): ?>
          &nbsp;&nbsp;<a href="#" title="<?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Edit Address Elements<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>" onClick="processAddressFields( 'addressElements' , '<?php echo $this->_tpl_vars['blockId']; ?>
', 1 );return false;"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Edit Address Elements<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></a>
          <?php echo smarty_function_help(array('id' => "id-edit-street-elements",'file' => "CRM/Contact/Form/Contact.hlp"), $this);?>

      <?php endif; ?>
    </td>
  </tr>

  <?php if ($this->_tpl_vars['parseStreetAddress'] == 1 && ( $this->_tpl_vars['action'] == 1 || $this->_tpl_vars['action'] == 2 )): ?>
    <tr id="addressElements_<?php echo $this->_tpl_vars['blockId']; ?>
" class=hiddenElement>
      <td>
         <?php echo $this->_tpl_vars['form']['address'][$this->_tpl_vars['blockId']]['street_number']['label']; ?>
<br />
         <?php echo $this->_tpl_vars['form']['address'][$this->_tpl_vars['blockId']]['street_number']['html']; ?>

       </td>

      <td>
         <?php echo $this->_tpl_vars['form']['address'][$this->_tpl_vars['blockId']]['street_name']['label']; ?>
<br />
         <?php echo $this->_tpl_vars['form']['address'][$this->_tpl_vars['blockId']]['street_name']['html']; ?>
<br />
      </td>

      <td colspan="2">
        <?php echo $this->_tpl_vars['form']['address'][$this->_tpl_vars['blockId']]['street_unit']['label']; ?>
<br />
        <?php echo $this->_tpl_vars['form']['address'][$this->_tpl_vars['blockId']]['street_unit']['html']; ?>

        <a href="#" title="<?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Edit Street Address<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>" onClick="processAddressFields( 'streetAddress', '<?php echo $this->_tpl_vars['blockId']; ?>
', 1 );return false;"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Edit Complete Street Address<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></a>
        <?php echo smarty_function_help(array('id' => "id-edit-complete-street",'file' => "CRM/Contact/Form/Contact.hlp"), $this);?>

      </td>
    </tr>
  <?php endif; ?>

<?php if ($this->_tpl_vars['parseStreetAddress'] == 1): ?>
<?php echo '
<script type="text/javascript">
function processAddressFields( name, blockId, loadData ) {

  if ( loadData ) {
            var allAddressValues = '; ?>
<?php if ($this->_tpl_vars['allAddressFieldValues']): ?><?php echo $this->_tpl_vars['allAddressFieldValues']; ?>
<?php else: ?>''<?php endif; ?><?php echo ';

      var streetName    = eval( "allAddressValues.street_name_"    + blockId );
      if (streetName === null) streetName = \'\';
      var streetUnit    = eval( "allAddressValues.street_unit_"    + blockId );
      if (streetUnit === null) streetUnit = \'\';
      var streetNumber  = eval( "allAddressValues.street_number_"  + blockId );
      if (streetNumber === null) streetNumber = \'\';
      var streetAddress = eval( "allAddressValues.street_address_" + blockId );
      if (streetAddress === null) streetAddress = \'\';
  }

        if ( name == \'addressElements\' ) {
             if ( loadData ) {
            streetAddress = \'\';
       }

       cj(\'#addressElements_\' + blockId).show();
       cj(\'#streetAddress_\' + blockId).hide();
  } else {
             if ( loadData ) {
                  streetNumber = streetName = streetUnit = \'\';
             }

             cj(\'#streetAddress_\' +  blockId).show();
             cj(\'#addressElements_\'+ blockId).hide();
       }

       // set the values.
       if ( loadData ) {
          cj( \'#address_\' + blockId +\'_street_name\'    ).val( streetName    );
          cj( \'#address_\' + blockId +\'_street_unit\'    ).val( streetUnit    );
          cj( \'#address_\' + blockId +\'_street_number\'  ).val( streetNumber  );
          cj( \'#address_\' + blockId +\'_street_address\' ).val( streetAddress );
       }
}

</script>
'; ?>

<?php endif; ?>
<?php endif; ?>

<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>