XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
function.popup_init.php
Go to the documentation of this file.
1 <?php
22 function smarty_function_popup_init($params, &$smarty)
23 {
24  $zindex = 1000;
25 
26  if (!empty($params['zindex'])) {
27  $zindex = $params['zindex'];
28  }
29 
30  if (!empty($params['src'])) {
31  return '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:'.$zindex.';"></div>' . "\n"
32  . '<script type="text/javascript" language="JavaScript" src="'.$params['src'].'"></script>' . "\n";
33  } else {
34  $smarty->trigger_error("popup_init: missing src parameter");
35  }
36 }
37 
38 /* vim: set expandtab: */
39 
40 ?>