Permalink
Browse files

No commit message

  • Loading branch information...
tsmr committed Jan 8, 2016
1 parent c3861c8 commit 7f7bf8f04f1c36d59b46da9a8dfbba611540c41a
View
@@ -1,2 +1,16 @@
# tasklists
Plugin tasklists for GLPI http://blogglpi.infotel.com
Plugin Tasklists for GLPI
Ajout d'une gestion de tâches simples. Ce plugin permet d'ajouter dans GLPI, une interface pour saisir des tâches simples.
> * Peut être utilisé avec le collecteur de mail pour créer des tâches.
Adding a management of simple tasks. This plugin adds in GLPI, an interface to input simple tasks.
> * Can be used with mail collector to create tasks.
For use it with mail collector you must to modify "inc/rulemailcollector.class.php" file, into "executeActions" fonction, into switch : switch ($action->fields["action_type"]), add a default case :
default:
//plugins actions
$executeaction = clone $this;
$output = $executeaction->executePluginsActions($action, $output, $params);
break;
View
@@ -0,0 +1,63 @@
<?php
/*
* @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
-------------------------------------------------------------------------
Tasklists plugin for GLPI
Copyright (C) 2003-2016 by the Tasklists Development Team.
https://github.com/InfotelGLPI/tasklists
-------------------------------------------------------------------------
LICENSE
This file is part of Tasklists.
Tasklists 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.
Tasklists 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 Tasklists. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
if (strpos($_SERVER['PHP_SELF'],"dropdownTypeTasks.php")) {
$AJAX_INCLUDE=1;
include ('../../../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
Session::checkCentralAccess();
// Make a select box
if (isset($_POST["domaintypes"])) {
$used = array();
// Clean used array
if (isset($_POST['used']) && is_array($_POST['used']) && (count($_POST['used']) > 0)) {
$query = "SELECT `id`
FROM `glpi_plugin_tasklists_tasks`
WHERE `id` IN (".implode(',',$_POST['used']).")
AND `plugin_tasklists_tasktypes_id` = '".$_POST["tasktypes"]."'";
foreach ($DB->request($query) AS $data) {
$used[$data['id']] = $data['id'];
}
}
Dropdown::show('PluginTasklistsTask',
array('name' => $_POST['myname'],
'used' => $used,
'width' => '50%',
'entity' => $_POST['entity'],
'rand' => $_POST['rand'],
'condition' => "glpi_plugin_tasklists_tasks.plugin_tasklists_tasktypes_id='".$_POST["tasktypes"]."'"));
}
?>
View
@@ -0,0 +1,47 @@
<?php
/*
* @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
-------------------------------------------------------------------------
Tasklists plugin for GLPI
Copyright (C) 2003-2016 by the Tasklists Development Team.
https://github.com/InfotelGLPI/tasklists
-------------------------------------------------------------------------
LICENSE
This file is part of Tasklists.
Tasklists 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.
Tasklists 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 Tasklists. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include ('../../../inc/includes.php');
if (!isset($_GET["id"]))
$_GET["id"] = "";
if (!isset($_GET["withtemplate"]))
$_GET["withtemplate"] = "";
Html::header(PluginTasklistsTask::getTypeName(2),'',"helpdesk","plugintasklistsmenu");
$task = new PluginTasklistsTask();
$task->checkGlobal(READ);
$task->getFromDB($_GET['id']);
$note = new Notepad();
$note->showForItem($task);
Html::footer();
?>
View
@@ -0,0 +1,84 @@
<?php
/*
* @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
-------------------------------------------------------------------------
Tasklists plugin for GLPI
Copyright (C) 2003-2016 by the Tasklists Development Team.
https://github.com/InfotelGLPI/tasklists
-------------------------------------------------------------------------
LICENSE
This file is part of Tasklists.
Tasklists 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.
Tasklists 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 Tasklists. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include ('../../../inc/includes.php');
if (!isset($_GET["id"]))
$_GET["id"] = "";
if (!isset($_GET["withtemplate"]))
$_GET["withtemplate"] = "";
$task = new PluginTasklistsTask();
if (isset($_POST["add"])) {
$task->check(-1, CREATE, $_POST);
$newID = $task->add($_POST);
if ($_SESSION['glpibackcreated']) {
Html::redirect($task->getFormURL() . "?id=" . $newID);
}
Html::back();
} else if (isset($_POST["delete"])) {
$task->check($_POST['id'], DELETE);
$task->delete($_POST);
$task->redirectToList();
} else if (isset($_POST["restore"])) {
$task->check($_POST['id'], PURGE);
$task->restore($_POST);
$task->redirectToList();
} else if (isset($_POST["purge"])) {
$task->check($_POST['id'], PURGE);
$task->delete($_POST, 1);
$task->redirectToList();
} else if (isset($_POST["update"])) {
$task->check($_POST['id'], UPDATE);
$task->update($_POST);
Html::back();
} else if (isset($_POST["done"])) {
$task->check($_POST['id'], UPDATE);
$options['id'] = $_POST['id'];
$options['state'] = 2;
$options['percent_done'] = 100;
$task->update($options);
Html::back();
} else {
$task->checkGlobal(READ);
Html::header(PluginTasklistsTask::getTypeName(2),'',"helpdesk","plugintasklistsmenu");
$task->display($_GET);
Html::footer();
}
?>
View
@@ -0,0 +1,46 @@
<?php
/*
* @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
-------------------------------------------------------------------------
Tasklists plugin for GLPI
Copyright (C) 2003-2016 by the Tasklists Development Team.
https://github.com/InfotelGLPI/tasklists
-------------------------------------------------------------------------
LICENSE
This file is part of Tasklists.
Tasklists 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.
Tasklists 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 Tasklists. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include ('../../../inc/includes.php');
Html::header(PluginTasklistsTask::getTypeName(2),'',"helpdesk","plugintasklistsmenu");
$task = new PluginTasklistsTask();
if ($task->canView() || Session::haveRight("config",CREATE)) {
Search::show("PluginTasklistsTask");
} else {
Html::displayRightError();
}
Html::footer();
?>
View
@@ -0,0 +1,35 @@
<?php
/*
* @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
-------------------------------------------------------------------------
Tasklists plugin for GLPI
Copyright (C) 2003-2016 by the Tasklists Development Team.
https://github.com/InfotelGLPI/tasklists
-------------------------------------------------------------------------
LICENSE
This file is part of Tasklists.
Tasklists 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.
Tasklists 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 Tasklists. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include ('../../../inc/includes.php');
$dropdown = new PluginTasklistsTaskType();
include (GLPI_ROOT . "/front/dropdown.common.form.php");
?>
View
@@ -0,0 +1,35 @@
<?php
/*
* @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
-------------------------------------------------------------------------
Tasklists plugin for GLPI
Copyright (C) 2003-2016 by the Tasklists Development Team.
https://github.com/InfotelGLPI/tasklists
-------------------------------------------------------------------------
LICENSE
This file is part of Tasklists.
Tasklists 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.
Tasklists 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 Tasklists. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include ('../../../inc/includes.php');
$dropdown = new PluginTasklistsTaskType();
include (GLPI_ROOT . "/front/dropdown.common.php");
?>
Oops, something went wrong.

0 comments on commit 7f7bf8f

Please sign in to comment.