/** * Actor domain aed * * @category EAI * @package Mediboard * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version SVN: $Id:$ * @link http://www.mediboard.org */ CCanDo::checkAdmin(); $transformation_id_move = CValue::post("transformation_id_move"); $direction = CValue::post("direction"); $transformation = new CEAITransformation(); $transformation->load($transformation_id_move); switch ($direction) { case "up": $transformation->rank--; break; case "down": $transformation->rank++; break; default: } $transf_to_move = new CEAITransformation(); $transf_to_move->actor_class = $transformation->actor_class; $transf_to_move->actor_id = $transformation->actor_id; $transf_to_move->rank = $transformation->rank; $transf_to_move->loadMatchingObject(); if ($transf_to_move->_id) {
<?php /** * Edit transformaiton rule EAI * * @category EAI * @package Mediboard * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version SVN: $Id:$ * @link http://www.mediboard.org */ CCanDo::checkAdmin(); $transformation_id = CValue::getOrSession("transformation_id"); $event_class = CValue::getOrSession("event_class"); $message_class = CValue::getOrSession("message_class"); $transformation = new CEAITransformation(); $transformation->load($transformation_id); $transformation->loadRefActor(); // Création du template $smarty = new CSmartyDP(); $smarty->assign("transformation", $transformation); $smarty->assign("event_class", $event_class); $smarty->assign("message_class", $message_class); $smarty->display("inc_edit_transformation.tpl");