} } if ($reserva == 0) { header("Location:usuario_prestamos_prestar.php?usuario=" . $arrHttp["usuario"] . "&inventario=" . $arrHttp["inventory"] . "&signatura=" . $signatura . "&item=" . urlencode($item) . "&usrtype=" . $userdata[1] . "&copies=" . $from_copies . "&policy=" . urlencode($ppres)); } else { $arrHttp["vienede"] = "prestamos"; include "opac_reservas.php"; ProduceOutput($ec_output, $reserva_output); } } } } else { ProduceOutput($ec_output, ""); } } else { ProduceOutput($ec_output, ""); } function ProduceOutput($ec_output, $reservas) { global $msgstr, $arrHttp, $signatura, $msg_1, $cont, $institution_name, $db_path, $lang_db, $copies_title; include "../common/header.php"; echo "<body>"; include "../common/institutional_info.php"; ?> <script src="../dataentry/js/lr_trim.js"></script> <script> document.onkeypress = function (evt) { var c = document.layers ? evt.which : document.all ? event.keyCode : evt.keyCode;
} $nmulta = 0; if (count($multa) > 0) { $sanctions_output .= "<br><strong>" . $msgstr["fine"] . "</strong>\r\n\t\t<table width=95% bgcolor=#cccccc><th>" . $msgstr["status"] . "</th>\r\n\t\t<th>" . $msgstr["date"] . "</th><th>" . $msgstr["concept"] . "</th><th>" . $msgstr["amount"] . "</th><th>" . $msgstr["comments"] . "</th>"; foreach ($multa as $linea) { $p = explode("|", $linea); $nmulta = $nmulta + 1; $fecha1 = PrepararFecha($p[3]); $sanctions_output .= "<tr><td bgcolor=white align=center valign=top>" . $status[$p[1]] . "</td>\r\n\t\t\t\t<td bgcolor=white nowrap align=center valign=top>" . $fecha1 . "</td><td bgcolor=white nowrap align=center valign=top>" . $p[4] . "</td><td bgcolor=white nowrap align=center valign=top>" . $p[5] . "<td bgcolor=white valign=top>" . $p[7] . "</td>"; } $sanctions_output .= "</table>"; } if ($sanctions_output != "" and isset($arrHttp["inventory"])) { $ec_output .= "<font color=red><strong>" . $msgstr["pending_sanctions"] . "</strong></font>"; } ProduceOutput($ec_output . $sanctions_output); //===================================================================================== function ProduceOutput($ec_output) { global $msgstr, $arrHttp, $reservas_p, $signatura, $posicion_cola, $msg_1, $cont, $institution_name, $db_path; include "../common/header.php"; echo "<body>"; include "../common/institutional_info.php"; ?> <script src="../dataentry/js/lr_trim.js"></script> <body> <div class="sectionInfo"> <div class="breadcrumb"> <?php echo $msgstr["statment"]; ?>