mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
More work on application editor
This commit is contained in:
parent
487c6dccba
commit
7ad447b37a
@ -44,6 +44,21 @@
|
||||
case "installed applications":
|
||||
$s = "Installed applications"; break;
|
||||
|
||||
|
||||
|
||||
case "add new application":
|
||||
$s = "Add new application"; break;
|
||||
|
||||
case "application name":
|
||||
$s = "Application name"; break;
|
||||
|
||||
case "application title":
|
||||
$s = "Application title"; break;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
case "are you sure you want to delete this group ?":
|
||||
$s = "Are you sure you want to delete this group ?"; break;
|
||||
|
||||
|
58
admin/newapplication.php
Normal file
58
admin/newapplication.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* phpGroupWare - administration *
|
||||
* http://www.phpgroupware.org *
|
||||
* -------------------------------------------- *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms of the GNU General Public License as published by the *
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
if ($submit) {
|
||||
$phpgw_flags = array("noheader" => True, "nonavbar" => True);
|
||||
}
|
||||
|
||||
$phpgw_flags["currentapp"] = "admin";
|
||||
include("../header.inc.php");
|
||||
if (! $submit) {
|
||||
?>
|
||||
<p>
|
||||
<?php echo lang_admin("Add new application"); ?><hr><p>
|
||||
<form action="newapplication.php">
|
||||
<?php echo $phpgw->session->hidden_var(); ?>
|
||||
|
||||
<table border="0" width="35%" align="center">
|
||||
<tr>
|
||||
<td><?php echo lang_admin("application name"); ?></td>
|
||||
<td><input name="n_app_name"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><?php echo lang_admin("application title"); ?></td>
|
||||
<td><input name="n_app_title"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><?php echo lang_admin("enabled"); ?></td>
|
||||
<td><input type="checkbox" name="n_app_enabled" value="1"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" align="center"><input type="submit" name="submit" value="<?php echo lang_common("Add"); ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</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