Home > Backend Development > PHP Tutorial > php 仿Comsenz安装效果代码打包提供下载_PHP

php 仿Comsenz安装效果代码打包提供下载_PHP

WBOY
Release: 2016-06-01 12:18:11
Original
951 people have browsed it

最终的效果如下:

step.inc.php 安装步骤效果类:
复制代码 代码如下:
/**
* step.inc.php 安装步骤效果类 *
* 从Comsenz产品的数据表安装效果中提取出主要代码,以供大家学习
* @author tianxin
* @version 1.0.0 *
*/
class StepClass {
function show_header() {
define('SHOW_HEADER', TRUE);
$step = 1;
$version = 'beta1.0';
$release = '20100223';
$install_lang = '简体中文UTF8版';
$title = '仿Comsenz安装';
$charset = 'uft-8';
echo



$title






$title


$version $install_lang $release
EOT;
$step > 0 && $this->show_step($step);
}
function show_step($step) {
$laststep = 4;
$title = '仿Comsenz安装';
$comment = '正在执行操作';
$stepclass = array();
for($i = 1; $i $stepclass[$i] = $i == $step ? 'current' : ($i }
$stepclass[$laststep] .= ' last';
echo

$title


$comment





  • 1

  • 2

  • 3

  • 4






EOT;
}
function show_install() {
?>






}
function runquery() {
for($i=1;$i{
$this->showjsmessage('执行操作'.' '.$i.' ... '.'成功');
//模拟每执行完一个动作的延时
sleep(1);
}
}
function showjsmessage($message) {
echo ''."\r\n";
flush();
ob_flush();
}
function show_footer($quit = true) {
echo



Related labels:
php
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