本文整理汇总了PHP中search::search_form方法的典型用法代码示例。如果您正苦于以下问题:PHP search::search_form方法的具体用法?PHP search::search_form怎么用?PHP search::search_form使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类search
的用法示例。
在下文中一共展示了search::search_form方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
$required_field_flag = 1;
$table_name = 'view';
include_once "../../include/basics/header.inc";
?>
<script src="view.js"></script>
<?php
//echo '<pre>';
//print_r($view);
//echo '<pre>';
if (!empty($view->query)) {
$view_result = view::result_list_in_table(base64_decode($view->query), $view->view_id, $pageno, $per_page, $query_string);
} else {
$view_result = "";
}
$search_form = search::search_form('view', 'views', 'view_search');
if (!empty($pagination)) {
$pagination_statement = $pagination->show_pagination($pagination, 'views', $pageno, $query_string);
}
if (!empty($msg)) {
$show_message = '<div id="dialog_box">';
foreach ($msg as $key => $value) {
$x = $key + 1;
$show_message .= 'Message ' . $x . ' : ' . $value . '<br />';
}
$show_message .= '</div>';
}
?>
<?php
require_once 'views_template.php';
示例2: empty
if (!empty($_GET['per_page'][0])) {
$s->setProperty('_per_page', $_GET['per_page'][0]);
}
$search->setProperty('_searching_class', $class);
$search->setProperty('_form_post_link', 'multi_select');
$search->setProperty('_initial_search_array', ${$class}->initial_search);
$search->setProperty('_hidden_fields', $hidden_field_a);
if (is_array($mode)) {
$search->setProperty('_search_mode', $mode[0]);
} else {
$search->setProperty('_search_mode', $mode);
}
if (property_exists(${$class}, 'search_functions')) {
$s->setProperty('_search_functions', ${$class}->search_functions);
}
$search_form = $search->search_form(${$class});
$table_name = empty($table_name) ? $class::$table_name : $table_name;
$primary_column = property_exists(${$class}, 'primary_column') ? $class::$primary_column : $table_name . '_id';
$pageno = !empty($_GET['pageno']) ? (int) $_GET['pageno'] : 1;
$per_page = !empty($_GET['per_page']) ? (int) $_GET['per_page'] : 0;
$_GET = $search_param_values;
$_GET['pageno'] = $pageno;
$_GET['class_name'] = $class;
$_GET['per_page'] = $per_page;
if (empty($_GET['per_page'])) {
if (!empty($_GET['per_page']) && ($_GET['per_page'] == "all" || $_GET['per_page'][0] == "all")) {
$per_page = 50000;
} else {
if (!empty($_GET['per_page'])) {
$per_page = is_array($_GET['per_page']) ? $_GET['per_page'][0] : $_GET['per_page'];
}
示例3:
<?php
require_once 'content.inc';
$search_form = search::search_form('content', 'contents', 'business_search');
if (!empty($pagination)) {
$pagination_statement = $pagination->show_pagination($pagination, 'contents', $pageno, $query_string);
}
require_once INC_BASICS . DS . "list_page.inc";
示例4:
<?php
$module_info = [array("module" => "po", "class" => "all_po_v", "key_field" => "shipment_number", "primary_column" => "po_header_id")];
$pageTitle = " PO - Find all POs ";
$view_path = "po_view";
$_GET['po_status'] = 'Approved';
include_once "../../include/basics/header.inc";
?>
<script type='text/javascript' src="po.js" ></script>
<?php
$search_form = search::search_form('all_po_v', 'expected_receipts', 'search_expected_receipts');
if (!empty($search_result)) {
// $search_result = po_header::instantiate_extra_fields($search_result);
// echo "<pre>";
// print_r($search_result);
$search_result_statement = search::search_result('po_receipt', $column_array, $search_result, $primary_column, $view_path, 'Y', 'Receive');
// $return_value['search_result'] = $search_result;
}
if (!empty($pagination)) {
$pagination_statement = $pagination->show_pagination($pagination, 'expected_receipts', $pageno, $query_string);
}
require_once INC_BASICS . DS . "list_page.inc";