1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00
noalyss_ynh/sources/include/template/action_show.php
2015-09-27 00:54:25 +02:00

57 lines
No EOL
1.8 KiB
PHP

<?php
/*
* * Copyright (C) 2015 Dany De Bontridder <dany@alchimerys.be>
*
* This program 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.
*
* This program 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 this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
/**
* @file
* @brief display the last action
* inherited parameter : $cn database connection, $array
*/
require_once NOALYSS_INCLUDE.'/class_default_menu.php';
$a_default=new Default_Menu();
echo HtmlInput::title_box(_('Suivi'), 'action_list_div');
?>
<table style="width: 100%">
<?php
for ($i=0;$i < $len_array;$i++) :
?>
<tr class=" <?php echo ($i%2==0)?'even':'odd'?>">
<td class="box">
<?php echo smaller_date($array[$i]['ag_timestamp_fmt']) ;?>
</td>
<td class="box">
<?php echo HtmlInput::detail_action($array[$i]['ag_id'], $array[$i]['ag_ref'], 1) ?>
</td>
<td class="box">
<?php echo mb_substr(h($array[$i]['vw_name']),0,15)?>
</td>
<td class="box cut">
<?php echo h($array[$i]['ag_title'])?>
</td>
</tr>
<?php
endfor;
?>
</table>
<p style="text-align: center">
<?php echo HTMLInput::button_action_add()?>
</p>