23if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
30$href=basename($_SERVER[
'PHP_SELF']);
40if ( isset(
$_POST[
'delete_card'] ) )
44 alert(_(
'Vous ne pouvez pas enlever de fiche'));
65 <form method=
"get" action=
"<?php echo $href; ?>">
67 echo dossier::hidden();
68 echo
'<h2>' ._(
"Exercice").
" " .
$g_user->get_exercice() .
'</h2>';
69 $a=
$http->get(
"query",
"string",
"");
70 echo _(
"Cherche ").HtmlInput::filter_table_form(
"tiers_tb",
'0,1,2', 1,
"query",
$a);
72 $choice_cat=
$http->request(
"choice_cat",
"string",1);
74 if ( $choice_cat == 1 )
77 $sel_card->value=
$cn->make_array(
'select fd_id, fd_label from fiche_def '.
80 $sel_card->selected=
$http->get(
"cat",
"number",-1);
81 $sel_card->javascript=
' onchange="waiting_box();submit(this);"';
82 echo _(
'Catégorie :').$sel_card->input();
91 $nooperation->selected=(isset(
$_GET[
'noop']))?
true:
false;
92 echo _(
'Inclure les banques 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 $_REQUEST['ac']?>">
101 $search=
$http->get(
"query",
"string",
"");
103 if ( isset(
$_GET[
'cat']))
106 if (
$cat!= -1 )
$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(
'category_card.inc.php');
alert($p_msg, $buffer=false)
alert in javascript
class admin are a specific kind of card
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...