summaryrefslogtreecommitdiff
path: root/www/crm/wp-content/uploads/civicrm/templates_c/en_US/%%ED/ED2/ED250FF5%%group.tpl.php
blob: 93a8c29b07ec8bf56b574ec9d87282883b0d5904 (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
<?php /* Smarty version 2.6.31, created on 2019-08-30 19:25:21
         compiled from CRM/Contact/Form/Search/Criteria/Fields/group.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/Contact/Form/Search/Criteria/Fields/group.tpl', 1, false),array('block', 'ts', 'CRM/Contact/Form/Search/Criteria/Fields/group.tpl', 2, 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 id='groupselect'>
  <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(); ?>Group(s)<?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); ?>
    <span class="description">
      (<a href="#" id='searchbygrouptype'><?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(); ?>search by group 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); ?></a>)
    </span>
  </label>
  <br/>
  <?php echo $this->_tpl_vars['form']['group']['html']; ?>

</div>
<div id='grouptypeselect'>
  <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(); ?>Group Type(s)<?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); ?>
    <span class="description">
      (<a href="#" id='searchbygroup'><?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(); ?>search by group<?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>)
    </span>
  </label>
  <br/>
  <?php echo $this->_tpl_vars['form']['group_type']['html']; ?>

  <?php echo '
    <script type="text/javascript">
      CRM.$(function ($) {
        function showGroupSearch() {
          $(\'#grouptypeselect\').hide();
          $(\'#groupselect\').show();
          $(\'#group_type\').select2(\'val\', \'\');
          return false;
        }

        function showGroupTypeSearch() {
          $(\'#groupselect\').hide();
          $(\'#grouptypeselect\').show();
          $(\'#group\').select2(\'val\', \'\');
          return false;
        }

        $(\'#searchbygrouptype\').click(showGroupTypeSearch);
        $(\'#searchbygroup\').click(showGroupSearch);

        if ($(\'#group_type\').val()) {
          showGroupTypeSearch();
        }
        else {
          showGroupSearch();
        }

      });
    </script>
  '; ?>

</div>
<?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); ?>