24if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
35$href=basename($_SERVER[
'PHP_SELF']);
45if (isset(
$_POST[
'action_fiche']))
48 if (
$_POST[
'action_fiche'] ==
'delete_card')
52 alert(_(
'Vous ne pouvez pas enlever de fiche'));
73 <form method=
"get" action=
"<?php echo $href;?>">
75 echo dossier::hidden();
76 $a =
$http->get(
"query",
"string",
"");
77 echo _(
"Cherche ").HtmlInput::filter_table_form(
"contact_tb",
'0,1,2,3,4,5,6', 1,
"query",
$a);
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 = (isset(
$_GET[
'cat'])) ?
$_GET[
'cat'] : -1;
84 $sel_card->javascript =
' onchange="waiting_box();submit(this);"';
86 echo _(
'Catégorie :') . $sel_card->input();
88 $sl_company=
new ISelect(
"sel_company");
89 $sl_company->value =
$cn->make_array(
'select distinct ad_value,ad_value from fiche_detail as fd' .
90 ' join fiche as f1 on (f1.f_id=fd.f_id) join fiche_def as fdf on (f1.fd_id=fdf.fd_id)
94 $sl_company->selected =
$http->get(
"sel_company",
"string",
"");
95 echo _(
'Société :') . $sl_company->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')?>">
101 <
p class=
"notice"><?=_(
"Si vous modifiez un contact, il faut recharger la page pour voir les changements")?></
p>
105 $search =
$http->get(
"query",
"string",
"");
107 if (isset(
$_GET[
'cat']))
110 $contact->filter_category(
$cat);
112 if (isset(
$_GET[
'sel_company']))
114 $sel_company=
$http->get(
"sel_company");
115 $contact->filter_company($sel_company);
117 $contact->filter_active(
true);
118 echo
'<div class="content">';
119 echo $contact->Summary($search,
"contact",
$sql);
126 $f_add_button =
new IButton(
'add_card');
127 $f_add_button->label = _(
'Créer une nouvelle fiche');
128 $f_add_button->set_attribute(
'win_refresh',
'yes');
130 $f_add_button->javascript =
"select_card_type(this);";
131 echo $f_add_button->input();
133 $f_cat_button=
new IButton(
'add_cat');
134 $f_cat_button->set_attribute(
'ipopup',
'ipop_cat');
136 $f_cat_button->label=_(
'Ajout d\'une catégorie');
137 $f_cat_button->javascript=
'add_category(this)';
138 echo $f_cat_button->input();
152 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...