23if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
30$href=basename($_SERVER[
'PHP_SELF']);
40if ( isset(
$_POST[
'action_fiche'] ) )
42 if (
$_POST[
'action_fiche'] ==
'delete_card')
46 alert(_(
'Vous ne pouvez pas enlever de fiche'));
63 $search=
$http->get(
"query",
"string",
"");
68 <form method=
"get" action=
"<?php echo $href; ?>">
70 echo
'<h2>' .
"Exercice " .
$g_user->get_exercice() .
'</h2>';
71 echo dossier::hidden();
72 echo _(
"Cherche ").HtmlInput::filter_table_form(
"tiers_tb",
'0,1,2', 1,
"query",$search);
74 $choice_cat=
$http->request(
"choice_cat",
"string",1);
75 if ( $choice_cat == 1 )
78 $sel_card->value=
$cn->make_array(
'select fd_id, fd_label from fiche_def '.
80 ' order by fd_label ',1);
81 $sel_card->selected=
$http->get(
"cat",
"number",-1);
82 $sel_card->javascript=
' onchange="waiting_box();submit(this);"';
83 echo _(
'Catégorie :').$sel_card->input();
91 $nooperation->selected=(isset(
$_GET[
'noop']))?
true:
false;
92 echo _(
'Inclure les fournisseurs sans opération :').$nooperation->input();
95 <input
type=
"submit" class=
"button" name=
"submit_query" value=
"<?php echo _('recherche')?>">
96 <input
type=
"hidden" name=
"ac" value=
"<?php echo $http->request('ac')?>">
102 if (isset(
$_GET[
'cat']))
106 $sql = sprintf(
" and fd_id = %s",
$cat);
108 $noop=(isset(
$_GET[
'noop']))?
false:
true;
110 echo
'<div class="content">';
120 $f_add_button=
new IButton(
'add_card');
121 $f_add_button->label=_(
'Créer une nouvelle fiche');
122 $f_add_button->set_attribute(
'win_refresh',
'yes');
125 $f_add_button->javascript=
" select_card_type(this);";
126 echo $f_add_button->input();
128 $f_cat_button=
new IButton(
'add_cat');
130 $f_cat_button->set_attribute(
'ipopup',
'ipop_cat');
131 $f_cat_button->label=_(
'Ajout d\'une catégorie');
132 $f_cat_button->javascript=
'add_category(this)';
133 echo $f_cat_button->input();
148 require_once NOALYSS_INCLUDE.
'/category_card.inc.php';
alert($p_msg, $buffer=false)
alert in javascript
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
class Supplier are a specific kind of card
const FICHE_TYPE_FOURNISSEUR