noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
trait_card-form_search.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19// Copyright Author Dany De Bontridder danydb@aevalys.eu 22/10/23
20
21
22/**
23 * @file
24 * @brief answer to an inplace object
25 */
26// var $g_user \Noalyss_User connected user
27global $g_user;
28// var $type_card = FICHE_TYPE_CLIENT, FICHE_TYPE_FOURNISSEUR,...
29// var $cn Dossier connect to the current folder
30$cn = Dossier::connect();
31
33?>
34<form method="get" action="<?php echo $url; ?>">
35
36 <h2 class="h-section"><?= sprintf("%s %s", _("Exercice"), $g_user->get_exercice()) ?></h2>
37
38 <div style="display:flex">
39 <div>
40<?php
41$a = $http->get("query", "string", "");
42echo _("Cherche ") . HtmlInput::filter_table_form("tiers_tb", '0,1,2', 1, "query", $a);
43
44$choice_cat = $http->request("choice_cat", "string", 1);
45?>
46 </div>
47 <?php
48 if ($choice_cat == 1) {
49 $sel_card = new ISelect('cat');
50 $sel_card->value = $cn->make_array('select fd_id, fd_label from fiche_def
51 where frd_id= $1
52 order by fd_label ', 1, [$type_card]);
53 $sel_card->selected = $http->get("cat", "number", -1);
54 $sel_card->javascript = ' onchange="waiting_box();submit(this);"';
55 echo '<div>';
56 echo _('Catégorie :') . $sel_card->input();
57 echo '</div>';
58 } else {
59 $cat = $http->request('cat', "string", '');
60 echo HtmlInput::hidden("cat", $cat);
61 echo HtmlInput::hidden('choice_cat', 0);
62 }
63 $nooperation = new ICheckBox('noop');
64 $nooperation->selected = (isset($_GET['noop'])) ? true : false;
65 echo Dossier::hidden();
66 ?>
67 <div>
68 <?= _('Inclure ceux sans opération cette année') . $nooperation->input() ?>
69 </div>
70 <div>
71 <input type="submit" class="button" name="submit_query" value="<?php echo _('recherche') ?>">
72 <input type="hidden" name="ac" value="<?php echo $http->request('ac') ?>">
73 </div>
74 </div>
75</form>
76
h2($p_string, $p_class="", $raw="")
Definition ac_common.php:68
global $g_user
if no group available , then stop
$opd_description style
$from_poste name
_("actif, passif,charge,...")
$input_from type
$_GET['qcode']
static hidden($p_name, $p_value, $p_id="")
manage the http input (get , post, request) and extract from an array
Html Input.
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...