一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

php 仿Comsenz安裝效果代碼打包提供下載

最終的效果如下:

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 <<<EOT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$charset" />
<title>$title</title>
<link rel="stylesheet" href="style.css" type="text/css" media="all" />
<script type="text/Javascript">
function $(id) {
return document.getElementById(id);
}
function showmessage(message) {
$('notice').value += message + "http://r//n";
}
</script>
<meta content="Comsenz Inc." name="Copyright" />
</head>
<div class="container">
<div class="header">
<h1>$title</h1>
<span>$version $install_lang $release</span>
EOT;
$step > 0 && $this->show_step($step);
}
function show_step($step) {
$laststep = 4;
$title = '仿Comsenz安裝';
$comment = '正在執行操作';
$stepclass = array();
for($i = 1; $i <= $laststep; $i++) {
$stepclass[$i] = $i == $step ? 'current' : ($i < $step ? '' : 'unactivated');
}
$stepclass[$laststep] .= ' last';
echo <<<EOT
<div class="setup step{$step}">
<h2>$title</h2>
<p>$comment</p>
</div>
<div class="stepstat">
<ul>
<li class="$stepclass[1]">1</li>
<li class="$stepclass[2]">2</li>
<li class="$stepclass[3]">3</li>
<li class="$stepclass[4]">4</li>
</ul>
<div class="stepstatbg stepstat1"></div>
</div>
</div>
<div class="main">
EOT;
}
function show_install() {
?>
<script type="text/Javascript">
function showmessage(message) {
document.getElementById('notice').value += message + "/r/n";
}
function initinput() {
window.location='http://www.jb51.NET';
}
</script>
<div class="main">
<div class="btnbox"><textarea name="notice" style="width: 80%;" readonly="readonly" id="notice"></textarea></div>
<div class="btnbox marginbot">
<input type="button" name="submit" value="正在執行……" disabled style="height: 25" id="laststep" onclick="initinput()">
</div>
<?php
}
function runquery() {
for($i=1;$i<=15;$i++)
{
$this->showjsmessage('執行操作'.' '.$i.' ... '.'成功');
//模擬每執行完一個動作的延時
sleep(1);
}
}
function showjsmessage($message) {
echo '<script type="text/Javascript">showmessage(/''.addslashes($message).' /');</script>'."/r/n";
flush();
ob_flush();
}
function show_footer($quit = true) {
echo <<<EOT
<div class="footer">©2001 - 2010 <a href="http://www.jb51.NET/">甜心</a> 瑤瑤說殺很大.</div>
</div>
</div>
</body>
</html>
EOT;
$quit && exit();
}
}

調用方法:
復制代碼 代碼如下:
header('Content-Type: text/html; charset=utf-8');
include('step.inc.php');
$step=new StepClass();
//顯示頁面頭部
$step->show_header();
//顯示操作進度
$step->show_install();
//運行操作
$step->runquery();
echo '<script type="text/Javascript">document.getElementById("laststep").disabled=false;document.getElementById("laststep").value = /'執行完所有操作,進入下一步/';</script>'."/r/n";
//顯示頁面尾部
$step->show_footer();

完整的demo:stepdemo.rar

php技術php 仿Comsenz安裝效果代碼打包提供下載,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 免费黄色视屏网站 | 中文字幕精品一区二区三区在线 | 久久综合加勒比 | 日本无吗免费一二区 | 91福利在线观看视频 | 中文字幕一区视频 | 精品久久久久久中文字幕网 | 久草视频一区 | 色综合天天色 | 综合激情网五月 | 国产麻豆91网在线看 | 国内成人免费视频 | 欧美综合影院 | 国产精品久久久久影院色老大 | 日韩在线视屏 | 成人在免费观看视频国产 | 国产精品久久久久久久久齐齐 | 在线播放国产精品 | 91麻豆精品国产91久久久久久 | 中文字幕日韩精品中文区 | 一本一道久久综合狠狠老 | 中文字幕一二三区乱码老 | 伊人亚洲综合网 | 精品中文字幕一区二区三区四区 | 国产精品精品国产 | 久视频在线观看久视频 | 国产午夜精品视频 | 一区二区三区免费在线观看 | 日本视频www色变态 日本视频网站在线www色 | 亚洲二区在线观看 | 免费看黄色录像片 | 精品国产精品国产 | 操一炮在线 | 男女朋友做爽爽爽免费视频网 | 五月激情丁香 | 国产欧美激情一区二区三区-老狼 | 草草视频免费在线观看 | 狠狠干五月天 | 91精品欧美一区二区三区 | 一区二区三区不卡在线观看 | 国产精品久久亚洲不卡4k岛国 |