$res = Note::remove($id); $tpl->assign('note_delete_result', $res); } elseif ($cat == 'delete_time') { $res = Time_Tracking::removeTimeEntry($id, $usr_id); $tpl->assign('time_delete_result', $res); } elseif ($cat == 'bulk_update') { $res = Issue::bulkUpdate(); $tpl->assign('bulk_update_result', $res); } elseif ($cat == 'set_initial_impact') { $res = Issue::setImpactAnalysis($iss_id); $tpl->assign('set_initial_impact_result', $res); } elseif ($cat == 'add_requirement') { $res = Impact_Analysis::insert($iss_id); $tpl->assign('add_requirement_result', $res); } elseif ($cat == 'set_impact_requirement') { $res = Impact_Analysis::update($isr_id); $tpl->assign('set_impact_requirement_result', $res); } elseif ($cat == 'delete_requirement') { $res = Impact_Analysis::remove(); $tpl->assign('requirement_delete_result', $res); } elseif ($cat == 'save_filter') { $res = Filter::save(); $tpl->assign('save_filter_result', $res); } elseif ($cat == 'delete_filter') { $res = Filter::remove(); $tpl->assign('delete_filter_result', $res); } elseif ($cat == 'remove_support_email') { $res = Support::removeAssociation(); $tpl->assign('remove_association_result', $res); } elseif ($cat == 'delete_attachment') { $res = Attachment::remove($id);
// | Copyright (c) 2008 - 2010 Sun Microsystem Inc. | // | Copyright (c) 2011 - 2013 Eventum Team. | // | | // | 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: | // | | // | Free Software Foundation, Inc. | // | 51 Franklin Street, Suite 330 | // | Boston, MA 02110-1301, USA. | // +----------------------------------------------------------------------+ // | Authors: João Prado Maia <*****@*****.**> | // +----------------------------------------------------------------------+ require_once dirname(__FILE__) . '/../init.php'; $tpl = new Template_Helper(); $tpl->setTemplate('requirement.tpl.html'); Auth::checkAuthentication(APP_COOKIE, 'index.php?err=5', true); if (@$_POST['cat'] == 'set_analysis') { $res = Impact_Analysis::update($_POST['isr_id']); $tpl->assign('set_analysis_result', $res); } $tpl->displayTemplate();
$res = Note::remove($HTTP_GET_VARS["id"]); $tpl->assign("note_delete_result", $res); } elseif (@$HTTP_GET_VARS["cat"] == "delete_time") { $res = Time_Tracking::removeEntry($HTTP_GET_VARS["id"], $usr_id); $tpl->assign("time_delete_result", $res); } elseif (@$HTTP_POST_VARS["cat"] == "bulk_update") { $res = Issue::bulkUpdate(); $tpl->assign("bulk_update_result", $res); } elseif (@$HTTP_POST_VARS["cat"] == "set_initial_impact") { $res = Issue::setImpactAnalysis($HTTP_POST_VARS["issue_id"]); $tpl->assign("set_initial_impact_result", $res); } elseif (@$HTTP_POST_VARS["cat"] == "add_requirement") { $res = Impact_Analysis::insert($HTTP_POST_VARS["issue_id"]); $tpl->assign("add_requirement_result", $res); } elseif (@$HTTP_POST_VARS["cat"] == "set_impact_requirement") { $res = Impact_Analysis::update($HTTP_POST_VARS["isr_id"]); $tpl->assign("set_impact_requirement_result", $res); } elseif (@$HTTP_POST_VARS["cat"] == "delete_requirement") { $res = Impact_Analysis::remove(); $tpl->assign("requirement_delete_result", $res); } elseif (@$HTTP_POST_VARS["cat"] == "save_filter") { $res = Filter::save(); $tpl->assign("save_filter_result", $res); } elseif (@$HTTP_POST_VARS["cat"] == "delete_filter") { $res = Filter::remove(); $tpl->assign("delete_filter_result", $res); } elseif (@$HTTP_POST_VARS["cat"] == "remove_support_email") { $res = Support::removeAssociation(); $tpl->assign("remove_association_result", $res); } elseif (@$HTTP_GET_VARS["cat"] == "delete_attachment") { $res = Attachment::remove($HTTP_GET_VARS["id"]);