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


PHP main_front_class::getAllTenderForSearch方法代码示例

本文整理汇总了PHP中main_front_class::getAllTenderForSearch方法的典型用法代码示例。如果您正苦于以下问题:PHP main_front_class::getAllTenderForSearch方法的具体用法?PHP main_front_class::getAllTenderForSearch怎么用?PHP main_front_class::getAllTenderForSearch使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在main_front_class的用法示例。


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

示例1: strtolower

<?php

require_once "main_includes/main_class.php";
$objac = new main_front_class();
$q = strtolower($_GET["q"]);
$pID = $_GET['pID'];
if (false) {
    return;
} else {
    $items = $objac->getAllTenderForSearch($pID);
    //print_r($items);
    foreach ($items as $key => $value) {
        if (strpos(strtolower($key), $q) !== false) {
            //echo "$key|$value\n";
        }
    }
}
开发者ID:kalpishs,项目名称:tender_managment,代码行数:17,代码来源:searchTenderNumber.php

示例2: filter

<?php

$searchTerm = $_GET['term'];
require_once "main_includes/main_class.php";
$au_obj = new main_front_class();
$items = $au_obj->getAllTenderForSearch($_COOKIE['tp_id']);
if (isset($_COOKIE['tp_id']) == 1 && $_COOKIE['tp_id'] != '') {
    $items = $au_obj->getAllTenderForSearch($_COOKIE['tp_id']);
    //$items = $au_obj->getAllTenderForSearch($_GET['pid']);
    $presidents = $items;
    function filter($president)
    {
        global $searchTerm;
        return stripos($president, $searchTerm) !== false;
    }
    print json_encode(array_values(array_filter($presidents, "filter")));
    //print_r(json_encode($items));
}
开发者ID:kalpishs,项目名称:tender_managment,代码行数:18,代码来源:presidents.php

示例3: array

require_once "main_includes/main_class.php";
$objac = new main_front_class();
/*
note:
this is just a static test version using a hard-coded countries array.
normally you would be populating the array out of a database

the returned xml has the following structure
<results>
	<rs>foo</rs>
	<rs>bar</rs>
</results>
*/
$aUsers = array("Ädams, Egbert", "Altman, Alisha", "Archibald, Janna", "Auman, Cody", "Bagley, Sheree", "Ballou, Wilmot", "Bard, Cassian", "Bash, Latanya", "Beail, May", "Black, Lux", "Bloise, India", "Blyant, Nora", "Bollinger, Carter", "Burns, Jaycob", "Carden, Preston", "Carter, Merrilyn", "Christner, Addie", "Churchill, Mirabelle", "Conkle, Erin", "Countryman, Abner", "Courtney, Edgar", "Cowher, Antony", "Craig, Charlie", "Cram, Zacharias", "Cressman, Ted", "Crissman, Annie", "Davis, Palmer", "Downing, Casimir", "Earl, Missie", "Eckert, Janele", "Eisenman, Briar", "Fitzgerald, Love", "Fleming, Sidney", "Fuchs, Bridger", "Fulton, Rosalynne", "Fye, Webster", "Geyer, Rylan", "Greene, Charis", "Greif, Jem", "Guest, Sarahjeanne", "Harper, Phyllida", "Hildyard, Erskine", "Hoenshell, Eulalia", "Isaman, Lalo", "James, Diamond", "Jenkins, Merrill", "Jube, Bennett", "Kava, Marianne", "Kern, Linda", "Klockman, Jenifer", "Lacon, Quincy", "Laurenzi, Leland", "Leichter, Jeane", "Leslie, Kerrie", "Lester, Noah", "Llora, Roxana", "Lombardi, Polly", "Lowstetter, Louisa", "Mays, Emery", "Mccullough, Bernadine", "Mckinnon, Kristie", "Meyers, Hector", "Monahan, Penelope", "Mull, Kaelea", "Newbiggin, Osmond", "Nickolson, Alfreda", "Pawle, Jacki", "Paynter, Nerissa", "Pinney, Wilkie", "Pratt, Ricky", "Putnam, Stephanie", "Ream, Terrence", "Rumbaugh, Noelle", "Ryals, Titania", "Saylor, Lenora", "Schofield, Denice", "Schuck, John", "Scott, Clover", "Smith, Estella", "Smothers, Matthew", "Stainforth, Maurene", "Stephenson, Phillipa", "Stewart, Hyram", "Stough, Gussie", "Strickland, Temple", "Sullivan, Gertie", "Swink, Stefanie", "Tavoularis, Terance", "Taylor, Kizzy", "Thigpen, Alwyn", "Treeby, Jim", "Trevithick, Jayme", "Waldron, Ashley", "Wheeler, Bysshe", "Whishaw, Dodie", "Whitehead, Jericho", "Wilks, Debby", "Wire, Tallulah", "Woodworth, Alexandria", "Zaun, Jillie");
$aInfo = array("Bedfordshire", "Buckinghamshire", "Cambridgeshire", "Cheshire", "Cornwall", "Cumbria", "Derbyshire", "Devon", "Dorset", "Durham", "East Sussex", "Essex", "Gloucestershire", "Hampshire", "Hertfordshire", "Kent", "Lancashire", "Leicestershire", "Lincolnshire", "Norfolk", "Northamptonshire", "Northumberland", "North Yorkshire", "Nottinghamshire", "Oxfordshire", "Shropshire", "Somerset", "Staffordshire", "Suffolk", "Surrey", "Warwickshire", "West Sussex", "Wiltshire", "Worcestershire", "Durham", "East Sussex", "Essex", "Gloucestershire", "Hampshire", "Hertfordshire", "Kent", "Lancashire", "Leicestershire", "Lincolnshire", "Norfolk", "Northamptonshire", "Northumberland", "North Yorkshire", "Nottinghamshire", "Oxfordshire", "Shropshire", "Somerset", "Staffordshire", "Suffolk", "Surrey", "Warwickshire", "West Sussex", "Wiltshire", "Worcestershire", "Durham", "East Sussex", "Essex", "Gloucestershire", "Hampshire", "Hertfordshire", "Kent", "Lancashire", "Leicestershire", "Lincolnshire", "Norfolk", "Northamptonshire", "Northumberland", "North Yorkshire", "Nottinghamshire", "Oxfordshire", "Shropshire", "Somerset", "Staffordshire", "Suffolk", "Surrey", "Warwickshire", "West Sussex", "Wiltshire", "Worcestershire", "Durham", "East Sussex", "Essex", "Gloucestershire", "Hampshire", "Hertfordshire", "Kent", "Lancashire", "Leicestershire", "Lincolnshire", "Norfolk", "Northamptonshire", "Northumberland", "North Yorkshire", "Nottinghamshire");
$aU = $objac->getAllTenderForSearch();
$input = strtolower($_GET['input']);
$len = strlen($input);
$limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 0;
$aResults = array();
$count = 0;
//	echo $_GET['idz'];
if ($len) {
    for ($i = 0; $i < count($aU); $i++) {
        // had to use utf_decode, here
        // not necessary if the results are coming from mysql
        //
        if (strtolower(substr(utf8_decode($aU[$i][0]), 0, $len)) == $input) {
            $count++;
            if ($aU[$i][1] == $_GET['idz']) {
                $aResults[] = array("id" => $i + 1, "value" => htmlspecialchars($aU[$i][0]));
开发者ID:kalpishs,项目名称:tender_managment,代码行数:31,代码来源:test.php


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