noalyss Version-9
action_search.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS 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 NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19/* $Revision$ */
20
21// Copyright Author Dany De Bontridder danydb@aevalys.eu
22
23/**
24 * @file
25 * @brief display the form for searching action
26 *
27 */
28?>
29
30<?php if (! $inner ) : ?>
31 <div id="search_action" class="op_detail_frame" style="position:absolute;display:none;margin-left:120px;width:70%;clear:both;z-index:2;height:auto;border:1px #000080 solid">
32 <?php
33 echo HtmlInput::title_box(_('Recherche avancée'), "search_action", "hide", "", "n");
34 ?>
35 <form method="get" action="do.php" style="padding:10px">
36<?php else : ?>
37 <div id="search_action_div" class="">
38 <?php
39 echo HtmlInput::title_box(_('Recherche avancée'), "search_action_div", "close", "", "n");
40 ?>
41 <form method="get" id="fsearchaction" style="padding:10px" onsubmit="waiting_box();result_search_action('fsearchaction');return false;">
42 <?php echo HtmlInput::hidden('ctlc',$_GET['ctlc'])?>
43<?php endif; ?>
44 <?php echo dossier::hidden()?>
45 <table style="display:inline;width:30%">
46 <tr>
47 <td style=";text-align:right"><?php echo _('Destinataire')?></td>
48 <?php $label=$w->id."_label";?>
49 <td ><?php echo $w->input() . $w->search()?><span id="<?php echo $label?>"></span></td>
50 </tr>
51 <tr>
52 <td style="text-align:right" ><?php echo _("Profil")?></td>
53 <td><?php echo $str_ag_dest?></td>
54 </tr>
55 <tr>
56 <td style="text-align:right" ><?php echo _("Etat")?></td>
57 <td><?php echo $type_state->input()?></td>
58 </tr>
59 <tr>
60 <td style="text-align:right"> <?php echo _("Affiche aussi les actions fermées");?></td>
61 <td><?php echo $closed_action->input();?></td>
62 </tr>
63 <tr>
64 <td style="text-align:right" ><?php echo _("Exclure Etat")?></td>
65 <td><?php echo $hsExcptype_state->input()?></td>
66 </tr>
67 <td style="text-align:right"><?php printf(_('contenant le mot'))?></td>
68 <td ><input class="input_text" style="width:100%" type="text" name="action_query" value="<?php echo $a?>"></td>
69 </tr>
70 <tr>
71 <td style="text-align:right"><?php echo _('Type de document')?></td>
72 <td><?php echo $type_doc->input();?></td>
73 </tr>
74
75 </tr>
76 <tr>
77 <td style="text-align:right"><?php echo _('Uniquement actions internes')?></td>
78 <td><?php echo $only_internal->input()?>
79 </td>
80 </tr>
81
82
83 </table>
84
85 <table style="display:inline;width:30%">
86 <tr>
87 <td style="text-align:right">
88 <?php printf(_("Après le "))?>
89 </td>
90 <td >
91 <?php echo $start->input()?>
92 </td>
93 </tr>
94 <tr>
95 <td style="text-align:right"><?php echo _('Avant le')?></td>
96 <td>
97 <?php echo $end->input()?>
98 </td>
99 </tr>
100 <tr>
101 <td style="text-align:right"> <?php echo _("Date de rappel après");?></td>
102 <td>
103 <?php echo $remind_date->input();?>
104 </td>
105 </tr>
106 <tr>
107 <td style="text-align:right"> <?php echo _("Date de rappel avant");?></td>
108 <td>
109 <?php echo $remind_date_end->input();?>
110 </td>
111 </tr>
112
113 <tr>
114 <td style="text-align:right"> <?php echo _("Référence");?></td>
115 <td>
116 <?php echo $osag_ref->input();?>
117 </td>
118 </tr>
119 <tr>
120 <td style="text-align:right"> <?php echo _("Numéro document");?></td>
121 <td>
122 <?php $num=new INum('ag_id');echo $num->input();?>
123 </td>
124 </tr>
125
126 </table>
127 <p>
128
129
130 <?php
131 echo _("Option étiquettes");
132 $iselect= new ISelect("tag_option");
133 $iselect->value=array(
134 array("value"=>0,"label"=>_("Toutes les étiquettes")),
135 array("value"=>1,"label"=>_("Au moins une étiquette"))
136 );
137 $iselect->set_value($http->request("tag_option","number",0));
138 echo $iselect->input();
139 ?>
140 <?php echo _('Etiquette'); ?>
141 <span id="searchtag_choose_td">
142 <?php echo Tag_Action::select_tag_search('search'); ?>
143 <?php
144 if ( isset($_GET['searchtag'])) {
145 $http=new HttpInput();
146 echo Tag_Action::add_clear_button('search');
147 $asearchtag= $http->get("searchtag","array",array());
148 for ($i=0;$i<count($asearchtag);$i++) {
149 $t=new Tag_Action($cn, $asearchtag[$i]);
150 echo $t->update_search_cell('search');
151 }
152 }
153 ?>
154 </span>
155 </p>
156 <?php if (! $inner ) : ?>
157 <p>
158 Nom Filtre <?php
159 echo \Icon_Action::tips("Donner un nom pour sauver la recheche et la réutiliser");
160 $filter_name=new IText("filter_name");
161 echo $filter_name->input();
162 ?>
163 Filtre existant :
164 <?php
165 // charge les filtres existants et les propose
166 //ajout bouton pour charge ce filtre-là et non pas les conditions existantes
167 echo \HtmlInput::button_action("Liste des filtres",sprintf("list_filter_followup('%s','%s')",Dossier::id(),$http->request("ac")));
168 ?>
169 </p>
170 <?php endif;?>
171 <input type="hidden" name="sa" value="list">
172 <?php echo $supl_hidden?>
173 <ul class="aligned-block">
174 <li>
175 <input type="submit" class="smallbutton" name="submit_query" value="<?php echo _('recherche')?>">
176 </li>
177 <li>
178 <?php
179 if ( $inner) {
180 echo HtmlInput::button_close('search_action_div');
181 }
182 else {
183 echo HtmlInput::button_anchor(_('Fermer'), 'javascript:void(0)', 'fsearch_form',
184 'onclick="$(\'search_action\').style.display=\'none\';"','smallbutton');}
185 ?>
186 </li>
187 </ul>
188 </form>
189</div>
190
span($p_string, $p_extra='')
Definition: ac_common.php:43
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
$supl_hidden
else $num
$iselect
$iselect value
$filter_name
if(!headers_sent()) else
$opd_description style
foreach($array as $idx=> $m) $w
$from_poste name
$input_from type
Definition: balance.inc.php:65
$_GET['qcode']
static id()
return the 'gDossier' value after a check
static button_close($div_name, $class='smallbutton')
close button for the HTML popup
static hidden($p_name, $p_value, $p_id="")
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".
static button_anchor($p_label, $p_value, $p_name="", $p_javascript="", $p_class="smallbutton")
create a button with a ref
manage the http input (get , post, request) and extract from an array
This class handles only the numeric input, the input will call a javascript to change comma to period...
Definition: inum.class.php:42
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
Html Input.
Definition: itext.class.php:30
concerns the tags linked to an action
static add_clear_button($p_prefix)
clear the search cell
static select_tag_search($p_prefix)
Show a button to select tag for Search.
$all table