当前位置: 首页>>代码示例>>PHP>>正文


PHP REL函数代码示例

本文整理汇总了PHP中REL函数的典型用法代码示例。如果您正苦于以下问题:PHP REL函数的具体用法?PHP REL怎么用?PHP REL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了REL函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: REL

<?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";
require_once REL(__FILE__, "../shared/logincheck.php");
require_once REL(__FILE__, "../functions/errorFuncs.php");
require_once REL(__FILE__, "LookupHosts.php");
require_once REL(__FILE__, 'LookupHostsQuery.php');
switch ($_REQUEST[mode]) {
    #-.-.-.-.-.-.-.-.-.-.-.-.-
    case 'getHosts':
        ## prepare list of hosts using LookupHost
        getHosts('all');
        # results are in $postVars[hosts] & $postVars[numHosts]
        echo json_encode($postVars[hosts]);
        break;
        #-.-.-.-.-.-.-.-.-.-.-.-.-
    #-.-.-.-.-.-.-.-.-.-.-.-.-
    case 'addNew':
        ## add new host database entry
        echo insertHost($_POST);
        break;
        #-.-.-.-.-.-.-.-.-.-.-.-.-
    #-.-.-.-.-.-.-.-.-.-.-.-.-
    case 'update':
        ## update host database entry
        echo updateHost($_POST);
        //echo"post=";print_r($_POST);
        break;
开发者ID:AevumDecessus,项目名称:docker-openbiblio,代码行数:31,代码来源:lookupHostsData.php

示例2: session_cache_limiter

 * @filesource
 *
 *    "Fred LaPlante" <flaplante@flos-inc.com>
 *
 */
session_cache_limiter(null);
$tab = "cataloging";
$nav = "lookup";
$helpPage = "biblioEdit";
$cancelLocation = "../catalog/index.php";
require_once "../shared/common.php";
require_once REL(__FILE__, "../functions/inputFuncs.php");
require_once REL(__FILE__, "../shared/logincheck.php");
require_once REL(__FILE__, "../shared/get_form_vars.php");
require_once REL(__FILE__, "../classes/Localize.php");
require_once REL(__FILE__, "../shared/header.php");
$lookLoc = new Localize(OBIB_LOCALE, $tab);
?>

	<div id="searchDiv">
		<form id="lookupForm" name="lookupForm" >
		<table class="primary" border="1">
		<tr>
			<th id="srchHdr" class="primary">
			<?php 
echo $lookLoc->getText("lookup_z3950Search") . ' ' . $hostName;
?>
			</th>
		</tr>
		
		<tr id="fldset1">
开发者ID:AevumDecessus,项目名称:docker-openbiblio,代码行数:31,代码来源:lookup.php

示例3: REL

<?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 REL(__FILE__, 'lookupYazFunc.php');
## support functions
$syntax = "usmarc";
$srchType = "rpn";
$hitNmbr = -1;
$marcFlds = array();
$subFlds = array();
# perform a search for wanted material
$qry = '@attr 1=' . $srchBy . ' ' . $lookupVal;
if (!empty($lookupVal2)) {
    $qry = '@and ' . $qry . ' @attr 1=' . $srchBy2 . ' ' . $lookupVal2;
}
if (!empty($lookupVal3)) {
    $qry = '@and ' . $qry . ' @attr 1=' . $srchBy3 . ' ' . $lookupVal3;
}
if (!empty($lookupVal4)) {
    $qry = '@and ' . $qry . ' @attr 1=' . $srchBy4 . ' ' . $lookupVal4;
}
if (!empty($lookupVal5)) {
    $qry = '@and ' . $qry . ' @attr 1=' . $srchBy5 . ' ' . $lookupVal5;
}
//echo 'Query specification is: ' . htmlspecialchars($qry) . '<br />';
//showMeComplex('host array',$postVars[hosts]);
for ($i = 0; $i < $postVars[numHosts]; $i++) {
    //			$ptr = ($useHost == -1)?$i:$useHost;
    $ptr = $i;
开发者ID:AevumDecessus,项目名称:docker-openbiblio,代码行数:31,代码来源:lookupYazSrch.php

示例4: REL

<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";
开发者ID:AevumDecessus,项目名称:docker-openbiblio,代码行数:31,代码来源:lookupJs.php

示例5: REL

				}
			} else {
				//console.log('w/???');
				//alert('want:'+optText+'; have:'+opts[i].text+' ('+opts[i].value+'); #'+i+' of '+opts.length);
			   if (optText == '-') return;
				if (opts[i].text.indexOf(optText)>0) {
					opts[i].selected = true;
					return;
				}
		  }
		}
	}
}
</script>

<?php 
if (ereg('/lookup2/lookup.php', $_SERVER['PHP_SELF'])) {
    require_once REL(__FILE__, "lookupJs.php");
} else {
    if (ereg('/lookup2/lookupHostsForm.php', $_SERVER['PHP_SELF'])) {
        require_once REL(__FILE__, "lookupHostsJs.php");
    } else {
        if (ereg('/lookup2/lookupOptsForm.php', $_SERVER['PHP_SELF'])) {
            require_once REL(__FILE__, "lookupOptsJs.php");
        } else {
            // for debug only. You should never get here. If you do
            // one or more of the above directories is incorrect for your system
            echo "file: {$_SERVER['PHP_SELF']} ?<br />Check your directory name spelling.";
        }
    }
}
开发者ID:aimakun,项目名称:odlib,代码行数:31,代码来源:customHead.php

示例6: REL

<?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";
require_once REL(__FILE__, "../functions/errorFuncs.php");
require_once REL(__FILE__, "LookupOpts.php");
require_once REL(__FILE__, "LookupOptsQuery.php");
switch ($_REQUEST[mode]) {
    #-.-.-.-.-.-.-.-.-.-.-.-.-
    case 'getOpts':
        getOpts();
        echo json_encode($postVars);
        break;
        #-.-.-.-.-.-.-.-.-.-.-.-.-
    #-.-.-.-.-.-.-.-.-.-.-.-.-
    case 'update':
        echo updateOpts($_POST);
        break;
        #-.-.-.-.-.-.-.-.-.-.-.-.-
    #-.-.-.-.-.-.-.-.-.-.-.-.-
    default:
        echo "<h4>invalid mode: {$_REQUEST['mode']}</h4><br />";
        break;
}
/*
  #****************************************************************************
  #*  Checking for query string flag to read data from database.
  #****************************************************************************
  if (isset($_GET["reset"])){
开发者ID:aimakun,项目名称:odlib,代码行数:31,代码来源:lookupOptsData.php

示例7: REL

<?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 REL(__FILE__, "../shared/global_constants.php");
require_once REL(__FILE__, "../classes/Query.php");
require_once REL(__FILE__, 'LookupOpts.php');
/******************************************************************************
 * LookupQuery data access component for lookupOpts table
 *
 * @author Fred LaPlante <flaplante@flos-inc.com>;
 * @version 1.0
 * @access public
 ******************************************************************************
 */
class LookupOptsQuery extends Query
{
    /****************************************************************************
     * Executes a query
     * @return boolean returns false, if error occurs
     * @access public
     ****************************************************************************
     */
    function execSelect()
    {
        $sql = "select * from lookup_settings";
        return $this->_query($sql, "Error accessing lookup settings information.");
    }
    /****************************************************************************
     * Fetches the row from the query result and populates the Settings object.
开发者ID:Giordano-Bruno,项目名称:GiordanoBruno,代码行数:31,代码来源:LookupOptsQuery.php

示例8: REL

<?php

/* This file is part of a copyrighted work; it is distributed with NO WARRANTY.
 * See the file COPYRIGHT.html for more details.
 *
 * This process attempts to implement a query in accordance with
 * SRU 1.1 and CQL 1.1 specifications . As written it uses the
 * 'Dublin Core' (dc) query schema and the 'marcxml' record schema for response.
 */
require_once REL(__FILE__, 'lookupSruFunc.php');
## support functions
$displayXML = FALSE;
$process = array();
$subfields = array();
$subfieldcount = 0;
#### SRU Create query using data from $_POST[] and .../srchVals.php
$queryStr = "{$sruQry}{$lookupVal}";
if (!empty($lookupVal2)) {
    $queryStr .= " and {$sruQry2}{$lookupVal2}";
}
if (!empty($lookupVal3)) {
    $queryStr .= " and {$sruQry3lookupVal3}";
}
if (!empty($lookupVal4)) {
    $queryStr .= " and {$sruQry4}{$lookupVal4}";
}
if (!empty($lookupVal5)) {
    $queryStr .= " and {$sruQry5}{$lookupVal5}";
}
$qry = "version=1.1" . "&operation=searchRetrieve" . "&query=" . $queryStr . "&recordPacking=xml" . "&maximumRecords={$postVars['maxHits']}" . "&recordSchema={$sruSchema}";
//echo "<br />query: $qry <br />";
开发者ID:AevumDecessus,项目名称:docker-openbiblio,代码行数:31,代码来源:lookupSruSrch.php

示例9: REL

/* This file is part of a copyrighted work; it is distributed with NO WARRANTY.
 * See the file COPYRIGHT.html for more details.
 */
# prepare user search criteria
require_once REL(__FILE__, 'lookupSrchVals.php');
$ttlHits = 0;
$numHosts = $postVars[numHosts];
//print("trying $numHosts host(s)<br />");
if ($postVars[protocol] == 'YAZ') {
    //print("using YAZ protocol<br />");
    require_once REL(__FILE__, 'lookupYazSrch.php');
} else {
    if ($postVars[protocol] == 'SRU') {
        //print("using SRU protocol<br />");
        require_once REL(__FILE__, 'lookupSruSrch.php');
    } else {
        echo "Invalid protocol specified.<br />";
    }
}
/*
		##=========================
		## following patch from Christoph Lange of Germany
		##=========================
		//	if ($srchBy == "7") $ttlHits = 1;	// searched by ISBN
		##=========================
*/
$initialCond = false;
//echo "ttl hits= $ttlHits<br />";
## TOO FEW
if ($ttlHits == 0) {
开发者ID:aimakun,项目名称:odlib,代码行数:30,代码来源:lookupSrchPrep.php


注:本文中的REL函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。