23if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
31$href=basename($_SERVER[
'PHP_SELF']);
38if ( isset(
$_POST[
'action_fiche'] ) )
40 if (
$_POST[
'action_fiche'] ==
'delete_card')
44 alert(_(
'Vous ne pouvez pas enlever de fiche'));
66 <form method=
"get" action=
"<?php echo $href; ?>">
68 echo
'<h2>' .
"Exercice " .
$g_user->get_exercice() .
'</h2>';
69 echo dossier::hidden();
70 $a=
$http->get(
"query",
"string",
"");
71 echo _(
"Cherche ").HtmlInput::filter_table_form(
"tiers_tb",
'0,1,2', 1,
"query",
$a);
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 '.
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();
93 <input
type=
"submit" class=
"button" name=
"submit_query" value=
"<?php echo _('recherche')?>">
99 $search=
$http->get(
"query",
"string",
"");
104 $sql=sprintf(
" and fd_id = %d",
$cat);
107 echo
'<div class="content">';
108 echo $adm->Summary($search,
'adm',
$sql);
117 $f_add_button=
new IButton(
'add_card');
118 $f_add_button->label=_(
'Créer une nouvelle fiche');
119 $f_add_button->set_attribute(
'ipopup',
'ipop_newcard');
120 $f_add_button->set_attribute(
'win_refresh',
'yes');
123 $f_add_button->javascript=
" select_card_type(this);";
124 echo $f_add_button->input();
126 $f_cat_button=
new IButton(
'add_cat');
127 $f_cat_button->set_attribute(
'ipopup',
'ipop_cat');
129 $f_cat_button->label=_(
'Ajout d\'une catégorie');
130 $f_cat_button->javascript=
'add_category(this)';
131 echo $f_cat_button->input();
145 require_once NOALYSS_INCLUDE.
'/category_card.inc.php';
alert($p_msg, $buffer=false)
alert in javascript
class admin 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...