noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
action_search.php
Go to the documentation of this file.
00001 <?php
00002 /*
00003  *   This file is part of NOALYSS.
00004  *
00005  *   NOALYSS is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as published by
00007  *   the Free Software Foundation; either version 2 of the License, or
00008  *   (at your option) any later version.
00009  *
00010  *   NOALYSS is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with NOALYSS; if not, write to the Free Software
00017  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 /* $Revision$ */
00020 
00021 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00022 
00023 /**
00024  * @file
00025  * @brief display the form for searching action
00026  *
00027  */
00028 ?>
00029 <?php if (! $inner ) : ?>
00030 <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">
00031         <?php echo HtmlInput::anchor_hide(_('Fermer'), "$('search_action').style.display='none';");?>
00032 <?php endif; ?>
00033 <?php if ( $inner ) : ?>
00034 <div id="search_action" class="">
00035         <?php echo HtmlInput::anchor_hide(_('Fermer'), "removeDiv('search_action_div');");?>
00036 
00037         <?php endif; ?>
00038         <h2 class="title">
00039                 <?php echo  _('Recherche avancée')?>
00040         </h2>
00041 <?php if (! $inner ) : ?>
00042         <form method="get" action="do.php" style="padding:10px">
00043 <?php endif; ?>
00044 <?php if ( $inner ) : ?>
00045         <form method="get" id="fsearchaction" style="padding:10px" onsubmit="result_search_action('fsearchaction');return false;">
00046                 <?php echo HtmlInput::hidden('ctlc',$_GET['ctlc'])?>
00047 <?php endif; ?>
00048                 <?php echo  dossier::hidden()?>
00049                 <table style="width:100%">
00050                         <tr>
00051                                 <td style="width:180px;text-align:right"> <?php echo _("Date de rappel après");?></td>
00052                                 <td>
00053                                         <?php echo $remind_date->input();?>
00054                                 </td>
00055                         </tr>
00056                         <tr>
00057                                 <td style="width:180px;text-align:right"> <?php echo _("Date de rappel avant");?></td>
00058                                 <td>
00059                                         <?php echo $remind_date_end->input();?>
00060                                 </td>
00061                         </tr>
00062                         <tr>
00063                                 <td style="width:180px;text-align:right"> <?php echo _("Affiche aussi les actions fermées");?></td>
00064                                 <td><?php echo $closed_action->input();?></td>
00065                         </tr>
00066                         <tr>
00067                         <td style="width:180px;text-align:right"><?php echo _('Etiquette'); ?></td>
00068                                 <td id="searchtag_choose_td">
00069                                     <?php echo Tag::button_search('search'); ?>
00070                                     <?php
00071                                         if ( isset($_GET['searchtag'])) {
00072                                             echo Tag::add_clear_button('search');
00073                                             for ($i=0;$i<count($_GET['searchtag']);$i++) {
00074                                                 $t=new Tag($cn, $_GET['searchtag'][$i]);
00075                                                 echo $t->update_search_cell('search');
00076                                             }
00077                                         }
00078                                     ?>
00079                                 </td>
00080                         </tr>
00081                         <tr>
00082                         <td style="width:180px;text-align:right"> <?php echo _("Référence");?></td>
00083                                 <td>
00084                                         <?php echo $osag_ref->input();?>
00085                                 </td>
00086                         </tr>
00087                         <tr>
00088                                 <td style="width:180px;text-align:right"> <?php echo _("Numéro document");?></td>
00089                                 <td>
00090                                         <?php $num=new INum('ag_id');echo $num->input();?>
00091                                 </td>
00092                         </tr>
00093                         <tr>
00094                                 <td style="width:180px;text-align:right"><?php echo _('Destinataire')?></td>
00095                                 <?php $label=$w->id."_label";?>
00096                                 <td ><?php echo  $w->input() . $w->search()?><span id="<?php echo $label?>"></span></td>
00097                         </tr>
00098                         <tr>
00099                                 <td style="text-align:right" ><?php echo  _("Profil")?></td>
00100                                 <td><?php echo  $str_ag_dest?></td>
00101                         </tr>
00102                         <tr>
00103                                 <td style="text-align:right" ><?php echo  _("Etat")?></td>
00104                                 <td><?php echo  $type_state->input()?></td>
00105                         </tr>
00106                         <tr>
00107                                 <td style="text-align:right" ><?php echo  _("Exclure Etat")?></td>
00108                                 <td><?php echo  $hsExcptype_state->input()?></td>
00109                         </tr>
00110                         <td style="text-align:right"><?php printf(_('contenant le mot'))?></td>
00111                         <td ><input class="input_text" style="width:100%" type="text" name="action_query" value="<?php echo  $a?>"></td>
00112                         </tr>
00113                         <tr>
00114                                 <td style="text-align:right"><?php echo  _('Type de document')?></td>
00115                                 <td><?php echo $type_doc->input();?></td>
00116                         </tr>
00117                         <tr>
00118                                 <td style="text-align:right">
00119                                         <?php printf(_("Après le "))?>
00120                                 </td>
00121                                 <td >
00122                                         <?php echo  $start->input()?>
00123                                 </td>
00124                         </tr>
00125                         <tr>
00126                                 <td style="text-align:right"><?php echo  _('Avant le')?></td>
00127                                 <td>
00128                                         <?php echo  $end->input()?>
00129                                 </td>
00130                         </tr>
00131                         </tr>
00132                         <tr>
00133                                 <td style="text-align:right"><?php echo  _('Uniquement actions internes')?></td>
00134                                 <td><?php echo  $only_internal->input()?>
00135                                 </td>
00136                         </tr>
00137                 </table>
00138                 <input type="submit" class="smallbutton" name="submit_query" value="<?php echo  _('recherche')?>">
00139                 <input type="hidden" name="sa" value="list">
00140 
00141                 <?php echo  $supl_hidden?>
00142                 <?php echo HtmlInput::button_anchor(_('Fermer'), 'javascript:void(0)', 'fsearch_form', 'onclick="$(\'search_action\').style.display=\'none\';"','smallbutton');?>
00143         </form>
00144 </div>
00145 
 All Data Structures Namespaces Files Functions Variables Enumerations