| 
									
										
										
										
											2002-01-31 20:49:40 +00:00
										 |  |  | <?php | 
					
						
							| 
									
										
										
										
											2003-04-20 21:12:13 +00:00
										 |  |  | /** | 
					
						
							| 
									
										
										
										
											2002-01-31 20:49:40 +00:00
										 |  |  |  * Smarty plugin | 
					
						
							| 
									
										
										
										
											2003-04-20 21:12:13 +00:00
										 |  |  |  * @package Smarty | 
					
						
							|  |  |  |  * @subpackage plugins | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * Smarty {popup_init} function plugin | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Type:     function<br> | 
					
						
							|  |  |  |  * Name:     popup_init<br> | 
					
						
							| 
									
										
										
										
											2002-01-31 20:49:40 +00:00
										 |  |  |  * Purpose:  initialize overlib | 
					
						
							| 
									
										
										
										
											2003-04-20 21:12:13 +00:00
										 |  |  |  * @link http://smarty.php.net/manual/en/language.function.popup.init.php {popup_init} | 
					
						
							|  |  |  |  *          (Smarty online manual) | 
					
						
							|  |  |  |  * @param array | 
					
						
							|  |  |  |  * @param Smarty | 
					
						
							|  |  |  |  * @return string | 
					
						
							| 
									
										
										
										
											2002-01-31 20:49:40 +00:00
										 |  |  |  */ | 
					
						
							| 
									
										
										
										
											2002-02-20 22:24:32 +00:00
										 |  |  | function smarty_function_popup_init($params, &$smarty) | 
					
						
							| 
									
										
										
										
											2002-01-31 20:49:40 +00:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2003-12-19 17:18:56 +00:00
										 |  |  |     $zindex = 1000; | 
					
						
							|  |  |  |      | 
					
						
							| 
									
										
										
										
											2002-06-29 16:04:41 +00:00
										 |  |  |     if (!empty($params['zindex'])) { | 
					
						
							| 
									
										
										
										
											2003-12-19 17:18:56 +00:00
										 |  |  |         $zindex = $params['zindex']; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |      | 
					
						
							| 
									
										
										
										
											2002-06-14 20:58:20 +00:00
										 |  |  |     if (!empty($params['src'])) { | 
					
						
							| 
									
										
										
										
											2003-12-19 17:18:56 +00:00
										 |  |  |         return '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:'.$zindex.';"></div>' . "\n" | 
					
						
							| 
									
										
										
										
											2003-01-08 17:34:45 +00:00
										 |  |  |          . '<script type="text/javascript" language="JavaScript" src="'.$params['src'].'"></script>' . "\n"; | 
					
						
							| 
									
										
										
										
											2002-02-18 15:22:28 +00:00
										 |  |  |     } else { | 
					
						
							| 
									
										
										
										
											2002-06-14 20:58:20 +00:00
										 |  |  |         $smarty->trigger_error("popup_init: missing src parameter"); | 
					
						
							| 
									
										
										
										
											2002-02-18 15:22:28 +00:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2002-01-31 20:49:40 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* vim: set expandtab: */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ?>
 |