0000609: recherche numéro de référence action_gestion
This commit is contained in:
parent
4f62674141
commit
bbe3feed97
5 changed files with 18 additions and 7 deletions
|
|
@ -174,7 +174,7 @@ if ( $sub_action == "list" )
|
|||
Follow_Up::ShowActionList($cn,$base);
|
||||
// Add a button to export to Csv
|
||||
echo '<form method="GET" ACTION="export.php">';
|
||||
echo HtmlInput::request_to_hidden(array("only_internal","state","gDossier","qcode","start_date","end_date","ag_id","ag_dest_query",
|
||||
echo HtmlInput::request_to_hidden(array("sag_ref","only_internal","state","gDossier","qcode","start_date","end_date","ag_id","ag_dest_query",
|
||||
"tdoc","see_all","all_action","query"));
|
||||
echo HtmlInput::hidden("act", "CSV:ActionGestion");
|
||||
echo HtmlInput::submit("follow_up_csv", "Export CSV");
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
*/
|
||||
require_once('class_ipopup.php');
|
||||
global $g_user;
|
||||
$retour=HtmlInput::button_anchor(_('Retour liste'),HtmlInput::request_to_string(array("only_internal","state","ac","gDossier","qcode","ag_dest_query","query","tdoc","date_start","date_end","see_all","all_action")).'&my_action');
|
||||
$retour=HtmlInput::button_anchor(_('Retour liste'),HtmlInput::request_to_string(array("sag_ref","only_internal","state","ac","gDossier","qcode","ag_dest_query","query","tdoc","date_start","date_end","see_all","all_action")).'&my_action');
|
||||
//-----------------------------------------------------
|
||||
// Follow_Up
|
||||
//-----------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ require_once('class_follow_up.php');
|
|||
$sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:"list";
|
||||
$ag_id=(isset($_REQUEST['ag_id']))?$_REQUEST['ag_id']:0;
|
||||
$p_action=$_REQUEST['ac'];
|
||||
$base="ac=$p_action&sc=sv&sb=detail&f_id=".$_REQUEST['f_id']."&".HtmlInput::request_to_string(array("only_internal","state","gDossier","qcode","ag_dest","query","tdoc","date_start","date_end","see_all","all_action","sb","sc"),"");
|
||||
$base="ac=$p_action&sc=sv&sb=detail&f_id=".$_REQUEST['f_id']."&".HtmlInput::request_to_string(array("sag_ref","only_internal","state","gDossier","qcode","ag_dest","query","tdoc","date_start","date_end","see_all","all_action","sb","sc"),"");
|
||||
$retour=HtmlInput::button_anchor('Retour','?'.dossier::get().'&'.$base);
|
||||
$fiche=new Fiche($cn,$_REQUEST['f_id']);
|
||||
|
||||
|
|
|
|||
|
|
@ -488,7 +488,7 @@ class Follow_Up
|
|||
/* add the number of item */
|
||||
$Hid = new IHidden();
|
||||
$r.=$Hid->input("nb_item", MAX_ARTICLE);
|
||||
$r.=HtmlInput::request_to_hidden(array("only_internal","state","qcode", "ag_dest_query", "query", "tdoc", "date_start", "date_end", "see_all", "all_action"));
|
||||
$r.=HtmlInput::request_to_hidden(array("sag_ref","only_internal","state","qcode", "ag_dest_query", "query", "tdoc", "date_start", "date_end", "see_all", "all_action"));
|
||||
/* get template */
|
||||
ob_start();
|
||||
require_once 'template/detail-action.php';
|
||||
|
|
@ -663,7 +663,7 @@ class Follow_Up
|
|||
function myList($p_base, $p_filter = "", $p_search = "")
|
||||
{
|
||||
// for the sort
|
||||
$url = HtmlInput::get_to_string(array("only_internal","state","qcode", "ag_dest_query", "query", "tdoc", "date_start", "date_end", "see_all", "all_action")) . '&' . $p_base;
|
||||
$url = HtmlInput::get_to_string(array("sag_ref","only_internal","state","qcode", "ag_dest_query", "query", "tdoc", "date_start", "date_end", "see_all", "all_action")) . '&' . $p_base;
|
||||
|
||||
$table = new Sort_Table();
|
||||
$table->add('Date', $url, 'order by ag_timestamp asc', 'order by ag_timestamp desc', 'da', 'dd');
|
||||
|
|
@ -735,7 +735,7 @@ class Follow_Up
|
|||
//show the sub_action
|
||||
foreach ($a_row as $row)
|
||||
{
|
||||
$href = '<A class="document" HREF="do.php' . HtmlInput::get_to_string(array("only_internal","state","gDossier", "qcode", "ag_dest_query", "query", "tdoc", "date_start", "date_end", "see_all", "ac", "all_action")) . "&" . $p_base . '&sa=detail&ag_id=' . $row['ag_id'] . '">';
|
||||
$href = '<A class="document" HREF="do.php' . HtmlInput::get_to_string(array("sag_ref","only_internal","state","gDossier", "qcode", "ag_dest_query", "query", "tdoc", "date_start", "date_end", "see_all", "ac", "all_action")) . "&" . $p_base . '&sa=detail&ag_id=' . $row['ag_id'] . '">';
|
||||
$i++;
|
||||
$tr = ($i % 2 == 0) ? 'even' : 'odd';
|
||||
if ($row['ag_priority'] < 2)
|
||||
|
|
@ -1146,6 +1146,8 @@ class Follow_Up
|
|||
$ag_dest->value = $aAg_dest;
|
||||
$ag_dest->selected = (isset($_GET["ag_dest_query"])) ? $_GET["ag_dest_query"] : 0;
|
||||
$str_ag_dest = $ag_dest->input();
|
||||
$osag_ref=new IText("sag_ref");
|
||||
$osag_ref->value=(isset($_GET['sag_ref']))?$_GET['sag_ref']:"";
|
||||
// show the action in
|
||||
require_once 'template/action_search.php';
|
||||
}
|
||||
|
|
@ -1217,6 +1219,10 @@ class Follow_Up
|
|||
{
|
||||
$query .= ' and ag_state= ' . sql_string($state);
|
||||
}
|
||||
if (isset($sag_ref) && trim($sag_ref) != "")
|
||||
{
|
||||
$query .= ' and ag_ref= \'' . sql_string($sag_ref)."'";
|
||||
}
|
||||
if (!isset($_GET['see_all']))
|
||||
$query .= ' and ag_state in (2,3) ';
|
||||
if (isset($_GET['only_internal']))
|
||||
|
|
|
|||
|
|
@ -46,7 +46,12 @@
|
|||
<?=HtmlInput::hidden('ctlc',$_GET['ctlc'])?>
|
||||
<? endif; ?>
|
||||
<?= dossier::hidden()?>
|
||||
<table style="width:100%">
|
||||
<table style="width:100%"><tr>
|
||||
<td style="width:180px;text-align:right"> Référence</td>
|
||||
<td>
|
||||
<?=$osag_ref->input();?>
|
||||
</td>
|
||||
<tr>
|
||||
<tr>
|
||||
<td style="width:180px;text-align:right"> Numéro document</td>
|
||||
<td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue