action_search.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003  *   This file is part of PhpCompta.
00004  *
00005  *   PhpCompta 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  *   PhpCompta 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 PhpCompta; 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 ddebontridder@yahoo.fr
00022 
00023 /**
00024  * @file
00025  * @brief display the form for searching action
00026  *
00027  */
00028 ?>
00029 <? 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         <? echo HtmlInput::anchor_hide('Fermer', "$('search_action').style.display='none';");?>
00032 <? endif; ?>
00033 <? if ( $inner ) : ?>
00034 <div id="search_action" class="op_detail_frame">
00035         <? echo HtmlInput::anchor_hide('Fermer', "removeDiv('search_action_div');");?>
00036 
00037         <? endif; ?>
00038         <h2 class="info">
00039                 <?= _('Recherche avancée')?>
00040         </h2>
00041 <? if (! $inner ) : ?>
00042         <form method="get" action="do.php" style="padding:10px">
00043 <? endif; ?>
00044 <? if ( $inner ) : ?>
00045         <form method="get" id="fsearchaction" style="padding:10px" onsubmit="result_search_action('fsearchaction');return false;">
00046                 <?=HtmlInput::hidden('ctlc',$_GET['ctlc'])?>
00047 <? endif; ?>
00048                 <?= dossier::hidden()?>
00049                 <table style="width:100%">
00050                         <tr>
00051                                 <td style="width:180px;text-align:right"> Date de rappel après</td>
00052                                 <td>
00053                                         <?=$remind_date->input();?>
00054                                 </td>
00055                         <tr>
00056                         <tr>
00057                                 <td style="width:180px;text-align:right"> Date de rappel avant</td>
00058                                 <td>
00059                                         <?=$remind_date_end->input();?>
00060                                 </td>
00061                         <tr>
00062                         <td style="width:180px;text-align:right"> Référence</td>
00063                                 <td>
00064                                         <?=$osag_ref->input();?>
00065                                 </td>
00066                         <tr>
00067                         <tr>
00068                                 <td style="width:180px;text-align:right"> Numéro document</td>
00069                                 <td>
00070                                         <? $num=new INum('ag_id');echo $num->input();?>
00071                                 </td>
00072                         <tr>
00073                                 <td style="width:180px;text-align:right"><? echo _('Destinataire')?></td>
00074                                 <? $label=$w->id."_label";?>
00075                                 <td ><?= $w->input() . $w->search()?><span id="<?=$label?>"></span></td>
00076                         <tr>
00077                         <tr>
00078                                 <td style="text-align:right" ><?= _("Profile")?></td>
00079                                 <td><?= $str_ag_dest?></td>
00080                         </tr>
00081                         <tr>
00082                                 <td style="text-align:right" ><?= _("Etat")?></td>
00083                                 <td><?= $type_state->input()?></td>
00084                         </tr>
00085                         <tr>
00086                                 <td style="text-align:right" ><?= _("Exclure Etat")?></td>
00087                                 <td><?= $hsExcptype_state->input()?></td>
00088                         </tr>
00089                         <td style="text-align:right"><? printf(_('contenant le mot'))?></td>
00090                         <td ><input class="input_text" style="width:100%" type="text" name="query" value="<?= $a?>"></td>
00091                         </tr>
00092                         <tr>
00093                                 <td style="text-align:right"><?= _('Type de document')?></td>
00094                                 <td><? echo $type_doc->input();?></td>
00095                         </tr>
00096                         <tr>
00097                                 <td style="text-align:right">
00098                                         <? printf(_("Après le "))?>
00099                                 </td>
00100                                 <td >
00101                                         <?= $start->input()?>
00102                                 </td>
00103                         </tr>
00104                         <tr>
00105                                 <td style="text-align:right"><?= _('Avant le')?></td>
00106                                 <td>
00107                                         <?= $end->input()?>
00108                                 </td>
00109                         </tr>
00110                         </tr>
00111                         <tr>
00112                                 <td style="text-align:right"><?= _('Uniquement actions internes')?></td>
00113                                 <td><?= $only_internal->input()?>
00114                                 </td>
00115                         </tr>
00116                 </table>
00117                 <input type="submit" class="button" name="submit_query" value="<?= _('recherche')?>">
00118                 <input type="hidden" name="sa" value="list">
00119 
00120                 <?= $supl_hidden?>
00121                 <? echo HtmlInput::button_anchor(_('Fermer'), 'javascript:void(0)', 'fsearch_form', 'onclick="$(\'search_action\').style.display=\'none\';"');?>
00122         </form>
00123 </div>
00124