Home>Article>CMS Tutorial> Empire cms movie model content page calls player type
The following tutorial column byEmpire cms secondary developmentwill introduce to you several methods of calling the player type on the Empire cms movie model content page. I hope it will be helpful to friends in need. !
1. Display in picture form
1. Add several player pictures to /skin/xin/v/
①Determine the picture format yourself, for example: add the ico format, go to: System-System Settings-System Parameter Settings-File Settings-Background Upload File Extension-Add ico picture format
②Name the picture : Named after the ID of the player (ID reference: Backend - Others - Download Model Related - Player Management - Look at the ID number corresponding to the player)
2. Insert the following code at the appropriate position on the content page
Player type: 28d332aa0b005e0c2617c95f1034e40c
Comments: ① /skin /xin/v/ This file path can be customized
② [!--playerid--].gif is the ID of the player Image format
Recommended tutorial: "Empirecms》
2. Display in the form of name
Method 1: Smart tag call
[e:loop={"select * from phome_enewsplayer where id='$navinfor[playerid]'",0,24,0}] 播放器类型:=$bqr[player]?> [/e:loop] 方法2:灵动标签双表查询--enewsplayer(播放器表)和ecms_movie_data_1(电影模型副表) [e:loop={"select a.*,b.* from [!db.pre!]enewsplayer a,[!db.pre!]ecms_movie_data_1 b where a.id=b.playerid and b.classid='$navinfor[classid]' and b.id='$navinfor[id]'",0,24,0}] 播放器类型:=$bqr[player]?> [/e:loop]
Method 3: PHP call
fetch1("select * from phome_enewsplayer where id='$navinfor[playerid]'"); ?>
Player name: c472814fccd5e30602f70db82cbf1bc1
The above is the detailed content of Empire cms movie model content page calls player type. For more information, please follow other related articles on the PHP Chinese website!