noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
category_followup.inc.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 
00020 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00021 
00022 /*!\file
00023  * \brief this file is used for the follow up of the customer (mail, meeting...)
00024  *  - sb = detail
00025  *  - sc = sv
00026  *  - sd = this parameter is used here
00027  *  - $cn = database connection
00028  */
00029 if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
00030 require_once('class_follow_up.php');
00031 
00032 /**
00033  *\note problem with ShowActionList, this function is local
00034  * to the file action.inc.php. And this function must different for each
00035  *  suivi
00036  */
00037 $sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:"list";
00038 $ag_id=(isset($_REQUEST['ag_id']))?$_REQUEST['ag_id']:0;
00039 if (! isset($_GET['submit_query'])) {$_REQUEST['closed_action']=1;$_GET['closed_action']=1;}
00040 
00041 $p_action=$_REQUEST['ac'];
00042 $base="ac=$p_action&sc=sv&sb=detail&f_id=".$_REQUEST['f_id']."&".HtmlInput::request_to_string(array("closed_action","remind_date_end","remind_date","sag_ref","only_internal","state","gDossier","qcode","ag_dest","query","tdoc","date_start","date_end","hsstate","searchtag","sb","sc"),"");
00043 $retour=HtmlInput::button_anchor('Retour','?'.dossier::get().'&'.$base);
00044 $fiche=new Fiche($cn,$_REQUEST['f_id']);
00045 
00046 $_GET['qcode']=$fiche->get_quick_code();
00047 $_REQUEST['qcode'] = $fiche->get_quick_code();
00048 
00049 echo '<div class="content">';
00050 require_once('action.common.inc.php');
00051 echo '</div>';
 All Data Structures Namespaces Files Functions Variables Enumerations