case "2":
            $msgsusp = $msgstr["usersusp"];
            $vig = "N";
            break;
    }
}
$ec_output .= "\n\r\n<script>\r\n  Vigencia='{$vig}'\r\n\r\n</script>\n";
// Si viene desde la opción de prestar, se localiza el número de inventario solicitado
if (isset($arrHttp["inventory"]) and $vig == "") {
    //Se determina si el usuario tiene préstamos vencidos. La variable $nv se calcula en ec_include.php
    if (!empty($userdata[2])) {
        echo $msgstr[$userdata[2]];
        die;
    }
    //Se ubica el ejemplar en la base de datos de objeto
    $item = LocalizarInventario();
    if ($item == "") {
        $ec_output .= "<h3><font color=red>" . $arrHttp["inventory"] . " " . $msgstr["copynoexists"] . "</font></h3>";
        $cont = "N";
        ProduceOutput($ec_output, "");
        die;
    }
    //se extrae la información del número de control del título y la base de datos catalográfica a la cual pertenece
    $tt = explode('||', trim($item));
    $control_number = $tt[0];
    $catalog_db = $tt[1];
    $tipo_obj = trim($tt[5]);
    //Tipo de objeto
    // se lee la configuración de la base de datos de objetos de préstamos
    $arrHttp["db"] = "{$catalog_db}";
    include "databases_configure_read.php";
Example #2
0
/circulation/item_history.html target=_blank><?php 
echo $msgstr["help"];
?>
</a>&nbsp &nbsp;
<?php 
if (isset($_SESSION["permiso"]["CENTRAL_EDHLPSYS"])) {
    echo "<a href=../documentacion/edit.php?archivo=" . $_SESSION["lang"] . "/circulation/item_history.html target=_blank>" . $msgstr["edhlp"] . "</a>";
}
echo "<font color=white>&nbsp; &nbsp; Script: item_history_ex.php</font>\n";
echo "\r\n\t</div>\r\n<div class=\"middle form\">\r\n\t<div class=\"formContent\">";
// se lee la tabla de tipos de objeto
unset($fp);
$archivo = $db_path . "circulation/def/" . $_SESSION["lang"] . "/items.tab";
if (!file_exists($archivo)) {
    $archivo = $db_path . "circulation/def/" . $lang_db . "/items.tab";
}
$fp = file($archivo);
foreach ($fp as $value) {
    $value = trim($value);
    if ($value != "") {
        $t = explode('|', $value);
        if (!isset($t[1])) {
            $t[1] = $t[0];
        }
        $type_items[$t[0]] = $t[1];
    }
}
$disp = 0;
// se busca el título para ver el total de ejemplares y los ejemplares prestados
$arrHttp["Opcion"] = "disponibilidad";
$total = LocalizarInventario($arrHttp["inventory"]);
?>
</a>&nbsp &nbsp;
<?php 
if (isset($_SESSION["permiso"]["CENTRAL_EDHLPSYS"])) {
    echo "<a href=../documentacion/edit.php?archivo=" . $_SESSION["lang"] . "/situacion_de_un_objeto.html target=_blank>" . $msgstr["edhlp"] . "</a>";
}
echo "<font color=white>&nbsp; &nbsp; Script: situacion_de_un_objeto_ex.php</font>\n";
echo "\r\n\t</div>\r\n<div class=\"middle form\">\r\n\t<div class=\"formContent\">";
// se lee la tabla de tipos de objeto
unset($fp);
$archivo = $db_path . "circulation/def/" . $_SESSION["lang"] . "/items.tab";
if (!file_exists($archivo)) {
    $archivo = $db_path . "circulation/def/" . $lang_db . "/items.tab";
}
$fp = file($archivo);
foreach ($fp as $value) {
    $value = trim($value);
    if ($value != "") {
        $t = explode('|', $value);
        if (!isset($t[1])) {
            $t[1] = $t[0];
        }
        $type_items[$t[0]] = $t[1];
    }
}
switch ($arrHttp["Opcion"]) {
    case "inventario":
        $disp = 0;
        // se busca el título para ver el total de ejemplares y los ejemplares prestados
        $arrHttp["Opcion"] = "disponibilidad";
        $total = LocalizarInventario($arrHttp["code"]);
Example #4
0
if ($nv > 0) {
    echo "<br>";
    echo $reserva_output;
    die;
}
if ($reservas_vencidas == "S") {
    echo "<br>";
    echo "<font color=red><h3>Tiene reservas vencidas. No puede reservar</h3></font>";
    echo $reserva_output;
    die;
}
if ($sanctions_output != "") {
    echo "<br>";
    echo $reserva_output;
    die;
}
//SE LEE EL OBJETO PARA LOCALIZAR TODAS SUS COPIAS
$copies_title = LocalizarInventario();
//SE DETERMINA SI EL USUARIO NO TIENE YA PRESTADO OTRO EJEMPLAR DEL MISMO TÍTULO
$yaprestado = "";
foreach ($copies_title as $value) {
    if (trim($value) != "") {
        $c = explode('|', $value);
        $inv_c = trim($c[0]);
        foreach ($prestamos as $prest) {
            if (trim($prest) != "") {
                $p = explode('^', $prest);
                if ($inv_c == trim($p[12])) {
                    $yaprestado = "S";
                    break;
                }