$t = explode('|', $value); if (!isset($t[1])) { $t[1] = $t[0]; } $type_items[$t[0]] = $t[1]; } } //GET THE INFORMATION OF THE DATABASE SELECTED $b = explode('|', $arrHttp["db"]); $catalog_db = $b[0]; $arrHttp["db"] = $catalog_db; require_once "databases_configure_read.php"; $total = ReadCatalographicRecord($arrHttp["code"], $catalog_db); if ($total > 1) { echo "<font color=red>" . $msgstr["dupctrl"] . "</font><p>"; } echo '<font color=darkblue><strong>' . $msgstr["bd"] . ": " . $catalog_db . ". " . $msgstr["control_n"] . ": " . $arrHttp["code"] . "</strong></font><br>"; echo $titulo; echo "<table bgcolor=#dddddd cellpadding=5>\r\n\t\t\t<th></th>\r\n\t\t\t<th>" . $msgstr["inventory"] . "</th>\r\n\t\t\t<th>" . $msgstr["volume"] . "</th>\r\n\t\t\t<th>" . $msgstr["tome"] . "</th>\r\n\t\t\t<th>" . $msgstr["typeofitems"] . "</th>\r\n\t\t\t<th>" . $msgstr["usercode"] . "</th>\r\n\t\t\t<th>" . $msgstr["devdate"] . "</th>"; //SE OBTIENEN LOS EJEMPLARES DEL TITULO $Expresion = $prefix_cn . $arrHttp["code"]; echo "----" . $Expresion; $IsisScript = $xWxis . "loans/prestamo_disponibilidad.xis"; $Expresion = urlencode($Expresion); $pft_inventory = LeerPft("loans_inventorynumber.pft"); $pft_inventory = "(" . $pft_inventory . "/)"; $query = "&Opcion=disponibilidad&base={$catalog_db}&cipar={$db_path}" . "par/{$catalog_db}.par&Expresion=" . $Expresion . "&Pft={$pft_inventory}"; include "../common/wxis_llamar.php"; foreach ($contenido as $val) { if (trim($val) != "") { ShowItems($val);
$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"]); if ($total == 0) { echo $msgstr["copynoexists"]; die; } $arrHttp["db"] = $db; $arrHttp["code"] = $cn; require_once "databases_configure_read.php"; $total = ReadCatalographicRecord($arrHttp["code"], $catalog_db); if ($total > 1) { echo "<font color=red>" . $msgstr["dupctrl"] . "</font><p>"; } echo '<font color=darkblue><strong>' . $msgstr["bd"] . ": " . $catalog_db . ". " . $msgstr["control_n"] . ": " . $arrHttp["code"] . "</strong></font><br>"; echo $titulo; echo "<table bgcolor=#dddddd cellpadding=5>\r\n\t<th></th>\r\n\t<th>" . $msgstr["inventory"] . "</th>\r\n\t<th>" . $msgstr["volume"] . "</th>\r\n\t<th>" . $msgstr["tome"] . "</th>\r\n\t<th>" . $msgstr["typeofitems"] . "</th>\r\n\t<th>" . $msgstr["usercode"] . "</th>\r\n\t<th>" . $msgstr["devdate"] . "</th>"; if (!empty($val)) { ShowItems($item);