altocompta/include/ajax_fiche_def_detail.php
Dany De Bontridder 22776852cb 0000577: Remplacer FICHE par PRINTCARD
Security : check if user can modify category of card
2012-06-24 15:54:06 +00:00

47 lines
1.3 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 show detail of a fiche_def (category of card) + Attribut
*
*/
require_once('class_fiche_def.php');
require_once 'class_tool_uos.php';
global $g_user;
$g_user->can_request(FICCAT,0);
$fd=new Fiche_Def($cn,$_GET['id']);
if ( $_GET['id'] > 0 )
{
echo $fd->input_detail();
echo HtmlInput::button("retour_b", "Retour à la liste", "onclick=\"$('detail_category_div').hide();$('list_cat_div').show()\"");
}
else
{
$fd->input_new();
}
?>