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
dudjima 3a905a4a87 Update sources 7.01
Update files from sources with last update on noalyss.eu
2018-04-13 18:58:28 +02:00

66 lines
No EOL
2.2 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.class.php';
$a_default=new Default_Menu();
echo HtmlInput::title_box(_('Suivi'), 'action_list_div');
echo _("Recherche"),HtmlInput::filter_table("event_followup", '0,1,2,3', 1);
?>
<table id="event_followup" class="sortable" style="width: 100%">
<tr>
<th class="sorttable_sorted_reverse"><?=_("Date création")?></th>
<th><?=_("Référence")?></th>
<th><?=_("Destinataire")?></th>
<th><?=_("Titre")?></th>
</tr>
<?php
for ($i=0;$i < $len_array;$i++) :
?>
<tr class=" <?php echo ($i%2==0)?'even':'odd'?>">
<td sorttable_customkey="<?=$array[$i]['ag_timestamp']?>" class="box">
<?php echo smaller_date($array[$i]['ag_timestamp_fmt']) ;?>
<?php echo " ".$array[$i]['ag_hour'] ;?>
</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>