/**
* Get the list of articles under the document category
*
* @ Access public
* @ Param integer $ cat_id
* @ Param integer $ page
* @ Param integer $ size
*
* @ Return array
*/
Get_cat_articles ($ Cat_id, $ page = 1, $ size = 20, $ requirement ='')
Array (5 ){
[5] => array (6 ){
["Id"] => string (1) "5"
["Title"] => string (12) "Company Profile"
["Short_title"] => string (12) "Company Profile"
["Author"] => string (6) "ECSHOP"
["Url"] => string (16) "article. php? Id = 5"
["Add_time"] => string (10) "2011-01-23"
}
[4] => array (6 ){
["Id"] => string (1) "4"
["Title"] => string (12) "Contact Us"
["Short_title"] => string (12) "Contact Us"
["Author"] => string (6) "ECSHOP"
["Url"] => string (16) "article. php? Id = 4"
["Add_time"] => string (10) "2011-01-23"
}
}
/**
* Obtain the details of the specified article.
* @ Position article. php
* @ Access private
* @ Param integer $ article_id
* @ Return array
*/
Get_article_info ($ article_id)
Array (15 ){
["Article_id"] => string (1) "7"
["Cat_id"] => string (1) "4"
["Title"] => string (27) "dongdian online mall launched"
["Content"] => string (40) "<p> & nbsp; dongdian online mall launched </p>"
["Author"] => string (6) ""
["Author_email"] => string (0 )""
["Keywords"] => string (0 )""
["Article_type"] => string (1) "0"
["Is_open"] => string (1) "1"
["Add_time"] => string (10) "2011-01-25"
["File_url"] => string (0 )""
["Open_type"] => string (1) "0"
["Link"] => string (7) "http ://"
["Description"] => string (0 )""
["Comment_rank"] => float (0)
}
/**
* Get the total number of articles under the specified category
*
* @ Param integer $ cat_id
*
* @ Return integer
*/
Get_article_count ($ Cat_id, $ requirement ='')
/**
* Get the custom navigation bar list
* @ Param string $ type location, such as top, bottom, and middle. However, I tried it and it seems that the parameter is useless. If it is not written, it is used to retrieve navigation from all locations.
* @ Return array list
*/
Get_navigator ($ Ctype = '', $ catlist = array ())
Array (4 ){
["Top"] => array (4 ){
[0] => array (5 ){
["Name"] => string (15) "view shopping cart"
["Opennew"] => string (1) "0"
["Url"] => string (8) "flow. php"
["Ctype"] => string (0 )""
["Cid"] => string (1) "0"
}
[1] => array (5 ){
["Name"] => string (12) "Shopping Center"
["Opennew"] => string (1) "0"
["Url"] => string (12) "pick_out.php"
["Ctype"] => NULL
["Cid"] => NULL
}
}
["Middle"] => array (8 ){
[0] => array (5 ){
["Name"] => string (9) "GSM mobile phone"
["Opennew"] => string (1) "0"
["Url"] => string (17) "category. php? Id = 3"
["Ctype"] => string (1) "c"
["Cid"] => string (1) "3"
}
[1] => array (5 ){
["Name"] => string (12) "dual-mode mobile phone"
["Opennew"] => string (1) "0"
["Url"] => string (17) "category. php? Id = 5"
["Ctype"] => string (1) "c"
["Cid"] => string (1) "4"
}
}
["Bottom"] => array (7 ){
[0] => array (5 ){
["Name"] => string (12) "disclaimer"
["Opennew"] => string (1) "0"
["Url"] => string (16) "article. php? Id = 1"
["Ctype"] => NULL
["Cid"] => NULL
}
[1] => array (5 ){
["Name"] => string (12) "Privacy Protection"
["Opennew"] => string (1) "0"
["Url"] => string (16) "article. php? Id = 2"
["Ctype"] => NULL
["Cid"] => NULL
}
}
["Config"] => array (1 ){
["Index"] => int (1)
}
}
/**
***************************************************
* Get the ad code of the specified ad space
* @ Para $ arr is an array in the format of array ('id' =>, 'num' =>), id is the ad space id, num is the number of ads, generally, you can set it to 1. It seems that it is useless to set multiple settings.
* @ Return the return value is a string. The content depends on the Code set in the ad space.
*****************************************************
*/
Insert_ads ($ arr)
string(181) "<a href='affiche.php?ad_id=1&uri=' target='_blank'></a>"
/**
* Get all links
*
* @ Access private
* @ Position index. php
* @ Return array
*/
Index_get_links ()
Array (2) {["txt"] => array (2) {[0] => array (2) {["name"] => string (18) "Apply for online shop for free" ["url"] => string (22) "http://www.maifou.net/"} [1] => array (2) {["name"] => string (21) "free independent online store" ["url"] => string (20) "http://www.wdwd.com/"} ["img"] => array (1) {[0] => array (3) {["name"] => string (31) "ECSHOP online store management system" ["url"] => string (22) "http://www.ecshop.com/" ["logo"] => string (49) "http://www.ecshop.com/images/logo/ecshop_logo.gif "}}}
/**
* Get the array of subcategories under the specified category
*
* @ Access public
* @ Param int $ ID of the cat_id category
* @ Param int $ ID of the selected category of selected
* @ Param boolean $ re_type: If the value is true, a drop-down list is returned. Otherwise, an array is returned.
* @ Param int $ level specifies the returned level. If the value is 0, all levels are returned.
* @ Return mix
* Note: The first element in the returned array may be the information of this category, followed by the subclass information of this category.
*/
Article_cat_list ($ cat_id = 0, $ selected = 0, $ re_type = true, $ level = 0)
Array (6) {[6] => array (14) {["cat_id"] => string (1) "6" ["cat_name"] => string (12) "Help Center" ["cat_type"] => string (1) "1" ["keywords"] => string (0) "" ["cat_desc"] => string (0) "" ["sort_order"] => string (2) "50" ["show_in_nav"] => string (1) "0" ["parent_id"] => string (1) "0" ["has_children"] => int (1) ["aricle_num"] => string (1) "0" ["level"] => int (0) ["id"] => string (1) "6" ["name"] => string (12) "Help Center" ["url"] => string (20) "article_cat.php? Id = 6 "} [7] => array (14) {[" cat_id "] => string (1)" 7 "[" cat_name "] => string (12) "Newbie" ["cat_type"] => string (1) "1" ["keywords"] => string (0) "" ["cat_desc"] => string (0) "" ["sort_order"] => string (2) "50" ["show_in_nav"] => string (1) "0" ["parent_id"] => string (1) "6" ["has_children"] => int (1) ["aricle_num"] => string (1) "0" ["level"] => int (1) ["id"] => string (1) "7" ["name"] => string (12 )" Newbie "[" url "] => string (20)" article_cat.php? Id = 7 "}}