$collecs = array();
if (is_array($_POST['collec'])) {
    foreach ($_POST['collec'] as $value) {
        array_push($collecs, $value);
    }
}
$materials = array();
if (is_array($_POST['material'])) {
    foreach ($_POST['material'] as $value) {
        array_push($materials, $value);
    }
}
#****************************************************************************
#*  Search database
#****************************************************************************
$biblioQ = new BiblioSearchQuery();
$biblioQ->setItemsPerPage(OBIB_ITEMS_PER_PAGE);
$biblioQ->connect();
if ($biblioQ->errorOccurred()) {
    $biblioQ->close();
    displayErrorPage($biblioQ);
}
# checking to see if we are in the opac search or logged in
if ($tab == "opac") {
    $opacFlg = true;
} else {
    $opacFlg = false;
}
if (!$biblioQ->search($sType, $words, $currentPageNmbr, $sortBy, $collecs, $materials, $opacFlg)) {
    $biblioQ->close();
    displayErrorPage($biblioQ);
示例#2
0
 * See the file COPYRIGHT.html for more details.
 */
require_once "../shared/common.php";
$tab = "circulation";
$nav = "mbr_renew_all";
$restrictInDemo = true;
require_once "../shared/logincheck.php";
require_once "../classes/MemberQuery.php";
require_once "../classes/BiblioSearchQuery.php";
require_once "../classes/CircQuery.php";
require_once "../classes/Date.php";
require_once "../functions/errorFuncs.php";
require_once "../functions/formatFuncs.php";
require_once "../classes/Localize.php";
$loc = new Localize(OBIB_LOCALE, $tab);
$mbrid = @trim($_GET["mbrid"]);
$mbrQ = new MemberQuery();
$mbr = $mbrQ->get($mbrid);
$circQ = new CircQuery();
$biblioQ = new BiblioSearchQuery();
if (!$biblioQ->doQuery(OBIB_STATUS_OUT, $mbrid)) {
    Fatal::dbError($biblioQ->getSQL(), 'doQuery failed', $biblioQ->getDbError());
}
while ($biblio = $biblioQ->fetchRow()) {
    $err = $circQ->checkout_e($mbr->getBarcodeNmbr(), $biblio->getBarcodeNmbr());
    if ($err) {
        header("Location: ../circ/mbr_view.php?mbrid=" . U($mbrid) . "&msg=" . U($err->toStr()));
        exit;
    }
}
header("Location: ../circ/mbr_view.php?mbrid=" . U($mbrid) . "&msg=" . U($loc->getText("All items renewed.")));
示例#3
0
      <?php 
echo $loc->getText("checkinFormColHdr3");
?>
    </th>
    <th valign="top" nowrap="yes" align="left">
      <?php 
echo $loc->getText("checkinFormColHdr4");
?>
    </th>
  </tr>

<?php 
#****************************************************************************
#*  Search database for biblio copy data
#****************************************************************************
$biblioQ = new BiblioSearchQuery();
$biblioQ->connect();
if ($biblioQ->errorOccurred()) {
    $biblioQ->close();
    displayErrorPage($biblioQ);
}
if (!$biblioQ->doQuery(OBIB_STATUS_SHELVING_CART)) {
    $biblioQ->close();
    displayErrorPage($biblioQ);
}
if ($biblioQ->getRowCount() == 0) {
    ?>
    <td class="primary" align="center" colspan="5">
      <?php 
    echo $loc->getText("checkinFormEmptyCart");
    ?>
    if ($count == 1) {
        echo $count . ' ' . $locsh->getText("sharedRecordIsDeleted");
    } elseif ($count > 1) {
        echo $count . ' ' . $locsh->getText("sharedRecordsAreDeleted");
    }
    echo '</font></div>';
}
$dmQ = new DmQuery();
$dmQ->connect();
$collectionDm = $dmQ->getAssoc("collection_dm");
$materialTypeDm = $dmQ->getAssoc("material_type_dm");
$dmQ->close();
/*
print_r($dmQ);
*/
$biblioQ = new BiblioSearchQuery();
$biblioQ->setItemsPerPage(500);
$biblioQ->connect();
if ($biblioQ->errorOccurred()) {
    $biblioQ->close();
    displayErrorPage($biblioQ);
}
$sType = 'title';
$words = '';
$currentPageNmbr = isset($_POST["page"]) ? $_POST["page"] : 1;
$sortBy = 'title';
$opacFlg = false;
if (!$biblioQ->search($sType, $words, $currentPageNmbr, $sortBy, $opacFlg)) {
    $biblioQ->close();
    displayErrorPage($biblioQ);
}