diff options
author | marcelloc <marcellocoutinho@gmail.com> | 2012-06-25 19:08:18 -0300 |
---|---|---|
committer | marcelloc <marcellocoutinho@gmail.com> | 2012-06-25 19:08:18 -0300 |
commit | 0f89c12522c4c51bae1399337156b94e29253046 (patch) | |
tree | 43cde75a972d846bbf8c2ab39d8b5364de748694 /etc | |
parent | 47c48e285b2a6d0e0eaf5c453d90a702eaea5dd4 (diff) | |
download | pfsense-0f89c12522c4c51bae1399337156b94e29253046.zip pfsense-0f89c12522c4c51bae1399337156b94e29253046.tar.gz |
firewall_aliases.php include tabs(ip,port,url) , list aliases sorted, use dom_title funcion to show titles.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/functions.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/inc/functions.inc b/etc/inc/functions.inc index 695a1cf..eb7c2f6 100644 --- a/etc/inc/functions.inc +++ b/etc/inc/functions.inc @@ -123,6 +123,17 @@ function get_menu_messages(){ return ($menu_messages); } +function dom_title($title_msg,$width){ + $width=preg_replace("/\D+/","",$width); + if (!empty($width)){ + $width=",'width',$width"; + } + if (!empty($title_msg)){ + $title_msg=preg_replace("/\s+/"," ",$title_msg); + $title_msg=preg_replace("/'/","\'",$title_msg); + return "onmouseout=\"this.style.color = ''; domTT_mouseout(this, event);\" onmouseover=\"domTT_activate(this, event, 'content', '{$title_msg}', 'trail', true, 'delay', 250, 'fade', 'both', 'fadeMax', 93, 'styleClass', 'niceTitle' $width);\""; + } +} /* include all configuration functions */ require_once("interfaces.inc"); require_once("gwlb.inc"); |