95 lines
2.8 KiB
PHP
95 lines
2.8 KiB
PHP
<?php
|
|
/*
|
|
* This file is part of NOALYSS.
|
|
*
|
|
* NOALYSS is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* NOALYSS is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with NOALYSS; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
// Copyright Author Dany De Bontridder danydb@aevalys.eu 22/10/23
|
|
|
|
|
|
/**
|
|
* @file
|
|
* @brief list of vatex code
|
|
*/
|
|
echo \HtmlInput::title_box(_("Choix VATEX"), $dgbox);
|
|
$a_vatex_code = $cn->get_array("select vx_code,vx_code_name,vx_description,vx_remark , vx_country from vatex_code order by 1");
|
|
$nb_vatex_code = count($a_vatex_code);
|
|
print HtmlInput::filter_table('code_vatex_tb', '0,1,2,3', 1);
|
|
?>
|
|
<table class="result" id="code_vatex_tb">
|
|
<thead>
|
|
<td>
|
|
<?= _("Code") ?>
|
|
</td>
|
|
<td>
|
|
<?= _("Pays") ?>
|
|
</td>
|
|
<td>
|
|
<?= _("Article") ?>
|
|
</td>
|
|
<td>
|
|
<?= _("Description") ?>
|
|
</td>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<a class="notice" href="javascript:void(0)" onclick="vat_code.select_value('xx')" class="mtitle line">
|
|
<?= _("Aucun code") ?>
|
|
</a>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
<td class="notice">
|
|
<a class="notice" href="javascript:void(0)" onclick="vat_code.select_value('xx')" class="mtitle line">
|
|
<?= _("Effacer le code VATEX") ?>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
for ($i = 0; $i < $nb_vatex_code; $i++):
|
|
$class = ($i % 2 == 0) ? " odd " : " even ";
|
|
?>
|
|
<tr class="<?= $class ?>">
|
|
<td>
|
|
<a href="javascript:void(0)" onclick="vat_code.select_value('<?= $a_vatex_code[$i]['vx_code'] ?>')" class="mtitle line">
|
|
<?= $a_vatex_code[$i]['vx_code'] ?>
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<?= $a_vatex_code[$i]['vx_country'] ?>
|
|
</td>
|
|
<td>
|
|
<?= $a_vatex_code[$i]['vx_code_name'] ?>
|
|
</td>
|
|
<td>
|
|
<?= $a_vatex_code[$i]['vx_description'] ?>
|
|
<span class="text-muted">
|
|
<?= $a_vatex_code[$i]['vx_remark'] ?>
|
|
</span>
|
|
</td>
|
|
|
|
</tr>
|
|
<?php
|
|
endfor;
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
<ul class="aligned-block">
|
|
<li>
|
|
<?= \HtmlInput::button_close($dgbox) ?>
|
|
</li>
|
|
</ul>
|