diff --git a/classes/pref/filters.php b/classes/pref/filters.php index a540d6570..f9b3217c9 100755 --- a/classes/pref/filters.php +++ b/classes/pref/filters.php @@ -442,13 +442,13 @@ class Pref_Filters extends Handler_Protected {
"; print "
-
"; + "; print "
- +
"; - print "
+ print "
"; print "
diff --git a/include/controls_compat.php b/include/controls_compat.php index 597eb9879..d62265471 100644 --- a/include/controls_compat.php +++ b/include/controls_compat.php @@ -1,5 +1,53 @@ \n"; +} + +function javascript_tag($filename) { + $query = ""; + + if (!(strpos($filename, "?") === false)) { + $query = substr($filename, strpos($filename, "?")+1); + $filename = substr($filename, 0, strpos($filename, "?")); + } + + $timestamp = filemtime($filename); + + if ($query) $timestamp .= "&$query"; + + return "\n"; +} + +function format_warning($msg, $id = "") { + return "
$msg
"; +} + +function format_notice($msg, $id = "") { + return "
$msg
"; +} + +function format_error($msg, $id = "") { + return "
$msg
"; +} + +function print_notice($msg) { + return print format_notice($msg); +} + +function print_warning($msg) { + return print format_warning($msg); +} + +function print_error($msg) { + return print format_error($msg); +} + // the following is deprecated and will be eventually removed /*function print_select($id, $default, $values, $attributes = "", $name = "") { @@ -35,9 +83,8 @@ function print_select_hash($id, $default, $values, $attributes = "", $name = "") } print ""; -}*/ +} -/* function format_hidden($name, $value) { return ""; } @@ -45,7 +92,6 @@ function format_hidden($name, $value) { function print_hidden($name, $value) { print format_hidden($name, $value); } -*/ function format_checkbox($id, $checked, $value = "", $attributes = "") { $checked_str = $checked ? "checked" : ""; @@ -58,7 +104,6 @@ function print_checkbox($id, $checked, $value = "", $attributes = "") { print format_checkbox($id, $checked, $value, $attributes); } -/* function format_button($type, $value, $attributes = "") { return ""; } @@ -239,56 +284,7 @@ function format_feed_cat_select($id, $default_id, $attributes, $include_all_cats return $ret; } -*/ - -function stylesheet_tag($filename, $id = false) { - $timestamp = filemtime($filename); - - $id_part = $id ? "id=\"$id\"" : ""; - - return "\n"; -} - -function javascript_tag($filename) { - $query = ""; - - if (!(strpos($filename, "?") === false)) { - $query = substr($filename, strpos($filename, "?")+1); - $filename = substr($filename, 0, strpos($filename, "?")); - } - - $timestamp = filemtime($filename); - - if ($query) $timestamp .= "&$query"; - - return "\n"; -} - -function format_warning($msg, $id = "") { - return "
$msg
"; -} - -function format_notice($msg, $id = "") { - return "
$msg
"; -} - -function format_error($msg, $id = "") { - return "
$msg
"; -} - -function print_notice($msg) { - return print format_notice($msg); -} - -function print_warning($msg) { - return print format_warning($msg); -} - -function print_error($msg) { - return print format_error($msg); -} -/* function print_label_select($name, $value, $attributes = "") { $pdo = Db::pdo();