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. !
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='$navinfor[classid]' and b.id='$navinfor[id]'",0,24,0}] 播放器类型:<?=$bqr[player]?> [/e:loop]
Method 3: PHP call
<?php $p=$empire->fetch1("select * from phome_enewsplayer where id='$navinfor[playerid]'"); ?>
Player name: =$p[player]?>
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SublimeText3 English version
Recommended: Win version, supports code prompts!

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Linux new version
SublimeText3 Linux latest version

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.
