帝国帝国CMS分类信息 有效期字段搜索多条件搜索 教程

帝国cms教程  时间:2021-03-20  阅读:()

帝国CMS分类信息有效期字段搜索多条件搜索教程The expiration date set

The classification information is usually set to be valid, suchas: this information is left over N days. And so on. And everyoneis looking for ways to make sure that the validity of the periodis based on the actual, the number of days and the expiration.Let me share with you the details. (I' ll try to use the mostdetailed instructions. )

New fields in "management fields" in the "classificationinformation model" :

The field is set to:

Field name: enddate (this is an example, customiable)Field identification: self-determination

Field type: the small character (TEXT) length is emptyEnter the form display element: the date (date) length is alsoe mp t y

* other things are not optional. (the field sequence is filledwith Numbers. Self-determination is the association betweenadding information and submission)

Remember to reorder the "management system model" in theclassif ied information. (" input form template "and"foreground submission form template ")

Hit: input search term contribute a mandatory list templatecontent template can increase can modify such as hook (this canaccording to your requirements. If you want to collect, havethe words, please in acquisition lay a hook) .

Add the following code to the appropriate location in thecontent template page: (the lingo TAB SQL is changed as needed)-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

The period of validity:

[e: ] ecms_info where checked= 1 order by newstime desc, id desclimit 1 ' , 1, 24, 0}

<? P HP

$enddate= explode (" - ", $BQR [enddate] ) ; // enddate is thefield name. If there is any change, please change it all. I'vegot my blue.

$newstime= explode (" - ", $BQR [newstime]) ; // release timeformat: y-m-d H: I: s

$lt =mktime (0, 0, $enddate [1], $enddate [2], $enddate [0] ) ;$st = mktime (0, 0, $newstime [1], $newstime [2] , $newstime

[0]) ;

(1) overtime = $lt - $st;

Days = $overt ime / 86400;

If ($days < 0)

{

Echo "this information has expired"; / / Suggestions can beexchanged for pictures

}

The else

{

"The echo" is left with<b > < font color=red > ". "< /font >< / b > days"; / / CSS customised

}

? >

[/ e: loop]

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Refresh the classified information page.

Click on the field search

Search for classified information (such as custom fields) . Forexample, the classification information page displays:enterprise type: individual enterprise. Then click on theindividual enterprise to search for all information about"individual enterprise" in the classified information table.Write simple: < a href = "/! - news. Url - e/action/ListInfo/?Every [ ! --every-] &ph= 1&f ield name= [ ! -field name]" >[ ! - field name -] < / a >

OK, that' s it. That' s easy.

Three, multiple conditional search:

Example: (take my demo)

< FORM name = "searchform" method = "post" action = "/e/search/index.php" target = "_blank" >

< b > < font color = "# ff6600" > project query: < / font > </ b >

< input type = "hidden" name = "tbname" "value =" info "> <!The info is the table name - >

< input type = "hidden" name = "tempid" value = "2" > <! - 2is the search template ID to note that this template must bea classification information model - >

< input type = "hidden" name = "andor" value = "and" >

< select name = "classid" > <! The "classid" is the followingtext for field values - - >

< option value = "the > industry classification < / option >< option value = "105" > clothing box < / option >

"Option value=" 106 "> environmental saving energy</option>"Option value =" 107 "> meals < / option >

"Option value =" 108 "> decoration materials < / option >"Option value =" 109 "> technology network < / option >< option value = "$110" > healthcare < / option >

"Option value =" 111 "> fitness beauty < / option >

"Option value =" 112 "> home gift < / option >

"Option value =" 113 "> industrial instrument < / option >< option value = "114" > farm production < / option >"Option value =" 115 "> processing agent < / option >< option value = "116" > science and art < / option >< / select >

< input type = "hidden" name = "show []" value = "qylx". "--qylx is the name of the field name for the field value - >The input type = "hidden" name = "hh" "value =" EQ "> <! -- EQis the definitionof a search scope that canbe changed as needed-- >

< SELECT name = "keyboard []" "type =" text ">

< option value = "the > enterprise type < / option >

< option value = "individual single-battalion" > individualc amp < / opt i on >

"Option value =" state enterprise "> state enterprise < /option >

"Option value =" foreign enterprise "> foreign capitalenterprise < / option >

"Option value =" collective enterprise "> collectiveenterprise < / option >

"Option value =" sino-foreign joint venture "> sino-foreignjoint venture < / option >

< / select >

< input type = "hidden" name = "show []" value = "zsqy" >< input type = "hidden" name = "hh" "value =" EQ ">

< SELECT name = "keyboard []" "type =" text ">

< option value = "the > merchants area < / option >"Option value =" national "> national < / option >< option value = "Beijing" > Beijing < / option >< option value = "Shanghai" > Shanghai < / option >"Option value =" tianjin "> tianjin < / option >< option value = "chongqing" > chongqing < / option >"Option value =" hebei "> hebei < / option >

"Opt ion value =" henan "> henan < / opt ion >

< option value = "hubei" > hubei < / option >

"Option value =" shandong "> shandong < / option >< option value = "guangdong" > guangdong < / option >< option value = "guangxi" (>, guangxi) < / option >"Option value =" fujian "> fujian < / option >

"Option value =" jiangsu "> jiangsu < / option >

"Option value =" zhejiang "> zhejiang < / option >

"Opt ion value =" hunan "> hunan < / opt ion >

"Option value =" jiangxi "> jiangxi < / option >

"Option value =" jilin "> jilin < / option >

"Option value=" the heilongjiang ">heilongjiang < / option>< option value = "guizhou" > guizhou < / option >

< option value = "sichuan" > sichuan < / option >

< option value = "qinghai" > qinghai < / option >

"Opt ion value =" anhui "> anhui < / opt ion >

"Option value =" gansu "> gansu < / option >

"Option value =" ningxia "> ningxia < / option >

"Option value =" Inner Mongolia "> Inner Mongolia< / option >"Option value =" liaoning "> liaoning < / option >

"Option value =" shaanxi "> shaanxi < / option >

< option value = "yunnan" (> yunnan) < / option >

"Option value =" shanxi "> shanxi < / option >

< option value = "hainan" > hainan < / option >

< option value = "xinjiang" > xinjiang < / option >

< option value = "Tibet" > Tibet < / option >

< option value = "Hong Kong" > Hong Kong < / option >< option value = "macau" (macau) < / option >

< option value = "Taiwan" (> Taiwan < / option >)

< / select >

< input type = "hidden" name = "show []" value = "jmhy" >< input type = "hidden" name = "hh" "value =" EQ ">

< SELECT name = "keyboard []" "type =" text ">

< option value = "> join fee range < / option >

< option value = "detail discussion" >. < / option >

< option value = "free bonus" > free alliance fee < / option >< option value = "below $10,000" or "> 10000" < / option ><option value="$10,000~30,000" > 10,000~30,000</option>

织梦DEDECMS即将授权收费和维权模式 站长应对的几个方法

这两天在站长群里看到不少有使用DEDECMS织梦程序的朋友比较着急,因为前两天有看到来自DEDECMS,我们熟悉的织梦程序官方发布的公告,将会在10月25日开始全面商业用途的使用DEDECMS内容管理程序的会采用授权收费模式,如果我们有在个人或者企业商业用途的,需要联系且得到授权才可以使用,否则后面会通过维权的方式。对于这个事情,我们可能有些站长经历过,比如字体、图片的版权。以及有一些国内的CMS...

青云互联:洛杉矶CN2弹性云限时七折,Cera机房三网CN2gia回程,13.3元/月起

青云互联怎么样?青云互联是一家成立于2020年6月份的主机服务商,致力于为用户提供高性价比稳定快速的主机托管服务,目前提供有美国免费主机、香港主机、香港服务器、美国云服务器,让您的网站高速、稳定运行。目前,美国洛杉矶cn2弹性云限时七折,美国cera机房三网CN2gia回程 13.3元/月起,可选Windows/可自定义配置。点击进入:青云互联官网青云互联优惠码:七折优惠码:dVRKp2tP (续...

ReadyDedis:VPS全场5折,1G内存套餐月付2美元起,8个机房可选_服务器安装svn

ReadyDedis是一家2018年成立的国外VPS商家,由印度人开设,主要提供VPS和独立服务器租用等,可选数据中心包括美国洛杉矶、西雅图、亚特兰大、纽约、拉斯维加斯、杰克逊维尔、印度和德国等。目前,商家针对全部VPS主机提供新年5折优惠码,优惠后最低套餐1GB内存每月仅需2美元起,所有VPS均为1Gbps端口不限流量方式。下面列出几款主机配置信息。CPU:1core内存:1GB硬盘:25GB ...

帝国cms教程为你推荐
prohibited禁止(过去式)英语怎么说?flashftpFLASHFXP怎么用有没有详细的说明??wordpress模板wordpress模板和主题是一个概念么复制党,广告党绕路googlepr什么是Google PR值? 如何提高PR值?企业电子邮局求:什么是企业邮箱?(企业邮箱与普通个人邮箱的区别是什么?)ym.163.com免费企业邮箱cuteftpCuteFTP Pro如何使用?csamy温州商标注册温州注册公司在哪里注册三五互联股票三五互联是干什么的?
天津服务器租赁 国外vps租用 过期已备案域名 vir 站群服务器 谁的qq空间最好看 699美元 泉州电信 lol台服官网 域名接入 东莞数据中心 免费高速空间 免费cdn 微软服务器操作系统 美国盐湖城 php服务器 畅行云 大化网 免费主页空间 双十二促销 更多