25if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
33$href=basename($_SERVER[
'PHP_SELF']);
43if (isset(
$_POST[
'action_fiche']))
45 if (
$_POST[
'action_fiche'] ==
'delete_card')
49 alert(
j(
_(
'Vous ne pouvez pas enlever de fiche')));
79 if (isset(
$_GET[
'cat']))
83 $sql = sprintf(
" and fd_id = %s",
$cat);
85 $noop = (isset(
$_GET[
'noop'])) ?
false : true;
86 echo
'<div class="content">';
87 echo $client->Summary(
$search,
'customer',
$sql, $noop);
94 $f_add_button =
new IButton(
'add_card');
95 $f_add_button->class=
"smallbutton";
96 $f_add_button->label =
_(
'Créer une nouvelle fiche');
97 $f_add_button->set_attribute(
'ipopup',
'ipop_newcard');
98 $f_add_button->set_attribute(
'win_refresh',
'yes');
101 $f_add_button->javascript =
" select_card_type(this);";
102 echo $f_add_button->input();
104 $f_cat_button=
new IButton(
'add_cat');
105 $f_cat_button->set_attribute(
'ipopup',
'ipop_cat');
107 $f_cat_button->label=
_(
'Ajout d\'une catégorie');
108 $f_cat_button->javascript=
'add_category(this)';
109 echo $f_cat_button->input();
123 require_once NOALYSS_INCLUDE.
'/category_card.inc.php';
j($p_string)
escape correctly php string to javascript
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 Customer are a specific kind of card