[phpwebapp-commits] CVS: web_app class.WebApp.php,1.12.2.2,1.12.2.3
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2004-10-08 10:13:07
|
Update of /cvsroot/phpwebapp/web_app In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19096 Modified Files: Tag: phpwebapp-1_0 class.WebApp.php Log Message: Added function WebApp::popup_window($name, $url, $features ='nil') Index: class.WebApp.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/class.WebApp.php,v retrieving revision 1.12.2.2 retrieving revision 1.12.2.3 diff -C2 -d -r1.12.2.2 -r1.12.2.3 *** class.WebApp.php 7 Oct 2004 09:58:16 -0000 1.12.2.2 --- class.WebApp.php 8 Oct 2004 10:12:56 -0000 1.12.2.3 *************** *** 605,608 **** --- 605,621 ---- } + /** + * Open a pop-up window (in a new browser). + * Parameters $name, $url, and $features will be used + * in a javascript statement like this: + * $name = window.open($url, $name, $features); + */ + function popup_window($name, $url, $features ='nil') + { + global $webPage; + $webPage->popup_windows[$name]['url'] = $url; + $webPage->popup_windows[$name]['features'] = $features; + } + /** Output a debug message. */ function debug_msg($dbg_msg, $comment ="") |