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

Empire cms movie model content page calls player type

藏色散人
Release: 2020-07-21 13:49:21
forward
4878 people have browsed it

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:

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]
Copy after login

Method 3: PHP call

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

Player name:

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!

Related labels:
source:daixiao360
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template