Home >CMS Tutorial >Empire CMS >Empire cms movie model content page calls player type

Empire cms movie model content page calls player type

藏色散人
藏色散人forward
2020-07-21 13:48:454910browse

The following tutorial column by Empire cms secondary development will 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. !

Empire cms movie model content page calls player type

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=&#39;$navinfor[classid]&#39; and b.id=&#39;$navinfor[id]&#39;",0,24,0}]
播放器类型:<?=$bqr[player]?>
[/e:loop]

Method 3: PHP call

<?php
$p=$empire->fetch1("select * from phome_enewsplayer where id=&#39;$navinfor[playerid]&#39;");
?>

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!

Statement:
This article is reproduced at:daixiao360. If there is any infringement, please contact admin@php.cn delete