noalyss Version-9
ajax_display_all_card.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * PhpCompta is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * NOALYSS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with PhpCompta; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20// Copyright (2018) Author Dany De Bontridder <dany@alchimerys.be>
21
22if (!defined('ALLOWED'))
23 die('Appel direct ne sont pas permis');
24
25/**
26 * @file
27 * @brief Display all cards using an accounting
28 */
29$accounting=$http->get("p_accounting");
30
31$a_card=$cn->get_array("
32 select f1.f_id,f3.ad_value as qcode, f2.ad_value as name
33 from fiche_detail as f1
34 join fiche_detail as f2 on (f1.f_id=f2.f_id and f2.ad_id=1)
35 join fiche_detail as f3 on (f1.f_id=f3.f_id and f3.ad_id=23)
36 where
37 f1.ad_id=5 and f1.ad_value=$1
38 order by 3", [$accounting]);
40echo HtmlInput::title_box($accounting, "info_card_accounting");
41echo '<div class="content">';
42echo '<ol>';
43for ($i=0; $i<$nb_card; $i++)
44{
45 echo '<li>';
46 echo HtmlInput::card_detail($a_card[$i]['qcode'], $a_card[$i]['name']);
47 echo '</li>';
48}
49echo '</ol>';
50echo '<ul class="aligned-block">';
51echo '<li>';
52echo HtmlInput::button_close("info_card_accounting");
53echo '</li>';
54echo '</ul>';
55
56echo '</div>';
static button_close($div_name, $class='smallbutton')
close button for the HTML popup
static card_detail($p_qcode, $pname='', $p_style="", $p_nohistory=false, $nofollowup=false)
show the detail of a card
static title_box($p_name, $p_div, $p_mod="close", $p_js="", $p_draggable="n", $p_enlarge='n')
Title for boxes, you can customize the symbol thanks symbol with the mode "custom".