2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
10 <script type="text/javascript">
12 function submitForm( ) {
13 var text = document.getElementById('text').value;
14 var table = document.getElementById('fulltext_table').value;
15 var url = {/literal}'{crmURL p="civicrm/contact/search/custom" h=0 q="csid=`$fullTextSearchID`&reset=1&force=1&text="}'{literal} + text;
17 url = url + '&table=' + table;
19 document.getElementById('id_fulltext_search').action = url;
24 <div class="block-crm crm-container">
25 <form method="post" id="id_fulltext_search">
26 <div style="margin-bottom: 8px;">
27 <input type="text" name="text" id='text' value="" class="crm-form-text" style="width: 10em;" /> <input type="submit" name="submit" id="fulltext_submit" value="{ts}Go{/ts}" class="crm-form-submit"/ onclick='submitForm();'>
28 <input type="hidden" name="qfKey" value="{crmKey name='CRM_Contact_Controller_Search' addSequence=1}" />
30 <select class="form-select" id="fulltext_table" name="fulltext_table">
31 {if call_user_func(array('CRM_Core_Permission','giveMeAllACLs'))}
32 <option value="">{ts}All{/ts}</option>
33 <option value="Contact">{ts}Contacts{/ts}</option>
35 <option value="Activity">{ts}Activities{/ts}</option>
36 {if call_user_func(array('CRM_Core_Permission','access'), 'CiviCase')}
37 <option value="Case">{ts}Cases{/ts}</option>
39 {if call_user_func(array('CRM_Core_Permission','access'), 'CiviContribute')}
40 <option value="Contribution">{ts}Contributions{/ts}</option>
42 {if call_user_func(array('CRM_Core_Permission','access'), 'CiviEvent')}
43 <option value="Participant">{ts}Participants{/ts}</option>
45 {if call_user_func(array('CRM_Core_Permission','access'), 'CiviMember')}
46 <option value="Membership">{ts}Memberships{/ts}</option>
48 </select> {help id="id-fullText" file="CRM/Contact/Form/Search/Custom/FullText.hlp"}