Location: PHPKode > projects > DebWeb GUI > debwgui/includes/boxes.inc
<?php
function errorbox($title = '', $message, $width = '100%') {
  print "<table border=\"0\" cellspacing=\"0\" cellpadding=\"4\" width=\"$width\">".
      "<tr><td bgcolor=\"#A12A2A\" width=\"36\" align=\"center\" valign=\"top\"><img src=\"images/err.gif\" alt=\"info\" width=\"28\" height=\"32\"></td>".
      "<td bgcolor=\"#FFD9D1\" style=\"padding-left: 8px; padding-top: 6px\">".
      "<span class=\"errmsg\">$title</span>".
      "<ul>";
  if(is_array($message)) {
    foreach ($message as $eachmessage) {
      print "<li class=\"errmsg\">".htmlentities($eachmessage)."</li>";
    }
  } else {
    print "<li class=\"errmsg\">".htmlentities($message)."</li>";
  }
  print "</ul>".
        "</td></tr></table><br>";
}

function infobox($title = '', $message,$width = '100%') {
  print "<table border=\"0\" cellspacing=\"0\" cellpadding=\"4\" width=\"$width\">\n".
        "<tr><td bgcolor=\"#999999\" align=\"center\" valign=\"top\" width=\"36\"><img src=\"images/exclam.gif\" alt=\"info\" width=\"28\" height=\"32\"></td>".
        "<td bgcolor=\"#DDDDDD\" style=\"padding-left: 8px\">".
        "<strong>$title</strong><br>".
        "$message".
        "</td></tr></table><br>";
}

function successbox($title = '', $message, $width = '100%') {
  print "<table border=\"0\" cellspacing=\"0\" cellpadding=\"4\" width=\"$width\">".
      "<tr><td bgcolor=\"#68a468\" width=\"36\" align=\"center\" valign=\"top\"><img src=\"images/check.gif\" alt=\"info\" width=\"28\" height=\"32\"></td>".
      "<td bgcolor=\"#d9e8d9\" style=\"padding-left: 8px; padding-top: 6px\">".
      "<span class=\"successmsg\">$title</span>".
      "<ul>";
  if(is_array($message)) {
    foreach ($message as $eachmessage) {
      print "<li class=\"successmsg\">".htmlentities($eachmessage)."</li>";
    }
  } else {
    print "<li class=\"successmsg\">".htmlentities($message)."</li>";
  }
  print "</ul>".
        "</td></tr></table><br>";
}
?>
Return current item: DebWeb GUI