function validateData() { require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, 'admin'); $valid = true; if (!is_numeric($this->_sessionTimeout)) { $valid = false; $this->_sessionTimeoutError = $loc->getText("Session timeout must be numeric."); } elseif ($this->_sessionTimeout <= 0) { $valid = false; $this->_sessionTimeoutError = $loc->getText("Session timeout must be greater than 0."); } if (!is_numeric($this->_itemsPerPage)) { $valid = false; $this->_itemsPerPageError = $loc->getText("Items per page must be numeric."); } elseif ($this->_itemsPerPage <= 0) { $valid = false; $this->_itemsPerPageError = $loc->getText("Items per page must be greater than 0."); } if (!is_numeric($this->_purgeHistoryAfterMonths)) { $valid = false; $this->_purgeHistoryAfterMonthsError = $loc->getText("Months must be numeric."); } if (!is_numeric($this->_inactiveMemberAfterDays)) { $valid = false; $this->_inactiveMemberAfterDaysError = $loc->getText("Days must be numeric."); } return $valid; }
function T($msg, $vars = NULL) { # Kludge to adapt 1.0-pre code to 0.6 static $loc = NULL; if ($loc == NULL) { $loc = new Localize(OBIB_LOCALE, 'classes'); } return $loc->getText($msg, $vars); }
function __() { $arg_num = func_num_args(); if ($arg_num == 1) { return Localize::getText(func_get_arg(0), Localize::getEncoding()); } else { if ($arg_num > 1) { $args = array_merge(array(Localize::getText(func_get_arg(0), Localize::getEncoding())), array_slice(func_get_args(), 1)); return call_user_func_array("sprintf", $args); } } }
function validateData() { $loc = new Localize(OBIB_LOCALE, "classes"); $valid = true; if ($this->_isRequired and $this->_fieldData == "") { $valid = false; $this->_fieldDataError = $loc->getText("biblioFieldError1"); } if ($this->_tag == "") { $valid = false; $this->_tagError = $loc->getText("biblioFieldError1"); } else { if (!is_numeric($this->_tag)) { $valid = false; $this->_tagError = $loc->getText("biblioFieldError2"); } } if ($this->_subfieldCd == "") { $valid = false; $this->_subfieldCdError = $loc->getText("biblioFieldError1"); } unset($loc); return $valid; }
function validateData() { $loc = new Localize(OBIB_LOCALE, "classes"); $valid = true; if ($this->_isRequired and $this->_fieldData == "") { $valid = false; $this->_fieldDataError = $loc->getText("biblioFieldError1"); } if ($this->_tag == "") { $valid = false; $this->_tagError = $loc->getText("biblioFieldError1"); } else { if (!is_numeric($this->_tag)) { $valid = false; $this->_tagError = $loc->getText("biblioFieldError2"); } } if ($this->_subfieldCd == "") { $valid = false; $this->_subfieldCdError = $loc->getText("biblioFieldError1"); } // Check for image if ($this->getTag() == "902" && $this->getSubfieldCd() == "a") { $fieldData = $this->getFieldData(); $index = $this->getTag() . $this->getSubfieldCd(); if (!empty($fieldData["tmp_name"][$index])) { if ($info = getimagesize($fieldData["tmp_name"][$index])) { $filename = $fieldData["name"][$index]; $filename_parts = explode(".", $filename); unset($filename_parts[count($filename_parts) - 1]); $filename = implode("-", $filename_parts); $allow_types = array('image/jpeg', 'image/png', 'image/gif'); // If file type is allowed if (in_array($info["mime"], $allow_types)) { $ext = image_type_to_extension($info[2]); $tmp = md5($filename . session_id() . time()); $filename = $filename . "_" . substr($tmp, strlen($tmp) - 7, strlen($tmp)) . $ext; $filepath = "../pictures/{$filename}"; copy($fieldData["tmp_name"][$index], $filepath); make_thumbnail($filepath, array('width' => 200)); $this->setFieldData($filename); } else { $valid = false; $this->_fieldDataError = $loc->getText("biblioFieldErrorPictureType"); } } else { $valid = false; $this->_fieldDataError = $loc->getText("biblioFieldErrorPictureType"); } } } unset($loc); return $valid; }
$_SESSION["postVars"] = $_POST; $_SESSION["pageErrors"] = $pageErrors; header("Location: ../admin/mbr_classify_new_form.php"); exit; } #************************************************************************** #* Insert new domain table row #************************************************************************** $dmQ = new DmQuery(); $dmQ->connect(); $dmQ->insert("mbr_classify_dm", $dm); $dmQ->close(); #************************************************************************** #* Destroy form values and errors #************************************************************************** unset($_SESSION["postVars"]); unset($_SESSION["pageErrors"]); #************************************************************************** #* Show success page #************************************************************************** require_once "../shared/header.php"; echo $loc->getText("Classification type, %desc%, has been added.", array('desc' => $dm->getDescription())); ?> <br><br> <a href="../admin/mbr_classify_list.php"><?php echo $loc->getText("return to member classification list"); ?> </a> <?php require_once "../shared/footer.php";
<?php require_once "../shared/common.php"; $tab = "home"; $nav = "license"; include "../shared/header.php"; $loc = new Localize(OBIB_LOCALE, $tab); ?> <h1><?php echo $loc->getText("licenseHeading"); ?> </h1> <br> <pre> <a href="#en">Versión oficial en ingles</a> <a href="#espa">Versión no oficial en español</a></br></br> </br><a name="en">Versión oficial en ingles</a></br> GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your
"> <td width="100%" class="title" valign="top"> <?php if (OBIB_LIBRARY_IMAGE_URL != "") { echo "<img align=\"middle\" src=\"" . H(OBIB_LIBRARY_IMAGE_URL) . "\" border=\"0\">"; } if (!OBIB_LIBRARY_USE_IMAGE_ONLY) { echo " " . H(OBIB_LIBRARY_NAME); } ?> </td> <td valign="top"> <table class="primary" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="title" nowrap="yes"><font class="small"><?php echo $headerLoc->getText("headerTodaysDate"); ?> </font></td> <td class="title" nowrap="yes"><font class="small"><?php echo H(date($headerLoc->getText("headerDateFormat"))); ?> </font></td> </tr> <tr> <td class="title" nowrap="yes"><font class="small"><?php if (OBIB_LIBRARY_HOURS != "") { echo $headerLoc->getText("headerLibraryHours"); } ?> </font></td> <td class="title" nowrap="yes"><font class="small"><?php
<?php /* This file is part of a copyrighted work; it is distributed with NO WARRANTY. * See the file COPYRIGHT.html for more details. */ require_once "../shared/common.php"; $tab = "home"; $nav = "home"; require_once "../shared/header.php"; require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, $tab); ?> <h1><?php echo $loc->getText("indexHeading"); ?> </h1> <?php # echo $loc->getText("searchResults",array("items"=>0))."<br>"; ?> <?php echo $loc->getText("indexIntro"); ?> <br><br> <table class="primary"> <tr> <th><?php echo $loc->getText("indexTab"); ?>
<script language="JavaScript1.1" > /* This file is part of a copyrighted work; it is distributed with NO WARRANTY. * See the file COPYRIGHT.html for more details. */ // JavaScript Document //------------------------------------------------------------------------------ // lookup Javascript lkup = { <?php require_once REL(__FILE__, "../classes/Localize.php"); $jsLoc = new Localize(OBIB_LOCALE, $tab); echo "z3950Search\t\t\t\t:'" . $jsLoc->getText("lookup_z3950Search") . "',\n"; echo "isbn\t\t\t\t\t\t\t:'" . $jsLoc->getText("lookup_isbn") . "',\n"; echo "issn\t\t\t\t\t\t\t:'" . $jsLoc->getText("lookup_issn") . "',\n"; echo "lccn\t\t\t\t\t\t\t:'" . $jsLoc->getText("lookup_lccn") . "',\n"; echo "title\t\t\t\t\t\t\t:'" . $jsLoc->getText("lookup_title") . "',\n"; echo "author\t\t\t\t\t\t:'" . $jsLoc->getText("lookup_author") . "',\n"; echo "keyword\t\t\t\t\t\t:'" . $jsLoc->getText("lookup_keyword") . "',\n"; echo "publisher\t\t\t\t\t:'" . $jsLoc->getText("lookup_publisher") . "',\n"; echo "pubLoc\t\t\t\t\t\t:'" . $jsLoc->getText("lookup_pubLoc") . "',\n"; echo "pubDate\t\t\t\t\t\t:'" . $jsLoc->getText("lookup_pubDate") . "',\n"; echo "andOpt\t\t\t\t\t\t:'" . $jsLoc->getText("lookup_andOpt") . "',\n"; echo "search\t\t\t\t\t\t:'" . $jsLoc->getText("lookup_search") . "',\n"; echo "abandon\t\t\t\t\t\t:'" . $jsLoc->getText("lookup_abandon") . "',\n"; echo "repository\t\t\t\t:'" . $jsLoc->getText("lookup_repository") . "',\n"; echo "yaz_setup_failed\t:'" . $jsLoc->getText("lookup_yazSetupFailed") . "',\n"; echo "badQuery\t\t\t\t\t:'" . $jsLoc->getText("lookup_badQuery") . "',\n"; echo "patience\t\t\t\t\t:'" . $jsLoc->getText("lookup_patience") . "',\n"; echo "resetInstr\t\t\t\t:'" . $jsLoc->getText("lookup_resetInstr") . "',\n"; echo "goBack\t\t\t\t\t\t:'" . $jsLoc->getText("lookup_goBack") . "',\n";
$focus_form_field = "protocol"; require_once REL(__FILE__, "../functions/inputFuncs.php"); require_once REL(__FILE__, "../shared/logincheck.php"); require_once REL(__FILE__, "../shared/header.php"); require_once REL(__FILE__, "../classes/Localize.php"); $loc = new Localize(OBIB_LOCALE, $tab); ?> <form id="editForm" name="editForm" method="POST" > <h5 id="updateMsg"></h5> <table class="primary"> <tbody> <tr> <th colspan="2" nowrap="yes" align="left"> <?php echo $loc->getText("lookup_optsSettings"); ?> </th> </tr> <tr> <td nowrap="true" class="primary"> <label for="protocol"><?php echo $loc->getText("lookup_optsProtocol"); ?> </label> </td> <td valign="top" class="primary"> <select id="protocol" name="protocol"> <option value=" "> </option> <option value="YAZ">YAZ</option> <option value="SRU">SRU</option>
require_once "../shared/logincheck.php"; showForm($postVars); } else { $restrictInDemo = true; require_once "../shared/logincheck.php"; $biblio = postVarsToBiblio($postVars); $pageErrors = array(); if (!$biblio->validateData()) { $pageErrors = array_merge($pageErrors, biblioToPageErrors($biblio)); } $pageErrors = array_merge($pageErrors, customFieldErrors($biblio)); if (!empty($pageErrors)) { showForm($postVars, $pageErrors); } else { $bibid = insertBiblio($biblio); $msg = $loc->getText("biblioNewSuccess"); header("Location: ../shared/biblio_view.php?bibid=" . U($bibid) . "&msg=" . U($msg)); } } } function postVarsToBiblio($post) { require_once "../classes/Biblio.php"; require_once "../classes/BiblioField.php"; $biblio = new Biblio(); $biblio->setMaterialCd($post["materialCd"]); $biblio->setCollectionCd($post["collectionCd"]); $biblio->setCallNmbr1($post["callNmbr1"]); $biblio->setCallNmbr2($post["callNmbr2"]); $biblio->setCallNmbr3($post["callNmbr3"]); $biblio->setLastChangeUserid($_SESSION["userid"]);
#* Checking for post vars. Go back to form if none found. #**************************************************************************** if (count($_POST) == 0 && count($_GET) == 0) { header("Location: ../circ/checkin_form.php?reset=Y"); exit; } if ($_GET[barcodeNmbr]) { $barcode = trim($_GET[barcodeNmbr]); } else { $barcode = trim($_POST["barcodeNmbr"]); } #**************************************************************************** #* Edit input #**************************************************************************** if (!ctypeAlnum($barcode)) { $pageErrors["barcodeNmbr"] = $loc->getText("shelvingCartErr1"); $postVars["barcodeNmbr"] = $barcode; $_SESSION["postVars"] = $postVars; $_SESSION["pageErrors"] = $pageErrors; header("Location: ../circ/checkin_form.php"); exit; } #**************************************************************************** #* Ready copy record #**************************************************************************** $copyQ = new BiblioCopyQuery(); $copyQ->connect(); if ($copyQ->errorOccurred()) { $copyQ->close(); displayErrorPage($copyQ); }
} showForm($postVars); } else { $restrictInDemo = true; require_once "../shared/logincheck.php"; $biblio = postVarsToBiblio($postVars); $pageErrors = array(); if (!$biblio->validateData()) { $pageErrors = array_merge($pageErrors, biblioToPageErrors($biblio)); } $pageErrors = array_merge($pageErrors, customFieldErrors($biblio)); if (!empty($pageErrors)) { showForm($postVars, $pageErrors); } else { updateBiblio($biblio); $msg = $loc->getText("biblioEditSuccess"); header("Location: ../shared/biblio_view.php?bibid=" . U($postVars['bibid']) . "&msg=" . U($msg)); } } } function bibidToPostVars($bibid) { require_once "../classes/BiblioQuery.php"; $biblioQ = new BiblioQuery(); $biblioQ->connect(); if ($biblioQ->errorOccurred()) { $biblioQ->close(); displayErrorPage($biblioQ); } if (!($biblio = $biblioQ->doQuery($bibid))) { $biblioQ->close();
} if (!$staffQ->insert($staff)) { $staffQ->close(); displayErrorPage($staffQ); } $staffQ->close(); #************************************************************************** #* Destroy form values and errors #************************************************************************** unset($_SESSION["postVars"]); unset($_SESSION["pageErrors"]); #************************************************************************** #* Show success page #************************************************************************** require_once "../shared/header.php"; echo $loc->getText("adminStaff_Staffmember"); ?> <?php echo H($staff->getFirstName()); ?> <?php echo H($staff->getLastName()); echo $loc->getText("adminStaff_new_Added"); ?> <br><br> <a href="../admin/staff_list.php"><?php echo $loc->getText("adminStaff_Return"); ?> </a> <?php
//echo H("$codes[$j]--$ident--$data")."<br />\n"; if (trim($data) != "" and trim($codes[$j]) !== "") { $f = new BiblioField(); $f->setTag($codes[$j]); $f->setSubfieldCd($ident); $f->setFieldData($data); $biblio->addBiblioField($codes[$j] . $ident, $f); } } $j++; } array_push($biblios, $biblio); } if ($_POST["test"] == "true") { foreach ($biblios as $biblio) { echo '<h3>' . $loc->getText("MarcUploadMarcRecord") . '</h3>'; echo '<table><tr>'; echo '<th>' . $loc->getText("MarcUploadTag") . '</th>'; echo '<th>' . $loc->getText("MarcUploadSubfield") . '</th>'; echo '<th>' . $loc->getText("MarcUploadData") . '</th>'; echo '</tr>'; foreach ($biblio->getBiblioFields() as $field) { echo '<tr><td>' . H($field->getTag()) . '</td>'; echo '<td>' . H($field->getSubfieldCd()) . '</td>'; echo '<td>' . H($field->getFieldData()) . '</td></tr>'; } echo '</table>'; } echo '<hr /><h3>' . $loc->getText("MarcUploadRawData") . '</h3>'; echo '<pre>'; readfile($_FILES["usmarc_data"]["tmp_name"]);
$tab = "circulation"; $nav = "view"; $returnNav = "../circ/mbr_view.php?mbrid=" . U($mbrid); } $restrictInDemo = TRUE; require_once "../shared/logincheck.php"; require_once "../classes/BiblioHoldQuery.php"; require_once "../functions/errorFuncs.php"; require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, "shared"); #************************************************************************** #* Delete hold #************************************************************************** // we need to also insert into status history table $holdQ = new BiblioHoldQuery(); $holdQ->connect(); if ($holdQ->errorOccurred()) { $holdQ->close(); displayErrorPage($holdQ); } $rc = $holdQ->delete($bibid, $copyid, $holdid); if (!$rc) { $holdQ->close(); displayErrorPage($copyQ); } $holdQ->close(); #************************************************************************** #* Go back to member view #************************************************************************** $msg = $loc->getText("holdDelSuccess"); header("Location: " . $returnNav . "&msg=" . U($msg));
if ($histQ->errorOccurred()) { $histQ->close(); displayErrorPage($histQ); } if (!$histQ->queryByMbrid($mbrid)) { $histQ->close(); displayErrorPage($histQ); } #************************************************************************** #* Show biblio checkout history #************************************************************************** require_once "../shared/header.php"; ?> <h1><?php echo $loc->getText("mbrHistoryHead1"); ?> </h1> <table class="primary"> <tr> <th valign="top" nowrap="yes" align="left"> <?php echo $loc->getText("mbrHistoryHdr1"); ?> </th> <th valign="top" nowrap="yes" align="left"> <?php echo $loc->getText("mbrHistoryHdr2"); ?> </th> <th valign="top" nowrap="yes" align="left">
$nav = ""; $focus_form_name = "loginform"; $focus_form_field = "username"; require_once "../shared/get_form_vars.php"; require_once "../shared/header.php"; require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, "shared"); ?> <br> <center> <form name="loginform" method="POST" action="../shared/login.php"> <table class="primary"> <tr> <th><?php echo $loc->getText("loginFormTbleHdr"); ?> :</th> </tr> <tr> <td valign="top" class="primary" align="left"> <table class="primary"> <tr> <td valign="top" class="noborder"> <?php echo $loc->getText("loginFormUsername"); ?> :</font> </td> <td valign="top" class="noborder"> <input type="text" name="username" size="20" maxlength="20"
$location->setCity($_POST["city"]); $_POST["city"] = $location->getCity(); $location->setState($_POST["state"]); $_POST["state"] = $location->getState(); $location->setStaffid($_POST["staffid"]); $_POST["staffid"] = $location->getStaffid(); $location->setPincode($_POST["pincode"]); $_POST["pincode"] = $location->getPincode(); $location->setDays($_POST["days"]); $_POST["days"] = $location->getDays(); $location->setTime($_POST["time"]); $_POST["time"] = $location->getTime(); $location->setLatitude($_POST["latitude"]); $_POST["latitude"] = $location->getLatitude(); $location->setLongitude($_POST["longitude"]); $_POST["longitude"] = $location->getLongitude(); $locQ = new LocationQuery(); $locQ->connect(); #************************************************************************** #* Insert new library member #************************************************************************** $locationid = $locQ->insert($location); $locQ->close(); #************************************************************************** #* Destroy form values and errors #************************************************************************** unset($_SESSION["postVars"]); unset($_SESSION["pageErrors"]); $msg = $loc->getText("locNewSuccess"); header("Location: ../circ/loc_view.php?locationid=" . U($locationid) . "&reset=Y&msg=" . U($msg)); exit;
function _print($type, $namel, $options, $list, $prefix) { global $loc; assert('$loc'); assert('!empty($namel)'); // $loc_share = new Localize(OBIB_LOCALE, "shared"); // //jalg multi 5-7-2015 $loc_share = new Localize(OBIB_LOCALE, "shared"); if ($type == 'session_id') { return; } if (isset($options['hidden'])) { //jalg multi 5-7-2015 return; } if ($type == 'group') { echo '<tr><td class="' . $prefix . 'group" colspan="2">'; Params::printForm($list, $prefix, $namel); echo '</td></tr>'; return; } if ($type == 'order_by') { $title = 'Sort By'; } elseif (isset($options['title']) && $options['title']) { $title = $options['title']; } else { $title = $namel[count($namel) - 1]; } $name = $prefix . array_shift($namel); foreach ($namel as $n) { $name .= '[' . $n . ']'; } if (isset($options['default'])) { $default = $options['default']; } else { $default = ''; } echo '<tr class="' . $prefix . 'param">'; echo '<td><label for="' . H($name) . '">'; echo $loc->getText($title); echo '</label></td><td>'; switch ($type) { case 'string': echo inputField('text', $name, $default); break; case 'date': echo inputField('date', $name, $default); break; case 'select': $l = array(); foreach ($list as $v) { list($n, $o) = $v; if (isset($o['title']) && $o['title']) { $l[$n] = $loc->getText($o['title']); } elseif (strcmp($name, "rpt_material_type") == 0 || strcmp($name, "rpt_collection") == 0) { $l[''] = $loc_share->getText("any"); foreach ($o as $i) { $l[$o['code']] = $o['description']; } } else { $l[$n] = $n; } } echo inputField('select', $name, $default, NULL, $l); break; case 'order_by': $l = array(); foreach ($list as $v) { list($n, $o) = $v; if (isset($o['title']) and $o['title']) { $l[$n] = $loc->getText($o['title']); } else { $l[$n] = $n; } $l[$n . '!r'] = $l[$n] . ' ' . $loc->getText('reportsReverse'); // $l[$n.'!r'] = $l[$n].' ('.$loc->getText("Reverse").')';// revisar de ALX } echo inputField('select', $name, $default, NULL, $l); break; default: assert(NULL); } echo '</td></tr>'; }
$tab = "admin"; $nav = "materials"; require_once "../classes/Dm.php"; require_once "../classes/DmQuery.php"; require_once "../functions/errorFuncs.php"; require_once "../shared/logincheck.php"; require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, $tab); require_once "../shared/header.php"; $dmQ = new DmQuery(); $dmQ->connect(); $dms = $dmQ->getWithStats("material_type_dm"); $dmQ->close(); ?> <a href="../admin/materials_new_form.php?reset=Y"><?php echo $loc->getText("admin_materials_listAddmaterialtypes"); ?> </a><br> <h1> <?php echo $loc->getText("admin_materials_listMaterialtypes"); ?> </h1> <table class="primary"> <tr> <th colspan="3" valign="top"> <font class="small">*</font><?php echo $loc->getText("admin_materials_listFunction"); ?> </th> <th valign="top" nowrap="yes"> <?php
$name = $_GET["name"]; #************************************************************************** #* Show confirm page #************************************************************************** require_once "../shared/header.php"; ?> <center> <form name="delstaffform" method="POST" action="../admin/theme_del.php?themeid=<?php echo HURL($themeid); ?> &name=<?php echo HURL($name); ?> "> <?php echo $loc->getText("adminTheme_Deleteconfirm"); echo H($name); ?> ?<br><br> <input type="submit" value=" <?php echo $loc->getText("adminDelete"); ?> " class="button"> <input type="button" onClick="self.location='../admin/theme_list.php'" value=" <?php echo $loc->getText("adminCancel"); ?> " class="button"> </form> </center> <?php include "../shared/footer.php";
<?php /* This file is part of a copyrighted work; it is distributed with NO WARRANTY. * See the file COPYRIGHT.html for more details. */ require_once "../shared/common.php"; $tab = "admin"; $nav = "checkout_privs"; $restrictInDemo = true; require_once "../shared/logincheck.php"; require_once "../classes/CheckoutPrivsQuery.php"; require_once "../functions/errorFuncs.php"; require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, $tab); #**************************************************************************** #* Checking for post vars. Go back to form if none found. #**************************************************************************** if (!isset($_POST['material_cd']) or !isset($_POST['classification']) or !isset($_POST['checkout_limit']) or !isset($_POST['renewal_limit'])) { header("Location: ../admin/checkout_privs_list.php"); exit; } $privQ = new CheckoutPrivsQuery(); $privQ->connect(); $privQ->update($_POST['material_cd'], $_POST['classification'], $_POST['checkout_limit'], $_POST['renewal_limit']); $privQ->close(); header("Location: ../admin/checkout_privs_list.php?msg=" . U($loc->getText('Privileges updated')));
exit; } #************************************************************************** #* Show search results #************************************************************************** if ($tab == "opac") { require_once "../shared/header_opac.php"; } else { require_once "../shared/header.php"; } require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, "shared"); # Display no results message if no results returned from search. if ($biblioQ->getRowCount() == 0) { $biblioQ->close(); echo $loc->getText("biblioSearchNoResults"); require_once "../shared/footer.php"; exit; } ?> <!--************************************************************************** * Javascript to post back to this page ************************************************************************** --> <script language="JavaScript" type="text/javascript"> <!-- function changePage(page,sort) { document.changePageForm.page.value = page; document.changePageForm.sortBy.value = sort; document.changePageForm.submit();
require_once "../shared/common.php"; $tab = "admin"; $nav = "checkout_privs"; require_once "../classes/CheckoutPrivsQuery.php"; require_once "../functions/errorFuncs.php"; require_once "../shared/logincheck.php"; require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, $tab); require_once "../shared/header.php"; $privsQ = new CheckoutPrivsQuery(); $privsQ->connect(); $privs = $privsQ->getAll(); $privsQ->close(); ?> <h1><?php echo $loc->getText("Checkout Privileges"); ?> </h1> <table class="primary"> <tr> <th valign="top"><?php echo $loc->getText("function"); ?> </th> <th valign="top"> <?php echo $loc->getText("Material Type"); ?> </th> <th valign="top"> <?php
<?php /* This file is part of a copyrighted work; it is distributed with NO WARRANTY. * See the file COPYRIGHT.html for more details. */ require_once "../classes/Localize.php"; $navLoc = new Localize(OBIB_LOCALE, "navbars"); if (isset($_SESSION["userid"])) { $sess_userid = $_SESSION["userid"]; } else { $sess_userid = ""; } if ($sess_userid == "") { ?> <input type="button" onClick="self.location='../shared/loginform.php?RET=../reports/index.php'" value="<?php echo $navLoc->getText("login"); ?> " class="navbutton"> <?php } else { ?> <input type="button" onClick="self.location='../shared/logout.php'" value="<?php echo $navLoc->getText("logout"); ?> " class="navbutton"> <?php } ?> <br /><br /> <?php Nav::node('reportlist', 'Report List', '../reports/index.php');
#************************************************************************** $staffQ = new StaffQuery(); $staffQ->connect(); if ($staffQ->errorOccurred()) { $staffQ->close(); displayErrorPage($staffQ); } if (!$staffQ->resetPwd($staff)) { $staffQ->close(); displayErrorPage($staffQ); } $staffQ->close(); #************************************************************************** #* Destroy form values and errors #************************************************************************** unset($_SESSION["postVars"]); unset($_SESSION["pageErrors"]); #************************************************************************** #* Show success page #************************************************************************** require_once "../shared/header.php"; echo $loc->getText("adminStaff_pwd_reset_Passwordreset"); ?> <br><br> <a href="../admin/staff_list.php"><?php echo $loc->getText("adminStaff_Return"); ?> </a> <?php require_once "../shared/footer.php";
<input id="choiceBtn1" type="button" value="<?php echo $lookLoc->getText("lookup_goBack"); ?> " class="button" /> <span id="choiceSpace"> Search Results go here </span> <input id="choiceBtn2" type="button" value="<?php echo $lookLoc->getText("lookup_goBack"); ?> " class="button" /> </div> <div id="selectionDiv"> <?php $focus_form_name = "newbiblioform"; $focus_form_field = "materialCd"; $loc = new Localize(OBIB_LOCALE, $tab); $headerWording = $loc->getText("biblioNewFormLabel"); ## we use original biblio edit screen, but will replace existing 'Cancel' button print '<form name="newbiblioform" method="POST" action="../catalog/biblio_new.php" >'; include "../catalog/biblio_fields.php"; ?> </div> <?php ## needed for all cases include "../shared/footer.php";
<?php /* This file is part of a copyrighted work; it is distributed with NO WARRANTY. * See the file COPYRIGHT.html for more details. */ require_once "../classes/Localize.php"; $navloc = new Localize(OBIB_LOCALE, "navbars"); ?> <input type="button" onClick="self.location='../shared/logout.php'" value="<?php echo $navloc->getText("Logout"); ?> " class="navbutton"><br /> <br /> <?php if ($nav == "searchform") { ?> » <?php echo $navloc->getText("memberSearch"); ?> <br> <?php } else { ?> <a href="../circ/index.php" class="alt1"><?php echo $navloc->getText("memberSearch"); ?> </a><br> <?php } ?>