header("Location: ../common/error_page.php"); } include "../config.php"; $lang = $_SESSION["lang"]; include "../lang/admin.php"; include "../lang/acquisitions.php"; include "../common/get_post.php"; //foreach ($arrHttp as $var=>$value) echo "$var = $value<br>"; $db_addto = $arrHttp["base"]; $arrHttp["base"] = "copies"; include "../common/header.php"; include "../acquisitions/javascript.php"; //READ THE FST OF THE BIBLIOGRAPHIC DATABASE IN ORDER TO GET THE TAG OF THE CONTROL FIELD $tag_ctl = ""; $error = ""; LeerFst($db_addto); if ($tag_ctl != "") { $Formato = "v" . $tag_ctl; //READ THE BIBLIOGRAPHIC RECORD TO GET THE CONTROL NUMBER $query = "&base=" . $db_addto . "&cipar={$db_path}" . "par/" . $db_addto . ".par" . "&from=" . $arrHttp["Mfn"] . "&to=" . $arrHttp["Mfn"] . "&Formato={$Formato}&Opcion=rango"; $IsisScript = $xWxis . "imprime.xis"; include "../common/wxis_llamar.php"; $valortag[1] = implode("", $contenido); if ($valortag[1] == "") { //CHECK IF THE RECORD HAS CONTROL NUMBER $err_copies = "Y"; } else { $err_copies = "N"; } //READ THE FDT OF THE COPIES DATABASE TO SEE IF THE INVENTORY NUMBER IS AUTOINCREMENT LeerFdt("copies");
?> </a>  <?php if (isset($_SESSION["permiso"]["CENTRAL_EDHLPSYS"])) { echo "<a href=../documentacion/edit.php?archivo=" . $_SESSION["lang"] . "/acquisitions/copies_create.html target=_blank>" . $msgstr["edhlp"] . "</a>"; } echo "<font color=white> Script: copies_add_add.php</font>\n"; ?> </div> <div class="middle form"> <div class="formContent"> <?php $arrHttp["database"] = $arrHttp["tag10"]; $arrHttp["objectid"] = $arrHttp["tag1"]; // se lee la FDT para conseguir la etiqueta del campo donde se coloca la numeración automática LeerFst($arrHttp["database"]); // Se lee la base de datos catalográfica para determinar si el objeto ha sido ingresado $Formato = $db_path . $arrHttp["database"] . "/pfts/" . $_SESSION["lang"] . "/" . $arrHttp["database"] . ".pft"; if (!file_exists($Formato)) { $Formato = $db_path . $arrHttp["database"] . "/pfts/" . $lang_db . "/" . $arrHttp["database"] . ".pft"; } $Formato = "@{$Formato},/"; $Expresion = "{$pref_ctl}" . $arrHttp["objectid"]; $query = "&base=" . $arrHttp["database"] . "&cipar={$db_path}" . "par/" . $arrHttp["database"] . ".par" . "&Expresion={$Expresion}&Formato={$Formato}&Opcion=buscar"; $IsisScript = $xWxis . "imprime.xis"; include "../common/wxis_llamar.php"; $cont_database = implode('', $contenido); if (empty($cont_database)) { echo "<h4>" . $arrHttp["objectid"] . ": " . $msgstr["objnoex"] . "</h4>"; echo "\n<script>top.toolbarEnabled=\"\"</script>\n"; die;
* == END LICENSE == */ session_start(); if (!isset($_SESSION["permiso"])) { header("Location: ../common/error_page.php"); } include "../config.php"; $lang = $_SESSION["lang"]; include "../lang/admin.php"; include "../lang/acquisitions.php"; include "../common/get_post.php"; // foreach ($arrHttp as $var=>$value) echo "$var = $value<br>"; //se lee la FDT de la base de datos para determinar el campo donde se almacena el número de control $tag_ctl = ""; $error = ""; LeerFst($arrHttp["base"]); if ($error == "") { $Formato = "v" . $tag_ctl; //Se lee el registro bibliográfico para capturar el número del objeto $query = "&base=" . $arrHttp["base"] . "&cipar={$db_path}" . "par/" . $arrHttp["base"] . ".par" . "&from=" . $arrHttp["Mfn"] . "&to=" . $arrHttp["Mfn"] . "&Formato={$Formato}&Opcion=rango"; $IsisScript = $xWxis . "imprime.xis"; include "../common/wxis_llamar.php"; $valortag[1] = implode("", $contenido); if ($valortag[1] == "") { //CHECK IF THE RECORD HAS CONTROL NUMBER $err_copies = "Y"; } else { $err_copies = "N"; } //echo $err_copies; } else {
$Mfn_order = $linea[2]; $provider = $linea[3]; $closed = trim($linea[4]); $l = explode('^^', $linea[1]); // se obtiene la información correspondiente a los objetos ya actualizados para evitar la duplicación (campo 500 de purchaseorder) print $linea[0]; if ($closed != "") { print "<font color=darkred size=+2><strong>" . $msgstr["orderclosed"] . "</strong></font>"; } else { echo "<br><font class=\"textEntry\"><b>" . $msgstr["date_receival"] . ": </b>" . $arrHttp["date"] . "</font>"; } echo "<table cellspacing=4 border=0 class=statTable>"; echo "<tr><th width=610>" . $msgstr["item"] . "</th><th width=90 align=center nowrap>" . $msgstr["approved"] . "</th><th>" . $msgstr["copiesrec"] . "</th><th width=90 align=center>" . $msgstr["price"] . "</th><th width=100 align=center>" . $msgstr["copies_no"] . "</th><th width=100 align=center>" . $msgstr["suggestions"] . "</th><th width=100 align=center>" . $msgstr["bidding"] . "</th><th width=100 align=center>" . $msgstr["database"] . "</th><th width=100 align=center>" . $msgstr["typeofacq"] . "</th><th width=100 align=center>" . $msgstr["objectid"] . "</th>"; $ix = 0; foreach ($l as $val) { $val = trim($val); if (trim($val) != "") { $ix = $ix + 1; $cell = explode('|', $val); if (isset($cell[5]) and trim($cell[5]) != "") { LeerFst($cell[5]); } echo "\n<form name=frm{$ix} method=post action=receive_order_update.php>\n"; echo "<input type=hidden name=Mfn_order value={$Mfn_order}>\n"; echo "<input type=hidden name=date value=" . $arrHttp["date"] . ">\n"; echo "<input type=hidden name=isodate value=" . $arrHttp["isodate"] . ">\n"; echo "<input type=hidden name=order value=" . $cell[8] . ">\n"; echo "<input type=hidden name=provider value=\"" . $provider . "\">\n"; echo "<tr><td>" . $cell[0] . "</td>\n"; echo "<td align=center>" . $cell[1] . "</td>\n"; echo "<td align=center>" . $cell[10] . "</td>\n";