• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • Examples
  • File List

E:/E/GEAMP/www/openbiz/openbiz/others/Smarty/libs/plugins/function.popup_init.php

00001 <?php
00021 function smarty_function_popup_init($params, &$smarty)
00022 {
00023     $zindex = 1000;
00024     
00025     if (!empty($params['zindex'])) {
00026         $zindex = $params['zindex'];
00027     }
00028     
00029     if (!empty($params['src'])) {
00030         return '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:'.$zindex.';"></div>' . "\n"
00031          . '<script type="text/javascript" language="JavaScript" src="'.$params['src'].'"></script>' . "\n";
00032     } else {
00033         $smarty->trigger_error("popup_init: missing src parameter");
00034     }
00035 }
00036 
00037 /* vim: set expandtab: */
00038 
00039 ?>

Generated on Thu Apr 19 2012 17:01:16 for openbiz by  doxygen 1.7.2