23if (!defined(
'ALLOWED'))
24 die(
'Appel direct ne sont pas permis');
31$href = basename($_SERVER[
'PHP_SELF']);
41if (isset(
$_POST[
'action_fiche'])) {
42 if (
$_POST[
'action_fiche'] ==
'delete_card') {
44 alert(
_(
'Vous ne pouvez pas enlever de fiche'));
71 if (isset(
$_GET[
'cat'])) {
74 $sql = sprintf(
" and fd_id = %s",
$cat);
76 $noop = (isset(
$_GET[
'noop'])) ?
false : true;
78 echo
'<div class="content">';
86 $f_add_button =
new IButton(
'add_card');
87 $f_add_button->label =
_(
'Créer une nouvelle fiche');
88 $f_add_button->set_attribute(
'win_refresh',
'yes');
91 $f_add_button->javascript =
" select_card_type(this);";
92 echo $f_add_button->input();
94 $f_cat_button =
new IButton(
'add_cat');
96 $f_cat_button->set_attribute(
'ipopup',
'ipop_cat');
97 $f_cat_button->label =
_(
'Ajout d\'une catégorie');
98 $f_cat_button->javascript =
'add_category(this)';
99 echo $f_cat_button->input();
111 require_once NOALYSS_INCLUDE .
'/category_card.inc.php';
alert($p_msg, $buffer=false)
alert in javascript
global $g_user
if no group available , then stop
if(trim($query)==''|| $filter=='') $search
_("actif, passif,charge,...")
class Supplier are a specific kind of card
const FICHE_TYPE_FOURNISSEUR