From b30d1423524a64031972262c7ddabc972b8b0f5c Mon Sep 17 00:00:00 2001 From: jengo Date: Tue, 26 Dec 2000 05:15:20 +0000 Subject: [PATCH] Changed template back to the way it should be .... --- admin/newapplication.php | 10 +++++++--- admin/templates/default/application_form.tpl | 21 ++++---------------- 2 files changed, 11 insertions(+), 20 deletions(-) diff --git a/admin/newapplication.php b/admin/newapplication.php index c7bb686382..15d6dc3702 100644 --- a/admin/newapplication.php +++ b/admin/newapplication.php @@ -32,6 +32,10 @@ if ($submit) { $totalerrors = 0; + + if (! $app_order) { + $app_order = 0; + } $phpgw->db->query("select count(*) from applications where app_name='" . addslashes($n_app_name) . "'",__LINE__,__FILE__); @@ -53,8 +57,8 @@ if (! $totalerrors) { $phpgw->db->query("insert into applications (app_name,app_title,app_enabled,app_order) values('" - . addslashes($n_app_name) . "','" . addslashes($n_app_title) . "'," - . "$n_app_status,$app_order)",__LINE__,__FILE__); + . addslashes($n_app_name) . "','" . addslashes($n_app_title) . "','" + . "$n_app_status','$app_order')",__LINE__,__FILE__); $phpgw->db->query("SELECT preference_owner, preference_value FROM preferences"); if($phpgw->db->num_rows()) { @@ -67,7 +71,7 @@ } } elseif(!$phpgw_info["user"]["preferences"][$n_app_name]) { $phpgw->common->hook_single("add_def_pref", $n_app_name); - $phpgw_info["user"]["preferences"]["$n_app_name"] = $phpgw_newuser["user"]["preferences"]["$n_app_name"]; + $phpgw_info["user"]["preferences"][$n_app_name] = $phpgw_newuser["user"]["preferences"][$n_app_name]; unset($phpgw_newuser); $phpgw->preferences->commit(); } diff --git a/admin/templates/default/application_form.tpl b/admin/templates/default/application_form.tpl index 1ef57ba0c1..e66bcef4fc 100644 --- a/admin/templates/default/application_form.tpl +++ b/admin/templates/default/application_form.tpl @@ -4,25 +4,12 @@
{hidden_vars} - - - - +
{lang_app_name}
+ + - - - - - - - - - + {rows}
 
{lang_app_title}
{lang_status} - -