<%@ Page Language="C#" Inherits="IWMS.Init" %>
<!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" lang="zh">
<head>
<title>iwms 数据库设置</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<link rel="stylesheet" href="style/msg/c.css" type="text/css"/>
<style type="text/css">
.msg { color:red; margin:5px; display:block }
</style>
</script>
</head>
<body>
<form runat="server" >

<div class="mframe">
<div class="tl"></div>
<div class="tr"></div>
<div class="tm">
	
</div>
<div class="wrapper">
<div class="ml"></div>
<div class="mr"></div>
<div class="mm">
		<div class="title">设置iwms数据库</div>
	<asp:Label id="msg" CssClass="msg" EnableViewState="false" runat="server"/>
	<asp:PlaceHolder id="ph_selDb" runat="server">
		<div style="text-align:center">
		<asp:RadioButtonList id="rbl_db" RepeatDirection="horizontal" RepeatLayout="flow" runat="server">
			<asp:ListItem Text="access版　　" value="mdb" Selected="true"/>
			<asp:ListItem Text="ms sql版" value="mssql"/>
		</asp:RadioButtonList>
		</div>
		<br/>
		<center>
		<asp:Button id="bt_selDb" OnClick="bt_selDb_OnClick" text="确定" runat="server"/>
		</center>
	</asp:PlaceHolder>
	
	<asp:PlaceHolder id="ph_setSql" Visible="false" runat="server">
		<table><tr>
		<th>sql服务器：</th><td><asp:TextBox id="tb_server" size="20" Text="(local)" runat="server"/>
		&nbsp;<asp:RequiredFieldValidator
		ControlToValidate="tb_server"
		ErrorMessage="*"
		Display="Dynamic"
		runat="server"/>
		</td></tr>
		<tr>
		<th>数据库名 ：</th><td><asp:TextBox id="tb_database" size="20" Text="iwms" runat="server"/>
		&nbsp;<asp:RequiredFieldValidator
		ControlToValidate="tb_database"
		ErrorMessage="*"
		Display="Dynamic"
		runat="server"/>
		</td></tr>
		<tr>
		<th>用 户 名 ：</th><td><asp:TextBox id="tb_username" size="20" Text="sa" runat="server"/>
		&nbsp;<asp:RequiredFieldValidator
		ControlToValidate="tb_username"
		ErrorMessage="*"
		Display="Dynamic"
		runat="server"/>
		</td></tr>
		<tr>
		<th>用户密码 ：</th><td><asp:TextBox id="tb_password" size="20" runat="server"/><br/>
		</td></tr>
		<tr><td colspan="2" align="center">
		<asp:Button id="bt_setSql" OnClick="bt_setSql_OnClick" text="确定" runat="server"/>
		</td></tr>
		</table>
		注：以上信息应当已由您的空间商提供
	</asp:PlaceHolder>
	
	<asp:PlaceHolder id="ph_finish" Visible="false" runat="server">
		<div style="text-align:center">
		  安装成功！<br/>
		   <br/>
		   <a href="default.aspx">请登录系统修改设置和密码</a><br/><br/>
		   默认用户名／密码：admin<br/>
		(如果访问发生错误，请 <a href="http://www.iwms.net/n791c35.aspx" target="_blank">手动建表</a>)
		</div>
	</asp:PlaceHolder>
	
	<asp:PlaceHolder id="ph_writeError" Visible="false" runat="server">
		<ul style="padding:0 0 20px 20px;margin:0">
			<li>你的空间权限不足，无法保存数据库设置</li>
			<li>请点击下载设置，然后ftp上传iwms.config</li>
		</ul>
		<div style="text-align:center">
			<asp:Button id="bt_down" OnClick="bt_down_OnClick" text="下载设置文件" runat="server"/>&nbsp; &nbsp;
			<asp:Button id="bt_uploaded" OnClick="bt_uploaded_OnClick" text="已上传" runat="server"/>
		</div>
	</asp:PlaceHolder>
	
	<div style="text-align:right;padding:4px 10px;"><a href="http://www.iwms.net" target="_blank">www.iwms.net</a></div>
</div>
</div>
<div class="bl"></div>
<div class="br"></div>
<div class="bm"></div>
</div>
</form>

</body>
</html>