2006-02-21 15:01:41 +00:00
|
|
|
<?php
|
2014-10-02 07:30:31 +00:00
|
|
|
/* Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
2017-06-21 09:37:34 +00:00
|
|
|
* Copyright (C) 2006-2017 Laurent Destailleur <eldy@users.sourceforge.net>
|
2018-10-27 12:43:12 +00:00
|
|
|
* Copyright (C) 2005-2014 Regis Houssin <regis.houssin@inodbox.com>
|
2014-10-02 07:30:31 +00:00
|
|
|
* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
|
|
|
|
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
|
2015-05-23 16:52:31 +00:00
|
|
|
* Copyright (C) 2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
2020-10-31 17:51:20 +00:00
|
|
|
* Copyright (C) 2020 Frédéric France <frederic.france@netlogic.fr>
|
2006-02-21 15:01:41 +00:00
|
|
|
*
|
|
|
|
|
* 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
|
2013-01-16 14:36:08 +00:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2006-02-21 15:01:41 +00:00
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2019-09-23 19:55:30 +00:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2006-02-21 15:01:41 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
2014-09-18 19:18:25 +00:00
|
|
|
* \file htdocs/categories/card.php
|
2009-08-28 16:37:45 +00:00
|
|
|
* \ingroup category
|
|
|
|
|
* \brief Page to create a new category
|
|
|
|
|
*/
|
2006-02-21 15:01:41 +00:00
|
|
|
|
2012-08-22 21:24:21 +00:00
|
|
|
require '../main.inc.php';
|
2012-08-22 21:11:24 +00:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
2014-03-16 14:25:13 +00:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
|
2015-09-17 18:00:54 +00:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
2006-02-21 15:01:41 +00:00
|
|
|
|
2018-05-27 07:58:23 +00:00
|
|
|
// Load translation files required by the page
|
2010-06-02 20:01:13 +00:00
|
|
|
$langs->load("categories");
|
|
|
|
|
|
2009-08-28 01:14:35 +00:00
|
|
|
// Security check
|
2020-10-31 17:51:20 +00:00
|
|
|
$socid = (int) GETPOST('socid', 'int');
|
2006-02-21 15:01:41 +00:00
|
|
|
if (!$user->rights->categorie->lire) accessforbidden();
|
|
|
|
|
|
2019-01-27 10:55:16 +00:00
|
|
|
$action = GETPOST('action', 'alpha');
|
|
|
|
|
$cancel = GETPOST('cancel', 'alpha');
|
|
|
|
|
$origin = GETPOST('origin', 'alpha');
|
2020-10-31 17:51:20 +00:00
|
|
|
$catorigin = (int) GETPOST('catorigin', 'int');
|
2020-10-27 18:14:03 +00:00
|
|
|
$type = GETPOST('type', 'aZ09');
|
2019-01-27 10:55:16 +00:00
|
|
|
$urlfrom = GETPOST('urlfrom', 'alpha');
|
|
|
|
|
$backtopage = GETPOST('backtopage', 'alpha');
|
2006-02-21 15:01:41 +00:00
|
|
|
|
2020-10-31 17:51:20 +00:00
|
|
|
$label = (string) GETPOST('label', 'alphanohtml');
|
|
|
|
|
$description = (string) GETPOST('description', 'restricthtml');
|
|
|
|
|
$color = preg_replace('/[^0-9a-f#]/i', '', (string) GETPOST('color', 'alphanohtml'));
|
|
|
|
|
$visible = (int) GETPOST('visible', 'int');
|
|
|
|
|
$parent = (int) GETPOST('parent', 'int');
|
2012-07-28 09:28:37 +00:00
|
|
|
|
2020-10-31 17:51:20 +00:00
|
|
|
if ($origin) {
|
2015-05-23 16:52:31 +00:00
|
|
|
if ($type == Categorie::TYPE_PRODUCT) $idProdOrigin = $origin;
|
|
|
|
|
if ($type == Categorie::TYPE_SUPPLIER) $idSupplierOrigin = $origin;
|
|
|
|
|
if ($type == Categorie::TYPE_CUSTOMER) $idCompanyOrigin = $origin;
|
|
|
|
|
if ($type == Categorie::TYPE_MEMBER) $idMemberOrigin = $origin;
|
|
|
|
|
if ($type == Categorie::TYPE_CONTACT) $idContactOrigin = $origin;
|
2016-08-29 08:32:00 +00:00
|
|
|
if ($type == Categorie::TYPE_PROJECT) $idProjectOrigin = $origin;
|
2008-10-07 12:24:33 +00:00
|
|
|
}
|
|
|
|
|
|
2015-05-23 16:52:31 +00:00
|
|
|
if ($catorigin && $type == Categorie::TYPE_PRODUCT) $idCatOrigin = $catorigin;
|
2008-10-07 09:36:33 +00:00
|
|
|
|
2014-03-16 14:25:13 +00:00
|
|
|
$object = new Categorie($db);
|
2006-02-21 15:01:41 +00:00
|
|
|
|
2014-04-25 12:28:22 +00:00
|
|
|
$extrafields = new ExtraFields($db);
|
2019-10-06 12:41:52 +00:00
|
|
|
$extrafields->fetch_name_optionals_label($object->table_element);
|
2014-04-25 12:28:22 +00:00
|
|
|
|
2015-06-12 14:10:23 +00:00
|
|
|
// Initialize technical object to manage hooks. Note that conf->hooks_modules contains array array
|
|
|
|
|
$hookmanager->initHooks(array('categorycard'));
|
|
|
|
|
|
2020-10-27 18:14:03 +00:00
|
|
|
$error = 0;
|
|
|
|
|
|
2015-06-14 15:11:36 +00:00
|
|
|
|
2007-11-12 21:47:20 +00:00
|
|
|
/*
|
2010-01-19 09:54:04 +00:00
|
|
|
* Actions
|
|
|
|
|
*/
|
2006-02-23 11:09:21 +00:00
|
|
|
|
2010-07-29 13:13:41 +00:00
|
|
|
// Add action
|
2011-03-19 12:47:39 +00:00
|
|
|
if ($action == 'add' && $user->rights->categorie->creer)
|
2006-02-22 17:37:32 +00:00
|
|
|
{
|
2008-10-07 08:46:31 +00:00
|
|
|
// Action ajout d'une categorie
|
2011-03-19 12:47:39 +00:00
|
|
|
if ($cancel)
|
2007-11-12 21:47:20 +00:00
|
|
|
{
|
2010-03-20 00:07:47 +00:00
|
|
|
if ($urlfrom)
|
|
|
|
|
{
|
|
|
|
|
header("Location: ".$urlfrom);
|
|
|
|
|
exit;
|
2020-10-31 17:51:20 +00:00
|
|
|
} elseif ($backtopage) {
|
2020-09-23 14:36:19 +00:00
|
|
|
header("Location: ".$backtopage);
|
|
|
|
|
exit;
|
2020-10-31 17:51:20 +00:00
|
|
|
} elseif ($idProdOrigin) {
|
2016-08-29 19:31:27 +00:00
|
|
|
header("Location: ".DOL_URL_ROOT.'/categories/viewcat.php?id='.$idProdOrigin.'&type='.$type);
|
2007-11-12 21:47:20 +00:00
|
|
|
exit;
|
2020-10-31 17:51:20 +00:00
|
|
|
} elseif ($idCompanyOrigin) {
|
2016-08-29 19:31:27 +00:00
|
|
|
header("Location: ".DOL_URL_ROOT.'/categories/viewcat.php?id='.$idCompanyOrigin.'&type='.$type);
|
2008-02-15 00:12:30 +00:00
|
|
|
exit;
|
2020-10-31 17:51:20 +00:00
|
|
|
} elseif ($idSupplierOrigin) {
|
2016-08-29 19:31:27 +00:00
|
|
|
header("Location: ".DOL_URL_ROOT.'/categories/viewcat.php?id='.$idSupplierOrigin.'&type='.$type);
|
2007-11-12 21:47:20 +00:00
|
|
|
exit;
|
2020-10-31 17:51:20 +00:00
|
|
|
} elseif ($idMemberOrigin) {
|
2011-03-19 12:47:39 +00:00
|
|
|
header("Location: ".DOL_URL_ROOT.'/categories/viewcat.php?id='.$idMemberOrigin.'&type='.$type);
|
2010-03-20 00:07:47 +00:00
|
|
|
exit;
|
2020-10-31 17:51:20 +00:00
|
|
|
} elseif ($idContactOrigin) {
|
2013-07-16 19:04:58 +00:00
|
|
|
header("Location: ".DOL_URL_ROOT.'/categories/viewcat.php?id='.$idContactOrigin.'&type='.$type);
|
|
|
|
|
exit;
|
2020-10-31 17:51:20 +00:00
|
|
|
} elseif ($idProjectOrigin) {
|
2016-08-29 08:32:00 +00:00
|
|
|
header("Location: ".DOL_URL_ROOT.'/categories/viewcat.php?id='.$idProjectOrigin.'&type='.$type);
|
|
|
|
|
exit;
|
2020-05-21 13:05:19 +00:00
|
|
|
} else {
|
2011-03-19 12:47:39 +00:00
|
|
|
header("Location: ".DOL_URL_ROOT.'/categories/index.php?leftmenu=cat&type='.$type);
|
2008-10-07 08:46:31 +00:00
|
|
|
exit;
|
|
|
|
|
}
|
2007-11-12 21:47:20 +00:00
|
|
|
}
|
|
|
|
|
|
2014-10-02 07:30:31 +00:00
|
|
|
|
2006-03-03 20:52:01 +00:00
|
|
|
|
2013-02-19 14:33:49 +00:00
|
|
|
$object->label = $label;
|
2015-09-17 18:00:54 +00:00
|
|
|
$object->color = $color;
|
2019-11-13 18:35:39 +00:00
|
|
|
$object->description = dol_htmlcleanlastbr($description);
|
2020-10-27 18:14:03 +00:00
|
|
|
$object->socid = ($socid > 0 ? $socid : 0);
|
2019-11-13 18:35:39 +00:00
|
|
|
$object->visible = $visible;
|
|
|
|
|
$object->type = $type;
|
2008-10-07 09:36:33 +00:00
|
|
|
|
2012-10-08 17:27:02 +00:00
|
|
|
if ($parent != "-1") $object->fk_parent = $parent;
|
2014-10-02 07:30:31 +00:00
|
|
|
|
2019-10-06 12:41:52 +00:00
|
|
|
$ret = $extrafields->setOptionalsFromPost(null, $object);
|
2015-02-26 13:25:30 +00:00
|
|
|
if ($ret < 0) $error++;
|
2006-07-30 00:37:31 +00:00
|
|
|
|
2019-11-13 18:35:39 +00:00
|
|
|
if (!$object->label)
|
2007-02-22 21:04:33 +00:00
|
|
|
{
|
2012-07-28 09:28:37 +00:00
|
|
|
$error++;
|
2015-10-17 14:18:33 +00:00
|
|
|
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Ref")), null, 'errors');
|
2012-07-28 09:28:37 +00:00
|
|
|
$action = 'create';
|
2007-02-22 21:04:33 +00:00
|
|
|
}
|
2009-08-28 01:14:35 +00:00
|
|
|
|
2009-08-28 16:37:45 +00:00
|
|
|
// Create category in database
|
2019-11-13 18:35:39 +00:00
|
|
|
if (!$error)
|
2006-03-03 20:52:01 +00:00
|
|
|
{
|
2014-07-29 09:15:32 +00:00
|
|
|
$result = $object->create($user);
|
2007-12-05 14:11:44 +00:00
|
|
|
if ($result > 0)
|
2006-03-03 20:52:01 +00:00
|
|
|
{
|
2011-03-19 12:47:39 +00:00
|
|
|
$action = 'confirmed';
|
2006-03-13 16:40:34 +00:00
|
|
|
$_POST["addcat"] = '';
|
2020-05-21 13:05:19 +00:00
|
|
|
} else {
|
2015-10-31 16:21:48 +00:00
|
|
|
setEventMessages($object->error, $object->errors, 'errors');
|
2006-03-03 20:52:01 +00:00
|
|
|
}
|
|
|
|
|
}
|
2007-11-12 21:47:20 +00:00
|
|
|
}
|
|
|
|
|
|
2010-07-29 13:13:41 +00:00
|
|
|
// Confirm action
|
2011-07-04 09:54:02 +00:00
|
|
|
if (($action == 'add' || $action == 'confirmed') && $user->rights->categorie->creer)
|
2007-11-12 21:47:20 +00:00
|
|
|
{
|
2008-02-15 00:12:30 +00:00
|
|
|
// Action confirmation de creation categorie
|
2011-03-19 12:47:39 +00:00
|
|
|
if ($action == 'confirmed')
|
2006-07-30 00:37:31 +00:00
|
|
|
{
|
2010-03-20 00:07:47 +00:00
|
|
|
if ($urlfrom)
|
|
|
|
|
{
|
|
|
|
|
header("Location: ".$urlfrom);
|
|
|
|
|
exit;
|
2020-05-21 13:05:19 +00:00
|
|
|
} elseif ($backtopage)
|
2018-09-19 15:33:50 +00:00
|
|
|
{
|
|
|
|
|
header("Location: ".$backtopage);
|
|
|
|
|
exit;
|
2020-05-21 13:05:19 +00:00
|
|
|
} elseif ($idProdOrigin)
|
2006-07-30 00:37:31 +00:00
|
|
|
{
|
2016-08-29 19:31:27 +00:00
|
|
|
header("Location: ".DOL_URL_ROOT.'/categories/viewcat.php?id='.$idProdOrigin.'&type='.$type.'&mesg='.urlencode($langs->trans("CatCreated")));
|
2007-11-12 22:13:15 +00:00
|
|
|
exit;
|
2020-05-21 13:05:19 +00:00
|
|
|
} elseif ($idCompanyOrigin)
|
2007-04-30 10:53:58 +00:00
|
|
|
{
|
2016-08-29 19:31:27 +00:00
|
|
|
header("Location: ".DOL_URL_ROOT.'/categories/viewcat.php?id='.$idCompanyOrigin.'&type='.$type.'&mesg='.urlencode($langs->trans("CatCreated")));
|
2007-11-12 22:13:15 +00:00
|
|
|
exit;
|
2020-05-21 13:05:19 +00:00
|
|
|
} elseif ($idSupplierOrigin)
|
2007-12-05 14:11:44 +00:00
|
|
|
{
|
2016-08-29 19:31:27 +00:00
|
|
|
header("Location: ".DOL_URL_ROOT.'/categories/viewcat.php?id='.$idSupplierOrigin.'&type='.$type.'&mesg='.urlencode($langs->trans("CatCreated")));
|
2007-12-05 14:11:44 +00:00
|
|
|
exit;
|
2020-05-21 13:05:19 +00:00
|
|
|
} elseif ($idMemberOrigin)
|
2010-03-20 00:07:47 +00:00
|
|
|
{
|
2016-08-29 19:31:27 +00:00
|
|
|
header("Location: ".DOL_URL_ROOT.'/categories/viewcat.php?id='.$idMemberOrigin.'&type='.$type.'&mesg='.urlencode($langs->trans("CatCreated")));
|
2008-10-07 12:24:33 +00:00
|
|
|
exit;
|
2020-05-21 13:05:19 +00:00
|
|
|
} elseif ($idContactOrigin)
|
2013-07-16 19:04:58 +00:00
|
|
|
{
|
2016-08-29 19:31:27 +00:00
|
|
|
header("Location: ".DOL_URL_ROOT.'/categories/viewcat.php?id='.$idContactOrigin.'&type='.$type.'&mesg='.urlencode($langs->trans("CatCreated")));
|
2013-07-16 19:04:58 +00:00
|
|
|
exit;
|
2020-05-21 13:05:19 +00:00
|
|
|
} elseif ($idProjectOrigin)
|
2016-08-29 08:32:00 +00:00
|
|
|
{
|
2016-08-29 19:31:27 +00:00
|
|
|
header("Location: ".DOL_URL_ROOT.'/categories/viewcat.php?id='.$idProjectOrigin.'&type='.$type.'&mesg='.urlencode($langs->trans("CatCreated")));
|
2016-08-29 08:32:00 +00:00
|
|
|
exit;
|
|
|
|
|
}
|
2008-02-15 00:12:30 +00:00
|
|
|
|
2011-03-19 12:47:39 +00:00
|
|
|
header("Location: ".DOL_URL_ROOT.'/categories/viewcat.php?id='.$result.'&type='.$type);
|
2008-02-15 00:12:30 +00:00
|
|
|
exit;
|
2006-07-30 00:37:31 +00:00
|
|
|
}
|
2006-02-22 17:37:32 +00:00
|
|
|
}
|
|
|
|
|
|
2006-02-22 14:38:14 +00:00
|
|
|
|
2009-08-28 16:37:45 +00:00
|
|
|
/*
|
|
|
|
|
* View
|
|
|
|
|
*/
|
2007-11-12 22:13:15 +00:00
|
|
|
|
2011-11-08 09:18:45 +00:00
|
|
|
$form = new Form($db);
|
2015-09-17 18:00:54 +00:00
|
|
|
$formother = new FormOther($db);
|
2007-11-12 22:13:15 +00:00
|
|
|
|
2019-11-13 18:35:39 +00:00
|
|
|
$helpurl = '';
|
2019-01-27 10:55:16 +00:00
|
|
|
llxHeader("", $langs->trans("Categories"), $helpurl);
|
2013-09-06 10:10:09 +00:00
|
|
|
|
2006-07-30 00:37:31 +00:00
|
|
|
if ($user->rights->categorie->creer)
|
2006-02-21 15:01:41 +00:00
|
|
|
{
|
2017-06-21 09:37:34 +00:00
|
|
|
// Create or add
|
2011-03-19 12:47:39 +00:00
|
|
|
if ($action == 'create' || $_POST["addcat"] == 'addcat')
|
2006-03-03 20:52:01 +00:00
|
|
|
{
|
2013-02-19 14:33:49 +00:00
|
|
|
dol_set_focus('#label');
|
2013-04-27 23:12:40 +00:00
|
|
|
|
2011-03-19 12:47:39 +00:00
|
|
|
print '<form action="'.$_SERVER['PHP_SELF'].'?type='.$type.'" method="POST">';
|
2019-12-18 22:12:31 +00:00
|
|
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
2010-03-20 00:07:47 +00:00
|
|
|
print '<input type="hidden" name="urlfrom" value="'.$urlfrom.'">';
|
2006-03-03 20:52:01 +00:00
|
|
|
print '<input type="hidden" name="action" value="add">';
|
|
|
|
|
print '<input type="hidden" name="addcat" value="addcat">';
|
2019-01-27 10:55:16 +00:00
|
|
|
print '<input type="hidden" name="id" value="'.GETPOST('origin', 'alpha').'">';
|
2011-03-19 12:47:39 +00:00
|
|
|
print '<input type="hidden" name="type" value="'.$type.'">';
|
2018-09-19 15:33:50 +00:00
|
|
|
print '<input type="hidden" name="backtopage" value="'.$backtopage.'">';
|
2011-03-19 12:47:39 +00:00
|
|
|
if ($origin) print '<input type="hidden" name="origin" value="'.$origin.'">';
|
|
|
|
|
if ($catorigin) print '<input type="hidden" name="catorigin" value="'.$catorigin.'">';
|
2007-12-28 17:09:13 +00:00
|
|
|
|
2015-09-24 16:33:48 +00:00
|
|
|
print load_fiche_titre($langs->trans("CreateCat"));
|
2006-02-22 14:38:14 +00:00
|
|
|
|
2020-10-22 20:50:03 +00:00
|
|
|
print dol_get_fiche_head('');
|
2015-05-04 10:29:26 +00:00
|
|
|
|
2007-12-28 17:09:13 +00:00
|
|
|
print '<table width="100%" class="border">';
|
2010-10-19 22:52:32 +00:00
|
|
|
|
|
|
|
|
// Ref
|
2006-03-03 20:52:01 +00:00
|
|
|
print '<tr>';
|
2020-09-23 14:36:19 +00:00
|
|
|
print '<td class="titlefieldcreate fieldrequired">'.$langs->trans("Ref").'</td><td><input id="label" class="minwidth100" name="label" value="'.dol_escape_htmltag($label).'">';
|
2006-03-03 20:52:01 +00:00
|
|
|
print'</td></tr>';
|
2010-10-19 22:52:32 +00:00
|
|
|
|
|
|
|
|
// Description
|
2017-01-22 11:13:32 +00:00
|
|
|
print '<tr><td class="tdtop">'.$langs->trans("Description").'</td><td>';
|
2012-08-22 21:11:24 +00:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
|
2020-09-23 14:36:19 +00:00
|
|
|
$doleditor = new DolEditor('description', $description, '', 160, 'dolibarr_notes', '', false, true, $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC, ROWS_5, '90%');
|
2010-09-02 18:51:47 +00:00
|
|
|
$doleditor->Create();
|
2006-07-30 00:37:31 +00:00
|
|
|
print '</td></tr>';
|
2010-03-12 23:59:23 +00:00
|
|
|
|
2015-09-17 18:00:54 +00:00
|
|
|
// Color
|
|
|
|
|
print '<tr><td>'.$langs->trans("Color").'</td><td>';
|
2019-01-27 10:55:16 +00:00
|
|
|
print $formother->selectColor($color, 'color');
|
2015-09-17 18:00:54 +00:00
|
|
|
print '</td></tr>';
|
2016-08-29 08:32:00 +00:00
|
|
|
|
2010-10-19 22:52:32 +00:00
|
|
|
// Parent category
|
2011-08-28 02:18:20 +00:00
|
|
|
print '<tr><td>'.$langs->trans("AddIn").'</td><td>';
|
2017-06-21 09:37:34 +00:00
|
|
|
print $form->select_all_categories($type, $catorigin, 'parent');
|
|
|
|
|
print ajax_combobox('parent');
|
2010-03-12 23:59:23 +00:00
|
|
|
print '</td></tr>';
|
2014-04-25 12:28:22 +00:00
|
|
|
|
2019-11-13 18:35:39 +00:00
|
|
|
$parameters = array();
|
|
|
|
|
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
2020-10-31 13:32:18 +00:00
|
|
|
print $hookmanager->resPrint;
|
2018-04-13 11:28:48 +00:00
|
|
|
if (empty($reshook))
|
2014-03-16 14:25:13 +00:00
|
|
|
{
|
2019-11-16 13:38:05 +00:00
|
|
|
print $object->showOptionals($extrafields, 'edit', $parameters);
|
2014-03-16 14:25:13 +00:00
|
|
|
}
|
2010-03-12 23:59:23 +00:00
|
|
|
|
2010-02-28 16:14:00 +00:00
|
|
|
print '</table>';
|
|
|
|
|
|
2020-10-27 17:19:31 +00:00
|
|
|
print dol_get_fiche_end('');
|
2015-05-04 10:29:26 +00:00
|
|
|
|
|
|
|
|
print '<div class="center">';
|
2007-12-28 17:09:13 +00:00
|
|
|
print '<input type="submit" class="button" value="'.$langs->trans("CreateThisCat").'" name="creation" />';
|
2015-05-04 10:29:26 +00:00
|
|
|
print ' ';
|
2020-11-23 14:12:52 +00:00
|
|
|
print '<input type="submit" class="button button-cancel" value="'.$langs->trans("Cancel").'" name="cancel" />';
|
2014-11-25 19:13:43 +00:00
|
|
|
print '</div>';
|
2010-02-28 16:14:00 +00:00
|
|
|
|
2007-12-28 17:09:13 +00:00
|
|
|
print '</form>';
|
2006-03-03 20:52:01 +00:00
|
|
|
}
|
2006-02-21 15:01:41 +00:00
|
|
|
}
|
2006-03-03 20:52:01 +00:00
|
|
|
|
2018-07-29 11:40:35 +00:00
|
|
|
// End of page
|
2011-08-27 14:24:16 +00:00
|
|
|
llxFooter();
|
2013-02-19 14:33:49 +00:00
|
|
|
$db->close();
|