Changeset 3715 for branches/2.2
- Timestamp:
- 01/21/11 15:10:18 (14 years ago)
- Location:
- branches/2.2/workflow
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/workflow/inc/class.ui_participants.inc.php
r3167 r3715 98 98 $onlyVisibleAccounts = true; 99 99 100 // the default value of $useGlobalSearch is false 101 if((isset($_REQUEST['useGlobalSearch'])) && (empty($_REQUEST['useGlobalSearch']) || $_REQUEST['useGlobalSearch'] === 'false')) 102 $useGlobalSearch = false; 103 else 104 $useGlobalSearch = true; 105 100 106 /* define the initial organization */ 101 107 $selectedOrganization = $ldap->getOrganizationFromDN($userDN); … … 133 139 $smarty->assign('hideSectors', $hideSectors); 134 140 $smarty->assign('onlyVisibleAccounts', $onlyVisibleAccounts); 141 $smarty->assign('useGlobalSearch', $useGlobalSearch); 135 142 $smarty->assign('header', $smarty->expressoHeader); 136 143 $smarty->assign('txt_loading', lang("loading")); -
branches/2.2/workflow/inc/smarty/wf_plugins/function.wf_select_user.php
r3167 r3715 37 37 'hide_sectors' => false, 38 38 'onlyVisibleAccounts' => true, 39 'useGlobalSearch' => false, 39 40 'rows'=> 2); 40 41 $extractParams = array( … … 45 46 'cols', 46 47 'rows', 47 'onlyVisibleAccounts'); 48 'onlyVisibleAccounts', 49 'useGlobalSearch'); 48 50 49 51 /* verifica se todos os parâmetros obrigatórios foram passados */ … … 100 102 else 101 103 $extraParams .= "&onlyVisibleAccounts=true"; 104 if (empty($useGlobalSearch) || $useGlobalSearch === 'false') 105 $extraParams .= "&useGlobalSearch=false"; 106 else 107 $extraParams .= "&useGlobalSearch=true"; 102 108 103 109 $image = Factory::getInstance('TemplateServer')->generateImageLink('add_user.png'); -
branches/2.2/workflow/inc/smarty/wf_plugins/function.wf_select_users.php
r3704 r3715 27 27 'hide_sectors' => false, 28 28 'onlyVisibleAccounts' => true, 29 'useGlobalSearch' => false, 29 30 'get_email' => false, 30 31 'value' => array()); … … 32 33 'name', 33 34 'value', 34 'onlyVisibleAccounts'); 35 'onlyVisibleAccounts', 36 'useGlobalSearch'); 35 37 36 38 /* verifica se todos os parâmetros obrigatórios foram passados */ … … 66 68 else 67 69 $extraParams .= "&onlyVisibleAccounts=true"; 70 if (empty($useGlobalSearch) || $useGlobalSearch === 'false') 71 $extraParams .= "&useGlobalSearch=false"; 72 else 73 $extraParams .= "&useGlobalSearch=true"; 68 74 69 75 $output = '<table border="0"><tr><td>'; -
branches/2.2/workflow/templates/default/participants.tpl
r3167 r3715 42 42 <tr> 43 43 <td> 44 <label><input type="checkbox" name="useGlobalSearch" id="useGlobalSearch" /> Utilizar busca global</label>44 <label><input type="checkbox" name="useGlobalSearch" id="useGlobalSearch" {if $useGlobalSearch} checked {/if}/> Utilizar busca global</label> 45 45 </td> 46 46 <td>
Note: See TracChangeset
for help on using the changeset viewer.