<?php die;?><html style="overflow:auto">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<title><!--{$title}--></title>
<base href="<!--{$url}--><!--{$smarty.const.MICE_TPL}-->/install/" />
<link href="css/Default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var baseurl = '<!--{$url}--><!--{$smarty.const.MICE_TPL}-->/install/';
var siteurl = '<!--{$url}-->';
</script>
<script type="text/javascript" src="js/Main.js"></script>
</head>
<body style="min-width: 1003px;">
	<table id="_TableHeader" class="bluebg" style="background: url(imgs/Images/vistaBlue.jpg) rgb(51, 136, 187) repeat-x scroll left top; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" border="0" cellpadding="0" cellspacing="0" width="100%">
		<tbody><tr>
			<td height="70" valign="bottom">
			<table style="position: relative;" border="0" cellpadding="0" cellspacing="0" height="70">
				<tbody><tr>
					<td style="padding: 0pt;"><img src="imgs/logo.gif"></td>
				</tr>
				<tr>
					<td nowrap="nowrap" valign="bottom">
					<div style="padding: 6px 23px 0pt 10px; background: url(imgs/Images/selectsitebg.gif) transparent no-repeat scroll right top; float: left; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: rgb(102, 102, 102); margin-bottom: -2px;vertical-align:middle;"><a href="<!--{$url}-->" target="_blank" class="blue1"><img src="imgs/home.png" style="cursor: pointer;" title="在新窗口中打开 网站首页" align="absmiddle" border="0"></a> <a href="<!--{$url}-->" target="_blank" title="在新窗口中打开 网站首页" class="blue1">打开网站首页</a></div>
					</td>
				</tr>
			</tbody></table>
			</td>
			<td valign="bottom">
			<div style="margin: 0pt 20px 15px 0pt; text-align: right;">miceCMS 5.0技术支持：&nbsp;[&nbsp;<a href="http://t.sina.com.cn/ZuoWangZhan" target="_blank">新浪微博</a> | <a href="http://t.qq.com/ZuoWangZhan" target="_blank">腾讯微博</a> | <a href="http://www.micecms.com" target="_blank">官网网站</a> ]</div>
			<table border="0" cellpadding="0" cellspacing="0">
				<tbody><tr>
					<td align="center">
					<div id="_Navigation" class="navigation">&nbsp;</div>
					</td>
				</tr>
			</tbody></table>
			</td>
		</tr>
	</tbody></table>
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
		<tbody><tr>
			<td style="padding: 6px 3px 3px;">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tbody><tr>
					<td style="background: transparent url(imgs/Images/jiao.gif) no-repeat scroll right bottom; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" height="2" width="2"></td>
					<td id="_HMenutable" style="background: url(imgs/Images/tabpageBar_bg.gif) repeat-x left bottom;padding-left: 30px;" width="100%"></td>
				</tr>
				<tr valign="top">
					<td id="_VMenutable" class="verticalTabpageBar" align="right">
					<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td align="right" valign="bottom">
							<div id="_ChildMenu">
							<div id='step1' class='divtab'><img src='imgs/step2.gif' /><b><span>许可协议</span></b></div>
							<div id='step2' class='divtab'><img src='imgs/step2.gif' /><b><span>环境检测</span></b></div>
							<div id='step3' class='divtab'><img src='imgs/step2.gif' /><b><span>参数配置</span></b></div>
							<div id='step4' class='divtabCurrent'><img src='imgs/step2.gif' /><b><span>正在安装</span></b></div>
							<div id='step5' class='divtab'><img src='imgs/step1.gif' /><b><span>安装完成</span></b></div>
							</div>
							</td>
						</tr>
					</tbody></table>
					</td>
					<td>
					<table id="maintable" style="border-right: 1px solid rgb(153, 153, 153); border-bottom: 1px solid rgb(153, 153, 153);" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td>
<table width="100%" border="0" cellspacing="6" cellpadding="0" style="border-collapse: separate; border-spacing: 6px;">
      <tr valign="top">
        <td>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="blockTable">
            <tr>
			  <td width="100%" style="padding:6px 10px;" class="blockTd"><img src="imgs/step2.gif" />　正在安装</td>
            </tr>
			<tr>
              <td style="padding-top:0px;padding-left:6px;padding-right:6px;padding-bottom:8px;">
<!--内容开始-->
<script language="JavaScript">
function CheckForm()
{
	if (document.form1.username.value.length == 0)
	{
		Dialog.alert("管理员用户名不能为空!");
		document.form1.username.focus();
		return false;
	} 
	if (document.form1.userpwd.value.length <4)
	{
		Dialog.alert("管理员密码不能小于4位!");
		document.form1.userpwd.focus();
		return false;
	} 
	if (document.form1.useremail.value.length == 0)
	{
		Dialog.alert("管理员email地址不能为空!");
		document.form1.useremail.focus();
		return false;
	}	
	Dialog.alert("执行数据库SQL需要10秒钟左右，请稍等一下，安装过程中请勿关闭页面!");
	return true;
}
</script>
<br>
<table width="99%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
<form name="form1" id="form1" method="POST" action="<!--{$smarty.const.MICE_URL}-->install.php/installsql" onsubmit="return CheckForm()">
  <tr>
	<td height="28" bgcolor="#F9F9F9">&nbsp;<b>写入配置文件:</b></td>
  </tr>
  <tr>
	<td height="28" bgcolor="#FFFFFF"><textarea name="textarea"style="width:99%;height:300px"><!--{$config}--></textarea></td>
  </tr>
</table>
<table width="99%" height="5" border="0" cellpadding="0" cellspacing="0">
<tr>
  <td></td>
</tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
<tr>
  <td height="28" bgcolor="#F9F9F9">&nbsp;<b>管理员设置</b></td>
</tr>
<tr>
  <td bgcolor="#FFFFFF">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td height="28" class="bottomline" width="300">&nbsp;用户名</td>
		<td height="28" class="bottomline"><input type="text" size="35" name="username" value="admin"></td>
	  </tr>
	  <tr>
		<td height="28" class="bottomline" width="300">&nbsp;密码</td>
		<td height="28" class="bottomline"><input type="text" size="35" name="userpwd" value="admin"></td>
	  </tr>
	  <tr>
		<td height="28" class="bottomline" width="300">&nbsp;Email</td>
		<td height="28" class="bottomline"><input type="text" size="35" name="useremail" value="admin@micecms.com"></td>
	  </tr>
  </table>
  </td>
</tr>
</table>
<table width="99%" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
	<td></td>
  </tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
	<tr>
	  <td height="28" bgcolor="#F9F9F9">&nbsp;<b>安装网站示范内容</b></td>
	</tr>
	<tr>
	  <td height="28" bgcolor="#FFFFFF">
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td height="28" class="bottomline" width="300">&nbsp;安装网站示范内容</td>
			<td height="28" class="bottomline"><label><input type="checkbox" name="install_example" id="install_example" value="1">
  确认安装<br>强烈建议初次使用者选择安装。选中该选项将会安装miceCMS安装包中的网站示范内容,让您轻松体验miceCMS的全部功能</label></td>
		  </tr>
		  </table>
		</td>
	</tr>
</table>
<table width="99%" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
	<td></td>
  </tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
<tr>
  <td height="28" bgcolor="#F9F9F9">&nbsp;<b>安装提示</b><font color='red'>(为了节省您的时间，请认真查看)</font></td>
</tr>
<tr>
  <td height="28" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td height="28" class="bottomline" width="300">&nbsp;配置文件</td>
		<td height="28" class="bottomline"><!--{$fwriteerr}--></td>
	  </tr>
	  <!--{if $dbstr != '1'}-->
	  <tr>
		<td height="28" class="bottomline" width="300">&nbsp;数据库</td>
		<td height="28" class="bottomline"><!--{$dbstr}--></td>
	  </tr>
	  <!--{/if}-->
  </table></td>
  </tr>
</table>
<table width="99%" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
	<td></td>
  </tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
  <tr >
	<td bgcolor="#F9F9F9" height="30" valign='middle'>&nbsp;&nbsp;<input name="submit" type="submit" accesskey="N" value="下一步[N]"/></td>
  </tr></form>
</table>
<!--内容结束-->
		</td>
		</tr>
	</table>
	</td>
  </tr>
</table>							
							</td>
						</tr>
					</tbody></table>
					</td>
				</tr>
			</tbody></table>
			</td>
		</tr>
	</tbody></table>

<div style="position: absolute; z-index: 999; width: 137px; left: 11px; top: 82px; display: none;" id="_SelectorDiv_">
	<iframe id="_SelectorFrame" name="_SelectorFrame" src="about:blank" frameborder="0" height="42" width="250">
	</iframe>
</div>
<div style="background-color: rgb(51, 51, 51); position: absolute; left: 0px; top: 0px; opacity: 0; width: 100%; height: 630px; z-index: 960; display: none;" id="_DialogBGDiv"></div>
<div style="background-color: rgb(51, 51, 51); position: absolute; left: 0px; top: 0px; opacity: 0; width: 100%; height: 630px; z-index: 991; display: none;" id="_AlertBGDiv"></div>
</body>
</html>