From 2a7d89d66346369d2015fc1180ea889f046f0156 Mon Sep 17 00:00:00 2001 From: bradymiller Date: Mon, 24 Aug 2009 03:11:56 +0000 Subject: [PATCH] do not show the deprecated metric vitals form by default --- interface/forms_admin/forms_admin.php | 119 ++++++++++++++++++++++++---------- interface/globals.php | 6 ++ 2 files changed, 92 insertions(+), 33 deletions(-) diff --git a/interface/forms_admin/forms_admin.php b/interface/forms_admin/forms_admin.php index 1f1cbd8c5..4d2df67f3 100644 --- a/interface/forms_admin/forms_admin.php +++ b/interface/forms_admin/forms_admin.php @@ -1,4 +1,4 @@ - - + + - topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0> -Forms Administration + +

+$val) { + if (preg_match('/nickname_(\d+)/', $key, $matches)) { + $nickname_id = $matches[1]; + sqlQuery("update registry set nickname='".$val."' where id=".$nickname_id); + } + if (preg_match('/category_(\d+)/', $key, $matches)) { + $category_id = $matches[1]; + sqlQuery("update registry set category='".$val."' where id=".$category_id); + } + if (preg_match('/priority_(\d+)/', $key, $matches)) { + $priority_id = $matches[1]; + sqlQuery("update registry set priority='".$val."' where id=".$priority_id); + } + } +?> -Registered
+
+
> + +'>
+ + + + + + + + + + - - registered"; + echo " - - + "; + echo ""; + echo ""; + ?> -Unregistered
+
- + + - + + ".xl('registered').""; elseif ($registry['state'] == "0") - echo "disabled"; + echo "".xl('disabled').""; else - echo "enabled"; + echo "".xl('enabled').""; ?> + + DB installed"; + echo "".xl('DB installed').""; else - echo "install DB"; + echo "".xl('install DB').""; ?>
- - - - - forms module. +// (since 3.1.0, metric units are now used along with US units +// in the main vitals form; controlled by above setting) +$GLOBALS['disable_deprecated_metrics_form'] = true; + include_once (dirname(__FILE__) . "/../library/date_functions.php"); include_once (dirname(__FILE__) . "/../library/classes/Filtreatment_class.php"); -- 2.11.4.GIT
+ - + + + " width="10%">register'; + echo '' . xl('register') . ''; else - echo 'n/a'; + echo '' . xl('n/a') . ''; ?> - + + - n/a + +