diff options
author | Colin Fleming <cj_fleming@sky.com> | 2014-04-04 17:08:21 +0100 |
---|---|---|
committer | Colin Fleming <cj_fleming@sky.com> | 2014-04-04 17:08:21 +0100 |
commit | 5a2b90cda95fc42450c3ca13be0471bd7e294818 (patch) | |
tree | 5b3977b9cb65344d6607cc85dc5ec2510231e1ca | |
parent | a4b1bf88bbdc0b05f39c5dcca245ccf3f0563f7d (diff) | |
download | pfsense-5a2b90cda95fc42450c3ca13be0471bd7e294818.zip pfsense-5a2b90cda95fc42450c3ca13be0471bd7e294818.tar.gz |
Tidy up "functions.inc"
Escape single quotes for TABLE and HREF
Updated closing TR tag
-rw-r--r-- | etc/inc/functions.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/functions.inc b/etc/inc/functions.inc index 66a5bee..a86876a 100644 --- a/etc/inc/functions.inc +++ b/etc/inc/functions.inc @@ -89,9 +89,9 @@ if(!function_exists("get_menu_messages")) { $request_string = implode("&", $requests); if(is_array($notices)) { - $notice_msgs = "<table colspan=6 id=notice_table>"; + $notice_msgs = "<table colspan=\'6\' id=\'notice_table\'>"; $alert_style="style=\'color:#ffffff; filter:Glow(color=#ff0000, strength=12);\' "; - $notice = "<a href=# onClick=notice_action(\'acknowledge\',\'all\');domTT_close(this); {$alert_style}>".gettext("Acknowledge All Notices")."</a>"; + $notice = "<a href=\'#\' onclick=notice_action(\'acknowledge\',\'all\');domTT_close(this); {$alert_style}>".gettext("Acknowledge All Notices")."</a>"; $alert_link="title=\'".gettext("Click to Acknowledge")."\' {$alert_style}"; $domtt_width=500; foreach ($notices as $key => $value) { @@ -102,8 +102,8 @@ if(!function_exists("get_menu_messages")) { $domtt_width=(strlen($noticemsg) *8); if ((strlen($noticemsg)* 8) > 900) $domtt_width= 900; - $alert_action ="onClick=notice_action(\'acknowledge\',\'{$key}\');domTT_close(this);jQuery(this).parent().parent().remove();"; - $notice_msgs .= "<tr><td valign=\'top\' width=\'120\'><a href=# {$alert_link} {$alert_action}>{$date}</a></td><td valign=\'top\'><a href=# {$alert_link} {$alert_action}>[ ".htmlspecialchars($noticemsg)."]</a></td><tr>"; + $alert_action ="onclick=notice_action(\'acknowledge\',\'{$key}\');domTT_close(this);jQuery(this).parent().parent().remove();"; + $notice_msgs .= "<tr><td valign=\'top\' width=\'120\'><a href=\'#\' {$alert_link} {$alert_action}>{$date}</a></td><td valign=\'top\'><a href=\'#\' {$alert_link} {$alert_action}>[ ".htmlspecialchars($noticemsg)."]</a></td></tr>"; } $notice_msgs .="</table>"; @@ -113,7 +113,7 @@ if(!function_exists("get_menu_messages")) { $msg= sprintf("%1$02d",count($notices))." ".gettext("unread notice"); else $msg= sprintf("%1$02d",count($notices))." ".gettext("unread notices"); - $menu_messages.="<div id='marquee-text' style='z-index:1001;'><a href=# {$domtt}><b> .:. {$msg} .:. </b></a></div>\n"; + $menu_messages.="<div id='marquee-text' style='z-index:1001;'><a href='#' {$domtt}><b> .:. {$msg} .:. </b></a></div>\n"; $menu_messages.="</div>\n"; } } |