Hongmu Notes
Home Program Notes EmpireCMS search functionality – POST and GET parameters
Program Notes Empire cms

EmpireCMS search functionality – POST and GET parameters

EmpireCMS search functionality – POST and GET parameters
variable nameexplainExample
Search Form Submission URLPOST method: /e/search/index.php<form name="searchform" method="post" action="/e/search/index.php">
GET method: /e/search/?searchget=1/e/search/?searchget=1&;keyboard=Empire&;show=title
keyboardSearch Keyword Variable<input name="keyboard" type="text">
showSearch field variables (multiple fields should be separated by ",". The search fields must be fields for which search functionality is enabled in the backend system model).<input type="hidden" name="show" value="title,newstext">
classidSearch category ID (do not set to "unlimited"; for multiple categories, use "," to separate them; setting a parent category will search all its child categories)<input type="hidden" name="classid" value="1">
ztidSearch Topic ID (do not set to "Unlimited"; multiple topics can be separated by commas)<input type="hidden" name="ztid" value="1">
tbnameSearch by data table (requires combination with Search Template ID)
When performing a search for custom fields, ensure that the system model selected for the search template matches the intended model.
<input type="hidden" name="tbname" value="news">
tempidSearch template ID (typically used in conjunction with table-based search)<input type="hidden" name="tempid" value="1">
starttime and EndtimeThe start and end times for search publication (leave blank for no restriction; Format: 2008-02-27)<input name="starttime" type="text" value="0000-00-00" size="12">
<input name="endtime" type="text" value="0000-00-00" size="12">
startprice and endpriceThe starting and ending product prices (price field; if left blank, it means no limit)<input name="startprice" type="text" value="0" size="6">
<input name="endprice" type="text" value="0" size="6">
Search special fieldsidSearch by Information ID
keyboardSearch by keyword (also allows listing information by tags)
useridSearch by Publisher User ID
usernameSearch by publisher username
<input type="hidden" name="show" value="keyboard">
memberIf the value is 0, no restriction applies.
When the value is 1, the system will only search for information submitted by members.
When the value is 2, the system will only search for information added by the administrator.
<input type="hidden" name="member" value="1">
orderbySort field:
Specify the sorting field name for the search results page. If not specified, results will be sorted by publication time (newstime). The sorting field must be a field that has sorting enabled in the backend system model.
<input type="hidden" name="orderby" value="id">
myorderSort order:
0: Reverse order (Default)
1: Sequential arrangement
<input type="hidden" name="myorder" value="1">
andorSet the association relationships between multiple-condition queries; there are two types:
OR: The "OR" relationship (default)
and: indicates the conjunction "and"
<input type="hidden" name="andor" value="and">
hhLogical operator variable:
LT:less-than
GT:greater than
EQ:equal to
LE: Less than or equal to
GE: Greater than or equal to
NE:not equal to
IN: Contains (search keywords separated by spaces; each value is separated by a space)
BT: Range – between two values (search keywords should be separated by a space)
LK: Fuzzy Query (Default)
<input type="hidden" name="hh" value="LK">
微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

Empire CMS database statement & SQL statement format

Empire CMS database statement & SQL statement format Program Notes Empire cms

Introduction to Imperial CMS extended SQL program writing, basic examples of Imperial CMS database statements & SQL statement formats: Note: The following examples are based on placing PHP files in the system root directory. Example 1: Connect to MYSQL program. (a.php)<?php require('e/class/connect.php'); //Introduce database configuration files and public function files requ…
👁 351
Empire CMS obtains the system COOKIE variable function getcvar()

Empire CMS obtains the system COOKIE variable function getcvar() Program Notes Empire cms

Get the system COOKIE variable function syntax: getcvar($var,$ecms) Description: $var: is the variable name $ecms: 0 is to set the foreground COOKIE variable, 1 is to set the background COOKIE variable. This parameter can be omitted and defaults to 0. Usage example: getcvar('mlusername'), get the user name of the front-end login member getcvar('loginu...
👁 295
Empire CMS smart label call field collection

Empire CMS smart label call field collection Program Notes Empire cms

Collect and classify all fields that support smart tag calls into Empire CMS smart tags: [e:loop={column ID/topic ID, number of items displayed, operation type, only display pictures with titles, additional SQL conditions, display sorting}] Template code content [/e:loop] Calling time: <?=date('m-d',$bqr[newstime])?> <?=dat…
👁 3748

Recommended reading

(Adaptive Mobile Version) Smart Storage Cabinet Website Template – pbootCMS Responsive Storage Cabinet Website Source Code (1045)

(Adaptive Mobile Version) Smart Storage Cabinet Website Template – pbootCMS Responsive Storage Cabinet Website Source Code (1045) Practical Collection pbootcms Template

An intelligent storage cabinet and responsive storage cabinet PbootCMS website template, compatible with both PC and WAP devices. The modern, tech-driven design is ideal for showcasing intelligent storage cabinet products, technical solutions, and industry applications. It enables smart storage companies to present their products online and attract both commercial and public customers. Template Display | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s...
👁 43
Summary of the lyrics

Summary of the lyrics Hobbies Memo notes

The Rhythm of Qie Point: Qie means a pore, where Qi and blood are deeply stored and accumulated. It is the reaction point of disease syndrome and can provide emergency treatment in clinical situations. The yang dimension connects the yang and the yin dimension builds a guest house. The yang-shoe walks away from the yang, and the yin-shoe crosses the letter. The pores of the lungs are the largest and warmest, and the spleen and stomach are connected to the Liangqiu. The heart and yin are small and old, and the liver and gallbladder are all in the outer mound. Jiaohuizong of Chemen of pericardium, and kidney water spring of Xijinmen. Song of the Jing Xing Yu Yuan Meridian Joint Acupoint Shaoshang Yuji and Taiyuan, passing through the canal Chi Ze Zefei...
👁 186
Responsive Website Development – Design-oriented Website Templates – 0600

Responsive Website Development – Design-oriented Website Templates – 0600 Practical Collection Yiyou template

An eyouCMS responsive website template designed for the website development and design industry. Its modern, tech-driven design style is ideal for showcasing website development projects, design works, technical services, and customer testimonials. This template helps website development agencies attract business clients looking to build websites online. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for YIYOU CMS | YIYOU...
👁 47
(Adaptive mobile version) Domestic Cleaning Service PBootCMS Website Template – Download Website Source Code for Domestic Service Companies – 0336

(Adaptive mobile version) Domestic Cleaning Service PBootCMS Website Template – Download Website Source Code for Domestic Service Companies – 0336 Practical Collection pbootcms Template

This is an adaptive mobile-friendly website template designed for domestic cleaning services and household service companies, built on the PbootCMS platform. Its fresh and professional design is ideal for showcasing cleaning services, domestic service personnel, and service workflows. It helps household service companies build a strong online brand image and attract households seeking domestic assistance. Template Overview | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.cn...
👁 66
(Adaptive mobile version) Washing Machine Website Template – Download Universal Machinery Equipment Website Source Code (1046)

(Adaptive mobile version) Washing Machine Website Template – Download Universal Machinery Equipment Website Source Code (1046) Practical Collection pbootcms Template

A dryer website template compatible with PbootCMS, supporting both PC and WAP devices. The professional and practical design is ideal for showcasing dryer equipment, industrial applications, and technical specifications. It helps machinery manufacturers showcase their products online and attract industrial customers. Template Display | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.cn...
👁 45
Solution to reinstall msvcp140.dll (dll file missing repair)

Solution to reinstall msvcp140.dll (dll file missing repair) Summary of pitfalls

msvcp140.dll is the default library file for programs compiled with Visual Studio 2010. This DLL can resolve a range of issues that may arise when certain large-scale games or applications fail to run due to the absence of this DLL in the Visual Studio 2010 compilation environment. msvcp140.dll is an essential DLL required for the execution of programs developed with Visual Studio 2010. Many users have encountered difficulties determining how to obtain or install msvcp140.dll...
👁 178