<%@CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<!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">
        <title>
            iShow 安装向导
        </title>
        <link rel="stylesheet" href="images/style.css" type="text/css" media="all">
    </head>
    
    <body>
        <div class="container">
            <div class="header">
                <h1>
                    iShow 安装向导
                </h1>
                <span>
                    iShow 2.0 简体中文 UTF8 版 20120331
                </span>
                <div class="setup step2">
                    <h2>
                        设置管理密码
                    </h2>
                    <p>
                        正在生成密码
                    </p>
                </div>
                <div class="stepstat">
                    <ul>
                        <li class="">
                            创建数据库
                        </li>
                        <li class="current">
                            设置管理密码
                        </li>
                        <li>
                            设置系统
                        </li>
                        <li class="unactivated last">
                            获取授权码
                        </li>
                    </ul>
                    <div class="stepstatbg stepstat1">
                    </div>
                </div>
            </div>
            <div class="main">
                <form method="post" action="Step2.asp">
                    <input name="step" value="3" type="hidden">
                    <input name="install_ucenter" value="yes" type="hidden">
                    <div id="form_items_3">
                        <br>
                        <div class="desc">
                            <b>
                                数据库安装信息
                            </b>
                        </div>
                        
						<div class="main"><h2 class="title">执行结果</h2>
							<table class="tb" style="margin: 20px 0pt 20px 55px;">
								<tbody>
									<tr>
										<td>
											<%
											Response.charset="utf-8"
											if Request.form("pw")<>"" then
												CreatFile "/manage/Pass.asp","<"&"%const ADPASS = """&Request.form("pw")&"""%"&">"
												Response.Write "后台密码创建成功"
												Response.Write "</BR>"
											else
												Response.Write "密码不可为空"
												Response.Write "</BR>"
												Response.Write "<input name=""submitname"" value=""返回上一步"" class=""btn"" type=""button"" onclick=""location.href='Step2.asp';"">"  
												Response.Write "</BR>"
											end if
											function CreatFile(path,content)
												dim objStream,strFile
												strFile=server.mappath(path)
												Set objStream = Server.CreateObject("ADODB.Stream")
												With objStream
													.Type = 2
													.Open
													.Charset = "utf-8"
													.Position = objStream.Size
													.WriteText = content
													.SaveToFile strFile,2
													.Close
												End With
												Set objStream = Nothing
											end function
											%>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
                    <table class="tb2">
                        <tbody>
                            <tr>
                                <th class="tbopt" align="left">
                                    &nbsp;
                                </th>
                                <td>
                                    <input name="submitname" value="下一步" class="btn" type="button" onclick="location.href='Step3.asp';">
                                </td>
                                <td>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </form>
                <div class="footer">
                    &copy;2001 - 2011
                    <a href="http://www.xknet.net/">
                        xknet.net
                    </a>
                    Inc.
                </div>
            </div>
        </div>
    </body>

</html>