diff --git a/include/action.common.inc.php b/include/action.common.inc.php index 9a3a38c38..c13bfcaa9 100644 --- a/include/action.common.inc.php +++ b/include/action.common.inc.php @@ -174,7 +174,7 @@ if ( $sub_action == "list" ) Follow_Up::ShowActionList($cn,$base); // Add a button to export to Csv echo '
'; - echo HtmlInput::request_to_hidden(array("state","gDossier","qcode","start_date","end_date","ag_id","ag_dest_query", + echo HtmlInput::request_to_hidden(array("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"); diff --git a/include/action.inc.php b/include/action.inc.php index 75ecfb0ee..95f00a354 100644 --- a/include/action.inc.php +++ b/include/action.inc.php @@ -23,7 +23,7 @@ */ require_once('class_ipopup.php'); global $g_user; -$retour=HtmlInput::button_anchor(_('Retour liste'),HtmlInput::request_to_string(array("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("only_internal","state","ac","gDossier","qcode","ag_dest_query","query","tdoc","date_start","date_end","see_all","all_action")).'&my_action'); //----------------------------------------------------- // Follow_Up //----------------------------------------------------- diff --git a/include/category_followup.inc.php b/include/category_followup.inc.php index f0966cbf7..047410c48 100644 --- a/include/category_followup.inc.php +++ b/include/category_followup.inc.php @@ -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("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("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']); diff --git a/include/class_follow_up.php b/include/class_follow_up.php index dff44098a..1d380ee76 100644 --- a/include/class_follow_up.php +++ b/include/class_follow_up.php @@ -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("state","qcode", "ag_dest_query", "query", "tdoc", "date_start", "date_end", "see_all", "all_action")); + $r.=HtmlInput::request_to_hidden(array("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("state","qcode", "ag_dest_query", "query", "tdoc", "date_start", "date_end", "see_all", "all_action")) . '&' . $p_base; + $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; $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 = ''; + $href = ''; $i++; $tr = ($i % 2 == 0) ? 'even' : 'odd'; if ($row['ag_priority'] < 2) @@ -1134,6 +1134,8 @@ class Follow_Up $see_all->selected = (isset($_GET['see_all'])) ? true : false; $my_action = new ICheckBox('all_action'); $my_action->selected = (isset($_GET['all_action'])) ? true : false; + $only_internal= new ICheckBox('only_internal'); + $only_internal->selected = (isset($_GET['only_internal'])) ? true : false; // select profile $aAg_dest = $cn->make_array("select p_id as value, " . "p_name as label " . @@ -1217,6 +1219,8 @@ class Follow_Up } if (!isset($_GET['see_all'])) $query .= ' and ag_state in (2,3) '; + if (isset($_GET['only_internal'])) + $query .= ' and f_id_dest=0 '; if (!isset($all_action)) { $query .=" and (ag_owner='" . $_SESSION['g_user'] . "' or ag_dest in (select p_id from profile_user where user_name='" . $_SESSION['g_user'] . "') or ag_dest is null )"; diff --git a/include/template/action_search.php b/include/template/action_search.php index d4d4e9f22..549eaf048 100644 --- a/include/template/action_search.php +++ b/include/template/action_search.php @@ -100,6 +100,11 @@ input()?> + + + input()?> + +