noalyss Version-9
action_search_result.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * NOALYSS is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * NOALYSS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with NOALYSS; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20/* $Revision$ */
21
22// Copyright Author Dany De Bontridder danydb@aevalys.eu
23
24/**
25 * @file
26 * @brief show the result of a search into a inner windows
27 *
28 */
29
30?>
31<form onsubmit="set_action_related('fresultaction');return false;" id="fresultaction">
32 <?php echo HtmlInput::hidden('ctlc',$_GET['ctlc'])?>
33 <?php echo HtmlInput::submit("save_action", _("Mettre à jour"))?>
34<?php if (isset($limit)) : ?>
35 <h2 class="notice">Recherche limitée à <?php echo $limit?> résultats</h2>
36<?php endif;?>
37
38<table class="result">
39
40 <tr>
41 <th>
42
43 </th>
44 <th>
45 <?php echo _("Date");?>
46 </th>
47 <th>
48 <?php echo _("Ref");?>
49 </th>
50 <th>
51 <?php echo _("Titre");?>
52 </th>
53 <th>
54 <?php echo _("Destinataire");?>
55 </th>
56 <th>
57 <?php echo _("Type");?>
58 </th>
59 </tr>
60<?php for ($i=0;$i<$limit;$i++):?>
61 <?php $class=($i%2==0)?' class="odd" ':' class="even"'; ?>
62 <tr <?php echo $class?>>
63 <td>
64 <?php
65 $ck=new ICheckBox('ag_id[]');
66 $ck->value=$a_row[$i]['ag_id'];
67 $ck->set_range("ag_id_search_ck");
68 echo $ck->input();
69 ?>
70 </td>
71 <td >
72 <?php echo h($a_row[$i]['my_date'])?>
73 </td>
74 <td>
75 <?php echo h($a_row[$i]['ag_ref'])?>
76 </td>
77 <td>
78 <?php echo h($a_row[$i]['sub_ag_title'])?>
79 </td>
80 <td>
81 <?php echo h($a_row[$i]['name'])?>
82 </td>
83 <td>
84 <?php echo h($a_row[$i]['dt_value'])?>
85 </td>
86 </tr>
87
88<?php endfor;?>
89</table>
90 <?php echo HtmlInput::submit("save_action", _("Mettre à jour"))?>
91</form>
92<?php
93echo ICheckBox::javascript_set_range("ag_id_search_ck");
94?>
h2($p_string, $p_class="", $raw="")
Definition: ac_common.php:68
th($p_string, $p_extra='', $raw='')
Definition: ac_common.php:58
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< $limit; $i++)( $i%2==0)?' class $ck
h( $row[ 'oa_description'])
$_GET['qcode']
$class
static hidden($p_name, $p_value, $p_id="")
static submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
Html Input.
static javascript_set_range($p_name)
Before calling this function , you must set a range with the function set_range.
$all table
endfor