23if (!defined(
'ALLOWED'))
24 die(
'Appel direct ne sont pas permis');
41if (isset(
$_POST[
'delete_card'])) {
43 alert(
_(
'Vous ne pouvez pas enlever de fiche'));
69 if (isset(
$_GET[
'cat'])) {
72 $sql = sprintf(
" and fd_id = %s",
$cat);
74 $noop = (isset(
$_GET[
'noop'])) ?
false : true;
76 echo
'<div class="content">';
84 $f_add_button =
new IButton(
'add_card');
85 $f_add_button->label =
_(
'Créer une nouvelle fiche');
86 $f_add_button->set_attribute(
'win_refresh',
'yes');
89 $f_add_button->javascript =
" select_card_type(this);";
90 echo $f_add_button->input();
92 $f_cat_button =
new IButton(
'add_cat');
94 $f_cat_button->set_attribute(
'ipopup',
'ipop_cat');
95 $f_cat_button->label =
_(
"Ajout d'une catégorie");
96 $f_cat_button->javascript =
'add_category(this)';
97 echo $f_cat_button->input();
109 require_once(
'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 admin are a specific kind of card