mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
More work on application editor
This commit is contained in:
parent
7ad447b37a
commit
2536a54522
@ -41,6 +41,7 @@
|
||||
case "title": $s = "Title"; break;
|
||||
case "enabled": $s = "Enabled"; break;
|
||||
|
||||
case "applications": $s = "Applications"; break;
|
||||
case "installed applications":
|
||||
$s = "Installed applications"; break;
|
||||
|
||||
@ -55,8 +56,11 @@
|
||||
case "application title":
|
||||
$s = "Application title"; break;
|
||||
|
||||
case "edit application":
|
||||
$s = "Edit application"; break;
|
||||
|
||||
|
||||
case "you must enter an application name and title.":
|
||||
$s = "You must enter an application name and title."; break;
|
||||
|
||||
|
||||
case "are you sure you want to delete this group ?":
|
||||
|
@ -17,10 +17,29 @@
|
||||
|
||||
$phpgw_flags["currentapp"] = "admin";
|
||||
include("../header.inc.php");
|
||||
if (! $submit) {
|
||||
if ($submit) {
|
||||
if (! $n_app_name || ! $n_app_title) {
|
||||
$error = lang_admin("You must enter an application name and title.");
|
||||
} else {
|
||||
$phpgw->db->query("insert into applications (app_name,app_title,app_enabled) values('"
|
||||
. addslashes($n_app_name) . "','" . addslashes($n_app_title) . "','"
|
||||
. "$n_app_enabled')");
|
||||
|
||||
Header("Location: " . $phpgw->link("applications.php"));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if ($error) {
|
||||
$phpgw->common->header();
|
||||
$phpgw->common->navbar();
|
||||
}
|
||||
|
||||
echo "<p>" . lang_admin("Add new application") . "<hr><p>";
|
||||
if ($error) {
|
||||
echo "<p><center>$error</center><br>";
|
||||
}
|
||||
?>
|
||||
<p>
|
||||
<?php echo lang_admin("Add new application"); ?><hr><p>
|
||||
|
||||
<form action="newapplication.php">
|
||||
<?php echo $phpgw->session->hidden_var(); ?>
|
||||
|
||||
@ -47,12 +66,3 @@
|
||||
</form>
|
||||
<?php
|
||||
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
||||
|
||||
} else {
|
||||
$phpgw->db->query("insert into applications (app_name,app_title,app_enabled) values ('"
|
||||
. addslashes($n_app_name) . "','" . addslashes($n_app_title) . "','"
|
||||
. "$n_app_enabled')");
|
||||
|
||||
Header("Location: " . $phpgw->link("applications.php"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user