Update send_header() for a third parameter of the icon to use

This commit is contained in:
james 2008-08-22 20:35:08 +00:00
parent e2b8bf21a5
commit eb2128da25

View File

@ -358,7 +358,7 @@ function happy($str,$type="normal")
}
$HEADER_SENT=false;
function send_header($title="", $nav=null)
function send_header($title="", $nav=null, $icon=null)
{
global $HEADER_SENT;
global $config;
@ -603,7 +603,16 @@ if(committee_auth_has_access("config"))
if(committee_auth_has_access("admin"))
admin_warnings();
echo "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td>";
echo "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr>";
if($icon) {
echo "<td width=\"40\">";
echo theme_icon($icon);
echo "</td><td>";
}
else
echo "<td>";
if($title)
echo "<h2>".i18n($title)."</h2>";