noalyss Version-9
action_show.php
Go to the documentation of this file.
1<?php
2/*
3 * * Copyright (C) 2015 Dany De Bontridder <dany@alchimerys.be>
4*
5* This program is free software; you can redistribute it and/or
6* modify it under the terms of the GNU General Public License
7* as published by the Free Software Foundation; either version 2
8* of the License, or (at your option) any later version.
9*
10* This program 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 this program; if not, write to the Free Software
17* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 *
20 */
21
22
23/**
24 * @file
25 * @brief display the last action
26 * inherited parameter : $cn database connection, $array
27 */
29
30echo HtmlInput::title_box(_('Suivi'), 'action_list_div');
31
32echo _("Recherche"),HtmlInput::filter_table("event_followup", '0,1,2,3', 1);
33?>
34<table id="event_followup" class="sortable" style="width: 100%">
35 <tr>
36 <th class="sorttable_sorted_reverse"><?=_("Date création")?></th>
37 <th><?=_("Référence")?></th>
38 <th><?=_("Destinataire")?></th>
39 <th><?=_("Titre")?></th>
40 </tr>
41 <?php
42 for ($i=0;$i < $len_array;$i++) :
43 ?>
44 <tr class=" <?php echo ($i%2==0)?'even':'odd'?>">
45 <td sorttable_customkey="<?=$array[$i]['ag_timestamp']?>" class="box">
46 <?php echo smaller_date($array[$i]['ag_timestamp_fmt']) ;?>
47 <?php echo " ".$array[$i]['ag_hour'] ;?>
48 </td>
49 <td class="box">
50 <?php echo HtmlInput::detail_action($array[$i]['ag_id'], $array[$i]['ag_ref'], 1) ?>
51 </td>
52 <td class="box">
53 <?php echo mb_substr(h($array[$i]['vw_name']),0,15)?>
54 </td>
55 <td class="box cut">
56 <?php echo h($array[$i]['ag_title'])?>
57 </td>
58 </tr>
59 <?php
60 endfor;
61 ?>
62 </table>
63<p style="text-align: center">
64 <?php echo HTMLInput::button_action_add()?>
65</p>
th($p_string, $p_extra='', $raw='')
Definition: ac_common.php:58
smaller_date($p_date)
shrink the date, make a date shorter for the printing
Definition: ac_common.php:837
tr($p_string, $p_extra='')
Definition: ac_common.php:88
p($p_string)
Definition: ac_common.php:39
td($p_string='', $p_extra='')
surround the string with td
Definition: ac_common.php:83
$a_default
Definition: action_show.php:28
h( $row[ 'oa_description'])
$opd_description style
Description of class_default_menu.
static detail_action($ag_id, $p_mesg, $p_modify=1)
return an anchor to view the detail of an action
static filter_table($p_table_id, $p_col, $start_row)
filter the rows in a table and keep the colored row in alternance
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".
$all table
endfor