*/ if ($_REQUEST["recid"]) { /* * echo obligatory, used as a return of execution and * used in facic.list.tpl.php */ echo "<!-- [request]"; var_dump($_REQUEST); echo "[/request] -->"; echo "<!-- [recid]" . $_REQUEST["recid"] . "[/recid] -->"; echo "<!-- [mfn]deleted[/mfn] -->"; echo '<!-- [action]delete[/action] -->'; } if ($_REQUEST["title"] && $_REQUEST['hldg'] == 'execute') { $hldgModule = new hldgModule($_SESSION['centerCode'], BVS_ROOT_DIR . "/" . HLDGMODULE, $configurator->getPath2Facic(), $configurator->getPath2Holdings(), $configurator->getPath2Title(), HLDGMODULE_TAG, BVS_DIR . "/cgi-bin/", BVS_TEMP_DIR); $call = $hldgModule->execute($_REQUEST["title"], HLDGMODULE_DEBUG); echo '<!-- [action]holdings[/action] -->'; } } else { /* * For other databases, the list of its records is reloaded * after the implementation of delete */ $smartyTemplate = "list"; //search in Database to show a List(YUI datatable) if (isset($_GET["m"]) && !preg_match("=/=", $_GET["m"]) && $_GET["m"] != "") { if (isset($_REQUEST["searchExpr"]) && $_REQUEST["searchExpr"] != "") { $smarty->assign("searcExpr", $_REQUEST["searchExpr"]); } $smarty->assign("dataSource", $dataModel->getRecords()); $smarty->assign("totalRecords", $dataModel->getTotalRecords());
<?php //ini_set('display_errors',1); require_once "./common/ini/config.ini.php"; /* * Erro se o usuarios nao esta logados no sistema */ if (!isset($_SESSION["identified"]) || $_SESSION["identified"] != 1) { die($BVS_LANG["error404"]); } $dataModel = new facicOperations(); if (count($_REQUEST['YEAR']) == 0) { $h = $dataModel->getRealHolding($_REQUEST['title']); if (strpos(' ' . $h, 'converting') > 0) { $h = ''; } } if (count($_REQUEST['YEAR']) > 0 || $h == "" || !$h) { $hldgModule = new hldgModule($_SESSION['centerCode'], BVS_ROOT_DIR . "/" . HLDGMODULE, $configurator->getPath2Facic(), $configurator->getPath2Holdings(), $configurator->getPath2Title(), HLDGMODULE_TAG, BVS_DIR . "/cgi-bin/", BVS_TEMP_DIR); if (count($_REQUEST['YEAR']) > 0) { $hldgModule->setTempIssues($_REQUEST['YEAR'], $_REQUEST['VOLU'], $_REQUEST['FASC'], $_REQUEST['TYPE'], $_REQUEST['STAT'], $_REQUEST['SEQN']); } $h = $hldgModule->execute($_REQUEST['title'], HLDGMODULE_DEBUG); } if ($h == "") { $h = "empty"; } echo $h;