23if (!defined(
'ALLOWED'))
24 die(
'Appel direct ne sont pas permis');
32$href = basename($_SERVER[
'PHP_SELF']);
42if (isset(
$_POST[
'action_fiche']))
44 if (
$_POST[
'action_fiche'] ==
'delete_card')
48 alert(_(
'Vous ne pouvez pas enlever de fiche'));
68 <form method=
"get" action=
"<?php echo $href; ?>">
70 echo
'<h2>' .
"Exercice " .
$g_user->get_exercice() .
'</h2>';
71 echo dossier::hidden();
72 $a=
$http->get(
"query",
"string",
"");
73 echo _(
"Cherche ").HtmlInput::filter_table_form(
"tiers_tb",
'0,1,2', 1,
"query",
$a);
76 $choice_cat=
$http->request(
"choice_cat",
"number",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();
94 $nooperation->selected = (isset(
$_GET[
'noop'])) ?
true :
false;
95 echo _(
'Inclure les employés sans opération :') . $nooperation->input();
97 <input
type=
"submit" class=
"button" name=
"submit_query" value=
"<?php echo _('recherche') ?>">
98 <input
type=
"hidden" name=
"ac" value=
"<?php echo$http->request('ac') ?>">
103 $search=
$http->get(
"query",
"string",
"");
105 if (isset(
$_GET[
'cat']))
108 if (
$cat!= -1 )
$sql = sprintf(
" and fd_id = %s",
$cat);
110 $noop = (isset(
$_GET[
'noop'])) ?
false :
true;
112 echo
'<div class="content">';
122 $f_add_button =
new IButton(
'add_card');
123 $f_add_button->label = _(
'Créer une nouvelle fiche');
124 $f_add_button->set_attribute(
'win_refresh',
'yes');
127 $f_add_button->javascript =
" select_card_type(this);";
128 echo $f_add_button->input();
130 $f_cat_button =
new IButton(
'add_cat');
132 $f_cat_button->set_attribute(
'ipopup',
'ipop_cat');
133 $f_cat_button->label = _(
'Ajout d\'une catégorie');
134 $f_cat_button->javascript =
'add_category(this)';
135 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