<?php require('Template/Head_0.php'); ?>
<!-- ------ #Content ------ -->
<!-- ------ #Section 1 ------ -->
<ul class="OutFrame_A Install_0_1">
<li class="Install_0_2"><a href="#Here" onclick="tmpInstall.OnPanelShow(0);"><img src="Ui/m_default/Img/Title_1.jpg" /></a></li>
<li class="Install_0_3"><a href="#Here" onclick="tmpInstall.OnPanelShow(0);"><img id="panelTab_0" src="Ui/m_default/Img/3_A.jpg" /></a></li>
<li id="panelInfo_0" class="Install_0_8"><?php if($tmpDefault->sSystem_Boolean){ ?>已通过检测<?php }else{ ?><span class="FRed1">未通过检测</span><?php } ?></li>
<li class="DClear"></li></ul>
<div id="panelBox_0" class="DHidden"><div id="panelContent_0" class="Install_0_4">
<!-- ### -->
<div class="Install_0_5">
<div class="Install_0_6"><a href="#Here" class="Link1 SBlue1">环境检查</a></div>
<div class="Install_0_7"><table class="Install_0_9">
<tr><td class="Install_0_10">项目</td><td class="Install_0_10">程序所需配置</td><td>&nbsp;</td><td class="Install_0_10">当前服务器</td></tr>

<tr><td class="Install_0_11">操作系统</td><td class="Install_0_11">不限制(WINNT/Linux/FreeBSD)</td>
	<td><?php if($tmpDefault->sSystem_OS_Boolean){ ?><img src="Ui/m_default/Img/sign_2_A.jpg" /><?php }else{ ?><img src="Ui/m_default/Img/sign_5_A.jpg" /><?php } ?></td>
	<td class="Install_0_11"><?php echo ($tmpDefault->sSystem_OS_STR); ?></td></tr>
<tr><td class="Install_0_11">PHP版本</td><td class="Install_0_11">5.0.0+</td>
	<td><?php if($tmpDefault->sSystem_PHP_Boolean){ ?><img src="Ui/m_default/Img/sign_2_A.jpg" /><?php }else{ ?><img src="Ui/m_default/Img/sign_5_A.jpg" /><?php } ?></td>
	<td class="Install_0_11"><?php echo($tmpDefault->sSystem_PHP_STR); ?></td></tr>
<tr><td class="Install_0_11">附件上传</td><td class="Install_0_11">允许</td>
	<td><?php if($tmpDefault->sSystem_UploadSize_Boolean){ ?><img src="Ui/m_default/Img/sign_2_A.jpg" /><?php }else{ ?><img src="Ui/m_default/Img/sign_5_A.jpg" /><?php } ?></td>
	<td class="Install_0_11"><?php echo($tmpDefault->sSystem_UploadSize_STR); ?></td></tr>
<tr><td class="Install_0_11">MySQL支持</td><td class="Install_0_11">5.0+</td>
	<td><?php if($tmpDefault->sSystem_MYSQL_Boolean){ ?><img src="Ui/m_default/Img/sign_2_A.jpg" /><?php }else{ ?><img src="Ui/m_default/Img/sign_5_A.jpg" /><?php } ?></td>
	<td class="Install_0_11"><?php echo($tmpDefault->sSystem_MYSQL_STR); ?></td></tr>
<tr><td class="Install_0_11">磁盘空间</td><td class="Install_0_11">40M+</td>
	<td><?php if($tmpDefault->sSystem_DiskSize_Boolean){ ?><img src="Ui/m_default/Img/sign_2_A.jpg" /><?php }else{ ?><img src="Ui/m_default/Img/sign_5_A.jpg" /><?php } ?></td>
	<td class="Install_0_11"><?php echo($tmpDefault->sSystem_DiskSize_STR); ?></td></tr>
</table></div></div>
<!-- ### -->
<div class="Install_0_5">
<div class="Install_0_6"><a href="#Here" class="Link1 SBlue1">函数依赖性检查</a></div>
<div class="Install_0_7"><table class="Install_0_9">
<tr><td class="Install_0_10">函数名称</td><td>&nbsp;</td><td class="Install_0_10">检查结果</td><td class="Install_0_10">建议</td></tr>

<tr><td class="Install_0_11">mysql_connect()</td><td><?php if($tmpDefault->sSystem_mysql_connect_Boolean){ ?><img src="Ui/m_default/Img/sign_2_A.jpg" /><?php }else{ ?><img src="Ui/m_default/Img/sign_5_A.jpg" /><?php } ?></td>
	<td class="Install_0_11"><?php if($tmpDefault->sSystem_mysql_connect_Boolean){ ?>支持<?php }else{ ?>不支持<?php } ?></td><td class="Install_0_11">无</td></tr>
<tr><td class="Install_0_11">fsockopen()</td><td><?php if($tmpDefault->sSystem_fsockopen_Boolean){ ?><img src="Ui/m_default/Img/sign_2_A.jpg" /><?php }else{ ?><img src="Ui/m_default/Img/sign_5_A.jpg" /><?php } ?></td>
	<td class="Install_0_11"><?php if($tmpDefault->sSystem_fsockopen_Boolean){ ?>支持<?php }else{ ?>不支持<?php } ?></td><td class="Install_0_11">无</td></tr>
<tr><td class="Install_0_11">gethostbyname()</td><td><?php if($tmpDefault->sSystem_gethostbyname_Boolean){ ?><img src="Ui/m_default/Img/sign_2_A.jpg" /><?php }else{ ?><img src="Ui/m_default/Img/sign_5_A.jpg" /><?php } ?></td>
	<td class="Install_0_11"><?php if($tmpDefault->sSystem_gethostbyname_Boolean){ ?>支持<?php }else{ ?>不支持<?php } ?></td><td class="Install_0_11">无</td></tr>
<tr><td class="Install_0_11">curl_init()</td><td><?php if($tmpDefault->sSystem_curl_init_Boolean){ ?><img src="Ui/m_default/Img/sign_2_A.jpg" /><?php }else{ ?><img src="Ui/m_default/Img/sign_5_A.jpg" /><?php } ?></td>
	<td class="Install_0_11"><?php if($tmpDefault->sSystem_curl_init_Boolean){ ?>支持<?php }else{ ?>不支持<?php } ?></td><td class="Install_0_11">无</td></tr>
<tr><td class="Install_0_11">xml_parser_create()</td><td><?php if($tmpDefault->sSystem_xml_parser_create_Boolean){ ?><img src="Ui/m_default/Img/sign_2_A.jpg" /><?php }else{ ?><img src="Ui/m_default/Img/sign_5_A.jpg" /><?php } ?></td>
	<td class="Install_0_11"><?php if($tmpDefault->sSystem_xml_parser_create_Boolean){ ?>支持<?php }else{ ?>不支持<?php } ?></td><td class="Install_0_11">无</td></tr>
</table></div></div>

<div class="DClear"></div></div>
<!-- ### -->
<?php if($tmpDefault->sInstallYet_Boolean){ ?>
<div class="Install_0_12_A">本系统已安装，请清除安装锁定文件后，再尝试安装。<a href="index.php?ActionType=DRInstall">我要重新安装</a></div>
<?php }else { ?>
<div class="Install_0_12"><div class="SButton_0"><a href="#Here" onclick="tmpInstall.OnPanelShow(1);" class="Link1 FBlack2">下一步</a></div></div>
<?php } ?>
</div><div class="Install_0_14">&nbsp;</div>

<!-- ------ #Section 2 ------ -->
<ul class="OutFrame_A Install_0_1">
<li class="Install_0_2"><a href="#Here" onclick="tmpInstall.OnPanelShow(1);"><img src="Ui/m_default/Img/Title_2.jpg" /></a></li>
<li class="Install_0_3"><a href="#Here" onclick="tmpInstall.OnPanelShow(1);"><img id="panelTab_1" src="Ui/m_default/Img/3_A.jpg" /></a></li>
<li id="panelInfo_1" class="Install_0_8"></li>
<li class="DClear"></li></ul>
<div id="panelBox_1" class="DHidden"><div id="panelContent_1" class="Install_0_4">
<!-- ### -->
<?php if($tmpDefault->sInstallYet_Boolean){ ?>
<div class="Install_0_5_B">如果无特别设置，可以直接点击“开始安装”；默认数据库密码为： admin ，默认系统密码为： 123456<br />
	<span class="FRed3">本系统已安装，请清除安装锁定文件后，再尝试安装。</span><a href="index.php?ActionType=DRInstall">我要重新安装</a></div>
<?php }else { ?>
<div class="Install_0_5_B">如果无特别设置，可以直接点击“开始安装”；默认数据库密码为： admin ，默认系统密码为： 123456 </div>
<div class="Install_0_12"><div class="SButton_0"><a href="#Here" onclick="tmpInstall.JsDCheck(0); tmpInstall.CheckDbConnection();" class="Link1 FBlack2">开始安装</a></div></div>
<?php } ?>
<!-- ### -->
<table><tr><td class="Install_0_5_Td">
<?php
require('Config/config.php');
$Coun0=0;
$tmpDescriptions_0=$tmpDefault->FilterColumns($sysUiDescriptions['config'],0,4);
foreach($tmpDescriptions_0 as $Row0){ ?>
<!-- ### -->
<div class="Install_0_5_A">
<div class="Install_0_6"><a href="#Here" class="Link1 SBlue1"><?php echo($Row0['stcoctUiName']); ?></a></div>
<div class="Install_0_7"><table class="Install_0_9" cellpadding="4" cellspacing="0">
<?php
$Coun1=0;
$tmpDescriptions_1=$tmpDefault->FilterColumns($sysUiDescriptions['config'],$Coun0,1);
foreach($tmpDescriptions_1 as $Row1){ ?>
<tr><td class="Install_0_15"><?php echo($Row1['stcoctUiName']); ?>：</td>
	<td class="Install_0_16">
		<?php if($Row1['stcoctUiType']=='Text'){ ?>
		<!-- ------ #Text ------ -->
		<input id="<?php echo($Row1['stcotName']); ?>_Txt" name="<?php echo($Row1['stcotName']); ?>_Txt" 
		value="<?php echo($Row1['Value']); ?>" type="text" class="Control_Normal"
		onfocus="this.className='Control_Light';" onblur="this.className='Control_Normal';" />
		
		<?php }else if($Row1['stcoctUiType']=='Pxd'){ ?>
		<!-- ------ #Pxd ------ -->
		<input id="<?php echo($Row1['stcotName']); ?>_Txt" name="<?php echo($Row1['stcotName']); ?>_Txt" 
		value="<?php echo($Row1['Value']); ?>" type="password" class="Control_Normal"
		onfocus="this.className='Control_Light';" onblur="this.className='Control_Normal';" />
		
		<?php }else if($Row1['stcoctUiType']=='RadioAR'){ ?>
		<!-- ------ #RadioAR ------ -->
		<table cellpadding="0" cellspacing="0"><tr>
		<?php
			$Coun1=0;
			foreach ($Row1['Option'] as $Option){
			$tmpStyle='';
			if($Row1['Value']==$Option['Value']){
				$tmpStyle='_Light';
			} ?>
			<td class="ChooseCell_A<?php echo($tmpStyle); ?>" style="padding-left:0px;"><input id="<?php echo($Row1['stcotName']); ?>_Txt<?php echo($Coun1); ?>" name="<?php echo($Row1['stcotName']); ?>_Txt" type="radio" class="ChooseCell_C<?php echo($tmpStyle); ?> SControl1"
onfocus="<?php echo($Row1['Parameter_JS_Onclick']); ?>"
onblur="<?php echo($Row1['Parameter_JS_Onblur']); ?>"
onfocus="<?php echo($Row1['Parameter_JS_Onfocus']); ?>"
onchange="<?php echo($Row1['Parameter_JS_Onchange']); ?>"
value="<?php echo ($Option['Value']); ?>" <?php if($Row1['Value']==$Option['Value']){ echo (' checked="checked" '); } ?> /></td>
<td class="ChooseCell_B<?php echo($tmpStyle); ?> Install_0_25"><label id="<?php echo($Row1['stcotName']); ?>_Txt<?php echo($Coun1); ?>_Label" for="<?php echo($Row1['stcotName']); ?>_Txt<?php echo($Coun1); ?>"><?php echo ($Option['Text']); ?></label></td><td>&nbsp;</td><?php
			$tmpINT=$Coun1+1;
			if($Row1['stcoctUiLen']==0){ $Row1['stcoctUiLen']=1; }
			if($tmpINT%$Row1['stcoctUiLen']==0){ ?></tr><tr><?php } $Coun1++; } ?>
		</tr></table>

		<?php }else if($Row1['stcoctUiType']=='CheckboxAR'){ ?>
		<!-- ------ #CheckboxAR ------ -->
		<table cellpadding="0" cellspacing="0"><tr>
		<?php
			$tmpAR0=explode($tmpDefault->sysSPLIT2,$Row1['Value']);
			$Coun1=0;
			foreach ($Row1['Option'] as $Option){
			$tmpStyle='';
			if(in_array($Option['Value'],$tmpAR0)){
				$tmpStyle='_Light';
			} ?>
			<td class="ChooseCell_A<?php echo($tmpStyle); ?>" style="padding-left:0px;"><input id="<?php echo($Row1['stcotName']); ?>_Txt<?php echo($Coun1); ?>" name="<?php echo($Row1['stcotName']); ?>_Txt[]" type="checkbox" class="ChooseCell_C<?php echo($tmpStyle); ?> SControl1"
onfocus="<?php echo($Row1['Parameter_JS_Onclick']); ?>"
onblur="<?php echo($Row1['Parameter_JS_Onblur']); ?>"
onfocus="<?php echo($Row1['Parameter_JS_Onfocus']); ?>"
onchange="<?php echo($Row1['Parameter_JS_Onchange']); ?>"
value="<?php echo ($Option['Value']); ?>" <?php if(in_array($Option['Value'],$tmpAR0)){ echo (' checked="checked" '); } ?> /></td>
<td class="ChooseCell_B<?php echo($tmpStyle); ?> Install_0_25"><label id="<?php echo($Row1['stcotName']); ?>_Txt<?php echo($Coun1); ?>_Label" for="<?php echo($Row1['stcotName']); ?>_Txt<?php echo($Coun1); ?>"><?php echo ($Option['Text']); ?></label></td><td>&nbsp;</td><?php
			$tmpINT=$Coun1+1;
			if($Row1['stcoctUiLen']==0){ $Row1['stcoctUiLen']=1; }
			if($tmpINT%$Row1['stcoctUiLen']==0){ ?></tr><tr><?php } $Coun1++; } ?>
		</tr></table>
		<?php }else if($Row1['stcoctUiType']=='CheckboxAR_Unable'){ ?>
		<!-- ------ #CheckboxAR ------ -->
		<table cellpadding="0" cellspacing="0"><tr>
		<?php
			$tmpAR0=explode($tmpDefault->sysSPLIT2,$Row1['Value']);
			$Coun1=0;
			foreach ($Row1['Option'] as $Option){
			$tmpStyle='_Light';
			if(in_array($Option['Value'],$tmpAR0)){
				$tmpStyle='_Light';
			} ?>
			<td class="ChooseCell_A<?php echo($tmpStyle); ?>" style="padding-left:0px;"><input id="<?php echo($Row1['stcotName']); ?>_Txt<?php echo($Coun1); ?>" name="<?php echo($Row1['stcotName']); ?>_Txt[]" type="checkbox" class="ChooseCell_C<?php echo($tmpStyle); ?> SControl1"
onfocus="<?php echo($Row1['Parameter_JS_Onclick']); ?>"
onblur="<?php echo($Row1['Parameter_JS_Onblur']); ?>"
onfocus="<?php echo($Row1['Parameter_JS_Onfocus']); ?>"
onchange="<?php echo($Row1['Parameter_JS_Onchange']); ?>"
value="<?php echo ($Option['Value']); ?>" checked="checked" disabled /></td>
<td class="ChooseCell_B<?php echo($tmpStyle); ?> Install_0_25"><label id="<?php echo($Row1['stcotName']); ?>_Txt<?php echo($Coun1); ?>_Label" for="<?php echo($Row1['stcotName']); ?>_Txt<?php echo($Coun1); ?>"><?php echo ($Option['Text']); ?></label></td><td>&nbsp;</td><?php
			$tmpINT=$Coun1+1;
			if($Row1['stcoctUiLen']==0){ $Row1['stcoctUiLen']=1; }
			if($tmpINT%$Row1['stcoctUiLen']==0){ ?></tr><tr><?php } $Coun1++; } ?>
		</tr></table>

		<?php } ?>
		<div id="<?php echo($Row1['stcotName']); ?>_Error" class="DHidden"></div></td>
	</tr>
<?php $Coun1++; } ?>
</table></div><br /></div>
<?php if(($Coun0+1)%2==0){ ?></td><td class="Install_0_5_Td"><?php } $Coun0++; } ?>

</tr></table></div>
<!-- ### -->
<?php if($tmpDefault->sInstallYet_Boolean){ ?>
<div class="Install_0_12_A">本系统已安装，请清除安装锁定文件后，再尝试安装。<a href="index.php?ActionType=DRInstall">我要重新安装</a></div>
<?php }else { ?>
<div class="Install_0_12"><div class="SButton_0"><a href="#Here" onclick="tmpInstall.JsDCheck(0); tmpInstall.CheckDbConnection();" class="Link1 FBlack2">开始安装</a></div></div>
<?php } ?>
</div><div class="Install_0_14">&nbsp;</div>

<!-- ------ #Section 3 ------ -->
<ul class="OutFrame_A Install_0_1">
<li class="Install_0_2"><a href="#Here" onclick="tmpInstall.OnPanelShow(2);"><img src="Ui/m_default/Img/Title_3.jpg" /></a></li>
<li class="Install_0_3"><a href="#Here" onclick="tmpInstall.OnPanelShow(2);"><img id="panelTab_2" src="Ui/m_default/Img/3_A.jpg" /></a></li>
<li id="panelInfo_2" class="Install_0_8"></li>
<li class="DClear"></li></ul>
<div id="panelBox_2" class="DHidden"><div id="panelContent_2" class="Install_0_20_A">

请先设置与安装系统，<a href="#Here" onclick="tmpInstall.OnPanelShow(1);">点击这里安装系统</a>...
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />

</div>
<div id="panelOtherBut_2" class="Install_0_27">
	<div id="panelOtherBut_2_LoadingImg" class="Install_0_34"><img src="Ui/m_default/Img/Loading.gif" /></div>
	<div id="panelOtherBut_2_LoadingLabel" class="Install_0_32">安装程序运行中，请稍等(进度条在显示表示安装程序在正常运行)...</div>
	<div class="Install_0_33"><a href="http://product.unionnets.com/Plus/m_default/cms/feedback.php" class="Link4 FBlue3" target="_blank">要官方技术人员帮助安装到服务器..!</a></div>
	<div class="Install_0_33"><a href="#Here" onclick="tmpInstall.OnReRequireInstallURL();" class="Link4 FBlue3">安装程序走不动了，点击这里试试？</a></div>
	</div>
<div id="panelNextBut_2" class="DHidden"><div class="SButton_0"><a href="#Here" onclick="tmpInstall.OnPanelShow(3);" class="Link1 FBlack2">完成安装</a></div></div>
<div class="DHidden"><iframe id="mainInstall_Frame" class="Install_0_26"></iframe></div>
</div><div class="Install_0_14">&nbsp;</div>

<!-- ------ #Section 4 ------ -->
<ul class="OutFrame_A Install_0_1">
<li class="Install_0_2"><a href="#Here" onclick="tmpInstall.OnPanelShow(3);"><img src="Ui/m_default/Img/Title_4.jpg" /></a></li>
<li class="Install_0_3"><a href="#Here" onclick="tmpInstall.OnPanelShow(3);"><img id="panelTab_3" src="Ui/m_default/Img/3_A.jpg" /></a></li>
<li id="panelInfo_3" class="Install_0_8"></li>
<li class="DClear"></li></ul>
<div id="panelBox_3" class="DHidden"><div id="panelContent_3" class="Install_0_20_A">

请先设置与安装系统，<a href="#Here" onclick="tmpInstall.OnPanelShow(1);">点击这里安装系统</a>...
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />

</div>
</div><div class="Install_0_14">&nbsp;</div>


<div><a id="panelOtherBut_2_Link" href="#Here">&nbsp;</a></div>
<input id="mainInstall_URL" name="mainInstall_URL" value="index.php" type="hidden" />
<!-- ------ #SCRIPT ------ -->
<script type="text/javascript">
var tmpInstall=new Install();
tmpInstall.OnPanelShow(<?php echo($tmpDefault->sPanelIndex); ?>);

</script>
<?php require('Template/End_0.php'); ?>