[phpwebapp-commits] CVS: web_app class.WebApp.php,1.21,1.22
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2004-10-08 10:02:12
|
Update of /cvsroot/phpwebapp/web_app In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16923 Modified Files: 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.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** class.WebApp.php 7 Oct 2004 09:41:17 -0000 1.21 --- class.WebApp.php 8 Oct 2004 10:01:56 -0000 1.22 *************** *** 599,602 **** --- 599,615 ---- } + /** + * 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 ="") |