Home > CMS Tutorial > DEDECMS > body text

What do the parameters in the DedeCMS prompt refer to?

爱喝马黛茶的安东尼
Release: 2019-07-18 17:12:31
Original
2324 people have browsed it

What do the parameters in the DedeCMS prompt refer to?

The Showmsg function in DEDECMS is used to display the returned prompt information and jump to the corresponding page, but most novices don't know how to use it, so this article will focus on explaining it.

First look at the format of showmsg:

ShowMsg($msg,$gourl,$onlymsg=0,$limittime=0)
Copy after login

Give another example of showmsg:

ShowMsg("成功登录,5秒钟后转向系统主页...","index.php",0,2000);
Copy after login

Related recommendations: "dedecms usage tutorial"

Introduction to the usage and parameters of Showmsg in DEDECMS

Detailed explanation of parameters: The showmsg parameter is separated by English, (comma):

$msg parameter It is the information to be returned, which is the question of the prompt.

The $gourl parameter is the page to be returned after the prompt is completed. The specific parameters are:

-1  代表返回上一页 
index.php 返回指定的index.php页面 
javascript:window.opener=null;window.open('','_self');window.close(); 关闭当前提示窗口
Copy after login

$onlymsg parameter is the display method of the prompt. The specific parameters are:

$onlymsg=0 则以页面显示 
$onlymsg<>0 则以对话框的形式进行显示 
$limittime参数是提示出现的秒数,以毫秒为单位;1000就是1秒。
Copy after login

The above is the detailed content of What do the parameters in the DedeCMS prompt refer to?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
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