Changed template back to the way it should be ....

This commit is contained in:
jengo 2000-12-26 05:15:20 +00:00
parent 7d494dda53
commit b30d142352
2 changed files with 11 additions and 20 deletions

View File

@ -33,6 +33,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__);
$phpgw->db->next_record();
@ -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();
}

View File

@ -4,25 +4,12 @@
<form action="{form_action}" method="POST">
{hidden_vars}
<table border="0" width="35%" align="center">
<tr>
<td>{lang_app_name}</td>
<td><input name="n_app_name" value="{app_name_value}"></td>
<table border="0" width="55%" align="center">
<tr bgcolor="{th_bg}">
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td>{lang_app_title}</td>
<td><input name="n_app_title" value="{app_title_value}"></td>
</tr>
<tr>
<td>{lang_status}</td>
<td>
<select name="n_app_status">
{select_status}
</select>
</td>
</tr>
{rows}
<tr>
<td colspan="2" align="center">