From cb9c5a0d464bb0d614592fd29a483aa7513b3211 Mon Sep 17 00:00:00 2001 From: jengo Date: Wed, 8 Aug 2001 08:41:28 +0000 Subject: [PATCH] Added select boxs for the version numbers on the apps that have them avaiable. Milosch, what do you think ? --- setup/schematoy.php | 20 +++++++++++++++++++- setup/templates/default/schema.tpl | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/setup/schematoy.php b/setup/schematoy.php index c50d009fa0..986266e671 100644 --- a/setup/schematoy.php +++ b/setup/schematoy.php @@ -223,7 +223,25 @@ @reset ($setup_info); while (list ($key, $value) = each ($setup_info)) { - if($value['name']) + unset($test); + if (file_exists(PHPGW_SERVER_ROOT . '/' . $value['name'] . '/setup/tables_update.inc.php')) + { + include(PHPGW_SERVER_ROOT . '/' . $value['name'] . '/setup/tables_update.inc.php'); + } + + if (is_array($test)) + { + reset($test); + } + + $s = ''; + while (is_array($test) && list(,$versionnumber) = each($test)) + { + $s .= ''; + } + $setup_tpl->set_var('select_version',$s); + + if ($value['name']) { if ($i) { diff --git a/setup/templates/default/schema.tpl b/setup/templates/default/schema.tpl index 480f431700..44844140fc 100644 --- a/setup/templates/default/schema.tpl +++ b/setup/templates/default/schema.tpl @@ -28,7 +28,7 @@ {instalt} {appinfo}  {apptitle}  - + {install}