Empire CMS ウェブサイト管理システム - 二次開発マニュアル
/ 開發(fā)范例:顯示“Hello,world”
開發(fā)范例:顯示“Hello,world”
|
|
<?php require('../../class/connect.php'); //引入數(shù)據(jù)庫(kù)配置文件和公共函數(shù)文件 require('../../class/db_sql.php'); //引入數(shù)據(jù)庫(kù)操作文件 $link=db_connect(); //連接MYSQL $empire=new mysqlquery(); //聲明數(shù)據(jù)庫(kù)操作類 $editor=1; //聲明目錄層次 $context='Hello, World!';
//定義顯示內(nèi)容 db_close(); //關(guān)閉MYSQL鏈接 |
<?php if(!defined('InEmpireCMS')) { exit(); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>顯示<?=$context?>例子</title> </head> <body> <br> <br> <br> <table width="500" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC"> <tr> <td height="25"><strong>顯示內(nèi)容為如下:</strong></td> </tr> <tr> <td height="60" bgcolor="#FFFFFF"> <div align="center"><strong><font color="#FF0000" size="5"><?=$context?></font></strong></div></td> </tr> </table> </body> </html> |
