Maison  >  Article  >  développement back-end  >  php 仿Comsenz安装效果代码打包提供下载_PHP

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

WBOY
WBOYoriginal
2016-06-01 12:18:11914parcourir

最终的效果如下:

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



Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn