forked from extern/egroupware
Changed template back to the way it should be ....
This commit is contained in:
parent
7d494dda53
commit
b30d142352
@ -33,6 +33,10 @@
|
|||||||
if ($submit) {
|
if ($submit) {
|
||||||
$totalerrors = 0;
|
$totalerrors = 0;
|
||||||
|
|
||||||
|
if (! $app_order) {
|
||||||
|
$app_order = 0;
|
||||||
|
}
|
||||||
|
|
||||||
$phpgw->db->query("select count(*) from applications where app_name='"
|
$phpgw->db->query("select count(*) from applications where app_name='"
|
||||||
. addslashes($n_app_name) . "'",__LINE__,__FILE__);
|
. addslashes($n_app_name) . "'",__LINE__,__FILE__);
|
||||||
$phpgw->db->next_record();
|
$phpgw->db->next_record();
|
||||||
@ -53,8 +57,8 @@
|
|||||||
|
|
||||||
if (! $totalerrors) {
|
if (! $totalerrors) {
|
||||||
$phpgw->db->query("insert into applications (app_name,app_title,app_enabled,app_order) values('"
|
$phpgw->db->query("insert into applications (app_name,app_title,app_enabled,app_order) values('"
|
||||||
. addslashes($n_app_name) . "','" . addslashes($n_app_title) . "',"
|
. addslashes($n_app_name) . "','" . addslashes($n_app_title) . "','"
|
||||||
. "$n_app_status,$app_order)",__LINE__,__FILE__);
|
. "$n_app_status','$app_order')",__LINE__,__FILE__);
|
||||||
|
|
||||||
$phpgw->db->query("SELECT preference_owner, preference_value FROM preferences");
|
$phpgw->db->query("SELECT preference_owner, preference_value FROM preferences");
|
||||||
if($phpgw->db->num_rows()) {
|
if($phpgw->db->num_rows()) {
|
||||||
@ -67,7 +71,7 @@
|
|||||||
}
|
}
|
||||||
} elseif(!$phpgw_info["user"]["preferences"][$n_app_name]) {
|
} elseif(!$phpgw_info["user"]["preferences"][$n_app_name]) {
|
||||||
$phpgw->common->hook_single("add_def_pref", $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);
|
unset($phpgw_newuser);
|
||||||
$phpgw->preferences->commit();
|
$phpgw->preferences->commit();
|
||||||
}
|
}
|
||||||
|
@ -4,25 +4,12 @@
|
|||||||
|
|
||||||
<form action="{form_action}" method="POST">
|
<form action="{form_action}" method="POST">
|
||||||
{hidden_vars}
|
{hidden_vars}
|
||||||
<table border="0" width="35%" align="center">
|
<table border="0" width="55%" align="center">
|
||||||
<tr>
|
<tr bgcolor="{th_bg}">
|
||||||
<td>{lang_app_name}</td>
|
<td colspan="2"> </td>
|
||||||
<td><input name="n_app_name" value="{app_name_value}"></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
{rows}
|
||||||
<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>
|
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" align="center">
|
<td colspan="2" align="center">
|
||||||
|
Loading…
Reference in New Issue
Block a user