source: branches/1.2/workflow/inc/smarty/wf_plugins/function.wf_select_ldap_users_init.php @ 1349

Revision 1349, 1.0 KB checked in by niltonneto, 15 years ago (diff)

Ticket #561 - Inclusão do módulo Workflow faltante nessa versão.

  • Property svn:executable set to *
Line 
1<?php
2/**
3 * Insere código que referencia arquivos de javascript responsáveis pela funcionalidade
4 * @package Smarty
5 * @subpackage wf_plugins
6 * @param array $params Array de parametros (vazio)
7 * @param object &$smarty Instância do objeto smarty em uso
8 * @return string $output codigo com referencias aos javascripts.
9 * @access public
10 */
11function smarty_function_wf_select_ldap_users_init($params, &$smarty)
12{
13        $webServer = $GLOBALS['phpgw_info']['server']['webserver_url'];
14        $jsFilePath = $webServer . '/workflow/js';
15        $localFile = PHPGW_SERVER_ROOT . SEP . 'workflow' . SEP . 'js' . SEP . 'jscode' . SEP . 'connector.js';
16        $size = 0;
17        if (@file_exists($localFile))
18                $size = filesize($localFile);
19
20$output = <<<EOF
21<input type="hidden" value="" id="txt_loading">
22<script language='javascript'>var _web_server_url = '$webServer';</script>
23<script type="text/javascript" src="$jsFilePath/jscode/connector.js?$size"></script>
24<script type="text/javascript" src="$jsFilePath/jscode/wf_select_ldap_users.js"></script>
25EOF;
26        return $output;
27}
28?>
Note: See TracBrowser for help on using the repository browser.