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')));
69 <form method=
"get" action=
"<?php echo $href;?>">
71 echo
'<h2>' .
"Exercice " .
$g_user->get_exercice() .
'</h2>';
72 $a=
$http->get(
"query",
"string",
"");
73 echo _(
"Cherche ").HtmlInput::filter_table_form(
"tiers_tb",
'0,1,2', 1,
"query",
$a);
75 $choice_cat=
$http->request(
"choice_cat",
"string",1);
77 if ( $choice_cat == 1 )
80 $sel_card->value=
$cn->make_array(
'select fd_id, fd_label from fiche_def '.
82 ' order by fd_label ',1);
83 $sel_card->selected=
$http->get(
"cat",
"number",-1);
84 $sel_card->javascript=
' onchange="waiting_box();submit(this);"';
85 echo _(
'Catégorie :').$sel_card->input();
93 $nooperation->selected = (isset(
$_GET[
'noop'])) ?
true :
false;
96 echo _(
'Inclure les clients sans opération :') . $nooperation->input();
98 <input
type=
"submit" class=
"button" name=
"submit_query" value=
"<?php echo _('recherche')?>">
99 <input
type=
"hidden" name=
"ac" value=
"<?php echo $http->request('ac')?>">
104 $search=
$http->get(
"query",
"string",
"");
106 if (isset(
$_GET[
'cat']))
110 $sql = sprintf(
" and fd_id = %s",
$cat);
112 $noop = (isset(
$_GET[
'noop'])) ?
false :
true;
113 echo
'<div class="content">';
114 echo $client->Summary($search,
'customer',
$sql, $noop);
121 $f_add_button =
new IButton(
'add_card');
122 $f_add_button->class=
"smallbutton";
123 $f_add_button->label = _(
'Créer une nouvelle fiche');
124 $f_add_button->set_attribute(
'ipopup',
'ipop_newcard');
125 $f_add_button->set_attribute(
'win_refresh',
'yes');
128 $f_add_button->javascript =
" select_card_type(this);";
129 echo $f_add_button->input();
131 $f_cat_button=
new IButton(
'add_cat');
132 $f_cat_button->set_attribute(
'ipopup',
'ipop_cat');
134 $f_cat_button->label=_(
'Ajout d\'une catégorie');
135 $f_cat_button->javascript=
'add_category(this)';
136 echo $f_cat_button->input();
150 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
class Customer are a specific kind of card
static hidden()
return a string to set gDossier into a FORM
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...