<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Install.aspx.cs" Inherits="Oykx.Install" %>

<!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 runat="server">
    <title>oykX个人网站系统 V1.8 正式版 程序安装 -
        <%=Resources.zhouxiang.index %></title>
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv='Content-Type' content='text/html; charset=gb2312' />
    <meta http-equiv='cache-control' content='no-cache' />
    <style rel='stylesheet'>
        body, td, div
        {
            color: #333333;
            font-family: '宋体' , tahoma, verdana, sans-serif;
            font-size: 12px;
            line-height: 20px;
        }
        strong
        {
            color: black;
        }
        input
        {
            font-family: '宋体' , tahoma, verdana, sans-serif;
            font-size: 12px;
            color: blue;
            height: 18px;
            border: 1px #aaaaaa solid;
        }
        a
        {
            color: #2C78C5;
            text-decoration: none;
        }
        a:hover
        {
            color: #ff6600;
            text-decoration: underline;
        }
        form
        {
            margin: 0px;
        }
        .smallbox
        {
            height: 14px !important;
            height: 16px;
            border: 0px !important;
        }
        .button
        {
            color: black;
            height: 18px;
            line-height: 12pt;
            border-right: 1px #aaaaaa solid;
            border-bottom: 1px #aaaaaa solid;
            background: buttonface;
        }
        .t1
        {
            color: #ff6600;
        }
        .t2
        {
            color: red;
        }
        .style1
        {
            color: #FF33CC;
        }
    </style>

    <script language='javascript'>
        function switchControlEditable(sender) {
            var elements = document.getElementsByTagName('INPUT');
            for (var i = 0; i < elements.length; i++) {
                if (elements[i].id == sender.id) continue;
                elements[i].disabled = (!sender.checked);
            }
        }
        function dbTypeSwitch(s) {
            var connstrContainer = document.getElementById('inputconnstr');
            if (s == 'sqlserver') {
                connstrContainer.style.display = '';
            }
            else {
                connstrContainer.style.display = 'none';
            }
        }
        function appPathSettingHelperSwitch(sender, target) {
            if (sender.innerHTML != '详细说明 ...') {
                sender.innerHTML = '详细说明 ...';
                target.style.display = 'none';
                return;
            }
            sender.innerHTML = '详细说明：';
            target.style.display = '';
        }
        function inputAddress() {
            var addressCtl = document.getElementById('bbsaddress');
            if (addressCtl.disabled) {
                alert('请先阅读并同意许可条款(顶部)');
                return;
            }
            addressCtl.value = 'http://';
        }
        function fillForumAddress() {
            var s = location.href;
            if (s.substr(0, 7) == 'http://') {
                document.getElementById('bbsaddress').value = s.substr(0, s.length - 12);
            }
        }
    </script>

</head>
<body  background="image/bj.jpg">
    <form id='installform' method='post' runat="server" style='text-align: center'>
    <div style="background-color:White; width:700px; ">
    <span style='text-align: left; width: 570px; position: relative; top: 10px;'><strong
        style='font-size: 18px; background: white;'>全新安装《OYKX个人网站程序 V1.8》</strong></span>
    <div style='width: 610px; border: 2px #c9c9c9 solid; margin: auto; padding: 10px; margin:20px '>
        <asp:Panel ID="Panel1" runat="server">
            <table align='center' width='100%' cellpadding='8' cellspacing='0' id='maintable'
                style='table-layout: fixed; overflow: hidden'>
                <tr>
                    <td>
                        <span class='t1'>本程序将协助你安装<span class='t2'>《OYKX个人网站程序》</span>，请仔细阅读并按照从上往下顺序一步步进行
                            <br />
                            <span class='t2'>注：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            </span>&nbsp;<br />
                            1、必须允许客户端脚本才能正常使用本文件.&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<br />
                            2、必须同意并接受安装许可条款才可进行安装操作.<br />
                            3、若中途出现差错，请重整之后重新进行.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
                            <br />
                            4、安装前,请先查看安装说明(TXT)文档.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                            <br />
                        </span>
                    </td>
                </tr>
                <tr id='apply_row'>
                    <td style='padding-left: 25px'>
                        <strong><span class='t2'>→</span> 请先阅读使用许可及遵守条款</strong>
                        <br />
                        <input type='checkbox' id='applylicence' class='smallbox' value='1' onclick='javascript:switchControlEditable(this)' /><label
                            for='applylicence' class='t2'>我同意并接受</label><a href='licence.htm' target='_blank'>《版权声明、使用许可及遵守条款》</a>
                        <br />
                    </td>
                    <tr>
                        <td style='padding-left: 25px' nowrap='nowrap'>
                            <strong><span class='t2'>→</span> 配置环境及IIS虚拟目录</strong>&amp;
                            <br />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <br />
                            1、操作系统须为Win2000/XP/2003，须已安装IIS Web服务 (从Windows组件中安装IIS).<br />
                            2、须已安装.NET Framework 3.5.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <br />
                            3、须安装SQL SERVER 2005/2008.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <br />
                            4、需要为程序配置IIS站点或虚拟目录，并确定访问地址(http://形式).&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <br />
                            5、需要为程序文件所在的<span class="style1">根目录</span>开启可写的权限.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </td>
                        <tr>
                            <td style='padding-left: 45px'>
                                <strong><span class='t2'>→</span> 环境配置及目录设置检测</strong>
                                <br />
                                <br />
                                同意许可条款并完成以上环境设置后，请您检测按钮进行检测:
                                <br />
                                <br />
                                &nbsp;<asp:Button ID="button" runat="server" Text="检 测" Enabled="false" CssClass="button"
                                    OnClick="button_Click" />
                            </td>
                        </tr>
                <tr>
                    <td align='right'>
                        <div style='margin-top: 10px; margin-bottom: 10px; width: 100%; border-top: 1px #cccccc solid;
                            padding-top: 3px'>
                            All Rights Reserved 2011-2012 &copy; &nbsp;<a href='http://www.xn--zsrs47f.com/'
                                target='_blank' title='访问官方网站'>http://www.周祥.com</a>&nbsp; <a href='http://www.oykx.net'
                                    target='_blank' title='访问官方网站'>OYKX.NET</a></div>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="Panel2" runat="server" Visible="false">
            <table cellpadding="0" cellspacing="0" width="400px" style="height: 248px" >
                <colgroup>
                    <col align="right" width="30%">
                    <col align="left">
                </colgroup>
                <tr>
                    <td>
                        服务器地址:
                    </td>
                    <td>
                        <asp:TextBox ID="txthost" runat="server" Text="localhost"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        数据库名称:
                    </td>
                    <td>
                        <asp:TextBox ID="txtdbname" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        数据库用户名:
                    </td>
                    <td>
                        <asp:TextBox ID="txtdbuser" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        数据库密码:
                    </td>
                    <td>
                        <asp:TextBox ID="txtdbpass" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        后台用户名:
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        后台密码:
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserPass" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;<asp:Button ID="btnpz" runat="server" onclick="btnpz_Click" Text="保存配置" />
                        &nbsp;<asp:Button ID="btnanzhuang" runat="server" Text="安装..." 
                            onclick="btnanzhuang_Click" Enabled="False" />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        注:以上项你可以不填 但是安装不了请勿找我</td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Label ID="Label1" runat="server" Text="安装成功,请删除根目录下的Install.aspx文件 <a href='index.aspx'>返回首页</a>" Visible="false"></asp:Label>
    </div></div>
    </form>
</body>
</html>
