The code shows a total of 8 variable parameters {SEO, 0! {Top, 0, 0, 0, 0, 0, Top} {Nav, 0, 0, 0, 0, Nav },
{SEO, 0, 0, 0, 0, 0, 0} {Top, 0, 0, 0, 0, 0, Top} {Nav, 0, 0, 0, 0, 0, 0, Nav} can be viewed in the code!
For example:
{GetNew, 977,0, 23,500, Sy _ about us}
Explanation:
{GetNew, 977,0, 23,500, Sy _ about us}
{0, 1, 2, 3, 4, 5, 6, 7}
0. Type
1. ID to be processed
2. Number of entries displayed
3. Display title words
4. display the number of words in the content
5. Whether hotspot 1: Yes, 0: No
6. Whether the image is 1: Yes, 0: No
7. Style label name (generated Inc file name)
------------------------- Split line -------------------------
I saw it in the asp.net code. The original author of the program uses the DTcms1.0 System (I think it is useless, but it is not important. It is important to understand what it is)
The document is described as follows:
1 /// <summary> 2 // obtain the TAG content 3 /// </summary> 4 /// <param name = "label"> </param> 5/ // <returns> </returns> 6 public string GetContentByLabel (string label) 7 {8 StringBuilder result = new StringBuilder (); 9 StringBuilder str = new StringBuilder (); 10 str. append (label. replace ("{",""). replace ("}",""). replace ("\", ""); // remove the brackets 11 string [] arr = str. toString (). split (','); // Split the string to obtain 12 if (arr. length = 8) 13 {14 string type = arr [0]; // display type, news or navigation (New \ Nav \ Ad \ Link \) 15 string classid = arr [1]; // ID to be processed, News Type ID, or navigation category ID16 string count = arr [2]; // display number of items 17 string tit_length = arr [3]; // display title Word Count 18 string con_length = arr [4]; // number of characters displayed 19 string isHot = arr [5]; // whether hotspot 0 is not; 1 is 20 string isPic = arr [6]; // whether image 0 is not, 1 is 21 string LabelName = arr [7]. replace ("\", ""); // style label name (generated Inc file name) 22 23 switch (type) 24 {25 case "New ": 26 result. append (GetNewContent (int. parse (classid), int. parse (count), int. parse (tit_length), int. parse (con_length), int. parse (isHot), int. parse (isPic), LabelName); 27 break; 28 case "Product": 29 result. append (GetProductContent (int. parse (classid), int. parse (count), int. parse (tit_length), int. parse (con_length), int. parse (isHot), int. parse (isPic), LabelName); 30 break; 31 case "Content": 32 result. append (GetConContent (int. parse (classid), int. parse (count), LabelName); 33 break; 34 case "Link": 35 result. append (GetLinkContent (int. parse (count), int. parse (isPic), LabelName); 36 break; 37 case "AD": 38 result. append (GetAdContent (int. parse (classid), LabelName, int. parse (isHot), int. parse (isPic); 39 break; 40 case "SEO": 41 result. append (GetSEO (int. parse (classid), LabelName); 42 break; 43 case "GQ": 44 result. append (GetGQ (int. parse (classid), int. parse (count), int. parse (tit_length), int. parse (isHot), LabelName); 45 break; 46 case "CoontentType": 47 result. append (GetContentType (int. parse (classid), LabelName); 48 break; 49 case "ContentList": 50 result. append (GetContentList (int. parse (classid), LabelName); 51 break; 52 case "FenXiao": 53 result. append (GetFenXiao (int. parse (classid), LabelName); 54 break; 55 case "NewList": 56 result. append (GetNewType (int. parse (classid), LabelName); 57 break; 58 case "NewType": 59 result. append (GetNewType2 (int. parse (classid); 60 break; 61 case "DownloadList": 62 result. append (GetDownLoadType (int. parse (classid); 63 break; 64 case "KaiKe": 65 result. append (GetKaiKe (int. parse (count), LabelName); 66 break; 67 case "SEOMap": 68 result. append (SEOMap (); 69 break; 70 case "SlideImg": 71 result. append (SlideImg2 (int. parse (classid); 72 break; 73 case "Sitemap": 74 result. append (Sitemap (); 75 break; 76 case "WebConfig": 77 result. append (WebConfig (LabelName); 78 break; 79 default: 80 result. append (GetOtherContent (LabelName); 81 break; 82} 83} 84 return result. toString (); 85}