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


PHP search_form函数代码示例

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


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

示例1: bt_add_search_form

 public function bt_add_search_form($args)
 {
     ob_start();
     global $formID;
     $formID = uniqid('formid');
     search_form($args);
     return ob_get_clean();
 }
开发者ID:rockymontana,项目名称:jano-wp-woocommerce-advanced-search,代码行数:8,代码来源:bt-search.php

示例2: search

function search()
{
    global $vars;
    if (isset($vars['searchstring'])) {
        return search_results();
    }
    return search_form();
}
开发者ID:noprom,项目名称:cryptdb,代码行数:8,代码来源:search.php

示例3: page_head

function page_head($title)
{
    global $book;
    global $chap_num;
    if ($book) {
        echo "<br><h2>{$chap_num}. {$title}</h2>\n";
        return;
    }
    if (defined("CHARSET")) {
        header("Content-type: text/html; charset=" . tr(CHARSET));
    }
    html_tag();
    echo "\n        <head>\n        <link rel=\"stylesheet\" type=\"text/css\" href=\"white.css\">\n        <link rel=\"shortcut icon\" href=\"logo/favicon.gif\">\n        <title>{$title}</title>\n        </head>\n        <body bgcolor='ffffff'>\n        <table width='100%'>\n        <tr>\n        <td><center><h1>{$title}</h1></center>\n        <td align=right><a href=index.php><img src=\"logo/www_logo.gif\" alt=\"BOINC logo\"></a>\n        <br>\n";
    search_form();
    echo "\n        </td>\n        </tr></table>\n        <hr size=1>\n    ";
}
开发者ID:nicolas17,项目名称:boincgit-test,代码行数:16,代码来源:docutil.php

示例4: aut_search_form

function aut_search_form($form, &$form_state)
{
    // Get custom search form
    $form = search_form($form, $form_state);
    // Cleanup
    $form['#attributes']['class'][] = 'pull-right';
    $form['basic']['keys']['#title'] = '';
    $form['basic']['keys']['#attributes']['class'][] = 'input-medium search-query';
    $form['basic']['keys']['#attributes']['placeholder'] = t('Search this site...');
    unset($form['basic']['submit']);
    unset($form['basic']['#type']);
    unset($form['basic']['#attributes']);
    $form += $form['basic'];
    unset($form['basic']);
    return $form;
}
开发者ID:navster,项目名称:camp-adair,代码行数:16,代码来源:template.php

示例5: search

/**
 * search
 *
 * @since 1.2.1
 * @deprecated 2.0.0
 *
 * @package Redaxscript
 * @category Search
 * @author Henry Ruhs
 */
function search()
{
    search_form();
}
开发者ID:ITw3,项目名称:redaxscript,代码行数:14,代码来源:search.php

示例6: list_search_form

function list_search_form($crit, $method)
{
    $methods = array('id' => gTxt('ID'), 'title_body_excerpt' => gTxt('title_body_excerpt'), 'section' => gTxt('section'), 'categories' => gTxt('categories'), 'keywords' => gTxt('keywords'), 'status' => gTxt('status'), 'author' => gTxt('author'), 'article_image' => gTxt('article_image'), 'posted' => gTxt('posted'), 'lastmod' => gTxt('article_modified'));
    return search_form('list', 'list', $crit, $methods, $method, 'title_body_excerpt');
}
开发者ID:joebushi,项目名称:textpattern,代码行数:5,代码来源:txp_list.php

示例7: tra

    echo "\n        <tr><td class=heading_left>\n    <a href=https://www.facebook.com/BOINC-32672338584/><img width=36 src=images/facebook_logo.jpg align=left title='BOINC on Facebook'></a>\n    <a href=https://plus.google.com/+boinc><img width=36 src=images/google_plus_logo.jpg align=left title='BOINC on Google+'></a>\n        <center>\n        <span class=section_title>" . tra("Volunteer") . "</span>\n        <br>\n        <a class=heading href=download.php><b>" . tra("Download") . "</b></a>\n        &middot; <a class=heading href=\"/wiki/BOINC_Help\"><b>" . tra("Help") . "</b></a>\n        &middot; <a class=heading href=\"wiki/User_manual\"><b><span class=nobr>" . tra("Documentation") . "</span></b></a> \n        &middot; <a class=heading href=addons.php><b><span class=nobr>" . tra("Add-ons") . "</span></b></a> \n        &middot; <a class=heading href=links.php><b><span class=nobr>" . tra("Links") . "</span></b></a> \n        </center>\n        </td></tr>\n        <tr><td>\n        <p>\n        " . tra("Use the idle time on your computer (Windows, Mac, Linux, or Android) to cure diseases, study global warming, discover pulsars, and do many other types of scientific research.  It's safe, secure, and easy:") . "\n        <ol>\n        <li> <a href=projects.php>" . tra("Choose projects") . "</a>\n        <li> <a href=download.php>" . tra("Download BOINC software") . "</a>\n        <li> " . tra("Enter an email address and password.") . "\n        </ol>\n        <p>\n        " . sprintf(tra("Or, if you run several projects, try an %saccount manager%s such as %sGridRepublic%s or %sBAM!%s. "), "<a href=\"wiki/Account_managers\">", "</a>", "<a href=\"https://www.gridrepublic.org\">", "</a>", "<a href=\"https://bam.boincstats.com/\">", "</a>") . "\n        <p>\n        For Android devices, download the BOINC\n" . "\n        app from the Google Play Store or (for Kindle) the Amazon App Store.\n" . "\n        </td></tr>\n    ";
}
function show_create()
{
    echo "\n        <tr><td class=heading_left>\n        <center>\n        <span class=section_title>" . tra("Compute with BOINC") . "</span>\n        <br>\n        <b><a class=heading href=\"trac/wiki/ProjectMain\">" . tra("Documentation") . "</a></b>\n        &middot; <b><a class=heading href=\"trac/wiki/ServerUpdates\">" . tra("Software updates") . "</a></b>\n        </center>\n        </td></tr>\n        <tr><td>\n        <ul>\n        <li>\n    ", tra("%1Scientists%2: use BOINC to create a %3volunteer computing project%4, giving you the power of thousands of CPUs and GPUs.", "<b>", "</b>", "<a href=volunteer.php>", "</a>"), "<li>", tra("%1Universities%2: use BOINC to create a %3Virtual Campus Supercomputing Center%4.", "<b>", "</b>", "<a href=\"trac/wiki/VirtualCampusSupercomputerCenter\">", "</a>"), "<li>", tra("%1Companies%2: use BOINC for %3desktop Grid computing%4.", "<b>", "</b>", "<a href=dg.php>", "</a>"), " </ul>\n        </td></tr>\n    ";
}
function show_other()
{
    echo "\n        <tr><td class=heading_left>\n        <center>\n        <span class=section_title>" . tra("About BOINC") . "</span>\n        </center>\n        </td></tr>\n        <tr><td>\n            <table width=100%>\n            <tr valign=top> <td>\n            <center><font size=+1>Project</font></center>\n                <ul>\n                <li> <a href=\"dev/\">" . tra("Message boards") . "</a>\n                <li> <a href=\"trac/wiki/EmailLists\">" . tra("Email lists") . "</a>\n                <li> <a href=\"trac/wiki/BoincEvents\">" . tra("Events") . "</a>\n                <li> <a href=logo.php>Logos and graphics</a>\n                <li> <a href=\"trac/wiki/ProjectGovernance\">Governance</a>\n                <li> <a href=\"trac/wiki/ProjectPeople\">Contact</a>\n                </ul>\n            </td><td>\n            <center><font size=+1>Software</font></center>\n                <ul>\n                <li> <a href=trac/wiki/SourceCodeGit>" . tra("Source code") . "</a>\n                <li> <a href=https://github.com/BOINC/boinc/issues>Report bugs</a>\n                <li> <a href=\"trac/wiki/SoftwareBuilding\">" . tra("Building BOINC") . "</a>\n                <li> <a href=\"trac/wiki/SoftwareDevelopment\">" . tra("Design documents") . "</a>\n                <li> <a href=\"trac/wiki/DevProcess\">" . tra("Development process") . "</a>\n                <li> <a href=\"trac/wiki/DevProjects\">" . tra("Volunteer") . "</a>\n                <li> <a href=\"trac/wiki/SoftwareAddon\">" . tra("APIs") . "</a>\n                </ul>\n            </td><td valign=top>\n\n            <center><font size=+1>Contribute</font></center>\n                <ul>\n                <li> <a href=trac/wiki/ContributePage>Overview</a>\n                <li> <a href=\"trac/wiki/DevProjects\">" . tra("Programming") . "</a>\n                <li> <a href=\"trac/wiki/TranslateIntro\">" . tra("Translation") . "</a>\n                <li> <a href=\"trac/wiki/AlphaInstructions\">" . tra("Testing") . "</a>\n                <li> <a href=\"trac/wiki/WikiMeta\">" . tra("Documentation") . "</a>\n                <li> <a href=\"http://boinc.berkeley.edu/wiki/Publicizing_BOINC\">" . tra("Publicity") . "</a>\n                </ul>\n            </td></tr></table>\n        </td></tr>\n    ";
}
function show_nsf()
{
    echo "\n        <tr><td>\n        <img align=left hspace=8 src=nsf.gif alt=\"NSF logo\">\n        BOINC is supported by the\n        <a href=\"http://nsf.gov\">National Science Foundation</a>\n        through awards SCI-0221529, SCI-0438443, SCI-0506411,\n                PHY/0555655, and OCI-0721124.\n        <span class=note>\n        Any opinions, findings, and conclusions or recommendations expressed in\n        this material are those of the author(s)\n        and do not necessarily reflect the views of the National Science Foundation.\n        </span>\n        </td></tr>\n    ";
}
header("Content-type: text/html; charset=utf-8");
html_tag();
$rh_col_width = 390;
echo "\n    <head>\n    <link rel=\"shortcut icon\" href=\"logo/favicon.gif\">\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"white.css\">\n    <link href=\"https://plus.google.com/117150698502685192946\" rel=\"publisher\" />\n    <title>BOINC</title>\n    <meta name=description content=\"BOINC is an open-source software platform for computing using volunteered resources\">\n    <meta name=keywords content=\"distributed scientific computing supercomputing grid SETI@home public computing volunteer computing \">\n    </head>\n    <body>\n    <table width=\"100%\" border=0><tr>\n    <td valign=top>\n    <img hspace=20 vspace=6 align=left src=\"logo/www_logo.gif\" alt=\"BOINC logo\">\n    </td>\n    <td align=center>\n    <span class=\"title\">\n    " . sprintf(tra("Open-source software for volunteer computing")) . "\n    </span><br><br>\n    </td>\n    <td width={$rh_col_width} align=right>\n";
search_form();
language_form();
echo "\n    </td></tr>\n    </table>\n\n    <table width=\"100%\" border=0 cellspacing=0 cellpadding=4>\n    <tr>\n    <td valign=top>\n    <table width=\"100%\" border=0 cellspacing=0 cellpadding=8>\n";
show_participate();
show_create();
show_other();
//show_nsf();
echo "\n    </table>\n    </td>\n";
echo " <td valign=top width=390>\n";
show_participant();
show_news_items();
echo "\n    </td></tr>\n    </table>\n";
page_tail(true, true);
开发者ID:aggroskater,项目名称:boinc,代码行数:31,代码来源:index.php

示例8: search_form

            }
        }
        echo '</td>';
        if ($tr % 3 == 0) {
            echo '</tr>';
        }
        $tr++;
    }
    echo '</form></table>';
}
if ($_SESSION['login'] == 'doctor') {
    //echo '<a href=print_report_doctor.php>Biochemistry Report</a><br>';
    echo '<table><tr><td bgcolor=lightblue><a href=logout.php>Logout</a></td>';
    echo '<td bgcolor=lightgreen><a href=doctor_help.html target=_blank>HELP</a></td></tr></table>';
}
search_form('print_report_doctor.php');
echo '<h2 style="page-break-before: always;"></h2>';
$search_str = 'select sample_id from sample ';
$where = array();
if (isset($_POST['submit'])) {
    foreach ($_POST as $key => $value) {
        if (substr($key, 0, 4) == 'chk_' && $value == 'on') {
            //echo substr($key,4).'='.$_POST[substr($key,4)].'<br>';
            $where[substr($key, 4)] = $_POST[substr($key, 4)];
        }
    }
}
//print_r($where);
$sample_id_where = '';
if (isset($where['from_sample_id']) && isset($where['to_sample_id'])) {
    $sample_id_where = 'sample_id between  \'' . $where['from_sample_id'] . '\' and \'' . $where['to_sample_id'] . '\' ';
开发者ID:nishishailesh,项目名称:myLIS,代码行数:31,代码来源:print_report_doctor.php

示例9: log_search_form

function log_search_form($crit, $method)
{
    $methods = array('ip' => gTxt('IP'), 'host' => gTxt('host'), 'page' => gTxt('page'), 'refer' => gTxt('referrer'), 'method' => gTxt('method'), 'status' => gTxt('status'));
    return search_form('log', 'log_list', $crit, $methods, $method, 'page');
}
开发者ID:psic,项目名称:websites,代码行数:5,代码来源:txp_log.php

示例10: link_search_form

function link_search_form($crit, $method)
{
    $methods = array('id' => gTxt('ID'), 'name' => gTxt('link_name'), 'description' => gTxt('description'), 'category' => gTxt('link_category'));
    return search_form('link', 'link_edit', $crit, $methods, $method, 'name');
}
开发者ID:joebushi,项目名称:textpattern,代码行数:5,代码来源:txp_link.php

示例11: discuss_search_form

function discuss_search_form($crit, $method)
{
    $methods = array('id' => gTxt('ID'), 'parent' => gTxt('parent'), 'name' => gTxt('name'), 'message' => gTxt('message'), 'email' => gTxt('email'), 'website' => gTxt('website'), 'ip' => gTxt('IP'));
    return search_form('discuss', 'list', $crit, $methods, $method, 'message');
}
开发者ID:bgarrels,项目名称:textpattern,代码行数:5,代码来源:txp_discuss.php

示例12: search_form

 function search_form($crit, $method)
 {
     $methods = array('id' => gTxt('ID'), 'name' => gTxt('name'), 'category' => gTxt('image_category'), 'author' => gTxt('author'));
     return search_form($this->event, 'list', $crit, $methods, $method, 'name');
 }
开发者ID:bgarrels,项目名称:textpattern,代码行数:5,代码来源:txp_image.php

示例13: empty

                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="<?php 
    echo empty($style['home']['navbar']) ? url('/') : $style['home']['navbar'];
    ?>
">
                        <?php 
    echo empty($style['logo']['navbar']) ? __('Home') : $style['logo']['navbar'];
    ?>
                    </a>
                </div>
                <div class="collapse navbar-collapse">
                    <div class="navbar-search hidden-sm hidden-md hidden-lg" role="search">
                        <?php 
    echo search_form(array('form_attributes' => array('id' => 'search-bar-nav', 'class' => 'navbar-form'), 'limiters' => @$style['search']));
    ?>
                    </div>
                    <?php 
    if ($style['navbar'] === true) {
        $navbar = public_nav_main();
    } else {
        $navbar = (include $style['navbar']);
    }
    echo $navbar->setUlClass('nav navbar-nav navbar-right');
    ?>
                </div>
            </nav>
        <?php 
}
?>
开发者ID:BGSU-LITS,项目名称:omeka-theme-bgsu,代码行数:31,代码来源:header.php

示例14: image_search_form

function image_search_form($crit, $method)
{
    $methods = array('id' => gTxt('ID'), 'name' => gTxt('name'), 'category' => gTxt('image_category'), 'author' => gTxt('author'), 'alt' => gTxt('alt_text'), 'caption' => gTxt('caption'));
    return search_form('image', 'image_list', $crit, $methods, $method, 'name');
}
开发者ID:bgarrels,项目名称:textpattern,代码行数:5,代码来源:txp_image.php

示例15: header_btn_group

      <div class="icon">
        <span class="ico-heart"></span>
      </div>
      <h1>Marital Status
      <small>Manage marital status</small>
      </h1>
    </div>
    <br class="cl" />
    <div class="head blue">
      <?php 
echo header_btn_group("maritals_status/to_excel", "maritals_status/add");
?>
    </div>
    <div id="search_bar" class="widget-header">
      <?php 
search_form(array("" => "By", "sn_name" => "Status"));
?>
    <table class="table fpTable table-hover">
      <thead>
        <tr>
          <th width="5%"><?php 
echo HeaderLink("SN ID", "sn_id", $col, $dir);
?>
</th>
          <th width="85%"><?php 
echo HeaderLink("Status Name", "sn_name", $col, $dir);
?>
</th>
          <th width="10%" class="action_cell" colspan="2">Action</th>
        </tr>
      </thead>
开发者ID:anggadjava,项目名称:payroll,代码行数:31,代码来源:index.php


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