summaryrefslogtreecommitdiff
path: root/www/crm/wp-content/uploads/civicrm/templates_c/es_ES/%%06/060/060F37B7%%Selector.tpl.php
blob: 9acce20bab7f6cc77561bb6366b1a983ec5a00e8 (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
105
106
107
108
109
110
<?php /* Smarty version 2.6.31, created on 2019-08-30 20:23:23
         compiled from CRM/Activity/Selector/Selector.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/Activity/Selector/Selector.tpl', 1, false),array('block', 'ts', 'CRM/Activity/Selector/Selector.tpl', 29, false),array('modifier', 'crmAddClass', 'CRM/Activity/Selector/Selector.tpl', 36, false),array('function', 'crmURL', 'CRM/Activity/Selector/Selector.tpl', 73, false),array('function', 'crmAPI', 'CRM/Activity/Selector/Selector.tpl', 94, 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(); ?><div class="crm-activity-selector-<?php echo $this->_tpl_vars['context']; ?>
">
  <div class="crm-accordion-wrapper crm-search_filters-accordion">
    <div class="crm-accordion-header">
    <?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(); ?>Filter by Activity<?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>
    </div><!-- /.crm-accordion-header -->
    <div class="crm-accordion-body">
      <form><!-- form element is here to fool the datepicker widget -->
      <table class="no-border form-layout-compressed activity-search-options">
        <tr>
          <td class="crm-contact-form-block-activity_type_filter_id crm-inline-edit-field">
            <?php echo $this->_tpl_vars['form']['activity_type_filter_id']['label']; ?>
<br /> <?php echo ((is_array($_tmp=$this->_tpl_vars['form']['activity_type_filter_id']['html'])) ? $this->_run_mod_handler('crmAddClass', true, $_tmp, 'medium') : smarty_modifier_crmAddClass($_tmp, 'medium')); ?>

          </td>
          <td class="crm-contact-form-block-activity_type_exclude_filter_id crm-inline-edit-field">
            <?php echo $this->_tpl_vars['form']['activity_type_exclude_filter_id']['label']; ?>
<br /> <?php echo ((is_array($_tmp=$this->_tpl_vars['form']['activity_type_exclude_filter_id']['html'])) ? $this->_run_mod_handler('crmAddClass', true, $_tmp, 'medium') : smarty_modifier_crmAddClass($_tmp, 'medium')); ?>

          </td>
          <td>
            <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "CRM/Core/DatePickerRange.tpl", 'smarty_include_vars' => array('fieldName' => 'activity_date_time')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
          </td>
          <td class="crm-contact-form-block-activity_status_filter_id crm-inline-edit-field">
            <label><?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(); ?>Status<?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); ?></label><br /> <?php echo ((is_array($_tmp=$this->_tpl_vars['form']['status_id']['html'])) ? $this->_run_mod_handler('crmAddClass', true, $_tmp, 'medium') : smarty_modifier_crmAddClass($_tmp, 'medium')); ?>

          </td>
        </tr>
      </table>
      </form>
    </div><!-- /.crm-accordion-body -->
  </div><!-- /.crm-accordion-wrapper -->
  <table class="contact-activity-selector-<?php echo $this->_tpl_vars['context']; ?>
 crm-ajax-table" style="width: 100%;">
    <thead>
    <tr>
      <th data-data="activity_type" class="crm-contact-activity-activity_type"><?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(); ?>Type<?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); ?></th>
      <th data-data="subject" cell-class="crmf-subject crm-editable" class="crm-contact-activity_subject"><?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(); ?>Subject<?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); ?></th>
      <th data-data="source_contact_name" class="crm-contact-activity-source_contact"><?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(); ?>Added By<?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); ?></th>
      <th data-data="target_contact_name" data-orderable="false" class="crm-contact-activity-target_contact"><?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(); ?>With<?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); ?></th>
      <th data-data="assignee_contact_name" data-orderable="false" class="crm-contact-activity-assignee_contact"><?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(); ?>Assigned<?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); ?></th>
      <th data-data="activity_date_time" class="crm-contact-activity-activity_date_time"><?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(); ?>Date<?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); ?></th>
      <th data-data="status_id" cell-class="crmf-status_id crm-editable" cell-data-type="select" cell-data-refresh="true" class="crm-contact-activity-activity_status"><?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(); ?>Status<?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); ?></th>
      <th data-data="links" data-orderable="false" class="crm-contact-activity-links">&nbsp;</th>
    </tr>
    </thead>
  </table>

  <?php echo '
    <script type="text/javascript">
      (function($) {
        var context = '; ?>
"<?php echo $this->_tpl_vars['context']; ?>
"<?php echo ';
        CRM.$(\'table.contact-activity-selector-\' + context).data({
          "ajax": {
            "url": '; ?>
'<?php echo CRM_Utils_System::crmURL(array('p' => "civicrm/ajax/contactactivity",'h' => 0,'q' => "snippet=4&context=".($this->_tpl_vars['context'])."&cid=".($this->_tpl_vars['contactId'])), $this);?>
'<?php echo ',
            "data": function (d) {
              var status_id = $(\'.crm-activity-selector-\' + context + \' select#status_id\').val() || [];
              d.activity_type_id = $(\'.crm-activity-selector-\' + context + \' select#activity_type_filter_id\').val(),
              d.activity_type_exclude_id = $(\'.crm-activity-selector-\' + context + \' select#activity_type_exclude_filter_id\').val(),
              d.activity_date_time_relative = $(\'select#activity_date_time_relative\').val(),
              d.activity_date_time_low = $(\'#activity_date_time_low\').val(),
              d.activity_date_time_high = $(\'#activity_date_time_high\').val(),
              d.activity_status_id = status_id.join(\',\')
            }
          }
        });
        $(function($) {
          $(\'.activity-search-options :input\').change(function(){
            CRM.$(\'table.contact-activity-selector-\' + context).DataTable().draw();
          });
        });
      })(CRM.$);
    </script>
  '; ?>

  <style type="text/css">
    <?php echo smarty_function_crmAPI(array('var' => 'statuses','entity' => 'OptionValue','action' => 'get','return' => "color,value",'option_limit' => 0,'option_group_id' => 'activity_status'), $this);?>

    <?php $_from = $this->_tpl_vars['statuses']['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['status']):
?>
      <?php if (! empty ( $this->_tpl_vars['status']['color'] )): ?>
        table.contact-activity-selector-<?php echo $this->_tpl_vars['context']; ?>
 tr.status-id-<?php echo $this->_tpl_vars['status']['value']; ?>
 {
          border-left: 3px solid <?php echo $this->_tpl_vars['status']['color']; ?>
;
        }
      <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?>
  </style>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "CRM/Case/Form/ActivityToCase.tpl", 'smarty_include_vars' => array('contactID' => $this->_tpl_vars['contactId'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?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); ?>