<!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=UTF-8" />
	<meta http-equiv="pragma" content="no-cache" />
	<title>升级至RHSCMS 1.0 beta5</title>
	<style type="text/css">
		body{padding:50px;font-family:"微软雅黑";}
		table{width:500px;border:0;margin:0 auto;background:#FFF;color:#FFF;}
		td{border:0;padding:5px;background:#69C;vertical-align:middle;}
		table .c{text-align:center;}
		table .l{text-align:right;width:190px;}
		table .title{height:50px;font-size:22px;font-weight:bold;}
		table .bt_row{height:50px;}
		table .text{width:200px;border:1px solid #FFF;}
		#mysql_info{display:none;background:#69C;}
		.button{*padding:4px 4px 0 4px;*line-height:11px;*margin:0 0 -1px 0;cursor:pointer;}
	</style>
</head>
<body>
<form name="install" method="post" action="deal.php">
	<table cellspacing="1" cellpadding="0">
		<tr>
			<td colspan="2" class="c title">升级至RHSCMS 1.0 beta5</td>
		</tr>
		<tr>
			<td colspan="2" class="c">
				<input name="db_type" type="radio" value="mysql" onclick="cheak_mysql()" checked="checked" />MYSQL数据库&nbsp;&nbsp;
				<input name="db_type" type="radio" value="access" onclick="cheak_access()" />ACCESS数据库
			</td>
		</tr> 
		<tr>
			<td class="l">数据库主机名：</td>
			<td><input id="mysql_info_1" class="text" name="db_host" type="text" value="localhost" /></td>
		</tr>
		<tr>
			<td class="l">数据库名：</td>
			<td><input id="mysql_info_2" class="text" name="db_name" type="text" /></td>
		</tr>
		<tr>
			<td class="l">数据库用户名：</td>
			<td><input id="mysql_info_3" class="text" name="db_user" type="text" /></td>
		</tr>
		<tr>
			<td class="l">数据库密码：</td>
			<td><input id="mysql_info_4" class="text" name="db_pass" type="password" /></td>
		</tr>
		<tr>
			<td class="l">数据表前缀：</td>
			<td><input class="text" name="db_prefix" type="text" value="rhs_" /></td>
		</tr>
		<tr>
			<td colspan="2"></td>
		</tr>
		<tr>
			<td class="l">电子邮箱：</td>
			<td><input class="text" name="email" type="text" /></td>
		</tr>
		<tr>
			<td class="l">英文版数据：</td>
			<td>
				<input name="en_data" type="radio" value="1" />安装&nbsp;&nbsp;
				<input name="en_data" type="radio" value="0" checked="checked" />不安装
			</td>
		</tr>
		<tr>
			<td colspan="2" class="c bt_row"><input class="button" type="submit" value="开始升级" /></td>
		</tr>
	</table>
</form>
<script language="javascript">
function cheak_mysql()
{
	for(i = 1; i <= 4; i ++ )
	{
		document.getElementById("mysql_info_" + i).disabled = false;
		document.getElementById("mysql_info_" + i).value = "";
	}
	document.getElementById("mysql_info_1").value = "localhost";
}
function cheak_access()
{
	for(i = 1; i <= 4; i ++ )
	{
		document.getElementById("mysql_info_" + i).disabled = true;
		document.getElementById("mysql_info_" + i).value = "Access数据库无需填写此项";
	}
	document.getElementById("mysql_info_4").value = "Access";
}
</script>
</body>
</html>