Changeset 3715


Ignore:
Timestamp:
01/21/11 15:10:18 (13 years ago)
Author:
asaikawa
Message:

Ticket #317 - Criado parametro para permitir que a busca global seja selecionada ao abrir a janela de selecao

Location:
branches/2.2/workflow
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/workflow/inc/class.ui_participants.inc.php

    r3167 r3715  
    9898                        $onlyVisibleAccounts = true; 
    9999 
     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 
    100106                /* define the initial organization */ 
    101107                $selectedOrganization = $ldap->getOrganizationFromDN($userDN); 
     
    133139                $smarty->assign('hideSectors', $hideSectors); 
    134140                $smarty->assign('onlyVisibleAccounts', $onlyVisibleAccounts); 
     141                $smarty->assign('useGlobalSearch', $useGlobalSearch); 
    135142                $smarty->assign('header', $smarty->expressoHeader); 
    136143                $smarty->assign('txt_loading', lang("loading")); 
  • branches/2.2/workflow/inc/smarty/wf_plugins/function.wf_select_user.php

    r3167 r3715  
    3737                'hide_sectors' => false, 
    3838                'onlyVisibleAccounts' => true, 
     39                'useGlobalSearch' => false, 
    3940                'rows'=> 2); 
    4041        $extractParams = array( 
     
    4546                'cols', 
    4647                'rows', 
    47                 'onlyVisibleAccounts'); 
     48                'onlyVisibleAccounts', 
     49                'useGlobalSearch'); 
    4850 
    4951        /* verifica se todos os parâmetros obrigatórios foram passados */ 
     
    100102        else 
    101103                $extraParams .= "&onlyVisibleAccounts=true"; 
     104        if (empty($useGlobalSearch) || $useGlobalSearch === 'false') 
     105                $extraParams .= "&useGlobalSearch=false"; 
     106        else 
     107                $extraParams .= "&useGlobalSearch=true"; 
    102108 
    103109        $image = Factory::getInstance('TemplateServer')->generateImageLink('add_user.png'); 
  • branches/2.2/workflow/inc/smarty/wf_plugins/function.wf_select_users.php

    r3704 r3715  
    2727                'hide_sectors' => false, 
    2828                'onlyVisibleAccounts' => true, 
     29                'useGlobalSearch' => false, 
    2930                'get_email' => false, 
    3031                'value' => array()); 
     
    3233                'name', 
    3334                'value', 
    34                 'onlyVisibleAccounts'); 
     35                'onlyVisibleAccounts', 
     36                'useGlobalSearch'); 
    3537 
    3638        /* verifica se todos os parâmetros obrigatórios foram passados */ 
     
    6668        else 
    6769                $extraParams .= "&onlyVisibleAccounts=true"; 
     70        if (empty($useGlobalSearch) || $useGlobalSearch === 'false') 
     71                $extraParams .= "&useGlobalSearch=false"; 
     72        else 
     73                $extraParams .= "&useGlobalSearch=true"; 
    6874 
    6975        $output = '<table border="0"><tr><td>'; 
  • branches/2.2/workflow/templates/default/participants.tpl

    r3167 r3715  
    4242        <tr> 
    4343                <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> 
    4545                </td> 
    4646                <td> 
Note: See TracChangeset for help on using the changeset viewer.