* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /** \file htdocs/comm/action/indexactions.php \ingroup agenda \brief Actions area \version $Id$ */ require_once("./pre.inc.php"); require_once(DOL_DOCUMENT_ROOT."/contact.class.php"); require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php"); require_once(DOL_DOCUMENT_ROOT."/client.class.php"); require_once(DOL_DOCUMENT_ROOT."/lib/agenda.lib.php"); $langs->load("companies"); $langs->load("commercial"); $langs->load("agenda"); $page = $_GET["page"]; $sortfield=$_GET["sortfield"]; $sortorder=$_GET["sortorder"]; if ($page == -1) { $page = 0 ; } $limit = $conf->liste_limit; $offset = $limit * $page ; if (! $sortorder) $sortorder="DESC"; if (! $sortfield) $sortfield="a.datep"; // Sécurité accés client if ($user->societe_id > 0) { $action = ''; $socid = $user->societe_id; } /* * Actions */ if ($_GET["action"] == 'builddoc') { $cat = new CommActionRapport($db, $_GET["month"], $_GET["year"]); $result=$cat->generate($_GET["id"]); } if ($action=='delete_action') { $actioncomm = new ActionComm($db); $actioncomm->fetch($actionid); $result=$actioncomm->delete(); } /* * Affichage liste */ llxHeader(); print_fiche_titre($langs->trans("ActionsArea")); print ''; print '
'; // Search actions /* $var=false; print ''; print ''; print ''; print ''; print ''; print "
'.$langs->trans("SearchAnAction").'
'; print $langs->trans("Keyword").':

\n"; */ $var=true; print '
'; print ''; print ''; // All actions of everybody $var=!$var; print ''; print ''; print ''; print ''; // All my actions $var=!$var; print ''; print ''; print ''; print ''; // Actions i asked $var=!$var; print ''; print ''; print ''; print ''; // Actions affected to me $var=!$var; print ''; print ''; print ''; print ''; // Actions done by me $var=!$var; print ''; print ''; print ''; print ''; print "
'.$langs->trans("ViewWithPredefinedFilters").'
'; print $langs->trans("AllActions").''; print img_picto($langs->trans("ViewList"),'object_list').''; print img_picto($langs->trans("ViewCal"),'object_calendar').'
'; print $langs->trans("AllMyActions").''; print img_picto($langs->trans("ViewList"),'object_list').''; print img_picto($langs->trans("ViewCal"),'object_calendar').'
      '; print $langs->trans("MyActionsAsked").''; print img_picto($langs->trans("ViewList"),'object_list').''; print img_picto($langs->trans("ViewCal"),'object_calendar').'
      '; print $langs->trans("MyActionsToDo").''; print img_picto($langs->trans("ViewList"),'object_list').''; print img_picto($langs->trans("ViewCal"),'object_calendar').'
      '; print $langs->trans("MyActionsDone").''; print img_picto($langs->trans("ViewList"),'object_list').''; print img_picto($langs->trans("ViewCal"),'object_calendar').'

\n"; print '
'; if ($conf->agenda->enabled) show_array_actions_to_do(10); if ($conf->agenda->enabled) show_array_last_actions_done(10); print '
'; $db->close(); llxFooter('$Date$ - $Revision$'); ?>