noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
ajax-search_vatex.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 list of vatex code
25 */
26echo \HtmlInput::title_box(_("Choix VATEX"), $dgbox);
27$a_vatex_code = $cn->get_array("select vx_code,vx_code_name,vx_description,vx_remark , vx_country from vatex_code order by 1");
29
30
31//@var $os_country (ISELECT) filter table by country
32$os_country=new \ISelect("filter_country");
33$os_country->transform(array(
34 "countryeu"=>"Europe",
35 ""=>_("Tous"),
36 "countryfr"=>"France"
37 )
38 );
39$os_country->javascript=' onchange="vat_code.filter_country()" ';
40?>
41<div class="content">
42<?=$os_country->input()?>
43<?=HtmlInput::filter_table_DOM('code_vatex_tb', '0,1,2,3', 1,'search_vatex','filter_country')?>
44<table class="result" id="code_vatex_tb">
45 <thead>
46 <td>
47 <?= _("Code") ?>
48 </td>
49 <td>
50 <?= _("Pays") ?>
51 </td>
52 <td>
53 <?= _("Article") ?>
54 </td>
55 <td>
56 <?= _("Description") ?>
57 </td>
58</thead>
59<tbody>
60
61 <?php
62 for ($i = 0; $i < $nb_vatex_code; $i++):
63 $odd= ($i % 2 == 0) ? " odd " : " even ";
64 $cnt=sprintf(" country%s",$a_vatex_code[$i]['vx_country']);
65 $class=" $odd $cnt ";
66 ?>
67 <tr class="<?= $class ?>">
68 <td>
69 <a href="javascript:void(0)" onclick="vat_code.select_value('<?= $a_vatex_code[$i]['vx_code'] ?>')" class="mtitle line">
70 <?= $a_vatex_code[$i]['vx_code'] ?>
71 </a>
72 </td>
73 <td>
74 <?= $a_vatex_code[$i]['vx_country'] ?>
75 </td>
76 <td>
77 <?= $a_vatex_code[$i]['vx_code_name'] ?>
78 </td>
79 <td>
80 <?= $a_vatex_code[$i]['vx_description'] ?>
81 <span class="text-muted">
82 <?= $a_vatex_code[$i]['vx_remark'] ?>
83 </span>
84 </td>
85
86 </tr>
87 <?php
89 ?>
90</tbody>
91</table>
92<ul class="aligned-block">
93 <li>
94 <?= \HtmlInput::button_close($dgbox) ?>
95 </li>
96</ul>
97</div>
span($p_string, $p_extra='')
Definition ac_common.php:43
tr($p_string, $p_extra='')
Definition ac_common.php:88
td($p_string='', $p_extra='')
surround the string with td
Definition ac_common.php:83
for($i=0; $i< $nb_vatex_code; $i++)($i % 2==0) ? " odd " $cnt
_("actif, passif,charge,...")
$class
Display the Plugin and for each profile were it is installed or not.
$all table