<?php
if(!defined('InEmpireCMSIns'))
{
	exit();
}
?>
<?php
$mysqlr=eins_CanMysql();
$pgsqlr=eins_CanPgsql();
?>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <form name="einsform" method="GET" action="index.php">
		  <input name="enews" type="hidden" id="enews" value="setdb">
		  <input name="f" type="hidden" id="f" value="5">
          <tr class="header"> 
            <td height="25"> <div align="center"><strong><font color="#FFFFFF">第四步：選擇數據庫類型</font></strong></div></td>
          </tr>
          <tr> 
            <td height="350" bgcolor="#FFFFFF"> <div align="center"> 
                <table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6E0EF">
                  <tr> 
                    <td height="23"><strong>提示信息</strong></td>
                  </tr>
                  <tr> 
                    <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="1">
                        <tr> 
                          <td height="21"> <li>MySQL、MariaDB、其它MySQL‌內核的數據庫 服務器PHP需開啟<strong>mysql</strong>或<strong>mysqli</strong>模塊。</li></td>
                        </tr>
                        <tr> 
                          <td height="21"> <li> PostgreSQL、國產華為高斯(openGauss)、‌國產金倉數據庫(kingbase)、其它PostgreSQL‌內核的數據庫 服務器PHP需開啟<strong>pgsql</strong>模塊。</li></td>
                        </tr>
                        <tr> 
                          <td height="21"> <li>其中 PostgreSQL、國產華為高斯(openGauss)、‌國產金倉數據庫(kingbase)、其它PostgreSQL‌內核的數據庫 目前需要商業授權版才支持。</li></td>
                        </tr>
                      </table></td>
                  </tr>
                </table>
                <br>
                <table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6E0EF">
                  <tr> 
                    <td width="10%" height="23"> <div align="center"><strong>選擇</strong></div></td>
                    <td width="45%"> <div align="center"><strong>數據庫類型</strong></div></td>
                    <td width="30%"> <div align="center"><strong>當前服務器</strong></div></td>
                  </tr>
                  <tr bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'"> 
                    <td height="30"><div align="center">
                      <input name="echdbtype" id="echdbtype" type="radio" value="0" checked="checked" />
                    </div></td>
                    <td><strong>MySQL</strong></td>
                    <td><div align="center"> 
                        <?php echo $mysqlr['can'];?>
                      </div></td>
                  </tr>
                  <tr bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'"> 
                    <td height="30"><div align="center">
                      <input type="radio" name="echdbtype" id="echdbtype" value="1" />
                    </div></td>
                    <td><strong>MariaDB<br>
                        </strong></td>
                    <td><div align="center">  
                        <?php echo $mysqlr['can'];?>
                         </div></td>
                  </tr>
				  <tr bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'">
                    <td height="30"><div align="center">
                      <input type="radio" name="echdbtype" id="echdbtype" value="2" />
                    </div></td>
                    <td><strong>其它MySQL‌內核的數據庫</strong></td>
                    <td>
                    <div align="center"><?php echo $mysqlr['can'];?></div></td>
                  </tr>

                  <tr bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'"<?php echo $eins_usepgsql==1?'':' title="此項需商業授權版才支持"';?>> 
                    <td height="30"><div align="center">
                      <input type="radio" name="echdbtype" id="echdbtype" value="3"<?php echo $eins_usepgsql==1?'':' disabled';?> />
                    </div></td>
                    <td><strong>PostgreSQL‌</strong></td>
                    <td><div align="center">  
                        <?php echo $pgsqlr['can'];?>
                         </div></td>
                  </tr>
					
                  <tr bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'"<?php echo $eins_usepgsql==1?'':' title="此項需商業授權版才支持"';?>> 
                    <td height="30"><div align="center">
                      <input type="radio" name="echdbtype" id="echdbtype" value="4"<?php echo $eins_usepgsql==1?'':' disabled';?> />
                    </div></td>
                    <td><strong>國產華為高斯(openGauss)</strong></td>
                    <td><div align="center">  
                        <?php echo $pgsqlr['can'];?>
                         </div></td>
                  </tr>
					
                  <tr bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'"<?php echo $eins_usepgsql==1?'':' title="此項需商業授權版才支持"';?>> 
                    <td height="30"><div align="center">
                      <input type="radio" name="echdbtype" id="echdbtype" value="5"<?php echo $eins_usepgsql==1?'':' disabled';?> />
                    </div></td>
                    <td><strong>國產金倉數據庫(kingbase)</strong></td>
                    <td><div align="center"> 
                        <?php echo $pgsqlr['can'];?>
                      </div></td>
                  </tr>
                  <tr bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'"<?php echo $eins_usepgsql==1?'':' title="此項需商業授權版才支持"';?>> 
                    <td height="30"> <div align="center">
                      <input type="radio" name="echdbtype" id="echdbtype" value="6"<?php echo $eins_usepgsql==1?'':' disabled';?> />
                    </div></td>
                    <td><strong>其它PostgreSQL‌內核的數據庫</strong></td>
                    <td><div align="center"> 
                        <?php echo $pgsqlr['can'];?>
                      </div></td>
                  </tr>
                </table>
              </div></td>
          </tr>
          <tr> 
            <td><div align="center"> 
                <input type="button" name="Submit523" value="上一步" onClick="javascript:history.go(-1);">
                &nbsp;&nbsp; &nbsp;&nbsp;
                <input type="submit" name="Submit623" value="下一步">
              </div></td>
          </tr>
        </form>
      </table>