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="text-align:right">
00052                                         <?php printf(_("Après le "))?>
00053                                 </td>
00054                                 <td >
00055                                         <?php echo  $start->input()?>
00056                                 </td>
00057                         </tr>
00058                         <tr>
00059                                 <td style="text-align:right"><?php echo  _('Avant le')?></td>
00060                                 <td>
00061                                         <?php echo  $end->input()?>
00062                                 </td>
00063                         </tr>
00064                         <tr>
00065                                 <td style="width:180px;text-align:right"> <?php echo _("Date de rappel après");?></td>
00066                                 <td>
00067                                         <?php echo $remind_date->input();?>
00068                                 </td>
00069                         </tr>
00070                         <tr>
00071                                 <td style="width:180px;text-align:right"> <?php echo _("Date de rappel avant");?></td>
00072                                 <td>
00073                                         <?php echo $remind_date_end->input();?>
00074                                 </td>
00075                         </tr>
00076                         <tr>
00077                                 <td style="width:180px;text-align:right"> <?php echo _("Affiche aussi les actions fermées");?></td>
00078                                 <td><?php echo $closed_action->input();?></td>
00079                         </tr>
00080                         <tr>
00081                         <td style="width:180px;text-align:right"><?php echo _('Etiquette'); ?></td>
00082                                 <td id="searchtag_choose_td">
00083                                     <?php echo Tag::button_search('search'); ?>
00084                                     <?php
00085                                         if ( isset($_GET['searchtag'])) {
00086                                             echo Tag::add_clear_button('search');
00087                                             for ($i=0;$i<count($_GET['searchtag']);$i++) {
00088                                                 $t=new Tag($cn, $_GET['searchtag'][$i]);
00089                                                 echo $t->update_search_cell('search');
00090                                             }
00091                                         }
00092                                     ?>
00093                                 </td>
00094                         </tr>
00095                         <tr>
00096                         <td style="width:180px;text-align:right"> <?php echo _("Référence");?></td>
00097                                 <td>
00098                                         <?php echo $osag_ref->input();?>
00099                                 </td>
00100                         </tr>
00101                         <tr>
00102                                 <td style="width:180px;text-align:right"> <?php echo _("Numéro document");?></td>
00103                                 <td>
00104                                         <?php $num=new INum('ag_id');echo $num->input();?>
00105                                 </td>
00106                         </tr>
00107                         <tr>
00108                                 <td style="width:180px;text-align:right"><?php echo _('Destinataire')?></td>
00109                                 <?php $label=$w->id."_label";?>
00110                                 <td ><?php echo  $w->input() . $w->search()?><span id="<?php echo $label?>"></span></td>
00111                         </tr>
00112                         <tr>
00113                                 <td style="text-align:right" ><?php echo  _("Profil")?></td>
00114                                 <td><?php echo  $str_ag_dest?></td>
00115                         </tr>
00116                         <tr>
00117                                 <td style="text-align:right" ><?php echo  _("Etat")?></td>
00118                                 <td><?php echo  $type_state->input()?></td>
00119                         </tr>
00120                         <tr>
00121                                 <td style="text-align:right" ><?php echo  _("Exclure Etat")?></td>
00122                                 <td><?php echo  $hsExcptype_state->input()?></td>
00123                         </tr>
00124                         <td style="text-align:right"><?php printf(_('contenant le mot'))?></td>
00125                         <td ><input class="input_text" style="width:100%" type="text" name="action_query" value="<?php echo  $a?>"></td>
00126                         </tr>
00127                         <tr>
00128                                 <td style="text-align:right"><?php echo  _('Type de document')?></td>
00129                                 <td><?php echo $type_doc->input();?></td>
00130                         </tr>
00131                         
00132                         </tr>
00133                         <tr>
00134                                 <td style="text-align:right"><?php echo  _('Uniquement actions internes')?></td>
00135                                 <td><?php echo  $only_internal->input()?>
00136                                 </td>
00137                         </tr>
00138                 </table>
00139                 <input type="submit" class="smallbutton" name="submit_query" value="<?php echo  _('recherche')?>">
00140                 <input type="hidden" name="sa" value="list">
00141 
00142                 <?php echo  $supl_hidden?>
00143                 <?php echo HtmlInput::button_anchor(_('Fermer'), 'javascript:void(0)', 'fsearch_form', 'onclick="$(\'search_action\').style.display=\'none\';"','smallbutton');?>
00144         </form>
00145 </div>
00146 
 All Data Structures Namespaces Files Functions Variables Enumerations