svn+ssh://danydb@svn/svn/phpcompta/branches/rel500 ........ r2965 | danydb | 2010-03-02 14:27:02 +0100 (Tue, 02 Mar 2010) | 1 line Dutch translation ........ r2966 | danydb | 2010-03-02 14:31:49 +0100 (Tue, 02 Mar 2010) | 1 line improve account_insert in Fiche::update() ........ r2967 | danydb | 2010-03-02 14:35:40 +0100 (Tue, 02 Mar 2010) | 1 line The jrnx can not be updated after a change in a card ........ r2968 | danydb | 2010-03-04 00:24:29 +0100 (Thu, 04 Mar 2010) | 6 lines Modify catego of documents ========================== Start ........ r2969 | danydb | 2010-03-04 00:58:51 +0100 (Thu, 04 Mar 2010) | 6 lines Document_type ============= Add a new document type ........ r2970 | danydb | 2010-03-06 23:18:18 +0100 (Sat, 06 Mar 2010) | 5 lines Document_type ============= Remove ........ r2971 | danydb | 2010-03-06 23:38:56 +0100 (Sat, 06 Mar 2010) | 4 lines Document_type ============= Bug : when trying to remove one which is still used ........ r2972 | danydb | 2010-03-06 23:53:50 +0100 (Sat, 06 Mar 2010) | 1 line add sql patch for document_type ........ r2973 | danydb | 2010-03-06 23:55:13 +0100 (Sat, 06 Mar 2010) | 1 line add sql patch for document_type ........
41 lines
No EOL
1.4 KiB
PHP
41 lines
No EOL
1.4 KiB
PHP
<?php
|
|
/*
|
|
* This file is part of PhpCompta.
|
|
*
|
|
* PhpCompta 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.
|
|
*
|
|
* PhpCompta 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
|
|
* along with PhpCompta; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
/* $Revision$ */
|
|
|
|
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
|
|
|
/*!\file
|
|
* \brief this file is included to perform modification on category of document
|
|
* table document_type
|
|
*/
|
|
|
|
// show list of document
|
|
require_once ('class_document_type.php');
|
|
if ( isset($_POST['add']) ) {
|
|
$catDoc=new Document_Type($cn);
|
|
$catDoc->insert($_POST['cat']);
|
|
}
|
|
$aList=Document_Type::get_list($cn);
|
|
$addCat=new IText('cat');
|
|
$str_addCat=$addCat->input();
|
|
$str_submit=HtmlInput::submit('add',_('Ajout'));
|
|
echo '<div class="content">';
|
|
require_once('template/list_category_document.php');
|
|
echo '</div>';
|
|
?>
|