Project

General

Profile

« Previous | Next » 

Revision 65e8424e

Added by Phil Davis over 9 years ago

Tidy print_info_box comments

View differences:

src/usr/local/www/guiconfig.inc
308 308
}
309 309

  
310 310
// print_info_box() has been updated so that any required button is explicitly created, rather than relying on the detection of certain
311
// strings in the message (such as "apply"). print_info_box_np() has been exterminated
312
// $class = the botstrap style class (default, info, warning, success, danger)
313
// $btnname and btntext describe the optional button and its display text
314
// Note that there is a shortcut function 26 lines south of here that creats a standard "apply" box for you. In may cases just substitute that for print_info_box_np()
311
// strings in the message (such as "apply"). print_info_box_np() has been exterminated.
312
// $class = the bootstrap style class (default, info, warning, success, danger)
313
// $btnname and btntext describe the optional button and its display text, the default is an 'x' Close button. 
314
// Note that there is also a shortcut function print_apply_box here that creates a standard "apply" box for you.
315
// In many cases just substitute that for print_info_box_np() to easily get a warning style "Apply changes" box.
315 316
function print_info_box($msg, $class="alert-warning", $btnname = "close", $btntext = "") {
316 317

  
317 318
	if (strpos($class, "alert-") !== 0) {

Also available in: Unified diff