Slides:
1. Display the latest headlines in the table (number 13 indicates the headlines and number 3 indicates the latest headlines)
[Phomeflashpic] 280,255, [/phomeflashpic]
2. Display the latest recommendation information of the topic and the title (number 2 indicates the recommendation of the topic, and the last number 0 indicates the latest topic)
[Phomeflashpic] 280,255, [/phomeflashpic]
Title + introduction (call method of smart tags)
[E: loop = {2, 1, 0, 0}] Time (in the format of m-d) + title
1. Smart tag call method:
Example:
[E: loop = {2, 7, 0, 0}] <li> <span> [<? = Date ('M-D', $ bqr [newstime])?>] </Span> <a href = "<? = $ Bqsr [titleurl]?> "Target =" _ blank "title =" <? = $ Bqr [title]?> "> <? = Esub ($ bqr [title], 42)?> </A> </li> [/e: loop]
2. Universal label call method:
Page content template :[! -- Empirenews. listtemp --] <! -- List. var1 --> [! -- Empirenews. listtemp --] list content Template: <li> <span> [! -- Newstime --] </span> <a href = "[! -- Titleurl --] "title = "[! -- Oldtitle --] "> [! -- Title --] </a> </li> homepage call (example): [ecmsinfo], 20, 0, 0 [/ecmsinfo] the number 12 is the template tag id.
Title + new Image (last update time)
[E: loop = {1, 5, 0, 0}] <? $ Newimg = ""; if (date ("m-d", $ bqr [truetime]) = date ("m-d ")) {$ newimg = " ";}?> <Li> <a href = "<? = $ Bqsr [titleurl]?> "Target =" _ blank "title =" <? = $ Bqr [title]?> "> <? = Esub ($ bqr [title], 44)?> </A> <? = $ Newimg?> </Li> [/e: loop]
Image list
[E: loop = {'news', 5, 18, 1}] <li> <a href = "<? = $ Bqsr [titleurl]?> "Title =" <? = $ Bqr [title]?> "Target =" _ blank "> "/> </A> </li> [/e: loop]
Navigation List
1. Smart tag call method:
[E: loop = {"select classid, classname from {$ dbtbpre} enewsclass where bclassid = 0 order by myorder, classid desc", 0, 24, 0}] <? Php $ classurl = sys_ReturnBqClassname ($ bqr, 9); // Obtain the topic address?> <Li> <a href = "<? = $ Classurl?> "> <? = $ Bqr [classname]?> </A> </li> [/e: loop]
2. Universal label call method:
First-level navigation of the home page: [showclasstemp] '0', 0 [/showclasstemp] number 12 is the current list page of the tag id (there are second-level columns that show second-level columns, no first-level displays ): [showclasstemp] 'selfinfo ', 0 [/showclasstemp] number 1 is the tag id
Secondary navigation drop-down menu:
Page template content: <li> <a href = "[! -- Bclassurl --] "> [! -- Bclassname --] </a> <ul> [! -- Empirenews. listtemp --] <! -- List. var1 --> [! -- Empirenews. listtemp --] </ul> </li> list content Template: <li> <a href = "[! -- Classurl --] "> [! -- Classname --] </a> </li> corresponding page call: [listshowclass] '0', 12, 0, 0 [/listshowclass] number 12 is the tag id
Example:
Css:
. Input_text {background: # FFF url (.. /images/sub_text.gif) no-repeat left; padding-left: 30px; color: # DFDFDF; height: 22px; border: 0; float: left; border: # d6d6d6 1px solid }. input_submit {background: url (.. /images/search.jpg) no-repeat; width: 50px; border: none; cursor: pointer; height: 22px; margin-left: 10px}
<Form action = "[! -- News. url --] e/search/index. php "method =" post "name =" searchform "id =" searchform "> <input name =" keyboard "type =" text "class =" input_text "id =" keyboard" value = "Enter the keyword" onfocus = "if (this. value = 'Enter the keyword ') {this. value = ''}; this. style. color = 'black'; "onblur =" if (this. value = ''| this. value = 'Enter the keyword ') {this. value = 'Enter the keyword '; this. style. color = '# DFDFDF ';} "/> <input type =" hidden "name =" show "value =" title "/> <input type =" hidden "name =" tempid "value =" 1 "/> <input name = "tbname" type = "hidden" value = "news"> <input type = "submit" name = "Submit" value = "" class = "input_submit" /> </form>
Topic Image call (tag template)
1. Universal label call method:
Page template content :[! -- Empirenews. listtemp --] <! -- List. var1 --> [! -- Empirenews. listtemp --] list content Template: <li> <a href = "[! -- Classurl --] "title = "[! -- Classname --] "> </a> </li> homepage call: [showclasstemp], 21, [/showclasstemp] 67 is id 21 is template
2. Smart tag calling method (the first 12 records ):
[E: loop = {"select classid, classname, classimg from {$ dbtbpre} enewsclass where bclassid = 0 order by myorder, classid desc limit 12", 0, 24, 0}] <? Php $ classurl = sys_ReturnBqClassname ($ bqr, 9); // Obtain the topic address?> <Li> <a href = "<? = $ Classurl?> "Target =" _ blank "> "> </A> <? = $ Bqr [classname]?> </Li> [/e: loop]
Links
1. Drop-down links with templates
Page template content: <select onchange = "window. open (this. options [selectedIndex]. value, '',''); "class =" selink "name = 'dsdsite '> [! -- Empirenews. listtemp --] <! -- List. var1 --> [! -- Empirenews. listtemp --] </select> list content Template: <option value = '[! -- Titleurl --] '> [! -- Title --] </option> corresponding page call: [ecmsinfo] 'Select lname as title, lurl as titleurl, lid as id from [! Db. pre!] Enewslink where classid = 1 order by lid limit 50', [/ecmsinfo] (14 is the number of the first 50 tags in the template)
2. Links:
[E: loop = {'Select lname, lurl, lpic from [! Db. pre!] Enewslink where checked = 1 and classid = 5 order by myorder, lid', 3, 24, 0}] <li> <a href = "<? = $ Bqr [lurl]?> "Target =" _ blank "> "> </A> </li> [/e: loop]
Message board Time format modification
<? = Format_datetime ($ r [lytime], 'Y-m-d H: I ')?>
<? = Format_datetime ($ r [lytime], 'Y-m-D')?>
If the content template field is null:
1. Example: if the source is empty, the "Yang Qing blog website" is displayed"
<? If ($ navinfor ['befrom'] = "") {echo 'yangqing blog website';} else {echo ''. $ navinfor [befrom]. '';}?>
2. If the author is empty and no content is output, add the style and the author.
If ($ navinfor ['write'] = "") {echo '';} else {echo 'author:'. $ navinfor [writer].'';}?>