Revision 795,
1.0 KB
checked in by viani, 15 years ago
(diff) |
Ticket #488 - Inclusão do módulo workflow no ramo trunk do repositório Expresso.
|
-
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 | */ |
---|
11 | function smarty_function_wf_select_city_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_city.js"></script> |
---|
25 | EOF; |
---|
26 | return $output; |
---|
27 | } |
---|
28 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.