More work on application editor

This commit is contained in:
jengo 2000-08-19 14:22:09 +00:00
parent 487c6dccba
commit 7ad447b37a
2 changed files with 73 additions and 0 deletions

View File

@ -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
View 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"));
}